public class RectangularTorus extends Primitive
name, properties| Constructor and Description |
|---|
RectangularTorus()
Constructor of
RectangularTorus |
RectangularTorus(java.lang.String name)
Constructor of
RectangularTorus |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if two rectangular torus equal
|
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
|
int |
hashCode()
Gets the hash code of current primitive instance
|
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 |
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setupgetBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNodegetScenefindProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic RectangularTorus()
RectangularToruspublic RectangularTorus(java.lang.String name)
RectangularToruspublic 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 valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to check equality.public Mesh toMesh()
MeshtoMesh in interface IMeshConvertibletoMesh in class Primitivepublic int hashCode()
hashCode in class java.lang.ObjectRectangularTorus