Module picocadrs::assets::model

source ·
Expand description

Houses the struct representing a model which is equivalent to all the information a picoCAD file holds.

A picoCAD file consists of 3 main parts.

  • header: Contains general settings of the project, like background color or name. Each component is seperated by ;. Its end is indicated by a newline (\n) character, meaning this is always the first line of the file.
  • meshes: This is a lua table holding a list of meshes. The order these are in does not matter. Each mesh itself is also represented as a lua table. Aside from the lua table’s closing bracket the end of this section is indicated by a %
  • footer: Holds the texture used for uv mapping.

Structs§