Skip to content

Commit d605818

Browse files
author
pv
committed
FIX remove trimesh to reduce mapping time.
1 parent ae5e1b0 commit d605818

File tree

5 files changed

+91
-304
lines changed

5 files changed

+91
-304
lines changed

docs/examples/example_mapping.py

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

3131
options = {
32-
"function": lambda u, v: [u, v, 0],
32+
"function": lambda u, v: [u*1, v*1, 0],
3333
"u_range": [-0.255, 1.33],
3434
"v_range": [-0.34, 1.33],
3535
"u_num": 16,

src/compas_libigl/intersections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from compas.plugins import plugin
33

44
from compas_libigl import _intersections
5-
from compas_libigl._types_std import VectorVectorInt
65

76

87
@plugin(category="intersections")

src/compas_libigl/mapping.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import numpy as np
2+
from compas.utilities import print_profile
23

34
from compas_libigl import _mapping
4-
from compas_libigl._types_std import VectorVectorInt
55

66

7+
@print_profile
78
def map_mesh(target_mesh, pattern_mesh, clip_boundaries=True):
89
"""
910
Map a 2D pattern mesh onto a 3D target.

0 commit comments

Comments
 (0)