Boolean modifier UNION strange behaviour

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
beothorn
Posts: 0
Joined: Fri Jun 28, 2013 8:40 pm

Boolean modifier UNION strange behaviour

Post by beothorn » Fri Jul 12, 2013 7:33 pm

Hi,
I'm trying to write pyhton scripts to build a mesh from some primitives and boolean modifiers.
I'm trying to replicate some openscad example scripts as blender scripts, but the UNION modifier does not seems to do what i thought it was supposed to do.
The pyhton script is here(it's very small): https://raw.github.com/beothorn/opensca ... mple002.py

The important part is here

Code: Select all

union(\
			 cube(dimensions=(50,10,10)),\
			 cube(dimensions=(10,50,10)),\
			 cube(dimensions=(10,10,50))\
)\
The first two cubes are joined correctly but the third one loses vertices when I apply UNION . You can do the union by hand if you change the code to:

Code: Select all

union(\
			 cube(dimensions=(50,10,10)),\
			 cube(dimensions=(10,50,10)),\

)
cube(dimensions=(10,10,50))
And unite them from the interface, the result is the same.

Is this a bug or I misunderstood how union should work?

beothorn
Posts: 0
Joined: Fri Jun 28, 2013 8:40 pm

Not really a python problem

Post by beothorn » Mon Jul 15, 2013 6:26 pm

Ok, found a bug on the tracker here https://projects.blender.org/tracker/?f ... group_id=9

This is not a python issue, but I don't know how to move this thread.

The resolution:
Date: 2012-12-06 10:18
Sender: Campbell Barton
Tested in 2.65rc1 and this isn't crashing.
Issues with booleans where objects are only just touching are hard to ensure correct results.

closing.
:cry:

Well, if anyone is interested, this blend reproduces the error:

https://docs.google.com/file/d/0B0QLHCM ... sp=sharing

Thanks

Post Reply