Skip to content

Commit d313209

Browse files
author
pv
committed
REMOVE simple reparametrization.
1 parent 3712177 commit d313209

File tree

3 files changed

+2
-45
lines changed

3 files changed

+2
-45
lines changed

src/compas_libigl/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .intersections import intersection_ray_mesh, intersection_rays_mesh
88
from .isolines import trimesh_isolines, groupsort_isolines
99
from .massmatrix import trimesh_massmatrix
10-
from .parametrisation import trimesh_harmonic, trimesh_lscm, trimesh_simple
10+
from .parametrisation import trimesh_harmonic, trimesh_lscm
1111
from .planarize import quadmesh_planarize
1212
from .meshing import trimesh_remesh_along_isoline, trimesh_remesh_along_isolines
1313
from .mapping import map_mesh
@@ -117,8 +117,6 @@ def get_armadillo():
117117
"trimesh_massmatrix",
118118
"trimesh_harmonic",
119119
"trimesh_lscm",
120-
"trimesh_simple",
121-
"trimesh_map_simple",
122120
"trimesh_map_aabb",
123121
"quadmesh_planarize",
124122
"trimesh_remesh_along_isoline",

src/compas_libigl/parametrisation.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,3 @@ def trimesh_lscm(M):
4646
V = np.asarray(V, dtype=np.float64)
4747
F = np.asarray(F, dtype=np.int32)
4848
return _parametrisation.lscm(V, F)
49-
50-
51-
@plugin(category="trimesh")
52-
def trimesh_simple(M):
53-
"""Compute the least squares conformal map of a triangle mesh.
54-
55-
Parameters
56-
----------
57-
M : tuple[list[list[float]], list[list[int]]]
58-
A mesh represented by a tuple of (vertices, faces)
59-
where vertices are 3D points and faces are triangles
60-
61-
Returns
62-
-------
63-
list[list[float]]
64-
The u, v parameters per vertex.
65-
66-
"""
67-
V, F = M
68-
V = np.asarray(V, dtype=np.float64)
69-
F = np.asarray(F, dtype=np.int32)
70-
return _parametrisation.simple(V, F)

src/parametrisation.cpp

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,6 @@ lscm(
7373
return V_uv;
7474
}
7575

76-
Eigen::MatrixXd
77-
simple(
78-
Eigen::Ref<const compas::RowMatrixXd> V,
79-
Eigen::Ref<const compas::RowMatrixXi> F)
80-
{
81-
// Create UV coordinates matrix from XY coordinates
82-
Eigen::MatrixXd V_uv = V.leftCols(2); // Use the first two columns (X and Y coordinates)
83-
84-
rescale(V_uv);
85-
86-
return V_uv;
87-
}
88-
8976
NB_MODULE(_parametrisation, m) {
9077
m.def(
9178
"harmonic",
@@ -100,11 +87,5 @@ NB_MODULE(_parametrisation, m) {
10087
"Compute the least-squares conformal map of a triangle mesh.",
10188
"V"_a,
10289
"F"_a);
103-
104-
m.def(
105-
"simple",
106-
&simple,
107-
"Compute a simple parameterization using normalized XY coordinates.",
108-
"V"_a,
109-
"F"_a);
90+
11091
}

0 commit comments

Comments
 (0)