2024-06-20 11:10:00 -07:00
|
|
|
|
2024-07-28 15:21:51 -07:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2024-06-20 11:10:00 -07:00
|
|
|
|
|
|
|
from ..models.point3d import Point3d
|
|
|
|
|
|
|
|
|
|
|
|
class LinearTransform(BaseModel):
|
|
|
|
"""Ways to transform each solid being replicated in a repeating pattern."""
|
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
replicate: bool = True
|
2024-06-20 11:10:00 -07:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
scale: Point3d = {"x": 1.0, "y": 1.0, "z": 1.0}
|
2024-06-20 11:10:00 -07:00
|
|
|
|
2024-08-20 13:10:56 -04:00
|
|
|
translate: Point3d = {"x": 0.0, "y": 0.0, "z": 0.0}
|
2024-06-20 11:10:00 -07:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|