Package com.aspose.threed
Class Line
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.SceneObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Curve
-
- com.aspose.threed.Line
-
- All Implemented Interfaces:
INamedObject
public class Line extends Curve
A polyline is a path defined by a set of points withGeometry.getControlPoints()
, and connected bygetSegments()
, 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, usesNurbsCurve
.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Line
fromPoints(Vector3... points)
Construct aLine
instance from a set of points.java.util.List<Vector4>
getControlPoints()
Gets all control pointsjava.util.List<int[]>
getSegments()
Gets the segments of the lineboolean
getVisible()
Gets if the geometry is visiblevoid
makeDefaultIndices()
Generate the sequence 0,1,2,3....Geometry.getControlPoints()
.Length-1 togetSegments()
so the ControlPoints can be used as a single linevoid
setVisible(boolean value)
Sets if the geometry is visible-
Methods inherited from class com.aspose.threed.Curve
getColor, getEntityRendererKey, setColor
-
Methods inherited from class com.aspose.threed.Entity
getBoundingBox, 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
-
-
-
-
Method Detail
-
getControlPoints
public java.util.List<Vector4> getControlPoints()
Gets all control points
-
getVisible
public boolean getVisible()
Gets if the geometry is visible
-
setVisible
public void setVisible(boolean value)
Sets if the geometry is visible- Parameters:
value
- New value
-
getSegments
public java.util.List<int[]> getSegments()
Gets the segments of the line
-
fromPoints
public static Line fromPoints(Vector3... points)
Construct aLine
instance from a set of points.- Parameters:
points
-
-
makeDefaultIndices
public void makeDefaultIndices()
Generate the sequence 0,1,2,3....Geometry.getControlPoints()
.Length-1 togetSegments()
so the ControlPoints can be used as a single line
-
-