From 8c9e39686c1bb02dbe0728af593ba04de703bcf6 Mon Sep 17 00:00:00 2001 From: TFS_CASLSERVICE Date: Mon, 4 Nov 2024 18:01:35 -0800 Subject: [PATCH] sync: add changes from local folder --- ansys/api/geometry/v0/commands.proto | 23 +++++++++++++++++++++++ ansys/api/geometry/v0/models.proto | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ansys/api/geometry/v0/commands.proto b/ansys/api/geometry/v0/commands.proto index 688b499..8b3c899 100644 --- a/ansys/api/geometry/v0/commands.proto +++ b/ansys/api/geometry/v0/commands.proto @@ -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 { diff --git a/ansys/api/geometry/v0/models.proto b/ansys/api/geometry/v0/models.proto index 8ad89ec..e6af1ca 100644 --- a/ansys/api/geometry/v0/models.proto +++ b/ansys/api/geometry/v0/models.proto @@ -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{