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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

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

### Removed

Expand Down
2 changes: 1 addition & 1 deletion mesh_flattened.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/compas_libigl/boundaries.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np

from compas_libigl import _boundaries
from compas_libigl._types_std import VectorVectorInt
from compas_libigl import _types_std # noqa: F401


def trimesh_boundaries(M):
Expand Down Expand Up @@ -29,5 +29,5 @@ def trimesh_boundaries(M):
"""
V, F = M
F = np.asarray(F, dtype=np.int32)
result: VectorVectorInt = _boundaries.trimesh_boundaries(F)
result: _types_std.VectorVectorInt = _boundaries.trimesh_boundaries(F)
return [list(loop) for loop in result]
2 changes: 1 addition & 1 deletion src/compas_libigl/intersections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from compas.plugins import plugin

from compas_libigl import _intersections
from compas_libigl._types_std import VectorVectorInt # noqa: F401
from compas_libigl import _types_std # noqa: F401


@plugin(category="intersections")
Expand Down
12 changes: 5 additions & 7 deletions src/compas_libigl/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
from tessagon.types.zig_zag_tessagon import ZigZagTessagon

from compas_libigl import _mapping # type: ignore
from compas_libigl._types_std import VectorBool # noqa: F401
from compas_libigl._types_std import VectorInt # noqa: F401
from compas_libigl._types_std import VectorVectorInt # noqa: F401
from compas_libigl import _types_std # noqa: F401

TESSAGON_TYPES = {
"Hex": HexTessagon,
Expand Down Expand Up @@ -92,15 +90,15 @@ def map_mesh(target_mesh, pattern_mesh, clip_boundaries=True, simplify_borders=T

# Handle fixed_vertices - provide empty array if None

fixed_vertices_vectorint = VectorInt()
fixed_vertices_vectorint = _types_std.VectorInt()
if fixed_vertices is None:
fixed_vertices_vectorint = VectorInt()
fixed_vertices_vectorint = _types_std.VectorInt()
else:
fixed_vertices_vectorint = VectorInt(fixed_vertices)
fixed_vertices_vectorint = _types_std.VectorInt(fixed_vertices)

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

pattern_f_vec = VectorVectorInt()
pattern_f_vec = _types_std.VectorVectorInt()
for face in pf:
pattern_f_vec.append(face)

Expand Down
2 changes: 1 addition & 1 deletion src/compas_libigl/parametrisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from compas.plugins import plugin

from compas_libigl import _parametrisation
from compas_libigl._types_std import VectorVectorInt # noqa: F401
from compas_libigl import _types_std # noqa: F401


@plugin(category="trimesh")
Expand Down
Loading