Skip to content

Commit

Permalink
Merge branch 'main' into release/0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue committed Jul 12, 2024
2 parents 6ce0aae + 2ad1182 commit 37e13c9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ansys/api/geometry/v0/bodies.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ service Bodies

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

rpc SetName(SetNameRequest) returns (SetNameResponse);

rpc GetFillStyle(ansys.api.dbu.v0.EntityIdentifier) returns (GetFillStyleResponse);

rpc SetFillStyle(SetFillStyleRequest) returns (SetFillStyleResponse);

rpc Copy(CopyRequest) returns (Body);

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

message SetNameRequest {
string body_id=1;
string name=2;
}

message SetNameResponse {
bool result=1;
}

message SetFillStyleRequest {
string body_id=1;
BodyFillStyle fill_style=2;
}

message GetFillStyleResponse {
string name=1;
}

message SetFillStyleResponse {
bool result=1;
}

message CopyRequest {
string id=1;
string parent=2;
Expand Down
8 changes: 8 additions & 0 deletions ansys/api/geometry/v0/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ enum CollisionType {
COLLISIONTYPE_CONTAINEDTOUCH=4;
}

//
// The fill style type for a body.
enum BodyFillStyle {
BODYFILLSTYLE_DEFAULT=0;
BODYFILLSTYLE_OPAQUE=1;
BODYFILLSTYLE_TRANSPARENT=2;
}

//
// A design curve.
message Curve{
Expand Down

0 comments on commit 37e13c9

Please sign in to comment.