Skip to content

Commit a3fd3a1

Browse files
pyansys-ci-bottfs_caslservice
andauthored
sync: file sync performed by ansys-tools-repo-sync (#112)
Co-authored-by: tfs_caslservice <tfs_caslservice@cdcw22cslbld03>
1 parent d4241e4 commit a3fd3a1

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed

ansys/api/geometry/v0/bodies.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ service Bodies
9090

9191
rpc CreateSurfaceBody(CreateSurfaceBodyRequest) returns (Body);
9292

93+
rpc SeparatePieces(SeparatePiecesRequest) returns (GetAllResponse);
94+
9395
rpc CreateBlockBody(CreateBlockBodyRequest) returns (Body);
9496
}
9597

@@ -98,6 +100,10 @@ message CreateBlockBodyRequest {
98100
Point end_point = 2;
99101
}
100102

103+
message SeparatePiecesRequest {
104+
ansys.api.dbu.v0.EntityIdentifier body = 1;
105+
}
106+
101107
message CreateSurfaceBodyRequest {
102108
string name = 1;
103109
string parent = 2;

ansys/api/geometry/v0/commands.proto

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,52 @@ service Commands{
148148
rpc SetPatternValue(SetPatternValueRequest) returns (PatternCommandResponse);
149149

150150
rpc DetachFaces(DetachFacesRequest) returns (CommandResponse);
151+
152+
rpc PullCurvePoint(PullCurvePointRequest) returns (CommandResponse);
153+
154+
rpc RenameObject(RenameObjectRequest) returns (CommandResponse);
155+
156+
rpc ReplaceFace(ReplaceFaceRequest) returns (CommandResponse);
157+
158+
rpc Shell(ShellRequest) returns (CommandResponse);
159+
160+
rpc Move(MoveRequest) returns (CommandResponse);
161+
162+
rpc MoveRotate(MoveRotateRequest) returns (CommandResponse);
163+
164+
rpc Mirror(MirrorRequest) returns (CommandResponse);
165+
166+
rpc SplitFace(SplitFaceRequest) returns(CommandResponse);
167+
168+
rpc SplitEdge(SplitEdgeRequest) returns (CommandResponse);
151169
}
152170

153171
message DetachFacesRequest {
154172
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
155173
}
156174

175+
message PullCurvePointRequest {
176+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
177+
double distance = 2;
178+
bool linear = 3;
179+
bool reversed = 4;
180+
}
181+
182+
message RenameObjectRequest {
183+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
184+
string name = 2;
185+
}
186+
187+
message ReplaceFaceRequest {
188+
repeated ansys.api.dbu.v0.EntityIdentifier target_selection = 1;
189+
repeated ansys.api.dbu.v0.EntityIdentifier replacement_selection = 2;
190+
}
191+
192+
message ShellRequest {
193+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
194+
double offset = 2;
195+
}
196+
157197
message CreateLinearPatternRequest {
158198
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
159199
bool two_dimensional = 2;
@@ -245,6 +285,26 @@ message SplitBodyRequest {
245285
bool extend_surfaces = 5;
246286
}
247287

288+
enum SplitEdgeType{
289+
SPLITEDGE_BY_PROPORTION=0;
290+
SPLITEDGE_BY_POINT=1;
291+
SPLITEDGE_BY_LENGTH=2;
292+
}
293+
294+
enum SplitEdgeReference{
295+
SPLITEDGE_REFERENCE_START=0;
296+
SPLITEDGE_REFERENCE_END=1;
297+
}
298+
299+
message SplitEdgeRequest {
300+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
301+
SplitEdgeType split_type = 2;
302+
repeated double proportions = 3;
303+
repeated Point points = 4;
304+
repeated double lengths = 5;
305+
SplitEdgeReference reference = 6;
306+
}
307+
248308
message SweepFacesRequest {
249309
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
250310
repeated ansys.api.dbu.v0.EntityIdentifier trajectories = 2;
@@ -429,6 +489,10 @@ message CommandResponse {
429489
bool success = 1;
430490
repeated Body created_bodies = 2;
431491
repeated Body modified_bodies = 3;
492+
repeated Face created_faces = 4;
493+
repeated Face modified_faces = 5;
494+
repeated Edge created_edges = 6;
495+
repeated Edge modified_edges = 7;
432496
}
433497

434498
message FilletRequest {
@@ -672,3 +736,43 @@ message GetAssemblyResponse {
672736
map <string, CoordinateSystemList> component_coord_systems=7;
673737
map <string, int32> component_shared_topologies=8;
674738
}
739+
740+
message MoveRequest{
741+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
742+
Direction direction = 2;
743+
double distance = 3;
744+
}
745+
746+
message MoveRotateRequest{
747+
repeated ansys.api.dbu.v0.EntityIdentifier selection = 1;
748+
Line axis = 2;
749+
double angle = 3;
750+
}
751+
752+
message MirrorRequest{
753+
ansys.api.dbu.v0.EntityIdentifier mirror_plane=1;
754+
repeated ansys.api.dbu.v0.EntityIdentifier selection=2;
755+
}
756+
757+
enum SplitFaceType{
758+
SPLITFACE_BY_PARAMETER=0;
759+
SPLITFACE_BY_TWO_POINTS=1;
760+
SPLITFACE_BY_CURVES=2;
761+
SPLITFACE_BY_CUTTER=3;
762+
}
763+
764+
enum SplitFaceParameterType{
765+
SPLITFACEPARAMETER_UV=0;
766+
SPLITFACEPARAMETER_PERPENDICULAR=1;
767+
}
768+
769+
message SplitFaceRequest{
770+
ansys.api.dbu.v0.EntityIdentifier selection=1;
771+
Point split_parameter=2;
772+
Point split_start=3;
773+
Point split_end=4;
774+
ansys.api.dbu.v0.EntityIdentifier face_cutter=5;
775+
repeated TrimmedCurve split_curves=6;
776+
SplitFaceType split_type=7;
777+
SplitFaceParameterType parameter_type=8;
778+
}

ansys/api/geometry/v0/models.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
syntax = "proto3";
33
package ansys.api.geometry.v0;
44

5+
import "ansys/api/dbu/v0/dbumodels.proto";
56
import "google/protobuf/struct.proto";
67

78
option csharp_namespace = "Ansys.Api.Geometry.V0";
@@ -176,6 +177,7 @@ message Part{
176177
message NamedSelection {
177178
string id = 1;
178179
string name = 2;
180+
repeated ansys.api.dbu.v0.EntityIdentifier selection=3;
179181
}
180182

181183
//

0 commit comments

Comments
 (0)