Polyline3D
Canonical path: NemAll_Python_Geometry.Polyline3D
Bases: PolyPoints3D
Representation class for 3D Polyline.
GetLine
GetLine(index: int) -> Line3D
InsertPolyline
InsertPolyline(
polyline: Polyline3D, position: int = 18446744073709551615
) -> bool
Insert another polyline at given position
Parameters:
-
polyline
(Polyline3D
) –Polyline to be inserted
-
position
(int
, default:18446744073709551615
) –Position where the polyline has to be inserted
Returns:
-
bool
–true if successful
IsPlanar
IsValid
Check if the polygon is valid ( has at least 2 points )
For additional point validation use Service::Validate.
Returns:
-
bool
–true if is valid
LineCount
Get the count of lines connecting the points
Returns:
-
int
–count of lines
__eq__
__eq__(polyline2: Polyline3D) -> bool
Equal operator
Parameters:
-
polyline2
(Polyline3D
) –Second polyline
Returns:
-
bool
–Polyline3D are equal
__iadd__
overloaded
__iadd__(polyline: Polyline3D) -> Polyline3D
Additional assignment operator
Parameters:
-
polyline
(Polyline3D
) –Polyline which will be added to current polyline
Returns:
-
Polyline3D
–Reference to polyline
__iadd__(point: Point3D) -> Polyline3D
Addition assignment operator
Parameters:
-
point
(Point3D
) –New Point3D which will be added to the polyline
Returns:
-
Polyline3D
–Reference to polyline
__iadd__(line: Line3D) -> Polyline3D
Addition assignment operator
Parameters:
-
line
(Line3D
) –Line3D which will be added to the polyline
Returns:
-
Polyline3D
–Reference to polyline
__init__
overloaded
Initialize
__init__(pntList: list[Point3D])
__init__(polyline: Polyline3D)
__init__(polyline: Polyline3D, skip: int, count: int)
Copy constructor with limited scope
Parameters:
-
polyline
(Polyline3D
) –Polyline which will be copied
-
skip
(int
) –count of points ignored at start.
-
count
(int
) –count of points copied.
__init__(points: Point3DList)
Vector points constructor.
Parameters:
-
points
(Point3DList
) –Vector of points which will be moved to polyline
__mul__
__mul__(matrix: Matrix3D) -> Polyline3D
Multiple Polyline with matrix
Parameters:
-
matrix
(Matrix3D
) –Transformation matrix
Returns:
-
Polyline3D
–Transformed polyline
__ne__
__ne__(polyline2: Polyline3D) -> bool
Not equal operator
Parameters:
-
polyline2
(Polyline3D
) –Second polyline
Returns:
-
bool
–Polyline3D are equal