Skip to content

Commit 4dffac5

Browse files
author
pv
committed
CHANGE parametrisation names
1 parent d313209 commit 4dffac5

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed

docs/api/compas_libigl.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Functions
2525
trimesh_isolines
2626
groupsort_isolines
2727
trimesh_massmatrix
28-
trimesh_harmonic
29-
trimesh_lscm
28+
trimesh_harmonic_mapping
29+
trimesh_lsc_mapping
3030
quadmesh_planarize
3131
trimesh_remesh_along_isoline
3232
trimesh_remesh_along_isolines

docs/examples/example_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
viewer.scene.add(mesh_mapped, name="mesh_mapped", facecolor=Color.red())
6262

6363
# To see where the pattern is mapped:
64-
uv = igl.trimesh_lscm((v, f))
64+
uv = igl.trimesh_lsc_mapping((v, f))
6565
mesh_flattened = mesh.copy()
6666
for i in range(mesh.number_of_vertices()):
6767
mesh_flattened.vertex_attributes(i, "xyz", [uv[i][0], uv[i][1], 0])

docs/examples/example_mapping_boundaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# ==============================================================================
2929

3030
# To see where the pattern is mapped:
31-
uv = igl.trimesh_lscm((v, f))
31+
uv = igl.trimesh_lsc_mapping((v, f))
3232
mesh_flattened = mesh.copy()
3333
for i in range(mesh.number_of_vertices()):
3434
mesh_flattened.vertex_attributes(i, "xyz", [uv[i][0], uv[i][1], 0])

docs/examples/example_mapping_patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
viewer.scene.add(mesh_mapped, name="mesh_mapped", facecolor=Color.red())
109109

110110
# To see where the pattern is mapped:
111-
uv = igl.trimesh_lscm((v, f))
111+
uv = igl.trimesh_lsc_mapping((v, f))
112112
mesh_flattened = mesh.copy()
113113
for i in range(mesh.number_of_vertices()):
114114
mesh_flattened.vertex_attributes(i, "xyz", [uv[i][0], uv[i][1], 0])

docs/examples/example_parametrisation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
# Least-squares conformal map
2626
# ==============================================================================
2727

28-
# lscm_uv = igl.trimesh_harmonic(mesh.to_vertices_and_faces())
29-
lscm_uv = igl.trimesh_lscm(mesh.to_vertices_and_faces())
28+
# lscm_uv = igl.trimesh_harmonic_mapping(mesh.to_vertices_and_faces())
29+
lscm_uv = igl.trimesh_lsc_mapping(mesh.to_vertices_and_faces())
3030

3131
for index, key in enumerate(mesh.vertices()):
3232
mesh_lscm.vertex_attributes(key, "xy", lscm_uv[index])

requirements-dev.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ scikit-build-core[pyproject] >=0.10
1313
twine
1414
wheel
1515
setuptools
16-
cibuildwheel==2.23.1
17-
tessagon
16+
cibuildwheel==2.23.1

src/compas_libigl/__init__.py

Lines changed: 3 additions & 4 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
10+
from .parametrisation import trimesh_harmonic_mapping, trimesh_lsc_mapping
1111
from .planarize import quadmesh_planarize
1212
from .meshing import trimesh_remesh_along_isoline, trimesh_remesh_along_isolines
1313
from .mapping import map_mesh
@@ -115,9 +115,8 @@ def get_armadillo():
115115
"trimesh_isolines",
116116
"groupsort_isolines",
117117
"trimesh_massmatrix",
118-
"trimesh_harmonic",
119-
"trimesh_lscm",
120-
"trimesh_map_aabb",
118+
"trimesh_harmonic_mapping",
119+
"trimesh_lsc_mapping",
121120
"quadmesh_planarize",
122121
"trimesh_remesh_along_isoline",
123122
"trimesh_remesh_along_isolines",

src/compas_libigl/parametrisation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
@plugin(category="trimesh")
8-
def trimesh_harmonic(M):
8+
def trimesh_harmonic_mapping(M):
99
"""Compute the harmonic parametrisation of a triangle mesh within a fixed circular boundary.
1010
1111
Parameters
@@ -27,7 +27,7 @@ def trimesh_harmonic(M):
2727

2828

2929
@plugin(category="trimesh")
30-
def trimesh_lscm(M):
30+
def trimesh_lsc_mapping(M):
3131
"""Compute the least squares conformal map of a triangle mesh.
3232
3333
Parameters

tests/test_parametrisation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
from compas.datastructures import Mesh
44

55

6-
def test_trimesh_harmonic():
6+
def test_trimesh_harmonic_mapping():
77
mesh = Mesh.from_off(compas.get("tubemesh.off"))
88
mesh.quads_to_triangles()
99
M = mesh.to_vertices_and_faces()
10-
uv = igl.trimesh_harmonic(M)
10+
uv = igl.trimesh_harmonic_mapping(M)
1111
assert len(uv) == mesh.number_of_vertices()
1212
assert len(uv[0]) == 2 # Each UV coordinate should be 2D
1313

1414

15-
def test_trimesh_lscm():
15+
def test_trimesh_lsc_mapping():
1616
mesh = Mesh.from_off(compas.get("tubemesh.off"))
1717
mesh.quads_to_triangles()
1818
M = mesh.to_vertices_and_faces()
19-
uv = igl.trimesh_lscm(M)
19+
uv = igl.trimesh_lsc_mapping(M)
2020
assert len(uv) == mesh.number_of_vertices()
2121
assert len(uv[0]) == 2 # Each UV coordinate should be 2D

0 commit comments

Comments
 (0)