Version 0.59.0

External Meshes

Another way of creating a usable solid is to read in a external mesh file. Mesh files contain a 3-dimensional object in form of a triangulated surface. The common file formats stl, ply and 3mf are supported for inserting.

A mesh file is included via the mesh constructor of the solid data type. This receives a string as argument that holds a valid path to the mesh file:

Example

solid m = mesh( "myfiles/figure.stl" )
make m

Mesh model of the author (low quality scan).

When reading from ply or 3mf files, the mesh can also have colors.

Note

In addition of being a constructor for the solid data type, the mesh command can be used like a data type of its own, e.g. mesh m. This optional usage is deprecated and will be removed in a future version.

🗙

Search results for