Update api spec (#202)
* YOYO NEW API SPEC! * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes 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: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
committed by
GitHub
parent
a3089ef956
commit
042bb964e5
23
kittycad/models/camera_settings.py
Normal file
23
kittycad/models/camera_settings.py
Normal file
@ -0,0 +1,23 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
|
||||
|
||||
class CameraSettings(BaseModel):
|
||||
"""Camera settings including position, center, fov etc"""
|
||||
|
||||
center: Point3d
|
||||
|
||||
fov_y: Optional[float] = None
|
||||
|
||||
ortho: bool
|
||||
|
||||
ortho_scale: Optional[float] = None
|
||||
|
||||
pos: Point3d
|
||||
|
||||
up: Point3d
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
Reference in New Issue
Block a user