Skip to content

Commit fa4d6b2

Browse files
committed
remove vtk file
1 parent 9602c56 commit fa4d6b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

polyclash/gui/mesh.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import pyvista as pv
33
import colorsys
44

5-
from os import path as osp
6-
from polyclash.data.data import triangles, pentagons, triangle2faces, pentagon2faces
5+
from polyclash.data.data import triangles, pentagons, triangle2faces, pentagon2faces, cities, polysmalls, polylarges
76
from polyclash.gui.constants import face_continent_colors, face_oceanic_color
87

9-
model_path = osp.abspath(osp.join(osp.dirname(__file__), "mesh.vtk"))
10-
mesh = pv.read(model_path)
8+
9+
faces_list = [[4] + list(small) for small in polysmalls] + [[4] + list(large) for large in polylarges]
10+
mesh = pv.PolyData(cities, np.hstack(faces_list))
1111

1212

1313
def adjust_hue(rgb_color, adjustment_factor):

polyclash/gui/mesh.vtk

-18.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)