Skip to content

Commit a28172c

Browse files
jonahrbpyansys-ci-botRobPasMue
authored
fix: use sketch plane for imprint/project curves (#1715)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent 1a192a7 commit a28172c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/changelog.d/1715.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use sketch plane for imprint/project curves

src/ansys/geometry/core/designer/body.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,7 @@ def imprint_curves( # noqa: D102
15681568
body=self._id,
15691569
curves=sketch_shapes_to_grpc_geometries(sketch._plane, sketch.edges, sketch.faces),
15701570
faces=[face._id for face in faces],
1571+
plane=plane_to_grpc_plane(sketch.plane),
15711572
)
15721573
)
15731574

@@ -1613,6 +1614,7 @@ def project_curves( # noqa: D102
16131614
curves=curves,
16141615
direction=unit_vector_to_grpc_direction(direction),
16151616
closest_face=closest_face,
1617+
plane=plane_to_grpc_plane(sketch.plane),
16161618
)
16171619
)
16181620

@@ -1649,6 +1651,7 @@ def imprint_projected_curves( # noqa: D102
16491651
curves=curves,
16501652
direction=unit_vector_to_grpc_direction(direction),
16511653
closest_face=closest_face,
1654+
plane=plane_to_grpc_plane(sketch.plane),
16521655
)
16531656
)
16541657

0 commit comments

Comments
 (0)