LDraw.org Discussion Forums
Any easy way to fix overlapping surfaces? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html)
+--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html)
+--- Thread: Any easy way to fix overlapping surfaces? (/thread-29100.html)



Any easy way to fix overlapping surfaces? - Peter Grass - 2025-09-30

I was trying img4dat to create a decorated part and it looks decent but when I load it into ldpart editor and use the overlapping checking tool there are 525 overlapping surfaces.

So my questions are:

A) Is there an easy way to fix them?

B) Is there a way to stop them being generated in the first place in img4dat ?

I've attached the dat I was working on which is for part 3069pb1332
https://www.bricklink.com/v2/catalog/catalogitem.page?P=3069pb1332&C=2#T=S&C=2&O={%22color%22:2,%22ss%22:%22UK%22,%22rpp%22:%22100%22,%22iconly%22:0}


RE: Any easy way to fix overlapping surfaces? - Peter Blomberg - 2025-10-01

Try rounding to 4 decimals before running the overlap checking tool.


RE: Any easy way to fix overlapping surfaces? - Peter Grass - 2025-10-01

(2025-10-01, 0:42)Peter Blomberg Wrote: Try rounding to 4 decimals before running the overlap checking tool.

OK thanks that brings it down to 21 overlapping surfaces which I deleted and redrew which means no more errors.


RE: Any easy way to fix overlapping surfaces? - Peter Blomberg - 2025-10-01

Good. You can also try the unificator tool after rounding. That might save you a few more surfaces.


RE: Any easy way to fix overlapping surfaces? - Peter Grass - 2025-10-01

What about this new part I am working on? This is my first go at making something that is supposed to be rounded.

https://www.bricklink.com/v2/catalog/catalogitem.page?P=14769pb745&C=1#T=C&C=1

The main decorated face of the part has no overlap as I fixed the errors and I used the template for the 14769 part in the img4dat app, but as soon as I add the body of the part s\14769s01.dat and the 4-4ering.dat to round the outer edges those bring up overlap errors. So would those be allowed since there doesn't seem to be a good way to round the part otherwise?


RE: Any easy way to fix overlapping surfaces? - Peter Blomberg - 2025-10-02

(2025-10-01, 19:09)Peter Grass Wrote: What about this new part I am working on? This is my first go at making something that is supposed to be rounded.

https://www.bricklink.com/v2/catalog/catalogitem.page?P=14769pb745&C=1#T=C&C=1

The main decorated face of the part has no overlap as I fixed the errors and I used the template for the 14769 part in the img4dat app, but as soon as I add the body of the part s\14769s01.dat and the 4-4ering.dat to round the outer edges those bring up overlap errors. So would those be allowed since there doesn't seem to be a good way to round the part otherwise?

When you rounded the main decorative face to two decimals, at the same time you rounded the coordinates of the bounding circle. This now causes issues. You will need to go to each of the 16 points on the outer circle and adjust the coordinates of the pattern to fit the unpatterned base. Zoom in, select your custom point, and merge to nearest vertex with LDPE.

The base part is poorly made as there are up to three points in each of the 16 corners. Additionally, the 16 edges have extra vertices along their length. An update would be appreciated.