speed up
Fixed
csg.js
Vertex.normal
is now optional
Refactor
meshToPolygons()
- Attach
Material
directly toCSG.Polygon
shared data instead of(mesh.material, materialIndex)
tuple - Eliminated many
const
s during construct-CSG.Polygon
-loop
csgToMesh()
- Use truthy/falsy checking instead.. for probing existence of
attributes.normal
etc. - Use
uvs[i++] = ...
instead ofuvs.set(uv.toArray(), i)