Format conversion
Methods
Name |
Syntax |
Description |
saveto3ds |
mesh:saveto3ds(filename:string) |
Saves the mesh as a 3DS file |
saveto3mf |
mesh:saveto3mf(filename:string) |
Saves the mesh as a 3MF file |
savetoamf |
mesh:savetoamf(filename:string;binary:Boolean) |
Saves the mesh as an AMF file |
savetoasciistl |
mesh:savetoasciistl(filname:string, name:string) |
Saves the mesh as an ASCII STL file |
savetogts |
mesh:savetogts(filename:string) |
Saves the mesh as a GTS file |
savetoncm |
mesh:savetoncm(filename:string) |
Saves the mesh as an NCM file |
savetoobj |
mesh:savetoobj(filename:string) |
Saves the mesh as an OBJ file |
savetoply |
mesh:savetoply(filename:string) |
Saves the mesh as a PLY file |
savetostl |
mesh:savetostl(filename:string) |
Saves the mesh as a binary STL file |
savetovoxel |
mesh:savetovoxel(filename:string) |
Saves the mesh as a Voxel file |
savetovrml |
mesh:savetovrml(filename:string;fixlengtheachrow:Boolean; endmarkeachrow:Boolean) |
Saves the mesh as a VRML file |
savetox3d |
mesh:savetox3d(filename:string, binary:Boolean) |
Saves the mesh as an X3D file |
savetozpr |
mesh:saveto3ds(filename:string) |
Saves the mesh as a ZPR file |
shellasmesh |
Newmesh = mesh:shellasmesh(shellnumber: Number) |
Extract a shell as new mesh object. Same as LUATrayMesh.shellasmesh but without the matrix of a traymesh. See LUAMeshObject.shellcount for the number of meshes |
All routines return TRUE if successful.
Back to top
Examples
Name |
Syntax |
Return value |
savetostl |
mesh:savetostl("my_mesh_fixed.stl") |
TRUE if successful |
savetoasciistl |
mesh:savetoasciistl("my_fixed_ascii.stl", "My fixed ASCII STL") |
TRUE if successful |
savetox3d |
mesh:savetox3d("my_mesh_fixed.x3d", true) |
TRUE if successful |
savetogts |
mesh:savetogts("my_mesh_fixed.gts") |
TRUE if successful |
savetoobj |
mesh:savetoobj("my_mesh_fixed.obj") |
TRUE if successful |
savetoncm |
mesh:savetoncm("my_mesh_fixed.ncm") |
TRUE if successful |
Back to top