Package com.aspose.threed
Class Torus
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.SceneObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Primitive
-
- com.aspose.threed.Torus
-
- All Implemented Interfaces:
IMeshConvertible
,INamedObject
public class Torus extends Primitive
Parameterized torus.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description Torus()
Initializes a new instance of theTorus
class.Torus(double radius, double tube)
Initializes a new instance of theTorus
class.Torus(double radius, double tube, double arc)
Initializes a new instance of theTorus
class.Torus(java.lang.String name, double radius, double tube, int radialSegments, int tubularSegments, double arc)
Initializes a new instance of theTorus
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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-
Methods inherited from class com.aspose.threed.Primitive
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setup
-
Methods inherited from class com.aspose.threed.Entity
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.SceneObject
getScene
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
Torus
public Torus()
Initializes a new instance of theTorus
class.
-
Torus
public Torus(double radius, double tube)
Initializes a new instance of theTorus
class.- Parameters:
radius
- The radius of the torus.tube
- The radius of the torus' tube.
-
Torus
public Torus(double radius, double tube, double arc)
Initializes a new instance of theTorus
class.- Parameters:
radius
- The radius of the torus.tube
- The radius of the torus' tube.arc
- Arc.
-
Torus
public Torus(java.lang.String name, double radius, double tube, int radialSegments, int tubularSegments, double arc)
Initializes a new instance of theTorus
class.- Parameters:
name
- Name.radius
- The radius of the torus.tube
- The radius of the torus' tube.radialSegments
- Radial segments.tubularSegments
- Tubular segments.arc
- Arc.
-
-
Method Detail
-
getRadius
public double getRadius()
Gets the radius of the torus.
-
setRadius
public void setRadius(double value)
Sets the radius of the torus.- Parameters:
value
- New value
-
getTube
public double getTube()
Gets the radius of the tube.
-
setTube
public void setTube(double value)
Sets the radius of the tube.- Parameters:
value
- New value
-
getRadialSegments
public int getRadialSegments()
Gets the radial segments.
-
setRadialSegments
public void setRadialSegments(int value)
Sets the radial segments.- Parameters:
value
- New value
-
getTubularSegments
public int getTubularSegments()
Gets the tubular segments.
-
setTubularSegments
public void setTubularSegments(int value)
Sets the tubular segments.- Parameters:
value
- New value
-
getArc
public double getArc()
Gets the arc.
-
setArc
public void setArc(double value)
Sets the arc.- Parameters:
value
- New value
-
toMesh
public Mesh toMesh()
Convert current object to mesh- Specified by:
toMesh
in interfaceIMeshConvertible
- Specified by:
toMesh
in classPrimitive
- Returns:
- The mesh.
-
-