Jump to content

Is it possible to invert polygons?


rpniponal

Recommended Posts

I was wondering if there is a quick way of inverting a polygon.

 

I have a 2D drawing of polygons that I want a "negative" version of.

Ideally I would be able to draw a rectangle that encompasses all of my polygons and run a command that would then create the subsequent polygons that make up the negative of my drawing.

 

I've drawn some cartoons to illustrate my point.

My drawing would be the circle, and I draw a rectangle around it.

The subsequent command would be able to create the inverted polygons. It also breaks the rectangle up to ensure that all polygons don't have "holes" in them. This is a requirement.

 

Is there a simple procedure for what I am trying to do here or am I stuck doing this by hand?

 

Thanks,

Phil

Invert1.JPG

Invert2.JPG

Invert3.JPG

Link to comment
Share on other sites

Don't let the above post fool you. Lee Mac just loves a challenge. He'll probably knock this off over his snack break while concurrently doing the New York Times crossword puzzle. The guy is just amazing.

Link to comment
Share on other sites

Haha, thanks ReMark :D

 

But I am a little stumped on this one tbh.... :unsure::unsure:

 

 

For Example, in the instance attached, how would the pieces be broken up? Into 3? also, with the multitude of entities that could lie inside the rectangle you draw, how does one know where to break each one?

ex1.jpg

ex2.jpg

Link to comment
Share on other sites

Yeah, I am seeing that most geometries would have more than one solution, as Lee Mac points out.

 

I had hoped this was a simple command I wasn't aware of, but now that I know that I think it would involve something akin to taking every side of each polygon and tracing out new lines to the bounding box ( simplify the problem and state the outer polygon is always a rectangle). Of course it wouldn't just be to the bounding box, it would be to the nearest side, be it the bounding box or another polygon side.

 

The purpose of this is that we have a photolithography mask drawn in the positive, and now we want the same mask drawn in the negative. As in we've drawn closed polygons where we want the mask to be opaque and now we want an equivalent drawing that would have the opposite area of drawing opaque.

 

This can easily be done by just changing the process by which the mask is made, but I want the same features drawn in negative and positive on the same mask.

Positive.JPG

Negative.JPG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...