powered by
Regular polygons.
NOTE: INTERNAL STRUCTURE OF OBJECTS IS SUBJECT TO CHANGE. DO NOT USE SLOTS, DIRECTLY.
regPolygon (n=4, …, about.axis, d=1, stagger = (n %% 2 == 0) )Rect (…, about.axis, center=FALSE, side.length=1, glist = list () ) Cuboid (…, center=FALSE, side.length=1, glist = list () )
Rect (…, about.axis, center=FALSE, side.length=1, glist = list () ) Cuboid (…, center=FALSE, side.length=1, glist = list () )
Integer, the number of points.
Numeric, the distance.
A single character equal to "x", "y", z". If missing (the default), the object is in 2d space. If true, a 2d object is created in 3d space.
Logical, if false, the first point is at the top. Otherwise, it's rotated half the angle. (That is, the angle equal to 2pi divided by n).
Logical, if true, the object is centered about the origin, otherwise, it has the lowermost corner at the origin.
Numeric vector of length one or two, the x and y lengths.
Argument lists for plotting functions. Note that, in Cuboid, it's applied to each face.
Ignored.
A regPolygon, Rect or Cuboid object.
# NOT RUN { vt3.testplot (Rect (side.length = c (2, 1) ) ) # }
Run the code above in your browser using DataLab