Extracting point cloud from patch model

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

KSSV
KSSV 2017년 6월 6일
More details needed.....show us your model and what you expecting.
Alla
Alla 2017년 6월 6일
편집: Alla 2017년 6월 6일
Thank you for your reply, here is the model in question,what I am exprecting is simply to have a point cloud of the model
If you are expecting that each of the cuboids would become a whole bunch of points inside the volume of the cuboid, then you would need to do interpolation of some sort, or volume rendering.
KSSV
KSSV 2017년 6월 6일
Is this model created in matlab?
Alla
Alla 2017년 6월 7일
편집: Alla 2017년 6월 7일
Thank you both for your replies, I created the model on Matlab using Patch function and I only need a point cloud of the surfaces not the volume.
The patch object does not store the surface points, only the vertices.
KSSV
KSSV 2017년 6월 8일
If you have the vertices in hand..you can create the surface using meshgrid.

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 6월 6일

0 개 추천

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.

카테고리

질문:

2017년 6월 5일

댓글:

2017년 6월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by