Hi GH/Rhino community,
I’ve run into a problem concerning the ‘inverting’ or flipping of a plane as a result of the referenced line changing direction. This line is a ClosestPoint line between two curves which inflects as the curves cross over.
It is of course highly logical that a plane (and the geometry that lies upon it) would do so, considering the changing state of the referenced line (a vector?).
However, I wish to be more selective/scrutinising of the orientation of the constructed plane, using that same line as a perpendicular reference.
Specifically, I’m looking for a way to construct a plane which references the line in question but merely does so for the purpose of remaining perpendicular to it. From here it seems logical that another series of conditional statements are used to keep the plane and geometry pointing “up” - but how that’s done, I do not know!!!
I’ve tried a number of things to resolve this but now I’m properly stuck.
Attached are images (and GH file) which I hope will better articulate the issue I’m having.
SystemLogic_ClosestPoint_270418.gh (31.8 KB)
Also! The script features I think this issue concerns are found at the far right of the GH canvas and are highlighted in green. I’ll make it my mission this afternoon to do a much cleaner job of internalising the data.
Questions and suggestions are greatly welcomed and appreciated!
Regards,
Brad