Modifier and Type | Method and Description |
---|---|
static Point2DFloatList |
Point2DFloatList.makeRegularPolygon(int sides,
float outerRadius,
double startAngle)
Constructs a regular polygon with the specified number of sides,
outer radius, and starting angle specified in radians (0 radians
points along the x-axis.)
TODO: Make the angle as a Unit?
|
Point2DFloatList |
Point2DFloatList.rotateAround(float cx,
float cy,
double theta)
Creates a version of this polygon rotated around (cx, cy, by the
specified angle).
|
Point2DFloatList |
Point2DFloatList.scaleAround(float cx,
float cy,
float scale)
Creates a version of this polygon scaled around (cx, cy).
|
Modifier and Type | Method and Description |
---|---|
static VoxelArray |
VoxelArray.extrudeTapered(Point2DFloatList polygon,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float cx,
float cy,
float scale1,
float scale2,
double thetaZ)
Extrudes a filled polygon along a line from p1 to p2 and returns a new
VoxelArray of it.
|
static VoxelArray |
VoxelArray.extrudeTaperedRotated(Point2DFloatList polygon,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float cx,
float cy,
float scale1,
float scale2,
double angle1,
double angle2)
Extrudes a filled polygon along a line from p1 to p2 and returns a new
VoxelArray of it.
|
static VoxelArray |
VoxelArray.extrudeZ(Point2DFloatList polygon,
float minZ,
float maxZ)
Extrudes a filled polygon along the Z axis and returns a new VoxelArray
of it.
|
static VoxelArray |
VoxelArray.extrudeZTapered(Point2DFloatList polygon,
float minZ,
float maxZ,
float scale1,
float scale2)
Extrudes a filled polygon (centered around its centroid) along the Z
axis and returns a new VoxelArray of it.
|
static VoxelArray |
VoxelArray.extrudeZTapered(Point2DFloatList polygon,
float minZ,
float maxZ,
float cx,
float cy,
float scale1,
float scale2)
Extrudes a filled polygon along the Z axis and returns a new VoxelArray
of it.
|
static VoxelArray |
VoxelArray.extrudeZTapered(Point2DFloatList polygon,
float minZ,
float maxZ,
float cx,
float cy,
float scale1,
float scale2,
double angle1,
double angle2)
Extrudes a filled polygon along the Z axis and returns a new VoxelArray
of it.
|
static VoxelArray |
VoxelArray.strokeZ(Point2DFloatList polygon,
float z1,
float z2,
float strokeRadius,
boolean closed)
Extrudes the stroke of a polygon (using a cylindrical "pen") along the
Z axis and returns a new VoxelArray of it.
|
static VoxelArray |
VoxelArray.strokeZ(Point2DFloatList polygon,
VoxelArray tool,
float cx,
float cy,
float cz,
boolean closed)
Extrudes the stroke of a polygon (using a the specified VoxelArray as a
"tool") along the Z axis and returns a new VoxelArray of it.
|
static VoxelArray |
VoxelArray.strokeZTapered(Point2DFloatList polygon,
float z1,
float z2,
float r1,
float r2,
boolean closed)
Extrudes the stroke of a polygon (using a tapered cylindrical "pen")
along the Z axis and returns a new VoxelArray of it.
|