Line

Overview

Line is a class in Aspose.3D FOSS for Java. Inherits from: Curve.

A polyline is a path defined by a set of points with getControlPoints(), and connected by getSegments(), which means it can also be a set of connected line segments.

This class provides 28 methods for working with Line objects in Java programs. Available methods include: A3DObject, Curve, Entity, Line, SceneObject, findProperty, fromPoints, getBoundingBox, getColor, getControlPoints, getExcluded, getName, and 15 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, color, controlPoints, excluded, name, parentNode, and 5 more.

Properties

NameTypeAccessDescription
controlPointsList<Vector4>ReadGets all control points.
visiblebooleanReadGets if the geometry is visible.
segmentsList<int[]>ReadGets the segments of the line.
colorVector3ReadGets or sets the color of the line, default value is white(1, 1, 1).
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
getControlPoints()List<Vector4>Gets all control points.
getVisible()booleanGets if the geometry is visible.
setVisible(value: boolean)Sets the visible value.
getSegments()List<int[]>Gets the segments of the line.
Line()Initializes a new instance of the Line class.
Line(name: String)Initializes a new instance of the Line class.
fromPoints()LineConstruct a Line instance from a set of points.
makeDefaultIndices()Generate the sequence 0,1,2,3….getControlPoints().Length-1 to getSegments() so the ControlPoints can be used as a single line.
getColor()Vector3Gets or sets the color of the line, default value is white(1, 1, 1).
setColor(color: Vector3)Sets the color value.
Curve()Constructor.
Entity()NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getParentNode()NodeConstructor of instance.
setParentNode(value: Node)The Boolean operator used in the operation to create the result mesh.
getParentNodes()ArrayList<Node>Protected constructor to allow derived classes to set name.
getExcluded()booleanThe Boolean operator used in the operation to create the result mesh.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxThe first operand of the Boolean operator.
SceneObject()Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances.
getScene()SceneConstructor of BooleanOperator.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English