-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/0.2
- Loading branch information
Showing
21 changed files
with
1,790 additions
and
1,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,138 +1,139 @@ | ||
// ©2021, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. | ||
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. | ||
syntax = "proto3"; | ||
package ansys.api.geometry.v0.Bodies; | ||
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies"; | ||
|
||
import "ansys/api/geometry/v0/models.proto"; | ||
|
||
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies"; | ||
|
||
service Bodies | ||
{ | ||
rpc Get(GetRequest) returns(Body); | ||
rpc Get(GetRequest) returns(Body); | ||
|
||
rpc GetMaster(EntityIdentifier) returns(Body); | ||
|
||
rpc GetMaster(EntityIdentifier) returns(Body); | ||
rpc GetOriginal(EntityIdentifier) returns(Body); | ||
|
||
rpc GetOriginal(EntityIdentifier) returns(Body); | ||
rpc GetParent(EntityIdentifier) returns(Part); | ||
|
||
rpc GetParent(EntityIdentifier) returns(Part); | ||
rpc GetAll(GetAllRequest) returns(GetAllResponse) ; | ||
|
||
rpc GetAll(GetAllRequest) returns(GetAllResponse) ; | ||
rpc GetAssignedMaterial(EntityIdentifier) returns(Material); | ||
|
||
rpc GetAssignedMaterial(EntityIdentifier) returns(Material); | ||
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse); | ||
|
||
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse); | ||
rpc Translate(TranslateRequest) returns(Empty); | ||
|
||
rpc Translate(TranslateRequest) returns(Empty); | ||
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse); | ||
|
||
rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body); | ||
|
||
rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body); | ||
|
||
rpc Delete(EntityIdentifier) returns (Empty); | ||
|
||
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse); | ||
|
||
rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body); | ||
|
||
rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body); | ||
|
||
rpc Delete(EntityIdentifier) returns (Empty); | ||
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body); | ||
|
||
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body); | ||
|
||
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body); | ||
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body); | ||
|
||
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse); | ||
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse); | ||
|
||
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse); | ||
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse); | ||
|
||
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse); | ||
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse); | ||
|
||
rpc GetName(EntityIdentifier) returns (GetNameResponse); | ||
rpc GetName(EntityIdentifier) returns (GetNameResponse); | ||
|
||
rpc Copy(CopyRequest) returns (Body); | ||
rpc Copy(CopyRequest) returns (Body); | ||
|
||
rpc GetUpdateState(EntityIdentifier) returns (UpdateState); | ||
rpc GetUpdateState(EntityIdentifier) returns (UpdateState); | ||
} | ||
|
||
enum GetType{ | ||
NONE = 0; | ||
MASTER = 1; | ||
ORIGINAL = 2; | ||
PARENT=3; | ||
NONE = 0; | ||
MASTER = 1; | ||
ORIGINAL = 2; | ||
PARENT=3; | ||
} | ||
|
||
message GetRequest{ | ||
string id = 1; | ||
GetType body_type = 2; | ||
string id = 1; | ||
GetType body_type = 2; | ||
} | ||
|
||
message GetAllRequest{ | ||
string parent = 1; | ||
string parent = 1; | ||
} | ||
|
||
message GetAllResponse{ | ||
repeated Body bodies = 1; | ||
repeated Body bodies = 1; | ||
} | ||
|
||
message SetAssignedMaterialRequest{ | ||
string id=1; | ||
string material=2; | ||
string id=1; | ||
string material=2; | ||
} | ||
|
||
message SetAssignedMaterialResponse{ | ||
Material material=1; | ||
Material material=1; | ||
} | ||
|
||
message TranslateRequest{ | ||
repeated string ids=1; | ||
Direction direction=2; | ||
float distance=3; | ||
repeated string ids=1; | ||
Direction direction=2; | ||
float distance=3; | ||
} | ||
|
||
message GetFacesResponse { | ||
repeated Face faces=1; | ||
repeated Face faces=1; | ||
} | ||
|
||
message CreateBodyFromFaceRequest { | ||
string name=1; | ||
string parent=2; | ||
string face=3; | ||
string name=1; | ||
string parent=2; | ||
string face=3; | ||
} | ||
|
||
message CreateExtrudedBodyFromFaceProfileRequest { | ||
string name=1; | ||
string parent=2; | ||
string face=3; | ||
double distance=4; | ||
string name=1; | ||
string parent=2; | ||
string face=3; | ||
double distance=4; | ||
} | ||
|
||
message CreatePlanarBodyRequest { | ||
string name=1; | ||
string parent=2; | ||
Plane plane=3; | ||
Geometries geometries=4; | ||
string name=1; | ||
string parent=2; | ||
Plane plane=3; | ||
Geometries geometries=4; | ||
} | ||
|
||
message CreateExtrudedBodyRequest { | ||
string name=1; | ||
string parent=2; | ||
Plane plane=3; | ||
Geometries geometries=4; | ||
double distance=5; | ||
string name=1; | ||
string parent=2; | ||
Plane plane=3; | ||
Geometries geometries=4; | ||
double distance=5; | ||
} | ||
|
||
message GetVolumeResponse { | ||
double volume=1; | ||
double volume=1; | ||
} | ||
|
||
message GetTessellationResponse{ | ||
map<string, Tessellation> face_tessellation=1; | ||
map<string, Tessellation> face_tessellation=1; | ||
} | ||
|
||
message GetEdgesResponse { | ||
repeated Edge edges=1; | ||
repeated Edge edges=1; | ||
} | ||
|
||
message GetNameResponse { | ||
string name=1; | ||
string name=1; | ||
} | ||
|
||
message CopyRequest { | ||
string id=1; | ||
string parent=2; | ||
string name=3; | ||
string id=1; | ||
string parent=2; | ||
string name=3; | ||
} |
Oops, something went wrong.