Output formats
Currently supported output file formats with different models:
| File type | Surface model | Volume model | Charges included |
|---|---|---|---|
| HMO | ✓ | ✓ | |
| OBJ | ✓ | ||
| SKEL | ✓ | ✓ | |
| 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
- https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml
- https://paulbourke.net/dataformats/obj/
Return type
Nothing
Alias
writeobj( fname::AbstractString, model::Model{T, Triangle{T}})Creates the OBJ file by name rather than IOStream object.
SKEL
NESSie.Format.writeskel — Function
writeskel(
stream::IOStream,
model ::Model{T}
)Creates a SKEL file from a given surface or volume model, representing the model as a collection of points and polylines.
Specification
http://www.geomview.org/docs/html/SKEL.html
Return type
Nothing
Alias
writeskel( fname::AbstractString, model::Model{T})Creates the SKEL 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(
stream::IOStream,
model ::Model{T}
)Creates a VTK-compatible output file from a given surface or volume model. The exact file type is determined by the given model:
| Model type | Resulting file type |
|---|---|
| Surface model | VTK PolyData |
| Volume model | VTK UnstructuredGrid |
Specification
https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf
Return type
Nothing
Alias
writevtk( fname::AbstractString, model::Model{T})Creates the VTK file by name rather than IOStream object.