gcode-preview icon indicating copy to clipboard operation
gcode-preview copied to clipboard

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

Open remcoder opened this issue 1 year ago • 1 comments

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

remcoder avatar May 31 '24 21:05 remcoder

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?

sophiedeziel avatar Jun 01 '24 15:06 sophiedeziel

will be implemented in #234

remcoder avatar Oct 18 '24 06:10 remcoder

I was thinking that clipping would be also useful in other contexts than inspecting layers. For example, have the print split vertically to inspect the insides from a different angle.

But that's a whole new feature that happens to use the same techniques. WDYT?

sophiedeziel avatar Oct 18 '24 23:10 sophiedeziel

I could be useful but I haven't come across a situation where min/max layers weren't adequate. I'd like to see an actual use case. What would you use the feature for?

remcoder avatar Oct 18 '24 23:10 remcoder

You're right that we can visualize pretty much everything with the layers. But I've seen people struggle with 2D/3D vision and mental representation of objects. They could not understand from layers that there was overhangs.

Having an additional clipping plane is a tool that can help understand what's going on when your brain is not wired like a software engineer's.

Those are also ways I would personally use it:

  • inspecting how layers are placed on top of each other and detect weak points
  • inspect the insides of a hollow part to see where the walls have a thickness of only one line or some infill
  • just playing with it because it's cool

sophiedeziel avatar Oct 19 '24 00:10 sophiedeziel

Good points. I use 'section analysis' sometimes in Fusion which really is the same thing. I must say I'm from the 'less is more' school but I'm open to a simple implementation of this.

Maybe only allow clipping planes along the x, y, z axes?

For me this would still be a 3.1++ feature.. but hey they're more like guidelines not rules https://imgflip.com/gif/1suyyk

remcoder avatar Oct 19 '24 08:10 remcoder

Yep, section analysis is different than layers, and should be scope for "eventually".

Only on x,y or z is exactly what I had in mind.

sophiedeziel avatar Oct 19 '24 14:10 sophiedeziel