Convert convexhull to stl file

14 visualizaciones (últimos 30 días)
CHANDRABHAN Singh
CHANDRABHAN Singh el 25 de En. de 2022
Comentada: CHANDRABHAN Singh el 24 de Feb. de 2022
I have a set of 3d coordiante points. How can i convert the convert the convex hull into stl file.
p = [113.6466 111.8984 112.4205 108.7094 113.4748 111.4158 113.5684 ];
q =[ 17.7346 12.7025 16.5175 18.2938 17.4362 18.4552 16.3848 ];
r = [56.0310 62.7279 56.1565 59.7253 66.1007 65.5010 56.0682 ];
k= convhull(p,q,r);
trisurf(k,p,q,r);

Respuesta aceptada

KSSV
KSSV el 25 de En. de 2022
p = [113.6466 111.8984 112.4205 108.7094 113.4748 111.4158 113.5684 ];
q =[ 17.7346 12.7025 16.5175 18.2938 17.4362 18.4552 16.3848 ];
r = [56.0310 62.7279 56.1565 59.7253 66.1007 65.5010 56.0682 ];
k= convhull(p,q,r);
trisurf(k,p,q,r);
tr = triangulation(k,[p' q' r']) ;
stlwrite(TR,'test.stl')
  3 comentarios
耀 谷
耀 谷 el 23 de Feb. de 2022
Can your code work normally? I was prompted to use fileparts incorrectly when running the code
CHANDRABHAN Singh
CHANDRABHAN Singh el 24 de Feb. de 2022
@耀 谷 Yes. It is running very smooth.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Management en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by