Output formats

Currently supported output file formats with different models:

File typePoint cloudSurface modelVolume modelCharges included
HMO
OBJ
SKEL
STL
VTK
XML3D/JSON
XML3D/XML

HMO

NESSie.Format.writehmoFunction
writehmo(
    stream::IOStream,
    model ::Model{T, Triangle{T}}
)

Creates a HMO file from the given surface model.

Return type

Void

Alias

writehmo(
    fname::String,
    model::Model{T, Triangle{T}}
)

Creates the HMO file by name rather than IOStream object.

source

OBJ

NESSie.Format.writeobjFunction
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>
<http://paulbourke.net/dataformats/obj/>

Return type

Void

Alias

writeobj(
    fname::String,
    model::Model{T, Triangle{T}}
)

Creates the OBJ file by name rather than IOStream object.

source

SKEL

NESSie.Format.writeskelFunction
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

Void

Alias

writeskel(
    fname::String,
    model::Model{T}
)

Creates the SKEL file by name rather than IOStream object.

source

STL

NESSie.Format.writestlFunction
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

Void

Alias

writestl(
    fname::String,
    model::Model{T, Triangle{T}}
)

Creates the STL file by name rather than IOStream object.

source

VTK

NESSie.Format.writevtkFunction
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 typeResulting file type
Surface modelVTK PolyData
Volume modelVTK UnstructuredGrid

Specification

https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf

Return type

Void

Alias

writevtk(
    fname::String,
    model::Model{T}
)

Creates the VTK file by name rather than IOStream object.

source

XML3D

NESSie.Format.writexml3d_jsonFunction
writexml3d_json(
    stream::IOStream,
    model ::Union{Vector{Vector{T}}, Model{T, Triangle{T}}}
)

Creates a XML3D-specific JSON file either from a given collection of nodes (representing the latter as point cloud) or from a given surface model.

Specification

https://github.com/xml3d/xml3d.js/wiki/External-resources

Return type

Void

Alias

writexml3d_json(
    fname::String,
    nodes::Union{Vector{Vector{T}}), Model{T, Triangle{T}}}
)

Creates the JSON file by name rather than IOStream object.

source