•
|
CENPyOlpPoint(x: float, y: float, z: float)
|
|
|
x coordinate in meters
|
|
|
y coordinate in meters
|
|
|
z coordinate in meters
|
Create new point object
Note that object will be deleted automatically by python at the end of current callback scope.
[Example]
myNewPoint = CENPyOlpPoint(1, 2.22, -3.333)
•
|
SetXYZ(x: float, y: float, z: float)
|
|
|
x coordinate in meters
|
|
|
y coordinate in meters
|
|
|
z coordinate in meters
|
Set coordinates.
[Example]
myNewPoint.SetXYZ(-1, 2.2, 3)
|
|
tuple (x coordinate, y coordinate, z coordinate) in meters
|
Get coordinates as tuple
[Example]
myPointCoordinates = myNewPoint.GetXYZ()
Get x coordinate.
[Example]
myPointXCoord = myNewPoint.GetX()
Get y coordinate.
[Example]
myPointYCoord = myNewPoint.GetY()
Get z coordinate.
[Example]
myPointZCoord = myNewPoint.GetZ()
|
|
new x coordinate in meters
|
Set x coordinate.
[Example]
myNewPoint.SetX(0.1)
|
|
new y coordinate in meters
|
Set y coordinate.
[Example]
myNewPoint.SetY(-0.2)
|
|
new z coordinate in meters
|
Set z coordinate.
[Example]
myNewPoint.SetZ(-0.003)
Transform point.
[Example]
myPointYCoord.Transform(trsnsformMat)
Get distance between this and a second point.
[Example]
dist = myNewPoint.Dist(myOldPoint)
|