Grasshopper

generative modeling for Rhino

Ive got a little problem

We're building a scale model of a site plan, the units are in [m] in rhino because when i change it to [mm], grasshopper is not recognizing the base surface (which is relevant for projections)

Im running a boolean operation and want each house in this random looking town to move up or down by .0001m just so i can run this operation.

The random generator is fine but it seems to spit out up to .001, as in its rounding up

how can i set the precision to be much higher in grasshopper, is there a function for this or does it come out of rhino? 

I have tried everything


thanks guys
Chris

Tags: precision, units

Views: 160

Attachments:

Reply to This

Replies to This Discussion

Hi Chris,

the random number generator returns pseudo-random numbers which have (generally) many decimal digits.
The panel and the preview, though, do not show by default all figures after the point, but these digits should still be taken into account if you use the result directly inside any component that expects floating point numbers (doubles).

Here an example:


I hope it helps,

- Giulio
OH right so it does go through..

i finally managed to get the model to work in mm units which is much more precise giving me 3 more digits, but i didnt realise that

thanks Giulio grazie mille

RSS

Translate

Search Grasshopper

Members

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service