How to save alphashape image as STL or CAD?

33 Ansichten (letzte 30 Tage)
Selva Karna
Selva Karna am 14 Dez. 2018
Bearbeitet: Dmitrij Usov am 8 Nov. 2023
How to save alphashape image as STL or CAD? can any share idea's?alphashape.jpg

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 14 Dez. 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 Kommentare
Niccolo Cymbalist
Niccolo Cymbalist am 4 Jun. 2019
Could you please provide an example for this?
Dmitrij Usov
Dmitrij Usov am 8 Nov. 2023
Bearbeitet: Dmitrij Usov am 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');

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

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

Melden Sie sich an, um zu kommentieren.


Selva Karna
Selva Karna am 17 Dez. 2018

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by