STL to solid 3d matrix

12 views (last 30 days)
RSM
RSM on 30 May 2021
Answered: DGM on 1 Apr 2025
Is there a way to import STL and save it as 3D matrix and stlil maintain its size? Patch is a good function to import stl, I need voxelisation of the mesh so I can slice the 2D data out of it.
This is a good work by Adam , but it does not maintain the size and ratio:
Regards

Answers (1)

DGM
DGM on 1 Apr 2025
The linked tools do maintain the geometry. It's just up to you to keep track of the sampling grid coordinates and plot it appropriately. Otherwise, depending on how you're using it and setting up your plots, it probably will show up visually distorted.

Community Treasure Hunt

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

Start Hunting!