Skip to contents

Set material for a mesh in a model. Modifies the model in place.

Usage

set_model_mesh_material(model, mesh_id, material_id)

Arguments

model

A model.

mesh_id

An integer. Mesh index.

material_id

An integer. Material index.

Examples

if (FALSE) {
model <- load_model("model.obj")
set_model_mesh_material(model, 0L, 0L)
}