Default Box thickness of section tools

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
DA523
Posts: 186
Joined: Mon May 25, 2020 4:02 pm

Default Box thickness of section tools

Post by DA523 »

I propose to set startup default box thickness of section tools to (101)% of object dimension to avoid the case of attached file
if you select mesh then open section tools and do not change any value mesh loses some vertices
but if you select mesh vertices then open section tools and do not change any value no vertices are lost
it is cube 2x2x2

..
Screenshot 2025-11-21 082056.png
Screenshot 2025-11-21 082056.png (95.08 KiB) Viewed 17636 times
..
2x2x2.zip
(8.25 KiB) Downloaded 530 times
daniel
Site Admin
Posts: 8138
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Default Box thickness of section tools

Post by daniel »

Yes, it's probably because of the numerical accuracy of the text fields of the 'Box thickness' UI.

I guess adding 1.0e-5 to the b-box extents would do the trick as well.
Daniel, CloudCompare admin
DA523
Posts: 186
Joined: Mon May 25, 2020 4:02 pm

Re: Default Box thickness of section tools

Post by DA523 »

Since precision is the same 2.0000000 and no cut in between mesh vertices a
What about using (keep mesh vertices if =< box ) instead of (keep mesh vertices if < box ) in result mesh
daniel
Site Admin
Posts: 8138
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Default Box thickness of section tools

Post by daniel »

Well, the 'cut' is purely visual and done by OpenGL at display time (as OpenGL works also with 32bits floating points precision). So 2.0000000 is in fact something different when represented internally.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 8138
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Default Box thickness of section tools

Post by daniel »

This should now be fixed in the latest 2.14.beta version
Daniel, CloudCompare admin
DA523
Posts: 186
Joined: Mon May 25, 2020 4:02 pm

Re: Default Box thickness of section tools

Post by DA523 »

I checked latest beta (30-nov) and not fixed yet
daniel
Site Admin
Posts: 8138
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Default Box thickness of section tools

Post by daniel »

Yes, it seems the commit disappeared somewhere...
Daniel, CloudCompare admin
DA523
Posts: 186
Joined: Mon May 25, 2020 4:02 pm

Re: Default Box thickness of section tools

Post by DA523 »

To explain this issue, It is not about visual cut during display in section tools, but about the result after section
..
1.png
1.png (22.87 KiB) Viewed 12715 times
2.png
2.png (104.43 KiB) Viewed 12715 times
3.png
3.png (12.53 KiB) Viewed 12715 times
daniel
Site Admin
Posts: 8138
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Default Box thickness of section tools

Post by daniel »

Well, I guess it's still some numerical accuracy issues... I guess slightly enlarging the box by default will fix that in a way.
Daniel, CloudCompare admin
Post Reply