Construction of retaining walls on the terrain

Hello everybody!
I create retaining walls along the road, in those places where it is necessary.
I had a problem with undercutting the terrain with retaining walls.

This part of the script is responsible for creating the road.

The principle of the construction of retaining walls consists in the fact that on the borders of the road, fathers are created, which are projected onto the terrain. Next, the length between the points is measured and sorted. The minimum length between points is set here.

In the next step, the lengths are sorted according to the direction of their vectors (that is, those above the road level and below).

Next, the geometry of the retaining walls is created.

It is important that the angle of relief cutting should be 45 degrees. Therefore, I create a vector from points on the edges of the road and retaining walls at an angle of 45 degrees, and at the intersection of the vectors with the relief, I find points.

I also found a C# script that creates a mesh based on points that lie on the faces of the road and retaining walls and points on the terrain.

The problem is that when creating a relief cut, the relief is not correctly connected to the retaining walls.
If anyone knows how to solve this problem, please help.
Thank you


retaining walls.3dm (871.6 KB)
retaining wall.gh (121.7 KB)

You are using some plugins and so I can’t test your code.
Also, are you using a pirated copy of Rhino?
(And you should buy a windows licence…)

What does my version of the rhino have to do with my question?
You probably live in a peaceful country where there is no war and there is a job with a decent salary that allows you to purchase a licensed product. There is WAR in my country, I can’t find a job that will allow me to buy a license. Just last night, while you were writing your report, my city was attacked by the Russian Federation with Iranian Shahed 136 kamikaze drones (google it). Do you know how they sound? Like a moped driving down the road. Thank God no one died today. If you are doing well financially and can afford a license for a rhinoceros, then you can donate a couple of bucks to the Armed Forces of Ukraine.

I don’t have a politic opinion. At all. At wars, or whatever other matter.
Also, we are not in a generic forum, but the very official one, McNeel.
Coming here without a genuine install is… ā€œoddā€. (And that might be also why nobody replied yet…)


Anyway, my first comment was:

Can you attach a working copy of your problem without plugins?

It is a pity that you do not have a political opinion sitting in Italy. It is very unfortunate that you do not care about the fact that Russia is killing women, children, and your fellow architects. I have nothing against Italy, it is a beautiful country that I would like to visit someday.
This is an open forum that does not require identification by license number. If a person does not have a rhinoceros and reads this forum, is it also strange?
The part of the script that I downloaded seems to have no third-party plugins. There is only C# code that I found on the forum.
Thank you

By the way, this is not a commercial script. I am creating it to restore destroyed cities, after I finish it, I will offer it to the city council, to speed up the development of projects. It includes a complex of analyzes (wind flows, water flows, solar analysis), creates a relief based on horizontal lines, creates existing trees on the terrain, creates a construction model on the terrain, creates a road with normative dimensions on the terrain, creates retaining walls, calculates the volume of land mass

I believe no form of human organization/government will ever be good. I do not vote. I do not partecipate in politics. Humans ruling over humans will always be bad.
Killing is wrong. Always. Surely I nor human governments have a solution for wars.
This is my opinion, but also really OT. Let’s stop this here.


See my last question.

1 Like

I will say the last thing. What Russia is doing on the territory of Ukraine is not politics! This is the MURDER of the Ukrainian people. Murder is murder. Please don’t think of it as politics, it’s very important.
I do not doubt the victory of my country Ukraine, after which a job with a decent salary will appear to afford to buy a license for a rhinoceros. But for now, the program is as it is!

Длава Україні!
Длава нашим Š³ŠµŃ€Š¾ŃŠ¼!

2023-08-02 11_22_44-Window
2023-08-02 11_22_58-Window

Aaaah! exactly)
They can be ignored

2023-08-02 11_34_43-Window
I’m not able to recreate what you shown in your screenshots… there are clusters with missing plugins inside, it’s hard to dig where something went wrong…
(that’s why I told you this in my first comment…)

You probably need to download the ā€œpufferfishā€ plugin