Color subset of vertices in 3D model

조회 수: 5 (최근 30일)
Alexandra Heinimann
Alexandra Heinimann 2020년 1월 20일
댓글: darova 2020년 1월 20일
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
Alexandra Heinimann
Alexandra Heinimann 2020년 1월 20일
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 2020년 1월 20일
Use patch to display faces
Use plot3 or statter to show points

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by