com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Line



  • public class Line
    extends Geometry
    A line 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

      • getSegments

        public java.util.List<int[]> getSegments()
        Gets the segments of the line
      • getColor

        public Vector3 getColor()
        Gets the color of the line, default value is white(1, 1, 1)
      • setColor

        public void setColor(Vector3 value)
        Sets the color of the line, default value is white(1, 1, 1)
        Parameters:
        value - New value