Skip to content

Mesh

Every FComponent in @fibbojs/3d has a __MESH__ attribute that corresponds to the Three.js Mesh that will be used to render the component.

It will either be one of classic polyhedrons (like a BoxGeometry or a SphereGeometry) or a custom 3D model.

Unless you have a good reason to do so, you should not modify the __MESH__ attribute directly, but use the provided methods instead.

What is a mesh ?

A mesh is a 3D object that is composed of vertices, edges, and faces. It is the basic building block of any 3D computer graphics.