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 |
---|---|
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 |
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 valuepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to check equality.public Mesh toMesh()
Mesh
toMesh
in interface IMeshConvertible
toMesh
in class Primitive
public int hashCode()
hashCode
in class java.lang.Object
RectangularTorus