Grasshopper

algorithmic modeling for Rhino

Hi,

I have a pretty exact question, that I just can't seem to figure out,

I'm scaling a list of geometry based on another list,

e.g. scaling an area x 0.96434

I've done this so that the resulting geometry will be of a unform size,

 

The problem I'm having is that the Grasshopper, scaling component, rounds the number off to early in the series,

That is

I want to it do

1.063897 x 122.192264 = 130

1.02288 x 127.092187 = 130

But it does something like

1.1 x 122.2 = 134.42



I've tryed adding decimal places to the rhino file 'absolute tolerance' and

tryed changing the units from Meters, to Centermeters, but then the numbers become too large to change in number sliders

Views: 416

Replies to This Discussion

Hi Mal,

numbers are rounded when they are being displayed or converted to text, for example on a Text Panel. If you then feed that text back into a number parameter again you will lose the least significant digits. However this rounding should happen only at 6 decimal places, not one.

The tolerance settings in Rhino are irrelevant in this case. Tolerance is not a measure of how accurate Rhino is. We always try to be as accurate as possible within the limits of double-precision computing. Tolerance is an indication of the intended accuracy of the geometry. It allows us to find intersections between objects that do not actually intersect but only approach each other within tolerance. Stuff like that.

As far as I know there is no automatic rounding to single digits anywhere in Grasshopper. Could it be that you are processing the numbers with a custom expression? In any case, you'll need to post a file that shows this problem.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2026   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service