pub struct FaceMesh {
pub key: String,
pub triangles: Vec<[Vector3; 3]>,
pub normals: Vec<[Vector3; 3]>,
}Expand description
A face triangulated, with the surface’s normal at each corner, and what it is known by: its key, a hash of what a viewer is sent of it — so a face drawn alike, in this part or another, is one mesh to a viewer.
Its corners and normals are sharp: a mesh is a polygon drawn near the face, and which point of a corner’s enclosure it is drawn through is a free choice — the middle — which a viewer is sent and a pick tests.
A viewer is sent it as a viewer draws it: each corner its triangles
share once, and each triangle by its corners’ indices — in base64, the
corners’ points and normals as 32-bit floats, x y z after one
another, the indices as 32-bit integers, three a triangle, all little
endian: {"positions", "normals", "indices"}. A tenth of a mesh’s size
written as numbers.
Fields§
§key: String§triangles: Vec<[Vector3; 3]>§normals: Vec<[Vector3; 3]>