Skip to content

Commit 37e13c9

Browse files
committed
Merge branch 'main' into release/0.4
2 parents 6ce0aae + 2ad1182 commit 37e13c9

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

ansys/api/geometry/v0/bodies.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ service Bodies
5454

5555
rpc GetName(ansys.api.dbu.v0.EntityIdentifier) returns (GetNameResponse);
5656

57+
rpc SetName(SetNameRequest) returns (SetNameResponse);
58+
59+
rpc GetFillStyle(ansys.api.dbu.v0.EntityIdentifier) returns (GetFillStyleResponse);
60+
61+
rpc SetFillStyle(SetFillStyleRequest) returns (SetFillStyleResponse);
62+
5763
rpc Copy(CopyRequest) returns (Body);
5864

5965
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
@@ -241,6 +247,28 @@ message GetNameResponse {
241247
string name=1;
242248
}
243249

250+
message SetNameRequest {
251+
string body_id=1;
252+
string name=2;
253+
}
254+
255+
message SetNameResponse {
256+
bool result=1;
257+
}
258+
259+
message SetFillStyleRequest {
260+
string body_id=1;
261+
BodyFillStyle fill_style=2;
262+
}
263+
264+
message GetFillStyleResponse {
265+
string name=1;
266+
}
267+
268+
message SetFillStyleResponse {
269+
bool result=1;
270+
}
271+
244272
message CopyRequest {
245273
string id=1;
246274
string parent=2;

ansys/api/geometry/v0/models.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ enum CollisionType {
4040
COLLISIONTYPE_CONTAINEDTOUCH=4;
4141
}
4242

43+
//
44+
// The fill style type for a body.
45+
enum BodyFillStyle {
46+
BODYFILLSTYLE_DEFAULT=0;
47+
BODYFILLSTYLE_OPAQUE=1;
48+
BODYFILLSTYLE_TRANSPARENT=2;
49+
}
50+
4351
//
4452
// A design curve.
4553
message Curve{

0 commit comments

Comments
 (0)