AlexWer
(Alexander )
May 18, 2023, 3:10pm
1
Hello Guys
please tell me how to create a complex attractor with several lines.
the height of the normals for the blue lines should be 900 mm for the pink 0 mm.
Attractor with multiple conditions.gh (11.5 KB)
Attractor with multiple conditions.3dm (212.1 KB)
Hi,
Here is a way.
height = 900 * distance_to_blue / (distance_to_blue + distance_to_pink)
(I bumped up the value in order to actually see something on the screenshot)
Attractor with multiple conditions.gh (9.8 KB)
Did you reverse the criteria? @AlexWer said:
the height of the normals for the blue lines should be 900 mm for the pink 0 mm.
Attractor with multiple conditions_2023May18a.gh (16.6 KB)
Good catch.
It should be height = 900 * distance_to_pink / (distance_to_blue + distance_to_pink)
Remap Numbers gives a bit more flexibility.
Also, EvalSrf is necessary to get the surface normal vector as it is not parallel to World XY, as can be seen in front and side views.
AlexWer
(Alexander )
May 22, 2023, 11:05am
6
magicteddy
Joseph_Oster
Thank you friends for your help!!!