Model.Model

Model(Mesh mesh, Material material)

   
Mesh mesh Any Mesh asset.
Material material Any Material asset.

Creates a single mesh subset Model using the indicated Mesh and Material! An id will be automatically generated for this asset.

Model()

Creates an empty Model object with an automatically generated id. Use the AddSubset methods to fill this model out.

Model(string id, Mesh mesh, Material material)

   
string id Uses this as the id, so you can Find it later.
Mesh mesh Any Mesh asset.
Material material Any Material asset.

Creates a single mesh subset Model using the indicated Mesh and Material!

Examples

Model model = new Model();
model.AddSubset(
    Mesh   .GenerateCube(Vec3.One),
    Default.Material,
    Matrix .Identity);