Skip to content

Commit 461602d

Browse files
authored
chore: cleanup conversions module and remaining imports (#2332)
1 parent d672d72 commit 461602d

File tree

7 files changed

+295
-978
lines changed

7 files changed

+295
-978
lines changed

src/ansys/geometry/core/_grpc/_services/v0/named_selection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ansys.geometry.core.errors import protect_grpc
2727

2828
from ..base.named_selection import GRPCNamedSelectionService
29-
from .conversions import build_grpc_id
29+
from .conversions import build_grpc_id, from_grpc_point_to_point3d
3030

3131

3232
class GRPCNamedSelectionServiceV0(GRPCNamedSelectionService):
@@ -64,7 +64,9 @@ def get_named_selection(self, **kwargs): # noqa: D102
6464
"faces": [face.id for face in response.faces],
6565
"edges": [edge.id for edge in response.edges],
6666
"beams": [beam.id.id for beam in response.beams],
67-
"design_points": [(dp.id, dp.points[0]) for dp in response.design_points],
67+
"design_points": [
68+
(dp.id, from_grpc_point_to_point3d(dp.points[0])) for dp in response.design_points
69+
],
6870
"components": [comp.id for comp in response.components],
6971
"vertices": [vertex.id.id for vertex in response.vertices],
7072
}

src/ansys/geometry/core/connection/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@
2323

2424
from ansys.geometry.core.connection.backend import ApiVersions, BackendType
2525
from ansys.geometry.core.connection.client import GrpcClient
26-
from ansys.geometry.core.connection.conversions import (
27-
curve_to_grpc_curve,
28-
frame_to_grpc_frame,
29-
grpc_curve_to_curve,
30-
grpc_frame_to_frame,
31-
grpc_matrix_to_matrix,
32-
grpc_surface_to_surface,
33-
line_to_grpc_line,
34-
plane_to_grpc_plane,
35-
point3d_to_grpc_point,
36-
sketch_shapes_to_grpc_geometries,
37-
trimmed_curve_to_grpc_trimmed_curve,
38-
unit_vector_to_grpc_direction,
39-
)
4026
import ansys.geometry.core.connection.defaults as defaults
4127
from ansys.geometry.core.connection.docker_instance import (
4228
GeometryContainers,

0 commit comments

Comments
 (0)