Extracting point cloud from patch model
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everyone, So I have a model I created using patch function and I need a point cloud of said model to play around with the depth information, so I was wondering if it is possible or not to extract a point cloud from a model and if yes how would I go about on doing so?
댓글 수: 7
답변 (1개)
Walter Roberson
2017년 6월 6일
There are two ways of constructing patch objects.
- For one of them, you can fetch the XData, YData, and ZData properties. Each column represents a face, so there are as many rows as the longest face; shorter faces have NaN to pad them out
- For the other, more efficient one, you can fetch the Vertices property to get a matrix in which each row defines a unique point. The Faces property gives information about how the vertices are connected.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!