"leo nidas" wrote in message <nut3pn$iea$1@newscl01ah.mathworks.com>...
>
>
> Hi all,
>
> I want to calculate a volume of an irregular 3D shape. A small description is that this shape lies within the unit cube. It is like a cylinder (its base is like an ellipse but not an ellipse) and it rises up to form a closed 3D surface but on its top you have like an irregular "ceiling", namely its height is not fixed at all x's.
*snip*
It doesn't sound like your shape is completely convex, so I'm not so sure convexHull is the right tool for this situation. Investigate if using an alphaShape would be able to better account for the 'irregular ceiling'.
https://www.mathworks.com/help/matlab/ref/alphashape-object.html
--
Steve Lord
slord@mathworks.com
To contact Technical Support, use the Contact Us link at the top of http://www.mathworks.com
>
>
> Hi all,
>
> I want to calculate a volume of an irregular 3D shape. A small description is that this shape lies within the unit cube. It is like a cylinder (its base is like an ellipse but not an ellipse) and it rises up to form a closed 3D surface but on its top you have like an irregular "ceiling", namely its height is not fixed at all x's.
*snip*
It doesn't sound like your shape is completely convex, so I'm not so sure convexHull is the right tool for this situation. Investigate if using an alphaShape would be able to better account for the 'irregular ceiling'.
https://www.mathworks.com/help/matlab/ref/alphashape-object.html
--
Steve Lord
slord@mathworks.com
To contact Technical Support, use the Contact Us link at the top of http://www.mathworks.com