Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Truncating and re-saving a Mesh (in .stl format)

$
0
0

I would like to load a .stl file of triangular facets, remove most from the mesh and save as a new .stl file.

using FileIO, MeshIO
mesh = load("test.stl")
using GeometryBasics
new_mesh = Mesh(mesh[1:3])  # grab first three triangles
save("test_out.stl", new_mesh)

The code above fails with a method error. Other more detailed forms of setting up a new Mesh from the old have also met with issues deeper in GeometryBasics, so I must be missing something.

What is the accepted approach? Can someone provide a short working example of this?
Thanks!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles