Skip to content

Commit

Permalink
sync: file sync performed by ansys-tools-repo-sync (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: TFS_CASLSERVICE <TFS_CASLSERVICE@cdcw10cslbld02>
  • Loading branch information
pyansys-ci-bot and TFS_CASLSERVICE authored Nov 5, 2024
1 parent 38ad1a7 commit 2cfc810
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ansys/api/geometry/v0/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,29 @@ service Commands{
rpc Chamfer(ChamferRequest) returns (ChamferResponse);

rpc Fillet(FilletRequest) returns (ChamferResponse);

rpc FaceOffset(FaceOffsetRequest) returns (CommandResponse);

rpc OffsetFacesSetRadius(OffsetFacesSetRadiusRequest) returns (CommandResponse);
}
message OffsetFacesSetRadiusRequest {
ansys.api.dbu.v0.EntityIdentifier face = 1;
double radius = 2;
bool copy = 3;
OffsetMode offset_mode = 4;
ExtrudeType extrude_type = 5;
}
message FaceOffsetRequest {
ansys.api.dbu.v0.EntityIdentifier face1 = 1;
ansys.api.dbu.v0.EntityIdentifier face2 = 2;
bool set_baselines = 3;
bool process_adjacent_faces = 4;
}

message CommandResponse {
bool success = 1;
repeated Body created_bodies = 2;
repeated Body modified_bodies = 3;
}

message FilletRequest {
Expand Down
16 changes: 16 additions & 0 deletions ansys/api/geometry/v0/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,22 @@ enum MidSurfaceOffsetType {
MIDSURFACEOFFSETTYPE_CUSTOM=4;
}

enum OffsetMode {
OFFSETMODE_IGNORE_RELATIONSHIPS=0;
OFFSETMODE_MOVE_FACES_TOGETHER=1;
OFFSETMODE_MOVE_FACES_APART=2;
}

enum ExtrudeType {
EXTRUDETYPE_NONE = 0;
EXTRUDETYPE_ADD = 1;
EXTRUDETYPE_CUT = 2;
EXTRUDETYPE_FORCE_ADD = 3;
EXTRUDETYPE_FORCE_CUT = 4;
EXTRUDETYPE_FORCE_INDEPENDENT = 5;
EXTRUDETYPE_FORCE_NEW_SURFACE = 6;
}

//
// Object type descriptor
enum EntityType{
Expand Down

0 comments on commit 2cfc810

Please sign in to comment.