Update api spec (#221)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ca84069e9a
commit
d31d9507d2
File diff suppressed because it is too large
Load Diff
@ -180,6 +180,7 @@ from .plane_intersect_and_project import PlaneIntersectAndProject
|
||||
from .ply_storage import PlyStorage
|
||||
from .point2d import Point2d
|
||||
from .point3d import Point3d
|
||||
from .point4d import Point4d
|
||||
from .pong import Pong
|
||||
from .post_effect_type import PostEffectType
|
||||
from .privacy_settings import PrivacySettings
|
||||
|
@ -3,6 +3,7 @@ from typing import Optional
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
from ..models.point4d import Point4d
|
||||
|
||||
|
||||
class CameraSettings(BaseModel):
|
||||
@ -12,6 +13,8 @@ class CameraSettings(BaseModel):
|
||||
|
||||
fov_y: Optional[float] = None
|
||||
|
||||
orientation: Point4d
|
||||
|
||||
ortho: bool
|
||||
|
||||
ortho_scale: Optional[float] = None
|
||||
|
17
kittycad/models/point4d.py
Normal file
17
kittycad/models/point4d.py
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
|
||||
class Point4d(BaseModel):
|
||||
"""A point in homogeneous (4D) space"""
|
||||
|
||||
w: float
|
||||
|
||||
x: float
|
||||
|
||||
y: float
|
||||
|
||||
z: float
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
37
spec.json
37
spec.json
@ -14431,6 +14431,14 @@
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"orientation": {
|
||||
"description": "The Camera's orientation (in the form of a quaternion)",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point4d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ortho": {
|
||||
"description": "Whether or not the camera is in ortho mode",
|
||||
"type": "boolean"
|
||||
@ -14460,6 +14468,7 @@
|
||||
},
|
||||
"required": [
|
||||
"center",
|
||||
"orientation",
|
||||
"ortho",
|
||||
"pos",
|
||||
"up"
|
||||
@ -23798,6 +23807,34 @@
|
||||
"z"
|
||||
]
|
||||
},
|
||||
"Point4d": {
|
||||
"description": "A point in homogeneous (4D) space",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"w": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"x": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"y": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"z": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"w",
|
||||
"x",
|
||||
"y",
|
||||
"z"
|
||||
]
|
||||
},
|
||||
"Pong": {
|
||||
"description": "The response from the `/ping` endpoint.",
|
||||
"type": "object",
|
||||
|
Reference in New Issue
Block a user