Dears,
Context:
I have 02 3D curves that are the bottom reference of the road.
I want to define a flat slab below the road. The slab must to put right angle to keep the thickness of variable part as small as possible and the max distance as minimum as possible.
What I did:
I’m trying to find the plane that the total distances from the curve to the plane as small as possible. (the plane can not cut the curves).
I used Galapagos to optimize the total distance. (see the GH file).
Findplane.gh (25.9 KB)
The issue:
Each time I run, I find a new plane that is not fit with the old plane. (sometime it can not finish the test. )
I checked and the result is depend on:
- The 03 points that use to define initiation plane. I took 02 lowest points of each curve and average point of 02 curves.
- The start number of genes pool.
Does anyone have better idea to make this approach more sustainable ?
Or another idea to find the plane.
Thank you,