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>
This commit is contained in:
committed by
GitHub
parent
98c6a70e3b
commit
64fc99943e
23
kittycad/models/transform.py
Normal file
23
kittycad/models/transform.py
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
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=())
|
Reference in New Issue
Block a user