Skip to Content

Regshape Util

Faits rapides

PropriétéValeur
ClasseRegshapeUtil
Modulecenpylib.RegshapeUtil
Paquetcenpylib
SortieR2025.2.4
Méthodes12

Démarrage rapide

# Boilerplate Example obj = RegshapeUtil(operator) result = obj.GetRegshapeCircle(shiftReference, radius, overrun, leadin)

Indice de la méthode

MéthodeRésultatsRésumé
__init__——
GetRegshapeCircle—Créez une forme circulaire rég
GetRegshapeRectangle—Créer un rectangle régangulaire
GetRegshapeSlot—Créez un registre de fente
_GetReferenceMatrix—Args :
_LinTranslate—Args :
_CirTranslate—Args :
_GetMatrixFromRefPoint—Args :
coordinates_on_circle_given_arc_length——
coordinates_on_circle_given_degrees——
AddLaserOnEvent——
AddLaserOffEvent——

Cycle de vie

__init__

def __init__(operator)

Paramètres :

NomTypeDescription
operator——

Méthodes de requête

GetRegshapeCircle

def GetRegshapeCircle(shiftReference, radius, overrun=0, leadin=0)

Créez une forme circulaire rég

Paramètres :

NomTypeDescription
shiftReference——
radius——
overrun—— (par défaut : 0)
leadin—— (par défaut : 0)

GetRegshapeRectangle

def GetRegshapeRectangle(shiftReference, length, height, radius=0, overrun=0, leadin=0)

Créer un rectangle régangulaire

Paramètres :

NomTypeDescription
shiftReference——
length——
height——
radius—— (par défaut : 0)
overrun—— (par défaut : 0)
leadin—— (par défaut : 0)

GetRegshapeSlot

def GetRegshapeSlot(shiftReference, length, height, radius, overrun=0, leadin=0)

Créez un registre de fente

Paramètres :

NomTypeDescription
shiftReference——
length——
height——
radius——
overrun—— (par défaut : 0)
leadin—— (par défaut : 0)

Méthodes de mutation

AddLaserOnEvent

def AddLaserOnEvent(Operator, point, action=0, insertpos=TPINSERTPOS_INSERTBEFORE)

Paramètres :

NomTypeDescription
Operator——
point——
action—— (par défaut : 0)
insertpos—— (par défaut : TPINSERTPOS_INSERTBEFORE)

AddLaserOffEvent

def AddLaserOffEvent(Operator, point, action=0, insertpos=TPINSERTPOS_INSERTBEFORE)

Paramètres :

NomTypeDescription
Operator——
point——
action—— (par défaut : 0)
insertpos—— (par défaut : TPINSERTPOS_INSERTBEFORE)

Services publics

_GetReferenceMatrix

def _GetReferenceMatrix()

Args : Retour :

_LinTranslate

def _LinTranslate(x, y, z)

Args : Retour :

Paramètres :

NomTypeDescription
x——
y——
z——

_CirTranslate

def _CirTranslate(x1, y1, z1, x2, y2, z2)

Args : Retour :

Paramètres :

NomTypeDescription
x1——
y1——
z1——
x2——
y2——
z2——

_GetMatrixFromRefPoint

def _GetMatrixFromRefPoint()

Args : Retour :

coordinates_on_circle_given_arc_length

def coordinates_on_circle_given_arc_length(radius, arc_length)

Paramètres :

NomTypeDescription
radius——
arc_length——

coordinates_on_circle_given_degrees

def coordinates_on_circle_given_degrees(radius, angle_degrees)

Paramètres :

NomTypeDescription
radius——
angle_degrees——

Version Notes

Cette classe est documentée à la version R2026.1.1.

Was this page helpful?