Data Input/Output

Types

SeqSpace.DataIO.PLYPropType
struct PLYProp
    name :: Symbol
    type :: Type
    len  :: Union{Type,Nothing}
end

Data structure that encapsulates a property of a PLY file. If len is not nothing, it is assumed to be a collection of properties, i.e. a list.

SeqSpace.DataIO.plytypeConstant
const plytype = Dict{String, Type}

Lookup table for keywords of PLY file format matched to type information.

Functions

SeqSpace.DataIO.expand_matrixMethod
expand_matrix(io::IO, dir::String)

Read a matrix in MTX format from io stream and dump as 3 text files into directory dir.

SeqSpace.DataIO.fill!Method
fill!(prop::Array{PLYProp}, io::IO)

Read and parse a single line from io stream. Fill the interpreted property into prop.

SeqSpace.DataIO.read_matrixMethod
read_matrix(io::IO; type=Float64, named_cols=false, named_rows=false, start_cols=1, start_rows=1)

Read a white-space delimited matrix from io stream of element type type. If named_cols is true, the first line is assumed to be column labels. If named_rows is true, the first column of each row is assumed to be denote the label.

SeqSpace.DataIO.read_mtxMethod
read_mtx(io::IO)

Read a matrix from io stream assuming bytes are formatted in matrix exchance file format.

SeqSpace.DataIO.read_objMethod
read_obj(io::IO)

Read an oriented mesh from io stream assuming bytes are formatted in OBJ file format.

SeqSpace.DataIO.read_plyMethod
read_ply(io::IO)

Read an oriented mesh from io stream assuming bytes are formatted in PLY file format.

SeqSpace.DataIO.readpropsMethod
readprops(io::IO, props::Array{PLYProp,1})

Read a collection of properties from io stream into props array. Return a named tuple of parsed properties.