| Constructor and Description |
|---|
RoundedCylinder(double startRadius,
double height)
Constructor.
|
RoundedCylinder(double startRadius,
double endRadius,
double height,
int numSlices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RoundedCylinder |
cornerRadius(double cornerRadius)
Corner radius.
|
double |
getCornerRadius()
Gets the corner radius.
|
int |
getNumCornerSlices() |
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
int |
getResolution()
Gets the resolution.
|
RoundedCylinder |
resolution(int resolution)
Resolution.
|
RoundedCylinder |
setNumCornerSlices(int numCornerSlices) |
java.util.List<Polygon> |
toPolygons()
Returns the polygons that define this primitive.
|
public RoundedCylinder(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 RoundedCylinder(double startRadius,
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 radiusheight - cylinder heightpublic java.util.List<Polygon> toPolygons()
PrimitiveCSG object.toPolygons in class Primitivepublic PropertyStorage getProperties()
PrimitivegetProperties in class Primitivepublic int getResolution()
public RoundedCylinder resolution(int resolution)
resolution - the resolution to setpublic double getCornerRadius()
public RoundedCylinder cornerRadius(double cornerRadius)
cornerRadius - the corner radius to setpublic int getNumCornerSlices()
public RoundedCylinder setNumCornerSlices(int numCornerSlices)