Skip to content

Commit 7935c9c

Browse files
FIX
1 parent 3be9896 commit 7935c9c

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Changed
2222

2323
* Changed location of `TESSAGON_TYPES` to `compas_libigl.mapping.TESSAGON_TYPES`.
24+
* Changed nanobind types import, from individual types to a single module import.
2425

2526
### Removed
2627

mesh_flattened.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/compas_libigl/boundaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22

33
from compas_libigl import _boundaries
4-
from compas_libigl._types_std import VectorVectorInt
4+
from compas_libigl import _types_std # noqa: F401
55

66

77
def trimesh_boundaries(M):

src/compas_libigl/intersections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from compas.plugins import plugin
33

44
from compas_libigl import _intersections
5-
from compas_libigl._types_std import VectorVectorInt # noqa: F401
5+
from compas_libigl import _types_std # noqa: F401
66

77

88
@plugin(category="intersections")

src/compas_libigl/mapping.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
from tessagon.types.zig_zag_tessagon import ZigZagTessagon
2222

2323
from compas_libigl import _mapping # type: ignore
24-
from compas_libigl._types_std import VectorBool # noqa: F401
25-
from compas_libigl._types_std import VectorInt # noqa: F401
26-
from compas_libigl._types_std import VectorVectorInt # noqa: F401
24+
from compas_libigl import _types_std # noqa: F401
2725

2826
TESSAGON_TYPES = {
2927
"Hex": HexTessagon,
@@ -92,15 +90,15 @@ def map_mesh(target_mesh, pattern_mesh, clip_boundaries=True, simplify_borders=T
9290

9391
# Handle fixed_vertices - provide empty array if None
9492

95-
fixed_vertices_vectorint = VectorInt()
93+
fixed_vertices_vectorint = _types_std.VectorInt()
9694
if fixed_vertices is None:
97-
fixed_vertices_vectorint = VectorInt()
95+
fixed_vertices_vectorint = _types_std.VectorInt()
9896
else:
99-
fixed_vertices_vectorint = VectorInt(fixed_vertices)
97+
fixed_vertices_vectorint = _types_std.VectorInt(fixed_vertices)
10098

10199
# Convert pattern_f from Python list to VectorVectorInt which is expected by C++ code
102100

103-
pattern_f_vec = VectorVectorInt()
101+
pattern_f_vec = _types_std.VectorVectorInt()
104102
for face in pf:
105103
pattern_f_vec.append(face)
106104

src/compas_libigl/parametrisation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from compas.plugins import plugin
33

44
from compas_libigl import _parametrisation
5-
from compas_libigl._types_std import VectorVectorInt # noqa: F401
5+
from compas_libigl import _types_std # noqa: F401
66

77

88
@plugin(category="trimesh")

0 commit comments

Comments
 (0)