|
17982 | 17982 | "description": "The response from the `EnableSketchMode` endpoint.",
|
17983 | 17983 | "type": "object"
|
17984 | 17984 | },
|
| 17985 | + "EngineUtilEvaluatePath": { |
| 17986 | + "description": "The response of the `EngineUtilEvaluatePath` endpoint", |
| 17987 | + "type": "object", |
| 17988 | + "properties": { |
| 17989 | + "pos": { |
| 17990 | + "description": "The evaluated path curve position", |
| 17991 | + "allOf": [ |
| 17992 | + { |
| 17993 | + "$ref": "#/components/schemas/Point3d" |
| 17994 | + } |
| 17995 | + ] |
| 17996 | + } |
| 17997 | + }, |
| 17998 | + "required": [ |
| 17999 | + "pos" |
| 18000 | + ] |
| 18001 | + }, |
17985 | 18002 | "EntityCircularPattern": {
|
17986 | 18003 | "description": "The response from the `EntityCircularPattern` command.",
|
17987 | 18004 | "type": "object",
|
|
21288 | 21305 | "ModelingCmd": {
|
21289 | 21306 | "description": "Commands that the KittyCAD engine can execute.",
|
21290 | 21307 | "oneOf": [
|
| 21308 | + { |
| 21309 | + "description": "Evaluates the position of a path in one shot (engine utility for kcl executor)", |
| 21310 | + "type": "object", |
| 21311 | + "properties": { |
| 21312 | + "path_json": { |
| 21313 | + "description": "The path in json form (the serialized result of the kcl Sketch/Path object", |
| 21314 | + "type": "string" |
| 21315 | + }, |
| 21316 | + "t": { |
| 21317 | + "description": "The evaluation parameter (path curve parameter in the normalized domain [0, 1])", |
| 21318 | + "type": "number", |
| 21319 | + "format": "double" |
| 21320 | + }, |
| 21321 | + "type": { |
| 21322 | + "type": "string", |
| 21323 | + "enum": [ |
| 21324 | + "engine_util_evaluate_path" |
| 21325 | + ] |
| 21326 | + } |
| 21327 | + }, |
| 21328 | + "required": [ |
| 21329 | + "path_json", |
| 21330 | + "t", |
| 21331 | + "type" |
| 21332 | + ] |
| 21333 | + }, |
21291 | 21334 | {
|
21292 | 21335 | "description": "Start a new path.",
|
21293 | 21336 | "type": "object",
|
|
24354 | 24397 | },
|
24355 | 24398 | "padding": {
|
24356 | 24399 | "description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.",
|
| 24400 | + "default": 0.0, |
24357 | 24401 | "type": "number",
|
24358 | 24402 | "format": "float"
|
24359 | 24403 | },
|
|
24365 | 24409 | }
|
24366 | 24410 | },
|
24367 | 24411 | "required": [
|
24368 |
| - "padding", |
24369 | 24412 | "type"
|
24370 | 24413 | ]
|
24371 | 24414 | },
|
|
24374 | 24417 | "type": "object",
|
24375 | 24418 | "properties": {
|
24376 | 24419 | "padding": {
|
24377 |
| - "description": "How much to pad the view frame by.", |
| 24420 | + "description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.", |
24378 | 24421 | "default": 0.0,
|
24379 | 24422 | "type": "number",
|
24380 | 24423 | "format": "float"
|
|
24607 | 24650 | "type"
|
24608 | 24651 | ]
|
24609 | 24652 | },
|
| 24653 | + { |
| 24654 | + "type": "object", |
| 24655 | + "properties": { |
| 24656 | + "data": { |
| 24657 | + "$ref": "#/components/schemas/EngineUtilEvaluatePath" |
| 24658 | + }, |
| 24659 | + "type": { |
| 24660 | + "type": "string", |
| 24661 | + "enum": [ |
| 24662 | + "engine_util_evaluate_path" |
| 24663 | + ] |
| 24664 | + } |
| 24665 | + }, |
| 24666 | + "required": [ |
| 24667 | + "data", |
| 24668 | + "type" |
| 24669 | + ] |
| 24670 | + }, |
24610 | 24671 | {
|
24611 | 24672 | "type": "object",
|
24612 | 24673 | "properties": {
|
|
0 commit comments