Cross sections of 3D surface (stl)

31 views (last 30 days)
Devrim Tugberk
Devrim Tugberk on 17 Jul 2019
Answered: Sai Sri Pathuri on 6 Aug 2019
Dear Matlab community,
I am working towards a project and one of my tasks is to generate 0.3mm increment cross-sections of an STL file. The delicate part of the process is that I generated cross-sections to similar STL files using a different software (VMTK) but due to the limitations of that software i now need to refer to matlab.
My Question:
Is there a way where I can generate a script which enables me to get cross sections of my STL in 0.3mm increments AND using a pre-determined cutting plane? In other words, I would like to use the same cutting plane as used in VMTK to generate these new cross-sections using MATLAB (for consistency).
Please provide me with some help or guiadance.
I thank you for your time,
-Dev.
  3 Comments
Devrim Tugberk
Devrim Tugberk on 18 Jul 2019
Edited: Devrim Tugberk on 18 Jul 2019
thank you! Although i want to say that this geometry will be changing since i am working with several different files.

Sign in to comment.

Answers (1)

Sai Sri Pathuri
Sai Sri Pathuri on 6 Aug 2019
You may use interp2 function in loop to plot the cross sections of the 3D surface in 0.3mm increments. Set hold to ‘ON’ for axes object.
You may refer the related answer
Refer the following link for documentation of interp2

Community Treasure Hunt

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

Start Hunting!