Modifier and Type | Method and Description |
---|---|
static VoxelArray |
VoxelArray.construct(BoundingBox3DFloat bb,
boolean value)
Construct a new rectangular VoxelArray that encloses the specific
bounding box.
|
static VoxelArray |
VoxelArray.construct(double x1,
double x2,
double y1,
double y2,
double z1,
double z2,
boolean value)
Construct a new rectangular VoxelArray that encloses the specific
min and max coordinates.
|
static VoxelArray |
VoxelArray.construct(Point3DIntList points)
Construct a new rectangular VoxelArray that represents the points in
the Point3DIntList.
|
static VoxelArray |
VoxelArray.cube(double x1,
double x2,
double y1,
double y2,
double z1,
double z2,
boolean value)
Construct a new rectangular VoxelArray that is a cuboid with the
specified minimum and maximum values.
|
VoxelArray |
VoxelArray.cylindricalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double angleCenter,
double angleWidth,
float targetHeight,
float d0,
float d1,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a cylindrical mapping into the outer hull of an
object.
|
VoxelArray |
VoxelArray.cylindricalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double angleCenter,
double angleWidth,
float targetHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a cylindrical mapping into the outer hull of an
object.
|
static VoxelArray |
VoxelArray.extrudeOnPlane(frink.graphics.FrinkImage img,
float x,
float y,
float z,
float u,
float v,
float w,
float depth,
double thetaZ)
Extrudes an image along a plane specified by a point on the plane
(x, ,y, z) and a normal vector to the plane specified by (u,v,w).
|
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(frink.graphics.FrinkImage img,
int heightZ)
Extrudes an image along the Z axis and returns a new VoxelArray of it.
|
static VoxelArray |
VoxelArray.extrudeZ(frink.graphics.FrinkImage img,
int minZ,
int maxZ)
Extrudes an image along the Z axis 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.
|
VoxelArray |
VoxelArray.floodFill(int minx,
int maxx,
int miny,
int maxy,
int minz,
int maxz,
int startx,
int starty,
int startz)
Performs a flood fill of the specified VoxelArray, filling only to the
specified bounds.
|
static VoxelArray |
VoxelArray.makeCappedCylinder(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float radius)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeCylinder(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float radius)
Makes a cylinder with with the specified endpoints and radius.
|
static VoxelArray |
VoxelArray.makeCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius)
Makes a cylinder with with the specified endpoints and radius.
|
static VoxelArray |
VoxelArray.makeRoundedCube(float x1,
float x2,
float y1,
float y2,
float z1,
float z2,
float radius)
Construct a new rounded cuboid VoxelArray that encloses the specific
min and max coordinates and with corner diameter radius.
|
static VoxelArray |
VoxelArray.makeSphere(float radius)
Makes a new VoxelArray with a sphere centered at (0,0,0) with the
specified radius.
|
static VoxelArray |
VoxelArray.makeSpheroid(float rx,
float ry,
float rz)
Makes a new VoxelArray with a spheroid centered at (0,0,0) with the
specified radius on each axis [rx, ry, rz]
TODO: Make a version of this centered at any specified point.
|
static VoxelArray |
VoxelArray.makeSuperellipsoid(double rx,
double ry,
double rz,
double n1,
double n2)
Creates a "superellipsoid" which is a generalization of the ellipsoid
family which is a superset of the spheroid family.
|
static VoxelArray |
VoxelArray.makeSupertoroid(double r,
double rx,
double ry,
double rz,
double e1,
double e2)
Creates a "supertoroid" which is a generalization of the toroid family.
|
static VoxelArray |
VoxelArray.makeTaperedCappedCylinder(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float radius1,
float radius2)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeTaperedCappedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Makes a cylinder with spherical end caps with the specified endpoints
and radius.
|
static VoxelArray |
VoxelArray.makeTaperedCylinder(float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float radius1,
float radius2)
Makes a tapered cylinder with with the specified endpoints and radius.
|
static VoxelArray |
VoxelArray.makeTaperedCylinder(Point3DFloat p1,
Point3DFloat p2,
float radius1,
float radius2)
Makes a tapered cylinder with with the specified endpoints and radius.
|
static VoxelArray |
VoxelArray.paintAlongAllPoints(VoxelArray v1,
VoxelArray tool,
int cx,
int cy,
int cz)
Moves a tool along *all* set points in a VoxelArray and returns a new
VoxelArray of it.
|
VoxelArray |
VoxelArray.paintAlongHull(VoxelArray tool,
int cx,
int cy,
int cz,
boolean add)
Moves a tool along a path of integer points and returns a new
VoxelArray of it, either adding to or removing points with the tool.
|
static VoxelArray |
VoxelArray.paintAlongPath(Point3DIntList points,
VoxelArray tool,
int cx,
int cy,
int cz)
Moves a tool along a path of integer points and returns a new
VoxelArray of it.
|
VoxelArray |
VoxelArray.planarEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float xWidth,
float yHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a planar mapping into the top of an object
(that is, downward on the Z-axis.) A tool will be used to
carve into the object.
|
VoxelArray |
VoxelArray.rotate(float a,
float b,
float c,
float u,
float v,
float w,
double theta)
Rotates this VoxelArray around a line through a point (a, b, c) parallel
to the vector [u,v,w] by the angle theta.
|
VoxelArray |
VoxelArray.rotateXYZ(float a,
float b,
float c,
double thetaX,
double thetaY,
double thetaZ)
Performs three rotations around the point (a, b, c)
by performing 3 successive rotations about the x, y, and z axes in that
order.
|
VoxelArray |
VoxelArray.solidOfRotation(float x,
float y,
float z,
float u,
float v,
float w,
double angle1,
double angle2)
Creates a solid of rotation by rotating this VoxelArray around
an axis going through point (x,y,z) and the normal (u,v,w).
|
VoxelArray |
VoxelArray.solidOfRotation(LineSegment3DFloat axis,
double angle1,
double angle2)
Creates a solid of rotation by rotating this VoxelArray around
an axis specified by axis.
|
VoxelArray |
VoxelArray.solidOfRotation(Point3DFloat point,
Point3DFloat axis,
double angle1,
double angle2)
Creates a solid of rotation by rotating this VoxelArray around
an axis going through point (x,y,z) and the normal (u,v,w).
|
VoxelArray |
VoxelArray.sphericalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double azCenter,
double azWidth,
double altCenter,
double altHeight,
float d0,
float d1,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a spherical mapping into the outer hull of an
object.
|
VoxelArray |
VoxelArray.sphericalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double azCenter,
double azWidth,
double altCenter,
double altHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a spherical mapping into the outer hull of an
object.
|
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.
|
VoxelArray |
VoxelArray.transform(CoordinateTransformer3DFloat transform)
Transforms this VoxelArray (rotations, scalings, translations, etc.)
using an arbitrary
CoordinateTransformer3DFloat |
VoxelArray |
VoxelArray.union(VoxelArray other)
Creates the union of this VoxelArray and another VoxelArray and returns
a new VoxelArray that is just big enough to contain their union.
|
static VoxelArray |
VoxelArray.union(VoxelArray v1,
VoxelArray v2)
Returns the union of two VoxelArrays as a new VoxelArray that is just
big enough to hold both of them.
|
Modifier and Type | Method and Description |
---|---|
void |
VoxelArray.add(VoxelArray b)
Adds the pixels in this VoxelArray that are true in VoxelArray b,
modifying this VoxelArray in place.
|
void |
VoxelArray.addAlongLine(VoxelArray b,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
int xc,
int yc,
int zc)
Adds the pixels in this VoxelArray by moving the
VoxelArray b along a line and adding the points in VoxelArray b
that are true, modifying this VoxelArray in place.
|
VoxelArray |
VoxelArray.cylindricalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double angleCenter,
double angleWidth,
float targetHeight,
float d0,
float d1,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a cylindrical mapping into the outer hull of an
object.
|
VoxelArray |
VoxelArray.cylindricalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double angleCenter,
double angleWidth,
float targetHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a cylindrical mapping into the outer hull of an
object.
|
boolean |
VoxelArray.hasSameBoundary(VoxelArray other)
Returns true if the bounds of the other VoxelArray is the same size and
location as this one.
|
boolean |
VoxelArray.intersectsWith(VoxelArray b)
Returns true if the bounding box of this VoxelArray intersects with the
other VoxelArray, false otherwise.
|
static VoxelArray |
VoxelArray.paintAlongAllPoints(VoxelArray v1,
VoxelArray tool,
int cx,
int cy,
int cz)
Moves a tool along *all* set points in a VoxelArray and returns a new
VoxelArray of it.
|
VoxelArray |
VoxelArray.paintAlongHull(VoxelArray tool,
int cx,
int cy,
int cz,
boolean add)
Moves a tool along a path of integer points and returns a new
VoxelArray of it, either adding to or removing points with the tool.
|
void |
VoxelArray.paintAlongLine(VoxelArray tool,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
int xc,
int yc,
int zc,
boolean add)
Modifies the pixels in this VoxelArray by moving the VoxelArray tool
along a line and adding or removing the points in VoxelArray tool that
are true, modifying this VoxelArray in place.
|
static VoxelArray |
VoxelArray.paintAlongPath(Point3DIntList points,
VoxelArray tool,
int cx,
int cy,
int cz)
Moves a tool along a path of integer points and returns a new
VoxelArray of it.
|
VoxelArray |
VoxelArray.planarEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float xWidth,
float yHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a planar mapping into the top of an object
(that is, downward on the Z-axis.) A tool will be used to
carve into the object.
|
void |
VoxelArray.remove(VoxelArray b)
Removes the pixels in this VoxelArray that are true in
VoxelArray b, modifying this VoxelArray in place.
|
void |
VoxelArray.removeAlongLine(VoxelArray b,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2,
int xc,
int yc,
int zc)
Removes the pixels in this VoxelArray by moving the
VoxelArray b along a line and removing the points in VoxelArray b
that are true, modifying this VoxelArray in place.
|
VoxelArray |
VoxelArray.sphericalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double azCenter,
double azWidth,
double altCenter,
double altHeight,
float d0,
float d1,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a spherical mapping into the outer hull of an
object.
|
VoxelArray |
VoxelArray.sphericalEmboss(frink.graphics.FrinkImage img,
float cx,
float cy,
float cz,
double azCenter,
double azWidth,
double altCenter,
double altHeight,
int grayMin,
int grayMax,
float d0min,
float d0max,
float d1min,
float d1max,
VoxelArray tool,
int toolcx,
int toolcy,
int toolcz)
Embosses an image using a spherical mapping into the outer hull of an
object.
|
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.
|
VoxelArray |
VoxelArray.union(VoxelArray other)
Creates the union of this VoxelArray and another VoxelArray and returns
a new VoxelArray that is just big enough to contain their union.
|
static VoxelArray |
VoxelArray.union(VoxelArray v1,
VoxelArray v2)
Returns the union of two VoxelArrays as a new VoxelArray that is just
big enough to hold both of them.
|
Constructor and Description |
---|
VoxelArray(VoxelArray other)
Copy constructor.
|
VoxelArray(VoxelArray other,
boolean value)
Copy the dimensions but set every voxel to the specified value.
|