Skip to content

Commit f6aea62

Browse files
committed
Merge branch 'main' into release/0.3
2 parents a55dbfd + 2391655 commit f6aea62

File tree

4 files changed

+133
-0
lines changed

4 files changed

+133
-0
lines changed

ansys/api/geometry/v0/bodies.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,30 @@ service Bodies
5151
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
5252

5353
rpc Boolean(BooleanRequest) returns (BooleanResponse);
54+
55+
rpc GetVertices(ansys.api.dbu.v0.EntityIdentifier) returns (GetVerticesResponse);
56+
57+
rpc GetBoundingBox(ansys.api.dbu.v0.EntityIdentifier) returns (GetBoundingBoxResponse);
58+
59+
rpc GetSurfaceBodyThickness(ansys.api.dbu.v0.EntityIdentifier) returns (GetSurfaceBodyThicknessResponse);
60+
61+
rpc IsEnclosureBody(ansys.api.dbu.v0.EntityIdentifier) returns (IsEnclosureBodyResponse);
62+
}
63+
64+
message IsEnclosureBodyResponse {
65+
bool result = 1;
66+
}
67+
68+
message GetSurfaceBodyThicknessResponse {
69+
double result = 1;
70+
}
71+
72+
message GetBoundingBoxResponse {
73+
Box box = 1;
74+
}
75+
76+
message GetVerticesResponse {
77+
repeated Vertex vertices = 1;
5478
}
5579

5680
message BooleanRequest {

ansys/api/geometry/v0/commands.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,34 @@ service Commands{
5656
rpc DeleteBeamProfile(ansys.api.dbu.v0.EntityIdentifier) returns (google.protobuf.Empty);
5757

5858
rpc GetAssembly(ansys.api.dbu.v0.EntityIdentifier) returns (GetAssemblyResponse);
59+
60+
rpc GetBeamProfileName(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamProfileNameResponse);
61+
62+
rpc GetBeamProfileParts(google.protobuf.Empty) returns (GetBeamProfilePartsResponse);
63+
64+
rpc GetBeamProperties(ansys.api.dbu.v0.EntityIdentifier) returns (BeamProperties);
65+
66+
rpc GetBeamCrossSectionInfo(ansys.api.dbu.v0.EntityIdentifier) returns (BeamCrossSectionInfo);
67+
68+
rpc GetAllSpotWelds(google.protobuf.Empty) returns (GetAllSpotWeldsResponse);
69+
70+
rpc GetAllCADWelds(google.protobuf.Empty) returns (GetAllCADWeldsResponse);
71+
}
72+
73+
message GetAllSpotWeldsResponse {
74+
repeated SpotWeld welds = 1;
75+
}
76+
77+
message GetAllCADWeldsResponse {
78+
repeated Weld welds = 1;
79+
}
80+
81+
message GetBeamProfilePartsResponse {
82+
repeated Part parts = 1;
83+
}
84+
85+
message GetBeamProfileNameResponse{
86+
string name = 1;
5987
}
6088

6189
message RenameManyRequest{
@@ -204,6 +232,7 @@ message UploadFileRequest {
204232

205233
message UploadFileResponse {
206234
string file_path=1;
235+
ansys.api.dbu.v0.EntityIdentifier document_id=2;
207236
}
208237

209238
message CreateSphereRequest {

ansys/api/geometry/v0/components.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ service Components{
2828
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
2929

3030
rpc SetPlacement(SetPlacementRequest) returns (SetPlacementResponse);
31+
32+
rpc GetBeamBodies(ansys.api.dbu.v0.EntityIdentifier) returns (GetBeamBodiesResponse);
33+
34+
rpc GetPart(ansys.api.dbu.v0.EntityIdentifier) returns (Part);
35+
}
36+
37+
message GetBeamBodiesResponse {
38+
repeated string beams = 1;
3139
}
3240

3341
message SetPlacementRequest {

ansys/api/geometry/v0/models.proto

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ message Curve{
3939
repeated Point points = 4;
4040
}
4141

42+
message CurveGeometry {
43+
Point origin = 1;
44+
double radius = 2;
45+
double major_radius = 3;
46+
double minor_radius = 4;
47+
Direction direction = 5;
48+
Direction reference = 6;
49+
Direction axis = 7;
50+
}
51+
52+
message TrimmedCurve {
53+
CurveGeometry curve = 1;
54+
Point start = 2;
55+
Point end = 3;
56+
double interval_start = 4;
57+
double interval_end = 5;
58+
double length = 6;
59+
}
60+
4261
//
4362
// A edge.
4463
message Edge{
@@ -392,4 +411,57 @@ enum SegmentType {
392411

393412
message UpdateState {
394413
int32 state=1;
414+
}
415+
416+
message Vertex {
417+
Point position = 1;
418+
repeated Edge edges = 2;
419+
}
420+
message TrimmedCurveList {
421+
repeated TrimmedCurve curves = 1;
422+
}
423+
424+
message SpotWeld {
425+
map<string, Point> weld_points = 1;
426+
}
427+
428+
message Weld {
429+
repeated TrimmedCurveList geometry = 1;
430+
string display_name = 2;
431+
double length = 3;
432+
double volume = 4;
433+
double mass = 5;
434+
double time = 6;
435+
double rod_length = 7;
436+
bool is_intermittent = 8;
437+
int32 sequence_id = 9;
438+
double size1 = 10;
439+
double size2 = 11;
440+
441+
// This data only exists if the weld is intermittent
442+
bool is_angular = 12;
443+
bool is_at_center = 13;
444+
double intermittent_length = 14;
445+
int32 number_of_welds = 15;
446+
double pitch = 16;
447+
}
448+
449+
message BeamProperties {
450+
double area = 1;
451+
double centroid_x = 2;
452+
double centroid_y = 3;
453+
double warping_constant = 4;
454+
double ixx = 5;
455+
double ixy = 6;
456+
double iyy = 7;
457+
double torsional_constant = 8;
458+
double shear_center_x = 9;
459+
double shear_center_y = 10;
460+
}
461+
462+
message BeamCrossSectionInfo {
463+
int32 section_anchor = 1;
464+
double section_angle = 2;
465+
Frame section_frame = 3;
466+
repeated TrimmedCurveList section_profile = 4;
395467
}

0 commit comments

Comments
 (0)