Package com.aspose.threed
Class Plane
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.SceneObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Primitive
-
- com.aspose.threed.Plane
-
- All Implemented Interfaces:
IMeshConvertible
,INamedObject
public class Plane extends Primitive
Parameterized plane.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description Plane()
Initializes a new instance of thePlane
with default size 1x1.Plane(double length, double width)
Initializes a new instance of thePlane
.Plane(java.lang.String name, double length, double width, int lengthSegments, int widthSegments)
Initializes a new instance of thePlane
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLength()
Gets the length of the plane.int
getLengthSegments()
Gets the length segments.Vector3
getUp()
Gets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the planedouble
getWidth()
Gets the width of the plane.int
getWidthSegments()
Gets the width segments.void
setLength(double value)
Sets the length of the plane.void
setLengthSegments(int value)
Sets the length segments.void
setUp(Vector3 value)
Sets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the planevoid
setWidth(double value)
Sets the width of the plane.void
setWidthSegments(int value)
Sets the width 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
-
Plane
public Plane()
Initializes a new instance of thePlane
with default size 1x1.
-
Plane
public Plane(double length, double width)
Initializes a new instance of thePlane
.- Parameters:
length
- Length of the plane.width
- Width of the plane.
-
Plane
public Plane(java.lang.String name, double length, double width, int lengthSegments, int widthSegments)
Initializes a new instance of thePlane
.- Parameters:
name
- Name.length
- Length of the plane.width
- Width of the plane.lengthSegments
- Length segments.widthSegments
- Width segments.
-
-
Method Detail
-
getUp
public Vector3 getUp()
Gets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane
-
setUp
public void setUp(Vector3 value)
Sets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane- Parameters:
value
- New value
-
getLength
public double getLength()
Gets the length of the plane.
-
setLength
public void setLength(double value)
Sets the length of the plane.- Parameters:
value
- New value
-
getWidth
public double getWidth()
Gets the width of the plane.
-
setWidth
public void setWidth(double value)
Sets the width of the plane.- Parameters:
value
- New value
-
getLengthSegments
public int getLengthSegments()
Gets the length segments.
-
setLengthSegments
public void setLengthSegments(int value)
Sets the length segments.- Parameters:
value
- New value
-
getWidthSegments
public int getWidthSegments()
Gets the width segments.
-
setWidthSegments
public void setWidthSegments(int value)
Sets the width segments.- 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.
-
-