Geometry Nodes Mesh Boolean unexpected difference result #103952

Open
opened 2023-01-17 23:13:15 +01:00 by Balázs Füvesi · 8 comments

System Information
Operating system: macOS-13.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 83

Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2023-01-16 22:58, hash: 7241ab6ede
Worked: none

Short description of error
Geometry Nodes Mesh Boolean Difference does not work as expected.
Node setup:
nodeSetup.png

Unexpected boolean difference:
incorrectBoolean.png

Exact steps for others to reproduce the error

  • Open the attached .blend file
  • Press G to move the selected Cube.001 and the small cubes will flicker.

At certain positions of Cube.001 some of the small cubes will disappear when they should not.

Thanks!
test06.blend

**System Information** Operating system: macOS-13.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Apple 4.1 Metal - 83 **Blender Version** Broken: version: 3.5.0 Alpha, branch: master, commit date: 2023-01-16 22:58, hash: `7241ab6ede` Worked: none **Short description of error** Geometry Nodes Mesh Boolean Difference does not work as expected. Node setup: ![nodeSetup.png](https://archive.blender.org/developer/F14164794/nodeSetup.png) Unexpected boolean difference: ![incorrectBoolean.png](https://archive.blender.org/developer/F14164813/incorrectBoolean.png) **Exact steps for others to reproduce the error** - Open the attached .blend file - Press G to move the selected Cube.001 and the small cubes will flicker. # At certain positions of Cube.001 some of the small cubes will disappear when they should not. Thanks! [test06.blend](https://archive.blender.org/developer/F14164865/test06.blend)

Added subscriber: @fuvesib

Added subscriber: @fuvesib
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Added subscriber: @MiroHorvath

Added subscriber: @MiroHorvath

Even though disappearing is annoying, it's a bit daring to expect getting correct result when faces of both meshes are perfectly lined up in Y axis(check in Top view).
image.png
To get a correct result you have to scale Cube.001 in Y axis(in case this is the result you're expecting).
image.png

Even though disappearing is annoying, it's a bit daring to expect getting correct result when faces of both meshes are perfectly lined up in Y axis(check in Top view). ![image.png](https://archive.blender.org/developer/F14171132/image.png) To get a correct result you have to scale Cube.001 in Y axis(in case this is the result you're expecting). ![image.png](https://archive.blender.org/developer/F14171199/image.png)

Sorry for the confusion, I did indeed forget to scale Cube.001 in the Y axis slightly bigger.
However, I did not mean the cubes circled with green, which could be explained by floating point uncertainty and which is expected when the faces are close to each other. But the cube circled with red which is way further to be explained with a floating point error in my opinion.
Ynotscaled.png

It is possible to get a similar result when Cube.001 is scaled bigger on the Y axis than the small cubes.
Yscaled.png
Blend file for the above picture:
test08.blend

Sorry for the confusion, I did indeed forget to scale Cube.001 in the Y axis slightly bigger. However, I did not mean the cubes circled with green, which could be explained by floating point uncertainty and which is expected when the faces are close to each other. But the cube circled with red which is way further to be explained with a floating point error in my opinion. ![Ynotscaled.png](https://archive.blender.org/developer/F14171642/Ynotscaled.png) It is possible to get a similar result when Cube.001 is scaled bigger on the Y axis than the small cubes. ![Yscaled.png](https://archive.blender.org/developer/F14171674/Yscaled.png) Blend file for the above picture: [test08.blend](https://archive.blender.org/developer/F14171678/test08.blend)

@fuvesib I see, this is quite annoying, Boolean documentation says:

Only Manifold meshes are guaranteed to give proper results, other cases (especially “opened” meshes, Non-manifold but without any self-intersections) will usually work well, but might give odd glitches and artifacts in some cases.

... so it should give you proper result(while changing Cube.001 transformation) as both meshes are Manifold.

Exactly because of getting these kind of issues when working with Boolean, I typically separate all the meshes within one object by Loose Parts(P-key in Edit mode) and then assign GN modifier to each newly created objects to minimize problems, it's indeed automated with Python API.

@fuvesib I see, this is quite annoying, Boolean documentation says: > Only Manifold meshes are guaranteed to give proper results, other cases (especially “opened” meshes, Non-manifold but without any self-intersections) will usually work well, but might give odd glitches and artifacts in some cases. ... so it should give you proper result(while changing Cube.001 transformation) as both meshes are Manifold. Exactly because of getting these kind of issues when working with Boolean, I typically separate all the meshes within one object by Loose Parts(P-key in Edit mode) and then assign GN modifier to each newly created objects to minimize problems, it's indeed automated with Python API.

Thank you for the suggestions.

I found this issue when a complex node setup started crashing with 3.4. I was able to reduce the problem to the Boolean node.
The crash issue has been solved (#103072) however, the flickering remained.

Although this is quite a niche issue compared to the crash, I think it would be nice to have it solved sometime in the future. So I opened this new report for this incorrect difference issue.

Thank you for the suggestions. I found this issue when a complex node setup started crashing with 3.4. I was able to reduce the problem to the Boolean node. The crash issue has been solved (#103072) however, the flickering remained. Although this is quite a niche issue compared to the crash, I think it would be nice to have it solved sometime in the future. So I opened this new report for this incorrect difference issue.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:13 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#103952
No description provided.