Mesh constructor
Mesh([
- BufferGeometry? geometry,
- Material? material
geometry
— (optional) an instance of
BufferGeometry. Default is a new BufferGeometry.
material
— (optional) a single or an array of
Material. Default is a new MeshBasicMaterial
Implementation
Mesh([BufferGeometry? geometry, Material? material]) : super() {
this.geometry = geometry ?? BufferGeometry();
this.material = material;
type = "Mesh";
updateMorphTargets();
}