File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import compas
22import compas_libigl as igl
3- import numpy as np
43from compas .datastructures import Mesh
54
65
@@ -16,15 +15,15 @@ def test_map_mesh():
1615 # Use a smaller central region of the UV space
1716 u_range = [0.2 , 0.8 ] # Avoid edges of UV space
1817 v_range = [0.2 , 0.8 ] # Avoid edges of UV space
19-
18+
2019 # Generate grid vertices
2120 pv = []
2221 for j in range (v_num + 1 ):
2322 v_param = v_range [0 ] + j * (v_range [1 ] - v_range [0 ]) / v_num
2423 for i in range (u_num + 1 ):
2524 u_param = u_range [0 ] + i * (u_range [1 ] - u_range [0 ]) / u_num
2625 pv .append ([u_param , v_param , 0 ])
27-
26+
2827 # Create faces (triangulated quads)
2928 pf = []
3029 for j in range (v_num ):
@@ -34,7 +33,7 @@ def test_map_mesh():
3433 v1 = j * (u_num + 1 ) + i + 1
3534 v2 = (j + 1 ) * (u_num + 1 ) + i + 1
3635 v3 = (j + 1 ) * (u_num + 1 ) + i
37-
36+
3837 # Split quad into two triangles
3938 pf .append ([v0 , v1 , v2 ])
4039 pf .append ([v0 , v2 , v3 ])
You can’t perform that action at this time.
0 commit comments