union polygons

   6427   4   0
User Avatar
Member
224 posts
Joined: June 2009
Offline
I have a bunch of adjacent coplanar polygons that I want to union together to make one big polygon. Any ideas how to do this? See attached file for an example.

Attachments:
union_polygons.hipnc (44.9 KB)

Patrick
User Avatar
Member
9728 posts
Joined: July 2007
Offline
try Divide SOP with Remove Shared Edges checked
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
224 posts
Joined: June 2009
Offline
thanks - that works great

Now I have a slightly more complicated union problem. I want to find that area of a bunch of co-planar polygons that are possibly overlapping, but the total area should only count overlapping areas once. See attached file for an example.

So I need to union them into a set of one or more larger polygons, and find the area of these (measure SOP followed by promote SOP)

So my question is now do I do the union.

Attachments:
union_polygons_2.hipnc (40.6 KB)

Patrick
User Avatar
Member
9728 posts
Joined: July 2007
Offline
you can union them with cookie SOP
but not all at once

to do it automatically you need to use foreach SOP
look at the example

Attachments:
union_polygons_2_fix.hipnc (53.5 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
224 posts
Joined: June 2009
Offline
Thanks tomas - that is a nice example

Just to get the hang of it, I re-did it in python, using 3d closed shapes instead of 2d closed shapes. See attached file.

Attachments:
union_boxes.hipnc (53.4 KB)

Patrick
  • Quick Links