Color subset of vertices in 3D model

5 visualizaciones (últimos 30 días)
Alexandra Heinimann
Alexandra Heinimann el 20 de En. de 2020
Comentada: darova el 20 de En. de 2020
Hi, I have an STL model (vertices and faces) and am trying to change the color of a subset of the vertices of the full model. The desired colors of the points is saved in a large array with each row representing one vertice. I have tried every variation of patch, CData, and FaceVertexCData that I can think of, including plotting the full model then replotting the vertices and CData information, just plotting vertices and CData (which plots 2D for some reason). The closest I have come is a 2D plot of lines with some of the lines colors other than black. Any advice on how to change the color of a subset of vertices would be greatly appreciate! Thanks.
  3 comentarios
Alexandra Heinimann
Alexandra Heinimann el 20 de En. de 2020
I have an STL of a lower leg (opened and saved as vertices and faces). I've determined what points of the model are within the frame of an IR image. I want to change the color of the points that are within the frame of the IR image. The goal is to see the entire model of the lower leg in black and the vertices within the frame of the image in blue or something.
darova
darova el 20 de En. de 2020
Use patch to display faces
Use plot3 or statter to show points

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by