Skip to content

hm5-types (source format) / MeshGeometry

Interface: MeshGeometry ​

A mesh's rest shape: points in the owner's own space and triangles.

Properties ​

PropertyTypeDescription
grid?objectmade as an even grid of cols × rows cells (the Properties numbers); absent once points were added / removed by hand
grid.colsnumber-
grid.rowsnumber-
pointsnumber[]flat [x0, y0, x1, y1, …]
trianglesnumber[]flat vertex index triples

HereSplash — 2D animation for the web