Skip to content
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
26 changes: 26 additions & 0 deletions ansys/api/geometry/v0/preparetools.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
syntax = "proto3";
package ansys.api.geometry.v0.preparetools;

import "ansys/api/dbu/v0/dbumodels.proto";
import "ansys/api/geometry/v0/models.proto";
import "google/protobuf/wrappers.proto";

Expand All @@ -21,6 +22,10 @@ service PrepareTools{
rpc RemoveRounds(RemoveRoundsRequest) returns(RemoveRoundsResponse);

rpc RemoveFaces(RemoveFacesRequest) returns(RemoveFacesResponse);

rpc ExtractVolumeFromFaces(ExtractVolumeFromFacesRequest) returns(VolumeExtractionResponse);

rpc ExtractVolumeFromEdgeLoops(ExtractVolumeFromEdgeLoopsRequest) returns(VolumeExtractionResponse);
}


Expand Down Expand Up @@ -85,4 +90,25 @@ message RemoveFacesRequest{

message RemoveFacesResponse{
bool result = 1;
}

message ExtractVolumeFromFacesRequest{
// The id of the faces that seal the volume to be extracted.
repeated dbu.v0.EntityIdentifier sealing_faces = 1;
// The id of one or more faces inside the volume to be extracted.
repeated dbu.v0.EntityIdentifier inside_faces = 2;
}

message ExtractVolumeFromEdgeLoopsRequest{
// The id of edge loops that seal the volume to be extracted.
repeated dbu.v0.EntityIdentifier sealing_edges = 1;
// The id of one or more faces inside the volume to be extracted. Not needed for simple cases.
repeated dbu.v0.EntityIdentifier inside_faces = 2;
}

message VolumeExtractionResponse{
// Whether the volume extraction is successful.
bool success = 1;
// The bodies created from the volume extraction.
repeated Body created_bodies = 2;
}