proc material*(self: PrimitiveMesh): Material {.gcsafe, locks: 0.}
proc `material =`*(self: PrimitiveMesh; val: Material) {.gcsafe, locks: 0.}
method update*(self: PrimitiveMesh) {.gcsafe, locks: 0, base.}