How to save alphashape image as STL or CAD?

46 views (last 30 days)
How to save alphashape image as STL or CAD? can any share idea's?alphashape.jpg

Accepted Answer

Sean de Wolski
Sean de Wolski on 14 Dec 2018
Get the alphaTriangulation from the alphaShape and then call stlwrite (new in 18b)
A = alphaShape(rand(10,2))
[T, P] = alphaTriangulation(A)
stlwrite(triangulation(T,P),'foo.stl')
  5 Comments
Niccolo Cymbalist
Niccolo Cymbalist on 4 Jun 2019
Could you please provide an example for this?
Dmitrij Usov
Dmitrij Usov on 8 Nov 2023
Edited: Dmitrij Usov on 8 Nov 2023
use boundaryFacets instead alphaTriangulation for nx3 matrices
A = alphaShape(rand(10,3));
[T, P] = boundaryFacets(A); % here
stlwrite(triangulation(T,P),'foo.stl');

Sign in to comment.

More Answers (2)

KSSV
KSSV on 14 Dec 2018
  1 Comment
Selva Karna
Selva Karna on 14 Dec 2018
thanks for reply, but its not generate grid, like above 3d Image stl. how to generate grid using x,y,z? KSSV

Sign in to comment.


Selva Karna
Selva Karna on 17 Dec 2018

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!