|
14431 | 14431 | "type": "number",
|
14432 | 14432 | "format": "float"
|
14433 | 14433 | },
|
| 14434 | + "orientation": { |
| 14435 | + "description": "The Camera's orientation (in the form of a quaternion)", |
| 14436 | + "allOf": [ |
| 14437 | + { |
| 14438 | + "$ref": "#/components/schemas/Point4d" |
| 14439 | + } |
| 14440 | + ] |
| 14441 | + }, |
14434 | 14442 | "ortho": {
|
14435 | 14443 | "description": "Whether or not the camera is in ortho mode",
|
14436 | 14444 | "type": "boolean"
|
|
14460 | 14468 | },
|
14461 | 14469 | "required": [
|
14462 | 14470 | "center",
|
| 14471 | + "orientation", |
14463 | 14472 | "ortho",
|
14464 | 14473 | "pos",
|
14465 | 14474 | "up"
|
|
15825 | 15834 | "bad_request"
|
15826 | 15835 | ]
|
15827 | 15836 | },
|
| 15837 | + { |
| 15838 | + "description": "Auth token is missing from the request", |
| 15839 | + "type": "string", |
| 15840 | + "enum": [ |
| 15841 | + "auth_token_missing" |
| 15842 | + ] |
| 15843 | + }, |
| 15844 | + { |
| 15845 | + "description": "Auth token is invalid in some way (expired, incorrect format, etc)", |
| 15846 | + "type": "string", |
| 15847 | + "enum": [ |
| 15848 | + "auth_token_invalid" |
| 15849 | + ] |
| 15850 | + }, |
15828 | 15851 | {
|
15829 | 15852 | "description": "Client sent invalid JSON.",
|
15830 | 15853 | "type": "string",
|
|
16163 | 16186 | "cap"
|
16164 | 16187 | ]
|
16165 | 16188 | },
|
| 16189 | + "FaceGetCenter": { |
| 16190 | + "description": "The 3D center of mass on the surface", |
| 16191 | + "type": "object", |
| 16192 | + "properties": { |
| 16193 | + "pos": { |
| 16194 | + "description": "The 3D position on the surface center of mass", |
| 16195 | + "allOf": [ |
| 16196 | + { |
| 16197 | + "$ref": "#/components/schemas/Point3d" |
| 16198 | + } |
| 16199 | + ] |
| 16200 | + } |
| 16201 | + }, |
| 16202 | + "required": [ |
| 16203 | + "pos" |
| 16204 | + ] |
| 16205 | + }, |
16166 | 16206 | "FaceGetGradient": {
|
16167 | 16207 | "description": "The gradient (dFdu, dFdv) + normal vector on a brep face",
|
16168 | 16208 | "type": "object",
|
|
19048 | 19088 | "type"
|
19049 | 19089 | ]
|
19050 | 19090 | },
|
19051 |
| - { |
19052 |
| - "description": "Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on.", |
19053 |
| - "type": "object", |
19054 |
| - "properties": { |
19055 |
| - "animated": { |
19056 |
| - "description": "Should we animate or snap for the camera transition?", |
19057 |
| - "type": "boolean" |
19058 |
| - }, |
19059 |
| - "distance_to_plane": { |
19060 |
| - "description": "How far to the sketching plane?", |
19061 |
| - "type": "number", |
19062 |
| - "format": "float" |
19063 |
| - }, |
19064 |
| - "origin": { |
19065 |
| - "description": "What's the origin of the sketching plane?", |
19066 |
| - "allOf": [ |
19067 |
| - { |
19068 |
| - "$ref": "#/components/schemas/Point3d" |
19069 |
| - } |
19070 |
| - ] |
19071 |
| - }, |
19072 |
| - "ortho": { |
19073 |
| - "description": "Should the camera use orthographic projection? In other words, should an object's size in the rendered image stay constant regardless of its distance from the camera.", |
19074 |
| - "type": "boolean" |
19075 |
| - }, |
19076 |
| - "type": { |
19077 |
| - "type": "string", |
19078 |
| - "enum": [ |
19079 |
| - "default_camera_enable_sketch_mode" |
19080 |
| - ] |
19081 |
| - }, |
19082 |
| - "x_axis": { |
19083 |
| - "description": "Which 3D axis of the scene should be the X axis of the sketching plane?", |
19084 |
| - "allOf": [ |
19085 |
| - { |
19086 |
| - "$ref": "#/components/schemas/Point3d" |
19087 |
| - } |
19088 |
| - ] |
19089 |
| - }, |
19090 |
| - "y_axis": { |
19091 |
| - "description": "Which 3D axis of the scene should be the Y axis of the sketching plane?", |
19092 |
| - "allOf": [ |
19093 |
| - { |
19094 |
| - "$ref": "#/components/schemas/Point3d" |
19095 |
| - } |
19096 |
| - ] |
19097 |
| - } |
19098 |
| - }, |
19099 |
| - "required": [ |
19100 |
| - "animated", |
19101 |
| - "distance_to_plane", |
19102 |
| - "origin", |
19103 |
| - "ortho", |
19104 |
| - "type", |
19105 |
| - "x_axis", |
19106 |
| - "y_axis" |
19107 |
| - ] |
19108 |
| - }, |
19109 |
| - { |
19110 |
| - "description": "Disable sketch mode, from the default camera.", |
19111 |
| - "type": "object", |
19112 |
| - "properties": { |
19113 |
| - "type": { |
19114 |
| - "type": "string", |
19115 |
| - "enum": [ |
19116 |
| - "default_camera_disable_sketch_mode" |
19117 |
| - ] |
19118 |
| - } |
19119 |
| - }, |
19120 |
| - "required": [ |
19121 |
| - "type" |
19122 |
| - ] |
19123 |
| - }, |
19124 | 19091 | {
|
19125 | 19092 | "description": "Export the scene to a file.",
|
19126 | 19093 | "type": "object",
|
|
20161 | 20128 | "uv"
|
20162 | 20129 | ]
|
20163 | 20130 | },
|
| 20131 | + { |
| 20132 | + "description": "Obtains the surface \"center of mass\"", |
| 20133 | + "type": "object", |
| 20134 | + "properties": { |
| 20135 | + "object_id": { |
| 20136 | + "description": "Which face is being queried.", |
| 20137 | + "type": "string", |
| 20138 | + "format": "uuid" |
| 20139 | + }, |
| 20140 | + "type": { |
| 20141 | + "type": "string", |
| 20142 | + "enum": [ |
| 20143 | + "face_get_center" |
| 20144 | + ] |
| 20145 | + } |
| 20146 | + }, |
| 20147 | + "required": [ |
| 20148 | + "object_id", |
| 20149 | + "type" |
| 20150 | + ] |
| 20151 | + }, |
20164 | 20152 | {
|
20165 | 20153 | "description": "Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v",
|
20166 | 20154 | "type": "object",
|
|
20446 | 20434 | "window"
|
20447 | 20435 | ]
|
20448 | 20436 | },
|
20449 |
| - { |
20450 |
| - "description": "Enable sketch mode on the given plane. If you want to sketch on a face, use `enable_sketch_mode` instead.", |
20451 |
| - "type": "object", |
20452 |
| - "properties": { |
20453 |
| - "animated": { |
20454 |
| - "description": "Animate the transition to sketch mode.", |
20455 |
| - "type": "boolean" |
20456 |
| - }, |
20457 |
| - "disable_camera_with_plane": { |
20458 |
| - "nullable": true, |
20459 |
| - "description": "Disable the camera entirely for sketch mode and sketch on a plane (this would be the normal of that plane).", |
20460 |
| - "allOf": [ |
20461 |
| - { |
20462 |
| - "$ref": "#/components/schemas/Point3d" |
20463 |
| - } |
20464 |
| - ] |
20465 |
| - }, |
20466 |
| - "ortho": { |
20467 |
| - "description": "Use an orthographic camera.", |
20468 |
| - "type": "boolean" |
20469 |
| - }, |
20470 |
| - "plane_id": { |
20471 |
| - "description": "Sketch on this plane.", |
20472 |
| - "type": "string", |
20473 |
| - "format": "uuid" |
20474 |
| - }, |
20475 |
| - "type": { |
20476 |
| - "type": "string", |
20477 |
| - "enum": [ |
20478 |
| - "sketch_mode_enable" |
20479 |
| - ] |
20480 |
| - } |
20481 |
| - }, |
20482 |
| - "required": [ |
20483 |
| - "animated", |
20484 |
| - "ortho", |
20485 |
| - "plane_id", |
20486 |
| - "type" |
20487 |
| - ] |
20488 |
| - }, |
20489 | 20437 | {
|
20490 | 20438 | "description": "Disable sketch mode. If you are sketching on a face, be sure to not disable sketch mode until you have extruded. Otherwise, your object will not be fused with the face.",
|
20491 | 20439 | "type": "object",
|
|
20576 | 20524 | "description": "Should the camera use orthographic projection? In other words, should an object's size in the rendered image stay constant regardless of its distance from the camera.",
|
20577 | 20525 | "type": "boolean"
|
20578 | 20526 | },
|
| 20527 | + "planar_normal": { |
| 20528 | + "nullable": true, |
| 20529 | + "description": "If provided, ensures that the normal of the sketch plane must be aligned with this supplied normal (otherwise the camera position will be used to infer the normal to point towards the viewer)", |
| 20530 | + "allOf": [ |
| 20531 | + { |
| 20532 | + "$ref": "#/components/schemas/Point3d" |
| 20533 | + } |
| 20534 | + ] |
| 20535 | + }, |
20579 | 20536 | "type": {
|
20580 | 20537 | "type": "string",
|
20581 | 20538 | "enum": [
|
|
21405 | 21362 | "type"
|
21406 | 21363 | ]
|
21407 | 21364 | },
|
| 21365 | + { |
| 21366 | + "description": "Fit the view to the scene with an isometric view.", |
| 21367 | + "type": "object", |
| 21368 | + "properties": { |
| 21369 | + "padding": { |
| 21370 | + "description": "How much to pad the view frame by.", |
| 21371 | + "default": 0.0, |
| 21372 | + "type": "number", |
| 21373 | + "format": "float" |
| 21374 | + }, |
| 21375 | + "type": { |
| 21376 | + "type": "string", |
| 21377 | + "enum": [ |
| 21378 | + "view_isometric" |
| 21379 | + ] |
| 21380 | + } |
| 21381 | + }, |
| 21382 | + "required": [ |
| 21383 | + "type" |
| 21384 | + ] |
| 21385 | + }, |
21408 | 21386 | {
|
21409 | 21387 | "description": "Get a concise description of all of an extrusion's faces.",
|
21410 | 21388 | "type": "object",
|
|
22189 | 22167 | "type"
|
22190 | 22168 | ]
|
22191 | 22169 | },
|
| 22170 | + { |
| 22171 | + "description": "The response to the 'FaceGetCenter' endpoint", |
| 22172 | + "type": "object", |
| 22173 | + "properties": { |
| 22174 | + "data": { |
| 22175 | + "$ref": "#/components/schemas/FaceGetCenter" |
| 22176 | + }, |
| 22177 | + "type": { |
| 22178 | + "type": "string", |
| 22179 | + "enum": [ |
| 22180 | + "face_get_center" |
| 22181 | + ] |
| 22182 | + } |
| 22183 | + }, |
| 22184 | + "required": [ |
| 22185 | + "data", |
| 22186 | + "type" |
| 22187 | + ] |
| 22188 | + }, |
22192 | 22189 | {
|
22193 | 22190 | "description": "The response to the 'FaceGetGradient' endpoint",
|
22194 | 22191 | "type": "object",
|
|
23374 | 23371 | ]
|
23375 | 23372 | },
|
23376 | 23373 | {
|
23377 |
| - "description": "A circular arc segment.", |
| 23374 | + "description": "A circular arc segment. Arcs can be drawn clockwise when start > end.", |
23378 | 23375 | "type": "object",
|
23379 | 23376 | "properties": {
|
23380 | 23377 | "center": {
|
|
23481 | 23478 | "type": "object",
|
23482 | 23479 | "properties": {
|
23483 | 23480 | "offset": {
|
23484 |
| - "description": "Offset of the arc.", |
| 23481 | + "description": "Offset of the arc. Negative values will arc clockwise.", |
23485 | 23482 | "allOf": [
|
23486 | 23483 | {
|
23487 | 23484 | "$ref": "#/components/schemas/Angle"
|
|
23510 | 23507 | ]
|
23511 | 23508 | },
|
23512 | 23509 | {
|
23513 |
| - "description": "Adds a tangent arc from current pen position to the new position.", |
| 23510 | + "description": "Adds a tangent arc from current pen position to the new position. Arcs will choose a clockwise or counter-clockwise direction based on the arc end position.", |
23514 | 23511 | "type": "object",
|
23515 | 23512 | "properties": {
|
23516 | 23513 | "angle_snap_increment": {
|
|
23810 | 23807 | "z"
|
23811 | 23808 | ]
|
23812 | 23809 | },
|
| 23810 | + "Point4d": { |
| 23811 | + "description": "A point in homogeneous (4D) space", |
| 23812 | + "type": "object", |
| 23813 | + "properties": { |
| 23814 | + "w": { |
| 23815 | + "type": "number", |
| 23816 | + "format": "float" |
| 23817 | + }, |
| 23818 | + "x": { |
| 23819 | + "type": "number", |
| 23820 | + "format": "float" |
| 23821 | + }, |
| 23822 | + "y": { |
| 23823 | + "type": "number", |
| 23824 | + "format": "float" |
| 23825 | + }, |
| 23826 | + "z": { |
| 23827 | + "type": "number", |
| 23828 | + "format": "float" |
| 23829 | + } |
| 23830 | + }, |
| 23831 | + "required": [ |
| 23832 | + "w", |
| 23833 | + "x", |
| 23834 | + "y", |
| 23835 | + "z" |
| 23836 | + ] |
| 23837 | + }, |
23813 | 23838 | "Pong": {
|
23814 | 23839 | "description": "The response from the `/ping` endpoint.",
|
23815 | 23840 | "type": "object",
|
|
0 commit comments