Login or register to post comments.

#1 2009-11-22 12:22

an0
Member

How to do cutout or boolean subtraction?

I'v built two vector graphs and want to do a cutout with one off another (something called boolean subtraction in vector graphics tools).
How can I do that?

Offline

#2 2009-11-22 13:11

neoneye
Administrator

Re: How to do cutout or boolean subtraction?

Sorry, I have never thought of doing boolean operations with the vector paths, so that is not possible to do. The Mix building block would probably be a good place to add it. It's a really complicated type of operation.

Alternatively rasterize the paths and then mix the bitmaps, but thats not a satisfying solution.

an0, I will add this to my to do list. Thank you.

Offline

#3 2009-11-22 13:17

an0
Member

Re: How to do cutout or boolean subtraction?

I've tried bitmap mix, but can't figure out how to achieve the cutout, because it seems mixing a totally transparent color onto another color has no effect.

Offline

#4 2009-11-22 13:50

neoneye
Administrator

Re: How to do cutout or boolean subtraction?

If you start out with these two shapes
http://farm3.static.flickr.com/2566/4124839462_acaa2b651b_m.jpghttp://farm3.static.flickr.com/2647/4124068347_fedf33837a_m.jpg

Then you can do cutouts using the Mix block, like this
http://farm3.static.flickr.com/2701/4124839636_330d27dcbf.jpg

and like this
http://farm3.static.flickr.com/2520/4124839562_35f22fe027.jpg

Offline

#5 2009-11-22 14:09

an0
Member

Re: How to do cutout or boolean subtraction?

You filled it BLACK. It's not cutout. I want it transparent.

Offline

#6 2009-11-22 14:21

neoneye
Administrator

Re: How to do cutout or boolean subtraction?

http://farm3.static.flickr.com/2486/4124141679_f99de11f88.jpg
colors inside the intersection.. like this?

Offline

#7 2009-12-05 15:00

neoneye
Administrator

Re: How to do cutout or boolean subtraction?

an0, no. Intersection is not possible.

I will consider making it in the future, because of you.

Offline

#8 2009-12-05 15:43

neoneye
Administrator

Re: How to do cutout or boolean subtraction?

> Look forward to the upcoming boolean operations.

It will not be anytime soon. Btw. I have recently spent a lot of time inside Flash CS4 getting familiar with intersection.

The only blocker is that it is very difficult to code.

Offline

Board footer

Powered by PunBB