remcoder / gcode-preview

A simple GCode parser & previewer with 3D printing in mind. Written in Typescript.
https://gcode-preview.web.app/
MIT License
150 stars 30 forks source link

Use clipping for the min/max layers iso re-rendering #156

Open remcoder opened 1 month ago

remcoder commented 1 month ago

see: https://threejs.org/examples/webgl_clipping.html

sophiedeziel commented 1 month ago

It's safe to assume min/max layer parameters are controlled most of the time by a slider. The performance of it is very important for the user's experience. It can be difficult to diagnose a problem in the sliced model when the preview lags.

Can clipping be used for lines or is it a geometry thing only?