@@ -15,11 +15,13 @@ the same approach to display it in \pkg{rgl}.
1515plotmath3d(x , y = NULL , z = NULL , text , cex = par3d(" cex" ),
1616 adj = 0.5 , pos = NULL , offset = 0.5 ,
1717 fixedSize = TRUE , startsize = 480 , initCex = 5 ,
18- margin = " " , floating = FALSE , tag = " " , ... )
18+ margin = " " , floating = FALSE , tag = " " ,
19+ polygon_offset = material3d(" polygon_offset" ), ... )
1920latex3d(x , y = NULL , z = NULL , text , cex = par3d(" cex" ),
2021 adj = 0.5 , pos = NULL , offset = 0.5 ,
2122 fixedSize = TRUE , startsize = 480 , initCex = 5 ,
22- margin = " " , floating = FALSE , tag = " " ,
23+ margin = " " , floating = FALSE , tag = " " ,
24+ polygon_offset = material3d(" polygon_offset" ),
2325 verbose = FALSE , ... )
2426}
2527\arguments {
@@ -51,7 +53,7 @@ are cut off. \code{initCex} is the size of text used
5153to form the bitmap. Increase this if letters look too blurry
5254at the desired size.
5355}
54- \item {margin , floating , tag }{
56+ \item {margin , floating , tag , polygon_offset }{
5557\code {\link {material3d }} properties for the sprites.
5658 }
5759 \item {verbose }{If \code {TRUE }, \code {latex3d } will print
@@ -89,14 +91,15 @@ open3d()
8991plotmath3d(1 : 3 , 1 : 3 , 1 : 3 , expression(x [1 ] == 1 , x [2 ] == 2 , x [3 ] == 3 ))
9092# This lets the text resize with the plot
9193text3d(4 , 4 , 4 , " resizeable text" , usePlotmath = TRUE , fixedSize = FALSE )
92-
94+ \ donttest {
9395if (requireNamespace(" xdvir" )) {
9496
95- # Do the same plot using latex3d()
97+ # Do the same plot using latex3d(). This example runs slowly!
9698
9799 open3d()
98100 latex3d(1 : 3 , 1 : 3 , 1 : 3 , c(" $x_1 = 1$" , " $x_2 = 2$" , " $x_3 = 3$" ))
99101 latex3d(4 , 4 , 4 , " resizeable text" , fixedSize = FALSE )
100102
101103}
102104}
105+ }
0 commit comments