Output formats
Currently supported output file formats with different models:
| File type | Surface model | Charges included |
|---|---|---|
| HMO | ✓ | ✓ |
| OBJ | ✓ | |
| OFF | ✓ | |
| STL | ✓ | |
| VTK | ✓ |
HMO
OBJ
NESSie.Format.writeobj — Function
function writeobj(stream::IOStream, model ::Model{T, Triangle{T}})Creates a Wavefront OBJ file from a given surface model.
Specification
Return type
Nothing
Alias
writeobj(fname::AbstractString, model::Model{T, Triangle{T}})Creates the OBJ file by name rather than IOStream object.
OFF
NESSie.Format.writeoff — Function
writeoff(stream::IOStream, model::Model{T, Triangle{T}})Creates an OFF file from a given surface model.
Specification
http://www.geomview.org/docs/html/OFF.html
Return type
Nothing
Alias
writeoff(fname::AbstractString, model::Model{T, Triangle{T}})Creates the OFF file by name rather than IOStream object.
STL
NESSie.Format.writestl — Function
writestl(stream::IOStream, model ::Model{T, Triangle{T}})Creates a binary STL file from a given surface model.
Specification
http://www.fabbers.com/tech/STL_Format
Return type
Nothing
Alias
writestl(fname::AbstractString, model::Model{T, Triangle{T}})Creates the STL file by name rather than IOStream object.
VTK
NESSie.Format.writevtk — Function
writevtk(fname::AbstractString, model::Model{T, Triangle{T}})Creates a VTK PolyData file from a given surface Model. The file extension (.vtp) is appended automatically if not present.
Specification
https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf
Supported keyword arguments
ascii::Bool = true: useasciiinstead ofbinaryas data array format
Return type
Nothing