Copy link to clipboard
Copied
Looking for any info on how to determine the overlap of two shapes created with AS3, and preform the usual shape manipulations on them, like combining the two shapes together to create a new shape, punching the overlapping shape out of the underlying shape, or creating the intersecting shape from the two objects. Any info would be appreciated.
Thanks!
-Ted
Copy link to clipboard
Copied
the draw() method of the bitmapdata class allows you to combine displayobjects. use the blendmode parameter to control how they're combined.
Copy link to clipboard
Copied
Interesting,..
Unfortunately what I need to end up with are the 2D coordinates for the result shapes points.
Think a really simplified version of Illustrator:
I'm working on an app that lets the user create simple 2D vector shapes and manipulate them, with the usual scale/rotation etc, as well as editing the individual points.
Copy link to clipboard
Copied
i'm not sure what you mean by "2d coordinates" but if you mean you're trying to construct a description for a general vector shape you have a lot of work in front of you.
Copy link to clipboard
Copied
Lol yup, thats about it. Think of a shape stored as a series of points and drawing instrucitons-- like the vector drawing bit in AS3. I was hoping there is a tutorial out there somewhere for 2D vector math, regardless of language, but haven't found anything yet.
Copy link to clipboard
Copied
check svg=scalable vector graphics.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now