1- // ©2021 , ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
1+ // ©2023 , ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22syntax = "proto3" ;
33package ansys.api.geometry.v0.Bodies ;
4- option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies" ;
54
65import "ansys/api/geometry/v0/models.proto" ;
76
7+ option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies" ;
8+
89service Bodies
910{
10- rpc Get (GetRequest ) returns (Body );
11+ rpc Get (GetRequest ) returns (Body );
12+
13+ rpc GetMaster (EntityIdentifier ) returns (Body );
1114
12- rpc GetMaster (EntityIdentifier ) returns (Body );
15+ rpc GetOriginal (EntityIdentifier ) returns (Body );
1316
14- rpc GetOriginal (EntityIdentifier ) returns (Body );
17+ rpc GetParent (EntityIdentifier ) returns (Part );
1518
16- rpc GetParent ( EntityIdentifier ) returns (Part ) ;
19+ rpc GetAll ( GetAllRequest ) returns (GetAllResponse ) ;
1720
18- rpc GetAll ( GetAllRequest ) returns (GetAllResponse ) ;
21+ rpc GetAssignedMaterial ( EntityIdentifier ) returns (Material ) ;
1922
20- rpc GetAssignedMaterial ( EntityIdentifier ) returns (Material );
23+ rpc SetAssignedMaterial ( SetAssignedMaterialRequest ) returns (SetAssignedMaterialResponse );
2124
22- rpc SetAssignedMaterial ( SetAssignedMaterialRequest ) returns (SetAssignedMaterialResponse );
25+ rpc Translate ( TranslateRequest ) returns (Empty );
2326
24- rpc Translate (TranslateRequest ) returns (Empty );
27+ rpc GetFaces (EntityIdentifier ) returns (GetFacesResponse );
28+
29+ rpc CreateBodyFromFace (CreateBodyFromFaceRequest ) returns (Body );
30+
31+ rpc CreateExtrudedBodyFromFaceProfile (CreateExtrudedBodyFromFaceProfileRequest ) returns (Body );
32+
33+ rpc Delete (EntityIdentifier ) returns (Empty );
2534
26- rpc GetFaces (EntityIdentifier ) returns (GetFacesResponse );
27-
28- rpc CreateBodyFromFace (CreateBodyFromFaceRequest ) returns (Body );
29-
30- rpc CreateExtrudedBodyFromFaceProfile (CreateExtrudedBodyFromFaceProfileRequest ) returns (Body );
31-
32- rpc Delete (EntityIdentifier ) returns (Empty );
35+ rpc CreatePlanarBody (CreatePlanarBodyRequest ) returns (Body );
3336
34- rpc CreatePlanarBody (CreatePlanarBodyRequest ) returns (Body );
35-
36- rpc CreateExtrudedBody (CreateExtrudedBodyRequest ) returns (Body );
37+ rpc CreateExtrudedBody (CreateExtrudedBodyRequest ) returns (Body );
3738
38- rpc GetVolume (EntityIdentifier ) returns (GetVolumeResponse );
39+ rpc GetVolume (EntityIdentifier ) returns (GetVolumeResponse );
3940
40- rpc GetTessellation (EntityIdentifier ) returns (GetTessellationResponse );
41+ rpc GetTessellation (EntityIdentifier ) returns (GetTessellationResponse );
4142
42- rpc GetEdges (EntityIdentifier ) returns (GetEdgesResponse );
43+ rpc GetEdges (EntityIdentifier ) returns (GetEdgesResponse );
4344
44- rpc GetName (EntityIdentifier ) returns (GetNameResponse );
45+ rpc GetName (EntityIdentifier ) returns (GetNameResponse );
4546
46- rpc Copy (CopyRequest ) returns (Body );
47+ rpc Copy (CopyRequest ) returns (Body );
4748
48- rpc GetUpdateState (EntityIdentifier ) returns (UpdateState );
49+ rpc GetUpdateState (EntityIdentifier ) returns (UpdateState );
4950}
5051
5152enum GetType {
52- NONE = 0 ;
53- MASTER = 1 ;
54- ORIGINAL = 2 ;
55- PARENT = 3 ;
53+ NONE = 0 ;
54+ MASTER = 1 ;
55+ ORIGINAL = 2 ;
56+ PARENT = 3 ;
5657}
5758
5859message GetRequest {
59- string id = 1 ;
60- GetType body_type = 2 ;
60+ string id = 1 ;
61+ GetType body_type = 2 ;
6162}
6263
6364message GetAllRequest {
64- string parent = 1 ;
65+ string parent = 1 ;
6566}
6667
6768message GetAllResponse {
68- repeated Body bodies = 1 ;
69+ repeated Body bodies = 1 ;
6970}
7071
7172message SetAssignedMaterialRequest {
72- string id = 1 ;
73- string material = 2 ;
73+ string id = 1 ;
74+ string material = 2 ;
7475}
7576
7677message SetAssignedMaterialResponse {
77- Material material = 1 ;
78+ Material material = 1 ;
7879}
7980
8081message TranslateRequest {
81- repeated string ids = 1 ;
82- Direction direction = 2 ;
83- float distance = 3 ;
82+ repeated string ids = 1 ;
83+ Direction direction = 2 ;
84+ float distance = 3 ;
8485}
8586
8687message GetFacesResponse {
87- repeated Face faces = 1 ;
88+ repeated Face faces = 1 ;
8889}
8990
9091message CreateBodyFromFaceRequest {
91- string name = 1 ;
92- string parent = 2 ;
93- string face = 3 ;
92+ string name = 1 ;
93+ string parent = 2 ;
94+ string face = 3 ;
9495}
9596
9697message CreateExtrudedBodyFromFaceProfileRequest {
97- string name = 1 ;
98- string parent = 2 ;
99- string face = 3 ;
100- double distance = 4 ;
98+ string name = 1 ;
99+ string parent = 2 ;
100+ string face = 3 ;
101+ double distance = 4 ;
101102}
102103
103104message CreatePlanarBodyRequest {
104- string name = 1 ;
105- string parent = 2 ;
106- Plane plane = 3 ;
107- Geometries geometries = 4 ;
105+ string name = 1 ;
106+ string parent = 2 ;
107+ Plane plane = 3 ;
108+ Geometries geometries = 4 ;
108109}
109110
110111message CreateExtrudedBodyRequest {
111- string name = 1 ;
112- string parent = 2 ;
113- Plane plane = 3 ;
114- Geometries geometries = 4 ;
115- double distance = 5 ;
112+ string name = 1 ;
113+ string parent = 2 ;
114+ Plane plane = 3 ;
115+ Geometries geometries = 4 ;
116+ double distance = 5 ;
116117}
117118
118119message GetVolumeResponse {
119- double volume = 1 ;
120+ double volume = 1 ;
120121}
121122
122123message GetTessellationResponse {
123- map <string , Tessellation > face_tessellation = 1 ;
124+ map <string , Tessellation > face_tessellation = 1 ;
124125}
125126
126127message GetEdgesResponse {
127- repeated Edge edges = 1 ;
128+ repeated Edge edges = 1 ;
128129}
129130
130131message GetNameResponse {
131- string name = 1 ;
132+ string name = 1 ;
132133}
133134
134135message CopyRequest {
135- string id = 1 ;
136- string parent = 2 ;
137- string name = 3 ;
136+ string id = 1 ;
137+ string parent = 2 ;
138+ string name = 3 ;
138139}
0 commit comments