Skip to content

Commit 5ded18c

Browse files
Add body_type to Revolve endpoints (#1013)
* add body_type to revolve * redo openapi * Update modeling-cmds/openapi/api.json Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> * redo openapi --------- Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
1 parent 8ed31e2 commit 5ded18c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

modeling-cmds/openapi/api.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,15 @@
21492149
"description": "If true, the axis is interpreted within the 2D space of the solid 2D's plane",
21502150
"type": "boolean"
21512151
},
2152+
"body_type": {
2153+
"description": "Should this extrude create a solid body or a surface?",
2154+
"default": "solid",
2155+
"allOf": [
2156+
{
2157+
"$ref": "#/components/schemas/BodyType"
2158+
}
2159+
]
2160+
},
21522161
"opposite": {
21532162
"description": "Should the revolution also revolve in the opposite direction along the given axis? If so, this specifies its angle.",
21542163
"default": "None",
@@ -2255,6 +2264,15 @@
22552264
}
22562265
]
22572266
},
2267+
"body_type": {
2268+
"description": "Should this extrude create a solid body or a surface?",
2269+
"default": "solid",
2270+
"allOf": [
2271+
{
2272+
"$ref": "#/components/schemas/BodyType"
2273+
}
2274+
]
2275+
},
22582276
"edge_id": {
22592277
"description": "The edge to use as the axis of revolution, must be linear and lie in the plane of the solid",
22602278
"type": "string",

modeling-cmds/src/def_enum.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ define_modeling_cmd_enum! {
239239
/// If so, this specifies its angle.
240240
#[serde(default)]
241241
pub opposite: Opposite<Angle>,
242+
/// Should this extrude create a solid body or a surface?
243+
#[serde(default)]
244+
pub body_type: BodyType,
242245
}
243246

244247
/// Command for shelling a solid3d face
@@ -280,6 +283,9 @@ define_modeling_cmd_enum! {
280283
/// If so, this specifies its angle.
281284
#[serde(default)]
282285
pub opposite: Opposite<Angle>,
286+
/// Should this extrude create a solid body or a surface?
287+
#[serde(default)]
288+
pub body_type: BodyType,
283289
}
284290

285291
/// Command for lofting sections to create a solid

0 commit comments

Comments
 (0)