| Constructor and Description |
|---|
Cylinder()
Constructor.
|
Cylinder(double radius,
double height)
Constructor.
|
Cylinder(double startRadius,
double endRadius,
double height)
Constructor.
|
Cylinder(double startRadius,
double endRadius,
double height,
int numSlices)
Constructor.
|
Cylinder(double radius,
double height,
int numSlices)
Constructor.
|
Cylinder(LengthParameter startRadius,
LengthParameter height) |
Cylinder(LengthParameter startRadius,
LengthParameter height,
int numSlices) |
Cylinder(LengthParameter startRadius,
LengthParameter endRadius,
LengthParameter height) |
Cylinder(LengthParameter startRadius,
LengthParameter endRadius,
LengthParameter height,
int numSlices) |
Cylinder(Vector3d start,
Vector3d end,
double startRadius,
double endRadius,
int numSlices)
Constructor.
|
Cylinder(Vector3d start,
Vector3d end,
double radius,
int numSlices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3d |
getEnd()
Gets the end.
|
double |
getEndRadius()
Gets the end radius.
|
int |
getNumSlices()
Gets the num slices.
|
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
Vector3d |
getStart()
Gets the start.
|
double |
getStartRadius()
Gets the start radius.
|
void |
setEnd(Vector3d end)
Sets the end.
|
void |
setEndRadius(double radius)
Sets the end radius.
|
void |
setNumSlices(int numSlices)
Sets the num slices.
|
void |
setStart(Vector3d start)
Sets the start.
|
void |
setStartRadius(double radius)
Sets the start radius.
|
java.util.List<Polygon> |
toPolygons()
Returns the polygons that define this primitive.
|
public Cylinder()
[0,0,0] and
ranging from [0,-0.5,0] to [0,0.5,0], i.e.
size = 1.public Cylinder(Vector3d start, Vector3d end, double radius, int numSlices)
start to end
with the specified radius. The resolution of the tessellation can
be controlled with numSlices.start - cylinder startend - cylinder endradius - cylinder radiusnumSlices - number of slices (used for tessellation)public Cylinder(Vector3d start, Vector3d end, double startRadius, double endRadius, int numSlices)
start to end
with the specified radius. The resolution of the tessellation can
be controlled with numSlices.start - cylinder startend - cylinder endstartRadius - cylinder start radiusendRadius - cylinder end radiusnumSlices - number of slices (used for tessellation)public Cylinder(double radius,
double height,
int numSlices)
[0,0,0] to
[0,0,height] with the specified radius and
height. The resolution of the tessellation can be controlled with
numSlices.radius - cylinder radiusheight - cylinder heightnumSlices - number of slices (used for tessellation)public Cylinder(double startRadius,
double endRadius,
double height,
int numSlices)
[0,0,0] to
[0,0,height] with the specified radius and
height. The resolution of the tessellation can be controlled with
numSlices.startRadius - cylinder start radiusendRadius - cylinder end radiusheight - cylinder heightnumSlices - number of slices (used for tessellation)public Cylinder(double radius,
double height)
[0,0,0] to
[0,0,height] with the specified radius and
height. The resolution of the tessellation can be controlled with
numSlices.radius - cylinder radiusheight - cylinder heightpublic Cylinder(double startRadius,
double endRadius,
double height)
[0,0,0] to
[0,0,height] with the specified radius and
height. The resolution of the tessellation can be controlled with
numSlices.startRadius - cylinder start radiusendRadius - cylinder end radiusheight - cylinder heightpublic Cylinder(LengthParameter startRadius, LengthParameter endRadius, LengthParameter height, int numSlices)
public Cylinder(LengthParameter startRadius, LengthParameter height, int numSlices)
public Cylinder(LengthParameter startRadius, LengthParameter endRadius, LengthParameter height)
public Cylinder(LengthParameter startRadius, LengthParameter height)
public java.util.List<Polygon> toPolygons()
PrimitiveCSG object.toPolygons in class Primitivepublic Vector3d getStart()
public void setStart(Vector3d start)
start - the start to setpublic Vector3d getEnd()
public void setEnd(Vector3d end)
end - the end to setpublic double getStartRadius()
public void setStartRadius(double radius)
radius - the radius to setpublic double getEndRadius()
public void setEndRadius(double radius)
radius - the radius to setpublic int getNumSlices()
public void setNumSlices(int numSlices)
numSlices - the number of slices to setpublic PropertyStorage getProperties()
PrimitivegetProperties in class Primitive