Path3D
Canonical path: NemAll_Python_Geometry.Path3D
Bases: Path
Representation class for 3D path.
EndPoint
property
writable
EndPoint: Point3D
Get path end point
Throw THROW_GEO_EXCEPTION_OUT_OF_RANGE_ if path is empty Throw THROW_GEO_EXCEPTION_GENERAL_ERROR_ if internal error
StartPoint
property
writable
StartPoint: Point3D
Get path start point
Throw THROW_GEO_EXCEPTION_OUT_OF_RANGE_ if path is empty Throw THROW_GEO_EXCEPTION_GENERAL_ERROR_ if internal error
Add
overloaded
Add(element: Path3D) -> eGeometryErrorCode
Add element into path Path3D
Parameters:
-
element
(Path3D
) –Path element to add
Returns:
-
eGeometryErrorCode
–error code
Add(element: object) -> eGeometryErrorCode
Add element into path Path3D
Parameters:
-
element
(object
) –Pointer to element to add
Returns:
-
eGeometryErrorCode
–error code
DefinitionPoints
DefinitionPoints() -> Polyline3D
Extracts all definition points of the path.
Returns:
-
Polyline3D
–All definition points ( join points of sub curves in this path ) of this path as Polyline3D
FirstDefinitionPoint
FirstDefinitionPoint() -> Point3D
Extracts the first definition point of the path.
Returns:
-
Point3D
–First definition point of this path as Point3D
GetEndPoint
GetEndPoint() -> Point3D
Get path end point
Throw THROW_GEO_EXCEPTION_OUT_OF_RANGE_ if path is empty Throw THROW_GEO_EXCEPTION_GENERAL_ERROR_ if internal error
Returns:
-
Point3D
–const Point3D End point
GetEndRelPoint
GetEndRelPoint() -> Point3D
GetStartPoint
GetStartPoint() -> Point3D
Get path start point
Throw THROW_GEO_EXCEPTION_OUT_OF_RANGE_ if path is empty Throw THROW_GEO_EXCEPTION_GENERAL_ERROR_ if internal error
Returns:
-
Point3D
–const Point3D Start point
GetStartRelPoint
GetStartRelPoint() -> Point3D
IsClosed
Check for closed path, it mean that first point is same as last point
Returns:
-
bool
–True when path is closed, otherwise false.
IsItPossibleToAddElement
overloaded
Check if the geometry can be added into path Path3D
Parameters:
-
pGeometry
(object
) –Pointer to geometry to check
IsItPossibleToAddElement(pGeometry: object, tolerance: float) -> EndPointType
Check if the geometry can be added into path Path3D (with possible noncontinuous)
Parameters:
-
pGeometry
(object
) –Geometries (are modified in case of non continuos geometries!)
-
tolerance
(float
) –Tolerance for non continuous geometries
Returns:
-
EndPointType
–Kind of end point to which is possible to add this geometry
IsValid
Validity check
Path doesn't have to be closed to be valid, you have to check this extra
IsValidCurveType
staticmethod
Check if the geometry is supported by Path3D
Parameters:
-
pGeometry
(object
) –Pointer to geometry to check
SetEndPoint
SetEndPoint(endpoint: Point3D)
SetStartPoint
SetStartPoint(startpoint: Point3D)
__eq__
__eq__(path: Path3D) -> bool
Comparison of paths.
Be careful, this method work without tolerance!
Parameters:
-
path
(Path3D
) –path to be compared.
Returns:
-
bool
–True when paths are equal, otherwise false.