Hallo Dear Rhino Community,
I would need to remove from a list of vectors, which always have the same starting point, and the direction in the same plane, all the vectors included from an angle of 0° (from starting point) to a variable number X[°].
Any advice on how to proceed?
Thanks in advance
Hello
A vector has no starting point,
but to know if it is on a plane you’ll have to check if dot product (there is a component) of this vector with plane normal vector equals 0.0 (with a tolerance). Equals 0 means two vectors are perpendicular or null
Then you have a component to measure the angle (0° to 180° or 0° to 360°) of vector relative to another vector.
Have a look at the attachment.
Cull Vectors_re.gh (12.3 KB)
1 Like