public class Line extends Geometry
Geometry.getControlPoints()
, and connected by getSegments()
,
which means it can also be a set of connected line segments.
The line is usually a linear object, which means it cannot be used to represent a curve, in order to represent a curve, uses NurbsCurve
.name, properties
Constructor and Description |
---|
Line()
Initializes a new instance of the
Line class. |
Line(java.lang.String name)
Initializes a new instance of the
Line class. |
Modifier and Type | Method and Description |
---|---|
Vector3 |
getColor()
Gets the color of the line, default value is white(1, 1, 1)
|
EntityRendererKey |
getEntityRendererKey()
Gets the key of the entity renderer registered in the renderer
|
java.util.List<int[]> |
getSegments()
Gets the segments of the line
|
void |
makeDefaultIndices()
Generate the sequence 0,1,2,3....
Geometry.getControlPoints() .Length-1 to getSegments() so the ControlPoints can be used as a single line |
void |
setColor(Vector3 value)
Sets the color of the line, default value is white(1, 1, 1)
|
addElement, createElement, createElement, createElementUV, createElementUV, getCastShadows, getControlPoints, getDeformers, getDeformers2, getElement, getReceiveShadows, getVertexElementOfUV, getVertexElements, getVisible, setCastShadows, setReceiveShadows, setVisible
getBoundingBox, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
getScene
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public Line()
Line
class.public Line(java.lang.String name)
Line
class.name
- Name.public java.util.List<int[]> getSegments()
public Vector3 getColor()
public void setColor(Vector3 value)
value
- New valuepublic EntityRendererKey getEntityRendererKey()
getEntityRendererKey
in class Entity
public void makeDefaultIndices()
Geometry.getControlPoints()
.Length-1 to getSegments()
so the ControlPoints can be used as a single line