Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: file sync performed by ansys-tools-repo-sync #94

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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