|
26670 | 26670 | } |
26671 | 26671 | ] |
26672 | 26672 | }, |
| 26673 | + "BodyType": { |
| 26674 | + "description": "Body type determining if the operation will create a solid or a surface.", |
| 26675 | + "oneOf": [ |
| 26676 | + { |
| 26677 | + "description": "Create a body that has two caps, creating a solid object.", |
| 26678 | + "type": "string", |
| 26679 | + "enum": [ |
| 26680 | + "solid" |
| 26681 | + ] |
| 26682 | + }, |
| 26683 | + { |
| 26684 | + "description": "Create only the surface of the body without any caps.", |
| 26685 | + "type": "string", |
| 26686 | + "enum": [ |
| 26687 | + "surface" |
| 26688 | + ] |
| 26689 | + } |
| 26690 | + ] |
| 26691 | + }, |
26673 | 26692 | "BooleanIntersection": { |
26674 | 26693 | "description": "The response from the 'BooleanIntersection'.", |
26675 | 26694 | "type": "object", |
|
30569 | 30588 | "description": "ISO 10303-21 (STEP) format.", |
30570 | 30589 | "type": "object", |
30571 | 30590 | "properties": { |
| 30591 | + "coords": { |
| 30592 | + "description": "Co-ordinate system of input data.\n\nDefaults to the [KittyCAD co-ordinate system].\n\n[KittyCAD co-ordinate system]: ../coord/constant.KITTYCAD.html", |
| 30593 | + "default": { |
| 30594 | + "forward": { |
| 30595 | + "axis": "y", |
| 30596 | + "direction": "negative" |
| 30597 | + }, |
| 30598 | + "up": { |
| 30599 | + "axis": "z", |
| 30600 | + "direction": "positive" |
| 30601 | + } |
| 30602 | + }, |
| 30603 | + "allOf": [ |
| 30604 | + { |
| 30605 | + "$ref": "#/components/schemas/System" |
| 30606 | + } |
| 30607 | + ] |
| 30608 | + }, |
30572 | 30609 | "split_closed_faces": { |
30573 | 30610 | "description": "Splits all closed faces into two open faces.\n\nDefaults to `false` but is implicitly `true` when importing into the engine.", |
30574 | 30611 | "default": false, |
|
32662 | 32699 | "description": "Command for extruding a solid 2d.", |
32663 | 32700 | "type": "object", |
32664 | 32701 | "properties": { |
| 32702 | + "body_type": { |
| 32703 | + "description": "Should this extrude create a solid body or a surface?", |
| 32704 | + "default": "solid", |
| 32705 | + "allOf": [ |
| 32706 | + { |
| 32707 | + "$ref": "#/components/schemas/BodyType" |
| 32708 | + } |
| 32709 | + ] |
| 32710 | + }, |
32665 | 32711 | "distance": { |
32666 | 32712 | "description": "How far off the plane to extrude", |
32667 | 32713 | "allOf": [ |
|
32722 | 32768 | "description": "Command for extruding a solid 2d to a reference geometry.", |
32723 | 32769 | "type": "object", |
32724 | 32770 | "properties": { |
| 32771 | + "body_type": { |
| 32772 | + "description": "Should this extrude create a solid body or a surface?", |
| 32773 | + "default": "solid", |
| 32774 | + "allOf": [ |
| 32775 | + { |
| 32776 | + "$ref": "#/components/schemas/BodyType" |
| 32777 | + } |
| 32778 | + ] |
| 32779 | + }, |
32725 | 32780 | "extrude_method": { |
32726 | 32781 | "description": "Should the extrusion create a new object or be part of the existing object.", |
32727 | 32782 | "default": "merge", |
|
32785 | 32840 | } |
32786 | 32841 | ] |
32787 | 32842 | }, |
| 32843 | + "body_type": { |
| 32844 | + "description": "Should this extrude create a solid body or a surface?", |
| 32845 | + "default": "solid", |
| 32846 | + "allOf": [ |
| 32847 | + { |
| 32848 | + "$ref": "#/components/schemas/BodyType" |
| 32849 | + } |
| 32850 | + ] |
| 32851 | + }, |
32788 | 32852 | "center_2d": { |
32789 | 32853 | "description": "Center to twist about (relative to 2D sketch)", |
32790 | 32854 | "default": { |
|
32933 | 32997 | "description": "If true, the axis is interpreted within the 2D space of the solid 2D's plane", |
32934 | 32998 | "type": "boolean" |
32935 | 32999 | }, |
| 33000 | + "body_type": { |
| 33001 | + "description": "Should this extrude create a solid body or a surface?", |
| 33002 | + "default": "solid", |
| 33003 | + "allOf": [ |
| 33004 | + { |
| 33005 | + "$ref": "#/components/schemas/BodyType" |
| 33006 | + } |
| 33007 | + ] |
| 33008 | + }, |
32936 | 33009 | "opposite": { |
32937 | 33010 | "description": "Should the revolution also revolve in the opposite direction along the given axis? If so, this specifies its angle.", |
32938 | 33011 | "default": "None", |
|
33039 | 33112 | } |
33040 | 33113 | ] |
33041 | 33114 | }, |
| 33115 | + "body_type": { |
| 33116 | + "description": "Should this extrude create a solid body or a surface?", |
| 33117 | + "default": "solid", |
| 33118 | + "allOf": [ |
| 33119 | + { |
| 33120 | + "$ref": "#/components/schemas/BodyType" |
| 33121 | + } |
| 33122 | + ] |
| 33123 | + }, |
33042 | 33124 | "edge_id": { |
33043 | 33125 | "description": "The edge to use as the axis of revolution, must be linear and lie in the plane of the solid", |
33044 | 33126 | "type": "string", |
|
35435 | 35517 | "description": "Set the default system properties used when a specific property isn't set.", |
35436 | 35518 | "type": "object", |
35437 | 35519 | "properties": { |
| 35520 | + "backface_color": { |
| 35521 | + "nullable": true, |
| 35522 | + "description": "The default color to use for all backfaces", |
| 35523 | + "allOf": [ |
| 35524 | + { |
| 35525 | + "$ref": "#/components/schemas/Color" |
| 35526 | + } |
| 35527 | + ] |
| 35528 | + }, |
35438 | 35529 | "color": { |
35439 | 35530 | "nullable": true, |
35440 | 35531 | "description": "The default system color.", |
|
0 commit comments