Files
kittycad.py/kittycad/models/transform.py
zoo-github-actions-auth[bot] 64fc99943e Update api spec (#263)
* YOYO NEW API SPEC!

* new files

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Greg Sweeney <greg@kittycad.io>
Co-authored-by: Jess Frazelle <github@jessfraz.com>
2024-09-10 09:17:32 -07:00

24 lines
596 B
Python

from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d
from ..models.rotation import Rotation
class Transform(BaseModel):
"""Ways to transform each solid being replicated in a repeating pattern."""
replicate: bool = True
rotation: Rotation = {
"angle": {"unit": "degrees", "value": 0.0},
"axis": {"x": 0.0, "y": 0.0, "z": 1.0},
"origin": {"type": "local"},
}
scale: Point3d = {"x": 1.0, "y": 1.0, "z": 1.0}
translate: Point3d = {"x": 0.0, "y": 0.0, "z": 0.0}
model_config = ConfigDict(protected_namespaces=())