File tree Expand file tree Collapse file tree 3 files changed +2
-45
lines changed Expand file tree Collapse file tree 3 files changed +2
-45
lines changed Original file line number Diff line number Diff line change 77from .intersections import intersection_ray_mesh , intersection_rays_mesh
88from .isolines import trimesh_isolines , groupsort_isolines
99from .massmatrix import trimesh_massmatrix
10- from .parametrisation import trimesh_harmonic , trimesh_lscm , trimesh_simple
10+ from .parametrisation import trimesh_harmonic , trimesh_lscm
1111from .planarize import quadmesh_planarize
1212from .meshing import trimesh_remesh_along_isoline , trimesh_remesh_along_isolines
1313from .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" ,
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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-
8976NB_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}
You can’t perform that action at this time.
0 commit comments