com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Line



  • public class Line
    extends Curve
    A polyline is a path defined by a set of points with 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.
    • Constructor Detail

      • Line

        public Line()
        Initializes a new instance of the Line class.
      • Line

        public Line(java.lang.String name)
        Initializes a new instance of the Line class.
        Parameters:
        name - Name.
    • 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 a Line instance from a set of points.
        Parameters:
        points -