archz2
February 25, 2019, 3:43pm
1
Recently from a youtube tutorial, I learnt how to do colour grading based on steepness of the slope. I am attaching the script that I made step-by-step.
However, I’m unable to figure out how I can designate specific colours like the following.
Slopes upto 10% - Colour 1
Slopes greater than 10% upto 20% - Colour 2
Slopes greater than 20% upto 30% - Colour 3
Slopes greater than 30% upto 40% - Colour 4
Slopes greater than 40% upto 50% - Colour 5
terrainmoddy.gh (8.5 KB)
Please provide help.
chanley
(Chris Hanley)
February 25, 2019, 3:54pm
2
Here is an example of one approach.
In addition to the suggestions already given, In order to get “percent” VS “degree” you just need to do a little math in between.
[SlopeAnalysis-PercentAndDegree]
This example uses one custom component to explode the mesh. There are a few others around.
Also, depending on the types of surfaces/meshes you are working with, I have found this to help speed things up a bit. Explode the mesh, decompose and measure against another vector(as described in other examples), then average them togethe…
1 Like
old_taz
February 25, 2019, 4:01pm
3
Unless your goal is to learn by setting up your own definition you could also check out the Bison plug-in.
Bison is a landscape architecture plugin for Grasshopper + Rhino 6. It features tools for terrain mesh creation, analysis, editing, and annotation.
It focuses on a continuous workflow from mesh analysis to editing and works to keep components concise and intuitive. The analysis tools include slope and aspect visualization, cut/fill calculations, watershed modeling and more, while the editing components transform the mesh based on curves and points. Bison also includes tools for importing landsc…
1 Like
archz2
March 1, 2019, 4:58pm
4
Thanks! I’ll try this plugin and get back to you.
archz2
March 1, 2019, 4:58pm
5
Thanks for sharing this link. I’ll try all the methods and get back here on this post to share my experience…
chanley
(Chris Hanley)
March 1, 2019, 5:30pm
6
No problem. Also, the custom “explode mesh” component in that example is kind of overkill. You can make your own ghpython component using the following: (input M type hint set to Mesh)
import Rhino
M.Unweld(0, True)
a = M.ExplodeAtUnweldedEdges()
archz2
April 6, 2019, 4:46pm
7
How do I give specific colours for specific slope percentage sets?
Bison seriously looks the best option instead of the one long script that I posted in the original post.
e.g. 0-10% green
10-20% is blue
20-30% is dark blue, so on and so forth?