Conversion of x, y, z vectors to surf usable matrices (Matlab 2009a)
1 view (last 30 days)
Show older comments
Hi.
Sorry if the title is a little confusing. I'll try to elaborate in here:
What I have is three vectors, approprietly named x, y, and z. Each element of each vector represents a point on the surface of an object. For example, x(1), y(1), and z(1) represent a location on the surface. The shape itself is unusual and there is no order to the listing of the points (ie not sorted in ascending or decending x, y, or z).
What I'm wondering is if there is way to create three matrices that would reconstruct this object with the surf function.
Thanks for any help that can be provided.
0 Comments
Answers (1)
Walter Roberson
on 26 Oct 2011
No, not with only that information. That is attempting a surface reconstruction from a point cloud. Especially with you saying the shape is unusual, you need to have some kind of rules or data structure about how the points connect to each other.
Some people use "alpha shapes" for surface reconstruction. I'm not sure that would be suitable for your case, but you could look into that.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!