Skip to Content

Regshape-Dienstprogramm

Kurzinformationen

EigenschaftWert
KlasseRegshapeUtil
Modulcenpylib.RegshapeUtil
Paketcenpylib
VeröffentlichungR2025.2.4
Methoden12

Schnellstart

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

Methodenindex

MethodeGibt zurückZusammenfassung
__init__——
GetRegshapeCircle—Erstellen Sie eine Kreis-Regshape
GetRegshapeRectangle—Erstellen Sie eine Rechteck-Regshape
GetRegshapeSlot—Erstellen Sie eine Schlitz-Regshape
_GetReferenceMatrix—Argumente:
_LinTranslate—Argumente:
_CirTranslate—Argumente:
_GetMatrixFromRefPoint—Argumente:
coordinates_on_circle_given_arc_length——
coordinates_on_circle_given_degrees——
AddLaserOnEvent——
AddLaserOffEvent——

Lebenszyklus

__init__

def __init__(operator)

Parameter:

NameTypBeschreibung
operator——

Abfragemethoden

GetRegshapeCircle

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

Erstellen Sie eine Kreis-Regshape

Parameter:

NameTypBeschreibung
shiftReference——
radius——
overrun—— (Standard: 0)
leadin—— (Standard: 0)

GetRegshapeRectangle

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

Erstellen Sie eine rechteckige Regshape

Parameter:

NameTypBeschreibung
shiftReference——
length——
height——
radius—— (Standard: 0)
overrun—— (Standard: 0)
leadin—— (Standard: 0)

GetRegshapeSlot

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

Erstellen Sie eine Slot-Regshape

Parameter:

NameTypBeschreibung
shiftReference——
length——
height——
radius——
overrun—— (Standard: 0)
leadin—— (Standard: 0)

Mutationsmethoden

AddLaserOnEvent

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

Parameter:

NameTypBeschreibung
Operator——
point——
action—— (Standard: 0)
insertpos—— (Standard: TPINSERTPOS_INSERTBEFORE)

AddLaserOffEvent

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

Parameter:

NameTypBeschreibung
Operator——
point——
action—— (Standard: 0)
insertpos—— (Standard: TPINSERTPOS_INSERTBEFORE)

Dienstprogramme

_GetReferenceMatrix

def _GetReferenceMatrix()

Argumente: Gibt zurück:

_LinTranslate

def _LinTranslate(x, y, z)

Argumente: Gibt zurück:

Parameter:

NameTypBeschreibung
x——
y——
z——

_CirTranslate

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

Argumente: Gibt zurück:

Parameter:

NameTypBeschreibung
x1——
y1——
z1——
x2——
y2——
z2——

_GetMatrixFromRefPoint

def _GetMatrixFromRefPoint()

Argumente: Gibt zurück:

coordinates_on_circle_given_arc_length

def coordinates_on_circle_given_arc_length(radius, arc_length)

Parameter:

NameTypBeschreibung
radius——
arc_length——

coordinates_on_circle_given_degrees

def coordinates_on_circle_given_degrees(radius, angle_degrees)

Parameter:

NameTypBeschreibung
radius——
angle_degrees——

Versionshinweise

Diese Klasse ist ab Version R2026.1.1 dokumentiert.

Was this page helpful?