. The rules to dispatch the lines are the next:
I start with a list that alternate true/false; like that: true, false, true, false.
If the angles between those lines are greater than 89° I want to inverse the next part of the list:
True, False, True, False, True, False,...
become
True, False, [>89°] False, True, False, True, [>89°] True, False,...
I managed to create a true false list, to check for the greater than 89° angle, to separate the lines relatively to the angles, but I don't know how to inverse part of the list at certain index.
(In the picture, I have written 90° but it should be 89°, I check for greater than 89° and not equal to 90° because in the real rhino model, the lines won't be exactly orthogonal)
If you have another idea to to reach the same result, it's also okay, I tried to find rules to solve the problems, but I may have overlooked other solutions !
And if there is some part of the patch that are correct but there is easier solution, I would love to learn as I am still new to grasshopper.
Thanks for taking the time to read. :)
…
This equation has the same issue as the code I posted. While the curve is the same, the units are off, as seen in my screenshot where the ymax goes well above 80
a spline? In a more general setting of semi-algebraic sets there is the Tarski-Seidenberg Theorem http://en.wikipedia.org/wiki/Tarski%E2%80%93Seidenberg_theorem that says the projection of a semi-algebraic set is itself a semi-algebraic set. As nurbs surfaces and breps defined by them are semi-algrbaric sets this means that the projection must be reasonably nice. I could not discover whether it is always a spline. There are however reasonably nice ways to get splines from algebraic curves, though we are back to an approximation. It would be nice to have an algorithm that is guaranteed to give the precise splines when they exist (as in the example above) and will otherwise give a good approximation, I was not able to find if one has been written, even in the theoretical literature.…
define the "numOfContours_: input to 2, the terrain geometry will have only two isohypses from its highest to the lowest point. With 80, you will have 80 of them. Have in mind that if "standThickness_" input is larger than 0 (it means a stand will be created below the terrain), then the isohypses will be applied to the stand as well, as it is the continuation of the terrain.
To get the terrain elevation legend, one needs to use the "Terrain Analysis" component. Check the attached file. I changed the "source_" input, because your location is Paris suburb. In this cases the "source_=2 (GMRT - underwater terrain)" will also generate the land terrain as well. But with less precision than source_=1 and 2, which are meant to be used for land terrain.Please let us know if you have any other questions.…
Added by djordje to Gismo at 3:18pm on April 1, 2019
, so using distance to centre point, you can give all the useless values a 1. Cutting down the values you actually need to work out by 80%. Which is helpful when approaching 1 million points.…