Closed kcpevey closed 5 years ago
Also note that this:
mat = tris.pop('mat')
fixes the error
The problem was that the trimesh rasterization code aggregates on one particular column and a tris
column takes precedence over a vertex column. I'll submit a PR for holoviews to handle this correctly shortly.
Everything I have works now. Looks good!
3dm mesh files contain the nodal info [x,y,z] and element info [v0, v1, v2, material type]. The earthsim mesh reader in
/earthsim/io/read_3dm_mesh
doesn't keep the material information. So I rewrote it to keep the materials as an additional column in the dataframe:This does what I need it to do, but it causes an error when I try to use a trimesh generated from the verts and tris. If you replace the reader in the second cell of the
Analyzing_Meshes.ipynb
with the above code, you get this error:How can I fix this?