Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsOperatorsTouch Sensing Operator

Touch Sensing Operator

Quick Facts

PropertyValue
ClassCENPyOlpTouchSensingOperator
Modulecenpylib.CENPyOlpTouchSensingOperator
Packagecenpylib
ReleaseR2025.2.4
Methods9

Quick Start

# Boilerplate Example touchSensingOperator = ... # obtained from the runtime context result = touchSensingOperator.GetCollisionPoint(0)

Method Index

MethodReturnsSummary
GetCollisionPointCENPyOlpMatrixGet collision point matrix.
GetStartPointCENPyOlpMatrixGet start point matrix.
GetEndPointCENPyOlpMatrixGet end point matrix.
GetReferencePointCENPyOlpMatrixGet reference point matrix.
SetTouchStartDistanceSet touch start distance.
SetTouchEndDistanceSet touch end distance
TouchPointComputeCompute touch point.
GetTouchLocationTypeintCalculate touch point near PG start or end.
GetLastTouchDirintGet last touch direction.

Query Methods

GetCollisionPoint

def GetCollisionPoint(frame: int) -> CENPyOlpMatrix

Get collision point matrix.

Parameters:

NameTypeDescription
frameintTouch direction along Normal (0) or BaseFrame (1).

Returns: CENPyOlpMatrix — Collision point matrix.

GetStartPoint

def GetStartPoint(frame: int) -> CENPyOlpMatrix

Get start point matrix.

Parameters:

NameTypeDescription
frameintTouch direction along Normal (0) or BaseFrame (1).

Returns: CENPyOlpMatrix — Start point matrix.

GetEndPoint

def GetEndPoint(frame: int) -> CENPyOlpMatrix

Get end point matrix.

Parameters:

NameTypeDescription
frameintTouch direction along Normal (0) or BaseFrame (1).

Returns: CENPyOlpMatrix — End point matrix.

GetReferencePoint

def GetReferencePoint() -> CENPyOlpMatrix

Get reference point matrix.

Returns: CENPyOlpMatrix — Reference point matrix.

GetTouchLocationType

def GetTouchLocationType() -> int

Calculate touch point near PG start or end.

Returns: int — Touch location type: AtStart (1) or AtEnd (2).

GetLastTouchDir

def GetLastTouchDir() -> int

Get last touch direction.

Returns: int — BaseFrame touch axis: Undefined (0), XMinus (1), XPlus (2), YMinus (3), YPlus (4), ZMinus (5), ZPlus (6).

Mutation Methods

SetTouchStartDistance

def SetTouchStartDistance(startDist: float)

Set touch start distance.

Parameters:

NameTypeDescription
startDistfloatOffset reference point in direction of the surface normal.

SetTouchEndDistance

def SetTouchEndDistance(endDist: float)

Set touch end distance

Parameters:

NameTypeDescription
endDistfloatOffset reference point in minus direction of the surface normal

Conversion & Serialization

TouchPointCompute

def TouchPointCompute()

Compute touch point.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?