Internals
File formats and dispatch
PMeshIO.meshformat
— Methodformat = meshformat(path)
Get AbstractMeshFormat
from file name extension of path
. Ignores extensions from file compression, e.g., .gz
.
See also AbstractMeshFormat
PMeshIO.readmesh
— MethodError if no AbstractMeshFormat
is found.
PMeshIO.writemesh
— MethodError if no AbstractMeshFormat
is found.
PMeshIO.AbstractMeshFormat
— TypeMesh formats.
Subtypes include
OBJ
Wavefront OBJ possibly with vertex colorOFF
OFF formatUnknownFormat
possibly delegate to [MeshIO](https://github.com/JuliaIO/MeshIO.jl
See also meshformat
Helpers
PMeshIO.convert_to
— Functionvu :: typeof(u) = convert_to(v, u)
Helper that converts (vector) types, possibly "appending" missing dimensions or "truncating" dimensions with reasonable default choices.
(x, y) -> (x, y, 0)
- `(x, y) -> (x, y, 0, 1)
(x, y, z) -> (x, y, z, 1)
(x, y, z) -> (x, y)
(x, y, z, w) -> (x/w, y/w, z/w)
(r, g, r)
-> RBG24 | RGBA`(r, g, r, a)
-> RBG24 | RGBA`
PMeshIO.RGBA
— TypeDefault type for representing RBG and RBGA colors in 32 bit.