Appearance
Python module API
Generated from py/python/dry/__init__.py using Python AST extraction.
Values and aliases
| Name | Kind | Value |
|---|---|---|
Bounds | type alias | Union[Sequence[Sequence[Number]], str] |
Kinematics | type alias | Mapping[str, Number] |
Metrics | type alias | Dict[str, Any] |
Number | type alias | Union[int, float] |
Op | type alias | Dict[str, Any] |
Point | type alias | Sequence[Number] |
PRINTERS | constant | Dict[str, ResolveParams] |
Range | type alias | Union[Sequence[Number], str] |
Report | type alias | Dict[str, Any] |
ResolveParams | type alias | Mapping[str, Number] |
Toolpath | type alias | Dict[str, Any] |
TpmsOptions | type alias | Mapping[str, Any] |
TPMS_SURFACES | constant | Tuple[str, ...] |
Functions
| Function | Signature | Sample | Summary |
|---|---|---|---|
tpms_gcode | def tpms_gcode(options: Optional[TpmsOptions], printer: str = 'generic', relative_e: bool = True, travel_g1_e0: bool = False, five_axis: bool = False, rotary_axes: str = 'ab', kinematics: Optional[str] = None) -> List[str] | Generative | Generate TPMS infill g-code (a list of lines) from an options dict. |
tpms_gcode
docs/site/examples/generative.ts · python: docs/site/examples/generative.pypy
def tpms_gcode(options: Optional[TpmsOptions], printer: str = 'generic', relative_e: bool = True, travel_g1_e0: bool = False, five_axis: bool = False, rotary_axes: str = 'ab', kinematics: Optional[str] = None) -> List[str]Parameters
| Parameter | Annotation | Default | Required |
|---|---|---|---|
options | Optional[TpmsOptions] | Yes | |
printer | str | 'generic' | No |
relative_e | bool | True | No |
travel_g1_e0 | bool | False | No |
five_axis | bool | False | No |
rotary_axes | str | 'ab' | No |
kinematics | Optional[str] | None | No |
Returns: List[str]
Generate TPMS infill g-code (a list of lines) from an options dict.
options is the TPMS option bundle with camelCase keys (matching the engine / TS SDK), e.g. {"surface": "schwarz-p", "cellSize": 12, "cellsX": 2}. The surface is one of TPMS_SURFACES (default "gyroid"); an unknown name raises ValueError. The field math runs in the engine (libm), so output differs sub-micron from the TypeScript generator — there is no byte-identity contract between them.
rotary_axes is the rotary-axes selector (the ab/ac/bc STRING) for 5-axis emit — NOT the machine motion-limits object. kinematics is a deprecated alias for rotary_axes, kept for backward compatibility; when provided (not None) it takes precedence.