Polygon envelope of a 3D array
Show older comments
I've written the attached function to find the polygon envelope of structured data in a 3D array. It works, but is very slow for large data sets. Does anyone know of a way to make it substantially faster?
Also, it is unfortunately limited to 3D array input (the Vert/Faces) approach enforces this limit. Does anyone see a way to generalize this to ND data?
If this were fast and generalized, I think it would make a nice addition to the File Exchange...
Answers (1)
Image Analyst
on 21 Feb 2015
0 votes
Any reason why you didn't just use the built in convhulln()?
4 Comments
Rob McDonald
on 21 Feb 2015
Image Analyst
on 21 Feb 2015
Then, can you then give us a high level description of how you're defining "envelope"? If your envelope can "dip inside" the convex hull and attach to arbitrary vertices inside, then there are tons of vertices it could connect to so how do you decide which is the "right" one? Why aren't they all right? It seems you could have hundreds or thousands of possible envelopes.
Rob McDonald
on 22 Feb 2015
Rob McDonald
on 22 Feb 2015
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!