We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Boolean shape additions (shape merge)
Page Index Toggle Pages: 1
Boolean shape additions (shape merge) (Read 398 times)
Boolean shape additions (shape merge)
Apr 2nd, 2008, 5:17am
 

Hello, does anybody knows how to do the boolean addition of two arbitrary shapes. By this I mean to merge or add two or more shapes and get a new shape with an outline of the combination of these shapes.

Thanks,
Jimmy
Re: Boolean shape additions (shape merge)
Reply #1 - Apr 2nd, 2008, 9:13am
 
There is the geomerative library by Ricard Marxer Piñón, which has a union, diff and xor  method for polygons. (http://www.ricardmarxer.com/processing/geomerative/documentation/index.htm)
Re: Boolean shape additions (shape merge)
Reply #2 - Apr 3rd, 2008, 6:07am
 
Thanks a lot Eskimo. This will probably save me a lot of time.   Could you give me a very brief example of how to do this if I have two "vertex" shapes, because Geomerative's website does not have many examples? Is it any different if I also want to apply this for "Bezier Vertex" shapes?

Many thanks,
Jimmy
Page Index Toggle Pages: 1