diff --git a/modeling-cmds/src/ok_response.rs b/modeling-cmds/src/ok_response.rs index 370ae084..87289980 100644 --- a/modeling-cmds/src/ok_response.rs +++ b/modeling-cmds/src/ok_response.rs @@ -766,44 +766,57 @@ define_ok_modeling_cmd_response_enum! { pub max_distance: LengthUnit, } + /// Faces and edges id info (most used in identifying geometry in patterned and mirrored objects). + #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] + pub struct FaceEdgeInfo { + /// The UUID of the object. + pub object_id: Uuid, + /// The faces of each object. + pub faces: Vec, + /// The edges of each object. + pub edges: Vec, + } + /// The response from the `EntityClone` command. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityClone { + /// The Face and Edge Ids of the cloned entity. + pub face_edge_ids: Vec, } /// The response from the `EntityLinearPatternTransform` command. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityLinearPatternTransform { - /// The UUIDs of the entities that were created. - pub entity_ids: Vec, + /// The Face, edge, and entity ids of the patterned entities. + pub entity_face_edge_ids: Vec, } /// The response from the `EntityLinearPattern` command. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityLinearPattern { - /// The UUIDs of the entities that were created. - pub entity_ids: Vec, + /// The Face, edge, and entity ids of the patterned entities. + pub entity_face_edge_ids: Vec, } /// The response from the `EntityCircularPattern` command. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityCircularPattern { - /// The UUIDs of the entities that were created. - pub entity_ids: Vec, + /// The Face, edge, and entity ids of the patterned entities. + pub entity_face_edge_ids: Vec, } /// The response from the `EntityMirror` endpoint. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityMirror { - /// The UUIDs of the entities that were created. - pub entity_ids: Vec + /// The Face, edge, and entity ids of the patterned entities. + pub entity_face_edge_ids: Vec, } /// The response from the `EntityMirrorAcrossEdge` endpoint. #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)] pub struct EntityMirrorAcrossEdge { - /// The UUIDs of the entities that were created. - pub entity_ids: Vec + /// The Face, edge, and entity ids of the patterned entities. + pub entity_face_edge_ids: Vec, } /// The response from the `EntityMakeHelix` endpoint. diff --git a/modeling-cmds/src/shared.rs b/modeling-cmds/src/shared.rs index 38177274..ca4ee7e8 100644 --- a/modeling-cmds/src/shared.rs +++ b/modeling-cmds/src/shared.rs @@ -727,7 +727,6 @@ pub struct SideFace { /// Desired ID for the resulting face. pub face_id: Uuid, } - /// Camera settings including position, center, fov etc #[derive(Debug, Serialize, Deserialize, JsonSchema, Clone)] #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]