Skip to content

Commit 8b586f0

Browse files
author
gserena
committed
change defn location
1 parent 7dc506b commit 8b586f0

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

modeling-cmds/src/ok_response.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,15 @@ define_ok_modeling_cmd_response_enum! {
766766
pub max_distance: LengthUnit,
767767
}
768768

769+
/// Faces and edges id info (most used in identifying geometry in patterned and mirrored objects).
770+
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
771+
pub struct FaceEdgeInfo {
772+
/// The faces of each object.
773+
pub faces: Vec<Uuid>,
774+
/// The edges of each object.
775+
pub edges: Vec<Uuid>,
776+
}
777+
769778
/// The response from the `EntityClone` command.
770779
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
771780
pub struct EntityClone {

modeling-cmds/src/shared.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -727,18 +727,6 @@ pub struct SideFace {
727727
/// Desired ID for the resulting face.
728728
pub face_id: Uuid,
729729
}
730-
731-
/// IDs of faces and edges (most used in identifying geometry in patterned and mirrored objects).
732-
#[derive(Debug, PartialEq, Serialize, Deserialize, JsonSchema, Clone, Default)]
733-
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
734-
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
735-
pub struct FaceEdgeInfo {
736-
/// The faces of each object.
737-
pub faces: Vec<Uuid>,
738-
/// The edges of each object.
739-
pub edges: Vec<Uuid>,
740-
}
741-
742730
/// Camera settings including position, center, fov etc
743731
#[derive(Debug, Serialize, Deserialize, JsonSchema, Clone)]
744732
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]

0 commit comments

Comments
 (0)