Skip to content

Commit 83cb699

Browse files
committed
register pluggables
1 parent 47afb5f commit 83cb699

File tree

9 files changed

+45
-3
lines changed

9 files changed

+45
-3
lines changed

src/compas/geometry/quadmesh_planarize.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ def quadmesh_planarize(M, kmax=500, maxdev=0.005):
2828

2929

3030
quadmesh_planarize.__pluggable__ = True
31-
quadmesh_planarize.__plugins__ = {
32-
"libigl": "compas_libigl.planarize.quadmesh_planarize",
33-
}

src/compas/geometry/triangulation_delaunay.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def delaunay_triangulation(points):
2727
raise NotImplementedError
2828

2929

30+
delaunay_triangulation.__pluggable__ = True
31+
32+
3033
@pluggable(category="triangulation")
3134
def constrained_delaunay_triangulation(boundary, polylines=None, polygons=None):
3235
"""Construct a Delaunay triangulation of set of vertices, constrained to the specified segments.
@@ -57,6 +60,9 @@ def constrained_delaunay_triangulation(boundary, polylines=None, polygons=None):
5760
pass
5861

5962

63+
constrained_delaunay_triangulation.__pluggable__ = True
64+
65+
6066
@pluggable(category="triangulation")
6167
def conforming_delaunay_triangulation(boundary, polylines=None, polygons=None, angle=None, area=None):
6268
"""Construct a Conforming Delaunay triangulation of set of vertices, constrained to the specified segments.
@@ -90,3 +96,6 @@ def conforming_delaunay_triangulation(boundary, polylines=None, polygons=None, a
9096
9197
"""
9298
raise NotImplementedError
99+
100+
101+
conforming_delaunay_triangulation.__pluggable__ = True

src/compas/geometry/trimesh_curvature.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def trimesh_gaussian_curvature(M):
2727
raise NotImplementedError
2828

2929

30+
trimesh_gaussian_curvature.__pluggable__ = True
31+
32+
3033
@pluggable(category="trimesh")
3134
def trimesh_principal_curvature(M):
3235
"""Compute the principal curvature directions of a triangle mesh.
@@ -49,6 +52,9 @@ def trimesh_principal_curvature(M):
4952
raise NotImplementedError
5053

5154

55+
trimesh_principal_curvature.__pluggable__ = True
56+
57+
5258
@pluggable(category="trimesh")
5359
def trimesh_mean_curvature(M):
5460
"""Compute the discrete mean curvature of a triangle mesh.
@@ -69,3 +75,6 @@ def trimesh_mean_curvature(M):
6975
7076
"""
7177
raise NotImplementedError
78+
79+
80+
trimesh_mean_curvature.__pluggable__ = True

src/compas/geometry/trimesh_geodistance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ def trimesh_geodistance(M, source, method="exact"):
3434
3535
"""
3636
raise NotImplementedError
37+
38+
39+
trimesh_geodistance.__pluggable__ = True

src/compas/geometry/trimesh_isolines.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ def trimesh_isolines(M, S, N=50):
3636
3737
"""
3838
raise NotImplementedError
39+
40+
41+
trimesh_isolines.__pluggable__ = True

src/compas/geometry/trimesh_matrices.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ def trimesh_massmatrix(M):
2626
2727
"""
2828
raise NotImplementedError
29+
30+
31+
trimesh_massmatrix.__pluggable__ = True

src/compas/geometry/trimesh_parametrisation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def trimesh_harmonic(M):
2727
raise NotImplementedError
2828

2929

30+
trimesh_harmonic.__pluggable__ = True
31+
32+
3033
@pluggable(category="trimesh")
3134
def trimesh_lscm(M):
3235
"""Compute the least squares conformal map of a triangle mesh.
@@ -47,3 +50,6 @@ def trimesh_lscm(M):
4750
4851
"""
4952
raise NotImplementedError
53+
54+
55+
trimesh_lscm.__pluggable__ = True

src/compas/geometry/trimesh_remeshing.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def trimesh_remesh(mesh, target_edge_length, number_of_iterations=10, do_project
3636
raise NotImplementedError
3737

3838

39+
trimesh_remesh.__pluggable__ = True
40+
41+
3942
@pluggable(category="trimesh")
4043
def trimesh_remesh_constrained(mesh, target_edge_length, protected_edges, number_of_iterations=10, do_project=True):
4144
"""Constrained remeshing of a triangle mesh.
@@ -64,6 +67,9 @@ def trimesh_remesh_constrained(mesh, target_edge_length, protected_edges, number
6467
raise NotImplementedError
6568

6669

70+
trimesh_remesh_constrained.__pluggable__ = True
71+
72+
6773
@pluggable(category="trimesh")
6874
def trimesh_remesh_along_isoline(mesh, scalarfield, scalar):
6975
"""Remesh a mesh along an isoline of a scalarfield over the vertices.
@@ -90,3 +96,6 @@ def trimesh_remesh_along_isoline(mesh, scalarfield, scalar):
9096
9197
"""
9298
raise NotImplementedError
99+
100+
101+
trimesh_remesh_along_isoline.__pluggable__ = True

src/compas/geometry/trimesh_slicing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ def trimesh_slice(mesh, planes):
2323
2424
"""
2525
raise NotImplementedError
26+
27+
28+
trimesh_slice.__pluggable__ = True

0 commit comments

Comments
 (0)