public class RectangularTorus extends Primitive
Constructor and Description |
---|
RectangularTorus()
Constructor of
RectangularTorus |
RectangularTorus(java.lang.String name)
Constructor of
RectangularTorus |
Modifier and Type | Method and Description |
---|---|
double |
getAngleStart()
The start angle of the arc, measured in radian.
|
double |
getArc()
The total angle of the arc, measured in radian.
|
double |
getHeight()
The height of the rectangular torus.
|
double |
getInnerRadius()
The inner radius of the rectangular torus
Default value is 17
|
double |
getOuterRadius()
The outer radius of the rectangular torus
Default value is 20
|
int |
getRadialSegments()
The radial segments, default value is 10
|
void |
setAngleStart(double value)
The start angle of the arc, measured in radian.
|
void |
setArc(double value)
The total angle of the arc, measured in radian.
|
void |
setHeight(double value)
The height of the rectangular torus.
|
void |
setInnerRadius(double value)
The inner radius of the rectangular torus
Default value is 17
|
void |
setOuterRadius(double value)
The outer radius of the rectangular torus
Default value is 20
|
void |
setRadialSegments(int value)
The radial segments, default value is 10
|
Mesh |
toMesh()
Convert this primitive to
Mesh |
createRenderableResource, merge, setup
getBoundingBox, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public RectangularTorus()
RectangularTorus
public RectangularTorus(java.lang.String name)
RectangularTorus
public double getInnerRadius()
public void setInnerRadius(double value)
value
- New valuepublic double getOuterRadius()
public void setOuterRadius(double value)
value
- New valuepublic double getHeight()
public void setHeight(double value)
value
- New valuepublic double getArc()
public void setArc(double value)
value
- New valuepublic double getAngleStart()
public void setAngleStart(double value)
value
- New valuepublic int getRadialSegments()
public void setRadialSegments(int value)
value
- New value