public class Plane extends Primitive
Constructor and Description |
---|
Plane()
Initializes a new instance of the
Plane with default size 1x1. |
Plane(double length,
double width)
Initializes a new instance of the
Plane . |
Plane(String name,
double length,
double width,
int lengthSegments,
int widthSegments)
Initializes a new instance of the
Plane . |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBoundingBox()
Gets the bounding box of current entity in its object space coordinate system.
|
double |
getLength()
Gets the length of the plane.
|
int |
getLengthSegments()
Gets the length segments.
|
double |
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 |
setWidth(double value)
Sets the width of the plane.
|
void |
setWidthSegments(int value)
Sets the width segments.
|
Mesh |
toMesh()
Convert current object to mesh
|
getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public Plane()
Plane
with default size 1x1.public Plane(double length, double width)
Plane
.length
- Length of the plane.width
- Width of the plane.public double getLength()
public void setLength(double value)
value
- New valuepublic double getWidth()
public void setWidth(double value)
value
- New valuepublic int getLengthSegments()
public void setLengthSegments(int value)
value
- New valuepublic int getWidthSegments()
public void setWidthSegments(int value)
value
- New valuepublic BoundingBox getBoundingBox()
getBoundingBox
in class Entity
public Mesh toMesh()
toMesh
in interface IMeshConvertible
toMesh
in class Primitive
Copyright © 2019. All rights reserved.