2
2
syntax = "proto3" ;
3
3
package ansys.api.geometry.v0.preparetools ;
4
4
5
+ import "ansys/api/dbu/v0/dbumodels.proto" ;
5
6
import "ansys/api/geometry/v0/models.proto" ;
6
7
import "google/protobuf/wrappers.proto" ;
7
8
@@ -21,6 +22,10 @@ service PrepareTools{
21
22
rpc RemoveRounds (RemoveRoundsRequest ) returns (RemoveRoundsResponse );
22
23
23
24
rpc RemoveFaces (RemoveFacesRequest ) returns (RemoveFacesResponse );
25
+
26
+ rpc ExtractVolumeFromFaces (ExtractVolumeFromFacesRequest ) returns (VolumeExtractionResponse );
27
+
28
+ rpc ExtractVolumeFromEdgeLoops (ExtractVolumeFromEdgeLoopsRequest ) returns (VolumeExtractionResponse );
24
29
}
25
30
26
31
@@ -85,4 +90,25 @@ message RemoveFacesRequest{
85
90
86
91
message RemoveFacesResponse {
87
92
bool result = 1 ;
93
+ }
94
+
95
+ message ExtractVolumeFromFacesRequest {
96
+ // The id of the faces that seal the volume to be extracted.
97
+ repeated dbu.v0.EntityIdentifier sealing_faces = 1 ;
98
+ // The id of one or more faces inside the volume to be extracted.
99
+ repeated dbu.v0.EntityIdentifier inside_faces = 2 ;
100
+ }
101
+
102
+ message ExtractVolumeFromEdgeLoopsRequest {
103
+ // The id of edge loops that seal the volume to be extracted.
104
+ repeated dbu.v0.EntityIdentifier sealing_edges = 1 ;
105
+ // The id of one or more faces inside the volume to be extracted. Not needed for simple cases.
106
+ repeated dbu.v0.EntityIdentifier inside_faces = 2 ;
107
+ }
108
+
109
+ message VolumeExtractionResponse {
110
+ // Whether the volume extraction is successful.
111
+ bool success = 1 ;
112
+ // The bodies created from the volume extraction.
113
+ repeated Body created_bodies = 2 ;
88
114
}
0 commit comments