Zum Hauptinhalt springen

raygeo.ops.assembly.frame

Functions

frame()

frame(
part: ops.part.Part,
kerf_mm: float = 0,
path_offset_mm: float = 0,
cut_side: str = 'centerline',
) -> ops.assembly.result.AssemblyResult

Generate a rectangular frame around the part boundary.

Creates a rectangle matching part.size_mm, computes the total offset from kerf / path-offset / cut-side, applies it, and returns the frame as an AssemblyResult.

Raises: ValueError — If the part has no size information.

ParameterTypeDescription
partops.part.PartThe part whose size defines the frame.
kerf_mmfloat = 0Tool kerf width in mm (default 0.0).
path_offset_mmfloat = 0Additional offset distance in mm (default 0.0).
cut_sidestr = 'centerline'"centerline", "outside", or "inside" (default "centerline").
Returnsops.assembly.result.AssemblyResultAn AssemblyResult with the frame path.