Grasshopper

algorithmic modeling for Rhino

Hey guys,

So I'm attempting to create bounding boxes around surfaces so I can measure their max width and height. I do this because when there's trapezoidal, triangular or any other shaped surface other than a rectangle, I can successfully retrieve these wxh dimensions. 

Problem: It seems like I randomly get Nulls or Flat Boxes which produce invalid surfaces when exploded. I understand that when the box is flattened there are sides of the box that get eliminated and produce invalid surfaces but I'm not sure how in the attached file only random surfaces have this 'Flat Box' output, when all the surfaces are the same (planar, vertical).

Would anyone have any suggestion on how to get this to work or maybe even another way to approach this? (Please see attached .gh and .3dm files)

Thanks!

Views: 1141

Attachments:

Replies to This Discussion

If you disconnect the 'Plane (P)' input to 'BBox', the 'DeBrep' error goes away...

And the long sides of your box are not parallel; one of the four sides is not aligned (parallel) with the Y-axis, so the panels on that side (opposite to the diagonal line) generate 3D bounding boxes instead of flat boxes...

I guess you know that, which is why you're supplying the 'Plane (P)' input to 'BBox'?

So...  I don't know what you're doing with the 'XProd' stuff(?) but if you skip all that and connect the 'Normal (N)' output of 'EvalSrf' to the 'Plane (P)' input to 'BBox', I think it works correctly.

P.S.  But this doesn't make any difference, as far as I can tell, from no plane input.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service