Source code for kittycad.models.transform
from typing import Optional
from ..models.point3d import Point3d
from ..models.rotation import Rotation
from .base import KittyCadBaseModel
[docs]
class Transform(KittyCadBaseModel):
"""Ways to transform each solid being replicated in a repeating pattern."""
replicate: Optional[bool] = True
rotation: Optional[Rotation] = {
"angle": {"unit": "degrees", "value": 0.0},
"axis": {"x": 0.0, "y": 0.0, "z": 1.0},
"origin": {"type": "local"},
} # type: ignore[assignment]
scale: Optional[Point3d] = {"x": 1.0, "y": 1.0, "z": 1.0} # type: ignore[assignment]
translate: Optional[Point3d] = {"x": 0.0, "y": 0.0, "z": 0.0} # type: ignore[assignment]