Open noppelmax opened 5 years ago
Maybe #526 is also relevant.
OK. i found out, the panda DataFrame is of dtype float64 for all columns after tris = pd.DataFrame(n, columns=['v0', 'v1', 'v2','TR_stn'])
. This is why assert failed. As i see at the pandadoc all columns in a panda dataframe must have the same dtype. How could i display float64 data belonging to the triangle?
Just came across this issue while searching how to display data defined on cells. It would be great to see this implemented :+1:
PRs welcome! :-) Just to be clear, here I think the issue is to deal with mixed float32/float64 datatypes properly, and in the meantime converting them all to float32 would presumably work.
Thank you very much for the feedback! I just didn't try the obvious. It is indeed possible to add the cell-values to the dataframe containing node indices and it seems to just do the right thing.
Hey,
first i want to thank you for your work!
Description
I currently trying to get a TriMesh project ready. My data is described in a different way, the mesh should look like but i get this working for now. My problem is, that for my data, the actual value of a cell (triangle) is the value of the cell and not of one node. I found, i could set the values in the array of the vertices but for me it depends on the triangle. Is this possible?
Data
My data is structured like follows:
Where 327680 is the number of cells.
Code
Errors and warnings
I get the following output:
Version Environment
Thanks! And best regards, Max