Integral evaluation in an alphashape
Show older comments
I have an alphashape created by alphaShape function and an integral. Is there a way to evaluate this volume integral in the alpha shape? i.e. I have a function
and I want to find the volume integral of this function in the shape defined by
x coordinates:
0
0.0107
0.0160
0.0101
y coordinates:
0
0
0
0.0106
z coordinates:
0
0.0101
0
0
5 Comments
darova
on 11 Mar 2020
- I want to find the volume integral of this function in the shape defined by
are those coordinated kind of boundaries? What do they mean?
berk can acikgoz
on 11 Mar 2020
berk can acikgoz
on 12 Mar 2020
darova
on 12 Mar 2020
What about triangulation?

Answers (1)
Perhaps as follows. Here, shp refers to your alphaShape object.
fun=@(x,y,z) (x.^2+y.^2+z.^2).*shp.inShape(x,y,z);
range=num2cell( [min(shp.Points);max(shp.Points)] );
result=integral3(fun,range{:});
7 Comments
berk can acikgoz
on 12 Mar 2020
Matt J
on 12 Mar 2020
Try
result=integral3(fun,range{:},'Method','iterated');
berk can acikgoz
on 12 Mar 2020
berk can acikgoz
on 12 Mar 2020
Categories
Find more on Bounding Regions 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!