Grasshopper

algorithmic modeling for Rhino

The performance of the volume / center component is pretty dramatic for certain boxes.

(given that indeed the input geometry in the screenshot is a bit wonky)

If the Volume component would use the box properties to estimate the volume:

    C = G.Center;
    V = G.X.Length * G.Y.Length * G.Z.Length;

It could be a lot faster for calculating the center/volume properties of boxes.

Views: 4098

Attachments:

Replies to This Discussion

Boxes are converted to Breps for the Volume operation, and I'm guessing that ginormous coordinates (6.2e+11 is certainly ginormous) somehow retard the volume solver. It is a pretty drastic delay, I can definitely send it off to the math guys in Seattle.

In the meantime, you can use Evaluate Box to find the center point quickly.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

An nice, I had not spotted that one yet, thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service