Skip to content
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
9 changes: 9 additions & 0 deletions ansys/api/geometry/v0/bodies.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ service Bodies
rpc GetSurfaceBodyThickness(ansys.api.dbu.v0.EntityIdentifier) returns (GetSurfaceBodyThicknessResponse);

rpc IsEnclosureBody(ansys.api.dbu.v0.EntityIdentifier) returns (IsEnclosureBodyResponse);

rpc Rotate(RotateRequest) returns (google.protobuf.Empty);
}

message RotateRequest {
string id = 1;
Point axis_origin = 2;
Direction axis_direction = 3;
double angle = 4;
}

message IsEnclosureBodyResponse {
Expand Down
28 changes: 28 additions & 0 deletions ansys/api/geometry/v0/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,34 @@ service Commands{
rpc GetAllSpotWelds(google.protobuf.Empty) returns (GetAllSpotWeldsResponse);

rpc GetAllCADWelds(google.protobuf.Empty) returns (GetAllCADWeldsResponse);

rpc CreateSketchLine(CreateSketchLineRequest) returns (google.protobuf.Empty);

rpc IntersectCurves(IntersectCurvesRequest) returns (IntersectCurvesResponse);

rpc RevolveCurves(RevolveCurvesRequest) returns (google.protobuf.Empty);
}

message RevolveCurvesRequest {
repeated TrimmedCurve curves = 1;
Line axis = 2;
double angle = 3;
bool symmetric = 4;
}

message IntersectCurvesRequest {
TrimmedCurve first = 1;
TrimmedCurve second = 2;
}

message IntersectCurvesResponse {
repeated Point points = 1;
bool intersect = 2;
}

message CreateSketchLineRequest{
Point point1 = 1;
Point point2 = 2;
}

message GetAllSpotWeldsResponse {
Expand Down
9 changes: 9 additions & 0 deletions ansys/api/geometry/v0/edges.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ service Edges{
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);

rpc GetStartAndEndPoints(ansys.api.dbu.v0.EntityIdentifier) returns (GetStartAndEndPointsResponse);

rpc GetInterval(ansys.api.dbu.v0.EntityIdentifier) returns (GetIntervalResponse);

rpc GetCurve(ansys.api.dbu.v0.EntityIdentifier) returns (CurveGeometry);
}

message GetIntervalResponse {
double start = 1;
double end = 2;
}

message GetStartAndEndPointsResponse {
Expand Down
23 changes: 23 additions & 0 deletions ansys/api/geometry/v0/faces.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ service Faces{

rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);

rpc GetBoxUV(ansys.api.dbu.v0.EntityIdentifier) returns (GetBoxUVResponse);

rpc GetSurface(ansys.api.dbu.v0.EntityIdentifier) returns (Surface);

rpc CreateIsoParamCurves(CreateIsoParamCurvesRequest) returns (CreateIsoParamCurvesResponse);
}

message CreateIsoParamCurvesRequest {
string id = 1;
bool u_dir_curve = 2;
double proportion = 3;
}

message CreateIsoParamCurvesResponse {
repeated ansys.api.geometry.v0.TrimmedCurve curves = 1;
}


message GetBoxUVResponse {
double start_u = 1;
double end_u = 2;
double start_v = 3;
double end_v = 4;
}

message GetAllRequest{
Expand Down
37 changes: 37 additions & 0 deletions ansys/api/geometry/v0/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ message Edge{
string export_id = 12;
double length = 13;
string owner_id = 14;
bool is_reversed = 15;
}

//
Expand All @@ -77,6 +78,7 @@ message Face{
string owner_name = 11;
string export_id = 12;
double area = 13;
bool is_reversed = 14;
}
//
// A mesh.
Expand Down Expand Up @@ -470,4 +472,39 @@ message BeamCrossSectionInfo {
double section_angle = 2;
Frame section_frame = 3;
repeated TrimmedCurveList section_profile = 4;
}

message CurveEvaluation {
double curvature = 1;
Direction derivative = 2;
Direction derivative2 = 3;
double param = 4;
Point point = 5;
Direction tangent = 6;
}

message SurfaceEvaluation {
Direction derivative_u = 1;
Direction derivative_uu = 2;
Direction derivative_uv = 3;
Direction derivative_v = 4;
Direction derivative_vv = 5;
double max_curvature = 6;
Direction max_curvature_direction = 7;
double min_curvature = 8;
Direction min_curvature_direction = 9;
Direction normal = 10;
double param_u = 11;
double param_v = 12;
Point point = 13;
}

message Surface {
Point origin = 1;
double radius = 2;
double half_angle = 3;
double major_radius = 4;
double minor_radius = 5;
Direction reference = 6;
Direction axis = 7;
}