Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirrors and helices return uuids #691

Merged
merged 2 commits into from
Dec 19, 2024
Merged
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
48 changes: 28 additions & 20 deletions modeling-cmds/src/ok_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,6 @@ define_ok_modeling_cmd_response_enum! {
pub struct DefaultCameraPerspectiveSettings {
}

/// The response from the `EntityMakeHelix` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelix {
}

/// The response from the `EntityMakeHelixFromParams` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelixFromParams {
}

/// The response from the `EntityMirror` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirror {
}

/// The response from the `EntityMirrorAcrossEdge` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirrorAcrossEdge {
}

/// The response from the `SelectAdd` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct SelectAdd {
Expand Down Expand Up @@ -745,6 +725,34 @@ define_ok_modeling_cmd_response_enum! {
pub entity_ids: Vec<Uuid>,
}

/// 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<Uuid>
}

/// 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<Uuid>
}

/// The response from the `EntityMakeHelix` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelix {
/// The UUID of the helix that was created.
pub helix_id: Uuid
}

/// The response from the `EntityMakeHelixFromParams` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelixFromParams {
/// The UUID of the helix that was created.
pub helix_id: Uuid
}

/// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct Solid3dGetExtrusionFaceInfo {
Expand Down
Loading