Point
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpPoint |
| Module | cenpylib.CENPyOlpPoint |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 10 |
Quick Start
# Boilerplate Example
point = ... # obtained from the runtime context
result = point.GetXYZ()Method Index
| Method | Returns | Summary |
|---|---|---|
SetXYZ | — | Set coordinates of OlpPoint |
GetXYZ | tuple | Get list of coordinates. |
GetX | float | Get X coordinate. |
GetY | float | Get Y coordinate. |
GetZ | float | Get Z coordinate. |
SetX | — | Set X coordinate. |
SetY | — | Set Y coordinate. |
SetZ | — | Set Z coordinate. |
Transform | — | Transform the point. |
Dist | float | Get the distance between the current and the given point. |
Query Methods
GetXYZ
def GetXYZ() -> tupleGet list of coordinates.
Returns: tuple — List of doubles with coordinates in meters.
GetX
def GetX() -> floatGet X coordinate.
Returns: float — X value in meters.
GetY
def GetY() -> floatGet Y coordinate.
Returns: float — Y value in meters.
GetZ
def GetZ() -> floatGet Z coordinate.
Returns: float — Z value in meters.
Mutation Methods
SetXYZ
def SetXYZ(x: float, y: float, z: float)Set coordinates of OlpPoint
Parameters:
| Name | Type | Description |
|---|---|---|
x | float | X in meters. |
y | float | Y in meters. |
z | float | Z in meters. |
SetX
def SetX(val: float)Set X coordinate.
Parameters:
| Name | Type | Description |
|---|---|---|
val | float | X value in meters. |
SetY
def SetY(val: float)Set Y coordinate.
Parameters:
| Name | Type | Description |
|---|---|---|
val | float | Y value in meters. |
SetZ
def SetZ(val: float)Set Z coordinate.
Parameters:
| Name | Type | Description |
|---|---|---|
val | float | Z value in meters. |
Execution & Actions
Transform
def Transform(pyTransformationMatrix: CENPyOlpMatrix)Transform the point.
Parameters:
| Name | Type | Description |
|---|---|---|
pyTransformationMatrix | CENPyOlpMatrix | Transformation matrix. |
Utilities
Dist
def Dist(pySecondPt: CENPyOlpPoint) -> floatGet the distance between the current and the given point.
Parameters:
| Name | Type | Description |
|---|---|---|
pySecondPt | CENPyOlpPoint | Another point. |
Returns: float — Distance in meters.
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?