Grasshopper

algorithmic modeling for Rhino

How to remove the small rectangle inside the big rectangle

 how to remove the small rectangle which is inside the large rectangle, as shown below:

i am newbie,thank you for your answer.

Views: 939

Replies to This Discussion

You can use the [Boundary Surfaces] component to solve the tricky nesting topology. You then have to jump through a few hoops to get back at your rectangles, but I think in the end it's probably the easiest solution.

You may run into problems if your rectangle pairs are intersecting or nested within each other, because that will confuse the [Boundary Surfaces] component.

Attachments:

the GH file did run into problems. here are zhe 3dm file. thank you very much. 

Attachments:

Some of your outer rectangles are doubled up. That'll need to be fixed first. Also, some of the duplicates are not entirely identical and have seams starting in different corners. How did you get these rectangles?

These rectangles come from architectural drawings designed with ACAD.

Any hope of getting rid of the duplicate curves there? I noticed the SelDup command in Rhino didn't find them all, presumably because even though the shapes look identical, they actually start in different corners and have slightly different coordinates.

Just go to the other, trying.

here has an idea: the center of the rectangle is overlapping, whether can be by comparing the central location, then  to delete the small rectangle. but I do not know how to operate

If the rectangles are 'concentric', then yes, you can do this. Although I suspect you'll still have to specially deal with the duplicate ones.

Nah actually you don't.

Attachments:

hi,David Rutten,thanks very much. 

by the end, I use vb script to write a small program according to the size of the district to decide which will do the following operation, and finally get.

thanks.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service