public class Line extends Geometry
Geometry.getControlPoints()
, and connected by getIndices()
,
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 |
---|---|
java.util.List<java.lang.Integer> |
getIndices()
Gets the indices.
|
void |
makeDefaultIndices()
Generate the sequence 0,1,2,3....
Geometry.getControlPoints() .Length-1 to getIndices() so the ControlPoints can be used as a single line |
addElement, createElement, createElement, createElementUV, createElementUV, getCastShadows, getControlPoints, getDeformers, getDeformers2, getElement, getReceiveShadows, getVertexElementOfUV, getVertexElements, getVisible, setCastShadows, setReceiveShadows, setVisible
createRenderableResource, 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<java.lang.Integer> getIndices()
public void makeDefaultIndices()
Geometry.getControlPoints()
.Length-1 to getIndices()
so the ControlPoints can be used as a single line