write_mesh
builtin
¶
write_mesh(path, mesh, *, ascii=False, dxf_entity='3dface')
Writes a .obj, .stl, .ply, .off, Gmsh 4.1 .msh or ASCII R2000
.dxf mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The file; its extension picks the format. |
required |
mesh
|
Mesh
|
The mesh. OBJ writes the face column |
required |
ascii
|
bool
|
Write ASCII instead of binary STL, PLY or MSH. |
False
|
dxf_entity
|
('3dface', polyface)
|
One |
"3dface"
|
Used in