Coloring faces of imported meshes
See original GitHub issueHi @marcomusy,
I am trying to use your library to visualize data from thermal comfort studies. I have several manikins like the one shown below and I intend to color individual polygons based on the amount of thermal radiation incident on them (as shown in the screencapture in the second picture)
The part about loading the geometry is super simple due to the methods in your vtkPlotter
class. I could not find a way to interact with the individual faces of the obj through any of the methods. I also tried to understand the methods and attributes available at runtime through the debugger in Pycharm but could not get much far. Any suggestions?
Thanks, Sarith
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Three.js - Changing color of a face from an imported mesh?
In three.js, I can't seem to find out how to target/change the color of a mesh imported from Blender. Any help would be...
Read more >color faces of mesh with python - Blender Artists
how can you color the individual faces of my mesh depending on distance to e.g. a different object? This is possible with bpy...
Read more >Easy and Quick Way to Import Models WITH COLOR from ...
Easy and quick way to cleanly import colors onto your meshes from Blender to Roblox Studio.Here is the link for a good color...
Read more >Select Individual faces from an imported mesh or custom ...
Select Individual faces from an imported mesh or custom made mesh by blender ... Another solution was to use vertexData but i could...
Read more >Color individual faces after modifier - Blender Stack Exchange
Once you use a Generate Modifier (decimate counts as well) you don't have much control over the mesh anymore. Since modifiers are by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
various possibilities…: if the points are projectable onto a plane (which seems to be the case) you can discard the existing triangles and recreate a new mesh with
delaunay2D
or try to recreate it withrecoSurface()
besides you can useclean(tol=0.01)
to preprocess and reduce the points and/or usesmoothMLS2D()
to make the surface smoother.finally - once you have the mesh - you can color the outside and inside differently with
color()
andbackColor()
Hi @LogWell this looks related to a transparency problem in vtk… though I must say I don’t understand exactly why that happens… This works for me: