) function if you've already got a boolean value.
This expression:
x < 12
results in exactly the same things as this expression:
If( x < 12, True, False )
If() is only really useful when you want to return non-boolean data, like so:
If( x < 12, x, 100-x )
In this case, the expression will return either x, or 100-x if x is larger than or equal to 12:
x result
1 1
2 2
10 10
11 11
12 88
13 87
14 86
18 82
70 30
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 7:22am on August 10, 2011
D'une durée de 2 jours, vous apprendrez les fondamentaux indispensables pour piloter confortablement et efficacement Grasshopper.
Programme sur demande.
ce?) (line 86)""Error: 'Rhino.DocObjects.Tables.LightTable' does not contain a definition for 'Sun' (line 86)"
I'm using Rhinoceros 4.0 v9 and just recently installed the Rhino4.0SDK. Any comments/suggestions would be appreciated. Thanks …
Chris,
Again the number of curves which SubCrv gives me is different from the actual curve on the surface! for example it gives me 80 curves in which there are 20 curves!
Hey, you need to reparameterize the Srf. You're running into the problem described on p. 86 in the primer, where you need to reset the domain of the surface to be between 0 and 1 :)