Skip to content

speed up

Compare
Choose a tag to compare
@ycw ycw released this 10 Oct 18:56
· 17 commits to main since this release

Fixed

csg.js

  • Vertex.normal is now optional

Refactor

meshToPolygons()

  • Attach Material directly to CSG.Polygon shared data instead of (mesh.material, materialIndex) tuple
  • Eliminated many consts during construct-CSG.Polygon-loop

csgToMesh()

  • Use truthy/falsy checking instead.. for probing existence of attributes.normal etc.
  • Use uvs[i++] = ... instead of uvs.set(uv.toArray(), i)