Skip to content

Commit f487f2e

Browse files
author
pv
committed
FIX manylinux comparison error related to edge indices.
1 parent f893918 commit f487f2e

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/compas_cgal/meshing.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,6 @@ def mesh_dual(
8888
2. Creating additional vertices at boundary edge midpoints
8989
3. Creating proper connections for boundary edges
9090
91-
Examples
92-
--------
93-
>>> from compas.datastructures import Mesh
94-
>>> from compas_cgal.meshing import mesh_remesh_dual
95-
96-
>>> # Create a simple quad mesh
97-
>>> mesh = Mesh.from_vertices_and_faces([[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]], [[0, 1, 2, 3]])
98-
>>> vertices, faces = mesh.to_vertices_and_faces()
99-
100-
>>> # Create its dual mesh with variable-length faces
101-
>>> V, F = mesh_remesh_dual((vertices, faces), 0.1)
102-
>>> dual_mesh = Mesh.from_vertices_and_faces(V, [])
103-
>>> # Add the variable-length faces to the mesh
104-
>>> for face in F:
105-
... dual_mesh.add_face(face)
106-
10791
"""
10892
V, F = mesh
10993
V = np.asarray(V, dtype=np.float64, order="C")

src/meshing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ pmp_dual(
398398
auto& current_edges = faces_edges[current_face_idx];
399399

400400
for (auto edge1 : current_edges) {
401-
if (edge1 == e1 || edge1 == e2) continue; // Skip boundary edges
401+
if (CGAL::SM_Edge_index(edge1) == e1 || CGAL::SM_Edge_index(edge1) == e2) continue; // Skip boundary edges
402402

403403
for (size_t j = 0; j < vertex_faces.size(); j++) {
404404
if (visited[j]) continue;

0 commit comments

Comments
 (0)