Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modeling-cmds/openapi/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,12 @@
}
]
},
"merge_coplanar_faces": {
"nullable": true,
"description": "Only used if the extrusion is created from a face and extrude_method = Merge If true, coplanar faces will be merged and seams will be hidden. Otherwise, seams between the extrusion and original body will be shown.",
"default": null,
"type": "boolean"
},
"opposite": {
"description": "Should the extrusion also extrude in the opposite direction? If so, this specifies its distance.",
"default": "None",
Expand Down
7 changes: 7 additions & 0 deletions modeling-cmds/src/def_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ define_modeling_cmd_enum! {
/// Should the extrusion create a new object or be part of the existing object.
#[serde(default)]
pub extrude_method: ExtrudeMethod,
/// Only used if the extrusion is created from a face and extrude_method = Merge
/// If true, coplanar faces will be merged and seams will be hidden.
/// Otherwise, seams between the extrusion and original body will be shown.
#[serde(default)]
pub merge_coplanar_faces: Option<bool>,

/// Should this extrude create a solid body or a surface?
#[serde(default)]
pub body_type: BodyType,
Expand Down
1 change: 1 addition & 0 deletions modeling-session/examples/cube_png.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ async fn main() -> Result<()> {
faces: None,
opposite: Default::default(),
extrude_method: Default::default(),
merge_coplanar_faces: Default::default(),
body_type: Default::default(),
}
.into(),
Expand Down
1 change: 1 addition & 0 deletions modeling-session/examples/cube_png_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ async fn main() -> Result<()> {
faces: None,
opposite: Default::default(),
extrude_method: Default::default(),
merge_coplanar_faces: Default::default(),
body_type: Default::default(),
}),
cmd_id: random_id(),
Expand Down
1 change: 1 addition & 0 deletions modeling-session/examples/lsystem_png_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ async fn main() -> Result<()> {
faces: None,
opposite: Default::default(),
extrude_method: Default::default(),
merge_coplanar_faces: Default::default(),
body_type: Default::default(),
}),
cmd_id: random_id(),
Expand Down
Loading