Multiple BoundingBox.Contains for Cogo Points

I have gotten to a point in my graph that I have imported in COGO points into my file and I have retrieved multiple bounding boxes from block references in an XREF file back to real coordinates for my current file. I want to be able to categorize my points so points that are contained in the same bounding box will have some unique identifier for me to utilize when try to set a consistent elevation for all points based on a Civil 3D surface. I feel like I am this close to having this working, but I have my brain running in circles in how I should correctly set this up. Screenshot attached along with the .dyn file for reference. Thanks as always to this amazing community!


BESS TOP Elevation.dyn (132.2 KB)

Hi @jbrunkhorst,

Here’s an example you can play around with.
Containment Exploration.dyn (45.1 KB)

containment

1 Like

This helped a ton, thank you!

I am now tackling another scenario where the bounding box needs to rotate to match the block reference rotation factor. I have been able to generate an actual box around each object just fine, but I am struggling to determine how I can sort out the points inside of each shape. Bounding box seems to be a problem with the rotation factor.

You might look at the Polygon.ContainmentTest node as an alternative option.

1 Like

Aha - thank you! I knew there had to be something that could handle this!

2 Likes