nmwsharp / polyscope

A C++ & Python viewer for 3D data like meshes and point clouds
https://polyscope.run
MIT License
1.83k stars 203 forks source link

Vector Quantity Coloring (e.h. a VectorQuantityScalarQuantity or VectorQuantityColorQuantity) #286

Open weshoke opened 3 months ago

weshoke commented 3 months ago

I was looking in to how to color a vector quantity on a per-element basis, which basically means adding a ScalarQuantity or ColorQuantity to a VectorQuantity.

My first approach to this was to try and make a VectorQuantity a Structure, but that creates an error around isEnabled()

polyscope/src/../include/polyscope/structure.h:96:8: note: member found by ambiguous name lookup
  bool isEnabled();

Have you had any thought about the right way to do this?