Skip to content

Commit 2d397b4

Browse files
committed
Merge branch 'main' into release/0.3
2 parents 77f4f50 + 8af5ec1 commit 2d397b4

File tree

8 files changed

+119
-3
lines changed

8 files changed

+119
-3
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
assignees:
8+
- "pyansys-ci-bot"

ansys/api/geometry/v0/bodies.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ service Bodies
5959
rpc GetSurfaceBodyThickness(ansys.api.dbu.v0.EntityIdentifier) returns (GetSurfaceBodyThicknessResponse);
6060

6161
rpc IsEnclosureBody(ansys.api.dbu.v0.EntityIdentifier) returns (IsEnclosureBodyResponse);
62+
63+
rpc Rotate(RotateRequest) returns (google.protobuf.Empty);
64+
}
65+
66+
message RotateRequest {
67+
string id = 1;
68+
Point axis_origin = 2;
69+
Direction axis_direction = 3;
70+
double angle = 4;
6271
}
6372

6473
message IsEnclosureBodyResponse {
@@ -79,8 +88,9 @@ message GetVerticesResponse {
7988

8089
message BooleanRequest {
8190
string body1 = 1;
82-
repeated string tool_bodies = 2;
91+
string body2 = 2;// DEPRECATED in v1
8392
string method = 3;
93+
repeated string tool_bodies = 4;
8494
}
8595

8696
message BooleanResponse {

ansys/api/geometry/v0/commands.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,34 @@ service Commands{
6868
rpc GetAllSpotWelds(google.protobuf.Empty) returns (GetAllSpotWeldsResponse);
6969

7070
rpc GetAllCADWelds(google.protobuf.Empty) returns (GetAllCADWeldsResponse);
71+
72+
rpc CreateSketchLine(CreateSketchLineRequest) returns (google.protobuf.Empty);
73+
74+
rpc IntersectCurves(IntersectCurvesRequest) returns (IntersectCurvesResponse);
75+
76+
rpc RevolveCurves(RevolveCurvesRequest) returns (google.protobuf.Empty);
77+
}
78+
79+
message RevolveCurvesRequest {
80+
repeated TrimmedCurve curves = 1;
81+
Line axis = 2;
82+
double angle = 3;
83+
bool symmetric = 4;
84+
}
85+
86+
message IntersectCurvesRequest {
87+
TrimmedCurve first = 1;
88+
TrimmedCurve second = 2;
89+
}
90+
91+
message IntersectCurvesResponse {
92+
repeated Point points = 1;
93+
bool intersect = 2;
94+
}
95+
96+
message CreateSketchLineRequest{
97+
Point point1 = 1;
98+
Point point2 = 2;
7199
}
72100

73101
message GetAllSpotWeldsResponse {

ansys/api/geometry/v0/edges.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ service Edges{
2121
rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState);
2222

2323
rpc GetStartAndEndPoints(ansys.api.dbu.v0.EntityIdentifier) returns (GetStartAndEndPointsResponse);
24+
25+
rpc GetInterval(ansys.api.dbu.v0.EntityIdentifier) returns (GetIntervalResponse);
26+
27+
rpc GetCurve(ansys.api.dbu.v0.EntityIdentifier) returns (CurveGeometry);
28+
}
29+
30+
message GetIntervalResponse {
31+
double start = 1;
32+
double end = 2;
2433
}
2534

2635
message GetStartAndEndPointsResponse {

ansys/api/geometry/v0/faces.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@ service Faces{
3030

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

33+
rpc GetBoxUV(ansys.api.dbu.v0.EntityIdentifier) returns (GetBoxUVResponse);
34+
35+
rpc GetSurface(ansys.api.dbu.v0.EntityIdentifier) returns (Surface);
36+
37+
rpc CreateIsoParamCurves(CreateIsoParamCurvesRequest) returns (CreateIsoParamCurvesResponse);
38+
}
39+
40+
message CreateIsoParamCurvesRequest {
41+
string id = 1;
42+
bool u_dir_curve = 2;
43+
double proportion = 3;
44+
}
45+
46+
message CreateIsoParamCurvesResponse {
47+
repeated ansys.api.geometry.v0.TrimmedCurve curves = 1;
48+
}
49+
50+
51+
message GetBoxUVResponse {
52+
double start_u = 1;
53+
double end_u = 2;
54+
double start_v = 3;
55+
double end_v = 4;
3356
}
3457

3558
message GetAllRequest{

ansys/api/geometry/v0/models.proto

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ message Edge{
6767
string export_id = 12;
6868
double length = 13;
6969
string owner_id = 14;
70+
bool is_reversed = 15;
7071
}
7172

7273
//
@@ -77,6 +78,7 @@ message Face{
7778
string owner_name = 11;
7879
string export_id = 12;
7980
double area = 13;
81+
bool is_reversed = 14;
8082
}
8183
//
8284
// A mesh.
@@ -296,6 +298,7 @@ message RepairToolMessage {
296298
bool success = 1;
297299
repeated string created_bodies_monikers = 2;
298300
repeated string modified_bodies_monikers = 3;
301+
repeated string deleted_bodies_monikers = 4;
299302
}
300303

301304

@@ -470,4 +473,39 @@ message BeamCrossSectionInfo {
470473
double section_angle = 2;
471474
Frame section_frame = 3;
472475
repeated TrimmedCurveList section_profile = 4;
476+
}
477+
478+
message CurveEvaluation {
479+
double curvature = 1;
480+
Direction derivative = 2;
481+
Direction derivative2 = 3;
482+
double param = 4;
483+
Point point = 5;
484+
Direction tangent = 6;
485+
}
486+
487+
message SurfaceEvaluation {
488+
Direction derivative_u = 1;
489+
Direction derivative_uu = 2;
490+
Direction derivative_uv = 3;
491+
Direction derivative_v = 4;
492+
Direction derivative_vv = 5;
493+
double max_curvature = 6;
494+
Direction max_curvature_direction = 7;
495+
double min_curvature = 8;
496+
Direction min_curvature_direction = 9;
497+
Direction normal = 10;
498+
double param_u = 11;
499+
double param_v = 12;
500+
Point point = 13;
501+
}
502+
503+
message Surface {
504+
Point origin = 1;
505+
double radius = 2;
506+
double half_angle = 3;
507+
double major_radius = 4;
508+
double minor_radius = 5;
509+
Direction reference = 6;
510+
Direction axis = 7;
473511
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper>=0.4.0", "ansys-api-dbu==0.2.1"]
2+
requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper>=0.4.0", "ansys-api-dbu==0.2.2"]
33
build-backend = "setuptools.build_meta:__legacy__"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
url=f"https://github.com/ansys/{package_name}",
3838
license="MIT",
3939
python_requires=">=3.7",
40-
install_requires=["grpcio~=1.47", "protobuf>=3.19,<5", "ansys-api-dbu==0.2.1"],
40+
install_requires=["grpcio~=1.47", "protobuf>=3.19,<5", "ansys-api-dbu==0.2.2"],
4141
packages=setuptools.find_namespace_packages(".", include=("ansys.*",)),
4242
package_data={
4343
"": ["*.proto", "*.pyi", "py.typed", "VERSION"],

0 commit comments

Comments
 (0)