Python scripting - Common operators

CENPyOlpSeamFindingOperator

 

The object of the CENPyOlpSeamFindingOperator class can be obtain withing the CENPyOlpEvent_EventComputeOperator

that is passed to the PostCompute callback in the %EVENT_NAME%.py script file.

 

[Example]

def PostCompute(Operator):

   tsOperator = Operator.GetSeamFindingOperator()

  

    

Methods

 

 

GetSeamFindingPoint(endLocation: bool, optionalDirection: bool, distance: double): CENPyOlpMatrix

 

o

endLocation

End (True) or Start (False) of the Contour

 

o

optionalDirection

True if optional Direction required

 

o

distance

Distance from Contour Start or End Point

 

o

return

SeamFinding Point matrix on/before/after the Curve.

 

Get the desired SeamFinding Point Matrix.

 

[Example]

   sfStartPointMatrix = sfOperator.GetSeamFindingPoint(atEndLocation, optionalDir, seamFindDistance)

 

 

GetSeamTrackingPoint(distance: double): CENPyOlpMatrix

 

o

distance

Distance from Contour Start or End Point

 

o

return

SeamTracking Point matrix on/before/after the Curve.

 

Get the desired SeamTracking Point Matrix.

 

[Example]

   sfTrackPointMatrix = sfOperator.GetSeamTrackingPoint(seamTrackDistance)

 


 

SeamFindingApproachRetractPoint(initialMatrix: CENPyOlpMatrix, dx: double, dy: double, dz: double): CENPyOlpMatrix

 

o

initial Matrix

Matrix of the SeamFinding Point on the Contour


 

o

dx

Approach/Retract Distance in X


 

o

dy

Approach/Retract Distance in Y


 

o

dz

Approach/Retract Distance in Z


 

o

return

the Matrix of the Approach/Retract Point with the desired Position and Rotation.


 

Get the desired SeamFinding Approach or Retract Point Matrix.

the WORK Angle as CycleRotation::ROT_PATH_TOOL

the TRAVEL Angle as CycleRotation::ROT_TOOL (alternative: ROT_PATH_TOOL use SeamFindingApproachRetractPointAlt)

the TOOL Angle as CycleRotation::ROT_TOOL

Note : Event has to be set to CycleRotation::ROT_TOOL

 

 

[Example]

   sfARMatrix = sfOperator.SeamFindingApproachRetractPoint(sfStartPointMatrix, LX1, LY1, LZ1)

 

SeamFindingApproachRetractPointAlt(initialMatrix: CENPyOlpMatrix, dx: double, dy: double, dz: double): CENPyOlpMatrix

 

o

initial Matrix

Matrix of the SeamFinding Point on the Contour


 

o

dx

Approach/Retract Distance in X


 

o

dy

Approach/Retract Distance in Y


 

o

dz

Approach/Retract Distance in Z


 

o

return

the Matrix of the Approach/Retract Point with the desired Position and Rotation.


 

Get the desired SeamFinding Approach or Retract Point Matrix.

the WORK Angle as CycleRotation::ROT_PATH_TOOL

the TRAVEL Angle as CycleRotation::ROT_PATH_TOOL (alternative: ROT_TOOL use SeamFindingApproachRetractPoint)

the TOOL Angle as CycleRotation::ROT_TOOL

Note : Event has to be set to CycleRotation::ROT_TOOL

 

[Example]

   sfARMatrix = sfOperator.SeamFindingApproachRetractPointAlt(sfStartPointMatrix, LX1, LY1, LZ1)

 


 


Previous
Previous page
Chapter
Chapter page
Next
Next page