A browser-based DLP slicer built at a Formlabs hackathon converts STL mesh files into bitmap image slices for resin 3D printing. The core challenge is voxelization — determining inside vs. outside for meshes with nested bodies. The solution uses a raycasting algorithm based on triangle winding order (front/back-facing normals), implemented on the GPU via a stencil buffer trick in OpenGL with three rendering passes. The tool runs entirely client-side, accepts STL files, and outputs a zip of PNG images. Source is MIT-licensed on GitHub.
Sort: