public class Torus extends Primitive
name, properties| Constructor and Description |
|---|
Torus()
Initializes a new instance of the
Torus class. |
Torus(double radius,
double tube)
Initializes a new instance of the
Torus class. |
Torus(double radius,
double tube,
double arc)
Initializes a new instance of the
Torus class. |
Torus(java.lang.String name,
double radius,
double tube,
int radialSegments,
int tubularSegments,
double arc)
Initializes a new instance of the
Torus class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if two toruses equal
|
double |
getArc()
Gets the arc.
|
int |
getRadialSegments()
Gets the radial segments.
|
double |
getRadius()
Gets the radius of the torus.
|
double |
getTube()
Gets the radius of the tube.
|
int |
getTubularSegments()
Gets the tubular segments.
|
int |
hashCode()
Gets the hash code of current primitive instance
|
void |
setArc(double value)
Sets the arc.
|
void |
setRadialSegments(int value)
Sets the radial segments.
|
void |
setRadius(double value)
Sets the radius of the torus.
|
void |
setTube(double value)
Sets the radius of the tube.
|
void |
setTubularSegments(int value)
Sets the tubular segments.
|
Mesh |
toMesh()
Convert current object to mesh
|
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setupgetBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNodegetScenefindProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic Torus()
Torus class.public Torus(double radius,
double tube)
Torus class.radius - The radius of the torus.tube - The radius of the torus' tube.public Torus(double radius,
double tube,
double arc)
Torus class.radius - The radius of the torus.tube - The radius of the torus' tube.arc - Arc.public Torus(java.lang.String name,
double radius,
double tube,
int radialSegments,
int tubularSegments,
double arc)
Torus class.name - Name.radius - The radius of the torus.tube - The radius of the torus' tube.radialSegments - Radial segments.tubularSegments - Tubular segments.arc - Arc.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to check equality.public double getRadius()
public void setRadius(double value)
value - New valuepublic double getTube()
public void setTube(double value)
value - New valuepublic int getRadialSegments()
public void setRadialSegments(int value)
value - New valuepublic int getTubularSegments()
public void setTubularSegments(int value)
value - New valuepublic double getArc()
public void setArc(double value)
value - New valuepublic Mesh toMesh()
toMesh in interface IMeshConvertibletoMesh in class Primitivepublic int hashCode()
hashCode in class java.lang.ObjectTorus