Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsOperatorsWM_Geometry Operator

WM_Geometry Operator

Quick Facts

PropertyValue
ClassCENPyOlpWM_GeometryOperator
Modulecenpylib.CENPyOlpWM_GeometryOperator
Packagecenpylib
ReleaseR2025.2.4
Methods4

Quick Start

# Boilerplate Example wM_GeometryOperator = ... # obtained from the runtime context result = wM_GeometryOperator.GetIncludedAngle(v0, v1, normal, 0)

Method Index

MethodReturnsSummary
CreateVectorCENPyOlpVectorCreate a vector by specifying direction values.
GetIncludedAnglefloatGet the absolute included angle between the two input vectors in the specified direction about the given normal.
ToRadianfloatConvert the given value from degrees to radians.
ToDegreesfloatConvert the given value from radians to degrees.

Lifecycle

CreateVector

def CreateVector(x: float, y: float, z: float) -> CENPyOlpVector

Create a vector by specifying direction values.

Parameters:

NameTypeDescription
xfloatX-direction.
yfloatY-direction.
zfloatZ-direction.

Returns: CENPyOlpVector — Newly created vector.

Query Methods

GetIncludedAngle

def GetIncludedAngle(v0: CENPyOlpVector, v1: CENPyOlpVector, normal: CENPyOlpVector, dir: int) -> float

Get the absolute included angle between the two input vectors in the specified direction about the given normal.

Parameters:

NameTypeDescription
v0CENPyOlpVectorThe first vector to calculate angle.
v1CENPyOlpVectorThe second vector to calculate angle.
normalCENPyOlpVectorThe normal to the rotational plane
dirintThe direction for angle measurement (dir=1:anticlockwise dir=-1:clockwise).

Returns: float — Angle between the two vectors in radians from 0 to 2*Pi.

Conversion & Serialization

ToRadian

def ToRadian(degrees: float) -> float

Convert the given value from degrees to radians.

Parameters:

NameTypeDescription
degreesfloatValue in degrees.

Returns: float — Value in radians.

ToDegrees

def ToDegrees(radians: float) -> float

Convert the given value from radians to degrees.

Parameters:

NameTypeDescription
radiansfloatValue in radians.

Returns: float — Value in degrees.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?