How to save alphashape image as STL or CAD?

46 vues (au cours des 30 derniers jours)
Selva Karna
Selva Karna le 14 Déc 2018
How to save alphashape image as STL or CAD? can any share idea's?alphashape.jpg

Réponse acceptée

Sean de Wolski
Sean de Wolski le 14 Déc 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 commentaires
Niccolo Cymbalist
Niccolo Cymbalist le 4 Juin 2019
Could you please provide an example for this?
Dmitrij Usov
Dmitrij Usov le 8 Nov 2023
Modifié(e) : Dmitrij Usov le 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');

Connectez-vous pour commenter.

Plus de réponses (2)

KSSV
KSSV le 14 Déc 2018
  1 commentaire
Selva Karna
Selva Karna le 14 Déc 2018
thanks for reply, but its not generate grid, like above 3d Image stl. how to generate grid using x,y,z? KSSV

Connectez-vous pour commenter.


Selva Karna
Selva Karna le 17 Déc 2018

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by