2d slice from 3d plot of spheres

6 views (last 30 days)
Niall Holmes
Niall Holmes on 18 Feb 2018
Commented: Rik on 24 Feb 2018
Hi, I'm trying to take a 2D slice of a 3D plot of spheres. For example, on the attached image(1), I need to take a slice at 50mm as shown in (2). Can you help me create the slice? Many thanks.

Accepted Answer

Rik
Rik on 18 Feb 2018
You could use voxelise (FEX) and then select your slice. The downside is that Matlab will doing a lot of work, most of which will not be necessary, so you can also take a look at the code itself to find a more efficient method.
Or directly use an implementation that intersects meshes: SurfaceIntersection (FEX)
  1 Comment
Rik
Rik on 24 Feb 2018
Did this work for you? If not, feel free to post comments here with your remaining questions. If it did solve your problem, please mark it as accepted answer.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!