Internals

File formats and dispatch

Helpers

PMeshIO.convert_toFunction
vu :: 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`
source