Torus

Overview

Torus is a class in Aspose.3D FOSS for Java. Inherits from: Primitive.

Parameterized torus.

This class provides 35 methods for working with Torus objects in Java programs. Available methods include: A3DObject, Entity, Primitive, SceneObject, Torus, findProperty, getArc, getBoundingBox, getCastShadows, getExcluded, getName, getParentNode, and 22 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: arc, boundingBox, castShadows, excluded, name, parentNode, and 8 more.

Properties

NameTypeAccessDescription
radiusdoubleReadGets the radius of the torus.
tubedoubleReadGets the radius of the tube.
radialSegmentsintReadGets the radial segments.
tubularSegmentsintReadGets the tubular segments.
arcdoubleReadGets the arc.
castShadowsbooleanReadGets whether this geometry can cast shadow.
receiveShadowsbooleanReadGets whether this geometry can receive shadow.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Torus()Initializes a new instance of the Torus class.
Torus(name: String, radius: double, tube: double, radialSegments: int, tubularSegments: int, arc: double)Initializes a new instance of the Torus class.
getRadius()doubleGets the radius of the torus.
setRadius(value: double)Sets the radius value.
getTube()doubleGets the radius of the tube.
setTube(value: double)Sets the tube value.
getRadialSegments()intGets the radial segments.
setRadialSegments(value: int)Sets the radial segments value.
getTubularSegments()intGets the tubular segments.
setTubularSegments(value: int)Sets the tubular segments value.
getArc()doubleGets the arc.
setArc(value: double)Sets the arc value.
toMesh()MeshNot implemented in the FOSS edition — throws at runtime. Calls toMesh on this Torus instance.
getCastShadows()booleanGets whether this geometry can cast shadow.
setCastShadows(value: boolean)The inner radius of the rectangular torus.
getReceiveShadows()booleanGets whether this geometry can receive shadow.
setReceiveShadows(value: boolean)The outer radius of the rectangular torus.
Primitive(name: String)Initializes a new instance of the Primitive class.
Entity()NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getParentNode()NodeConstructor of instance.
setParentNode(value: Node)The Boolean operator used in the operation to create the result mesh.
getParentNodes()ArrayList<Node>Protected constructor to allow derived classes to set name.
getExcluded()booleanThe Boolean operator used in the operation to create the result mesh.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxThe first operand of the Boolean operator.
SceneObject()Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances.
getScene()SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English