17
Guide: Contour Modelling Software: Grasshopper 28-10-2015

Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

Guide: Contour ModellingSoftware: Grasshopper 28-10-2015

Page 2: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 1

Tutorial Prerequisite

Contour lines from a GIS database in a drawing format such as .DWG or .DXF

Overview

Page 3: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 2Appendix

1. Open Rhino

2. Import .dwg or .dxf

3. Position

4. Form Boundary

5. Open Grasshopper

6. Input contour curves

7. Extract curve endpoints

8. Create terrain mesh

9. Reference contour boundary

10. Set accuracy

11. Bake to Rhino

12. Choose layer

13. Baked mesh

Example script

Pg 3

Pg 4

Pg 5

Pg 6

Pg 7

Pg 8

Pg 9

Pg 10

Pg 11

Pg 12

Pg 13

Pg 14

Pg 15

Pg 16

Page 4: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 3

Open Rhino, under Start> All Programs> Rhinoceros 5> Rhinoceros 5.0

1. OPEN RHINO

Page 5: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 4

Import contour fi le under [File] > [Import]

Navigate to the folder you saved the contour lines in and [Open]

2. IMPORT .DWG or .DXF

Page 6: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 5

Your contours will be imported as polylines.Make sure that:

The contours are located around the centre of the workspace.If not, type in “[Move]” to move the contours to the centre. The centre is marked with a dark grey grid.(This is to prevent display/meshing inaccuracy)

3. POSITION

Page 7: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 6

If not already done, trim the contour to your site boundary.

1. Draw an outline (using “Polyline” or “Rectangle” tool)2. Use the outline to trim the contours (type “[Trim]”)

Not required, but it is useful to draw a 3D boundary following the contours, or else your terrain model may be cut off at the corners.1. Draw with a polyline and have “OSnap” on, snapping to the Ends of the contours(Turn on “Osnap” at the bottom of the display port, and ensure “End” is ticked)

4. FORM BOUNDARY

Page 8: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 7

To open Grasshopper type “[grasshopper]”

5. OPEN GRASSHOPPER

Page 9: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 8

Input the contour curves by selecting all contours in Rhino, then right-click “[Curve]” component > Set Multiple Curves

6. INPUT CONTOUR CURVES

Page 10: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 9

To extract contour curve endpoints:

1. Plug curves into “[End Points]” component

2. Plug “end” into “[Points]” component

7. EXTRACT CURVE END POINT

Page 11: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 10

1. Connect points to “[Merge]” component

2. Connect Result to “[Delaunay Mesh]” component

The terrain will be displayed as a mesh (in red) once the contour lines are set.

Note that the corners are missing. If this is not an issue skip to step 13.Otherwise make sure you have a 3D boundary following the contour ends.

8. CREATE TERRAIN MESH

Page 12: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 11

To fi ll in the corners of the mesh reference the contour boundary lines:

Select boundary curve, then right click on “[Curve]” component, then “Set One Curve”.

9. REFERENCE CONTOUR BOUNDARY

Page 13: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 12

Control the level of detail by editing “Length” in “[Divide Length]” Component.

Plug sliders into “[Expression]” component and edit expression: right-click, “edit expression” > type x*y

Some models may be too large, and have too much detail to work with. (Too many polygon faces to render etc.)

For small sites the sampling length should be around 1 to 10 meters.For large sites the sampling length should be around 10 to 100 meters.

10. SET ACCURACY

Page 14: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 13

Your terrian mesh only exists as information in grasshopper.

To get it in to Rhino (to render, model with etc) you must bake it:

Right click on “[Delaunay Mesh]” component, click “Bake”.

11. BAKE TO RHINO

Page 15: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 14

Select which layer to bake the terrain mesh to:

This can be an existing layer in Rhino, or you can create a new layer.

12. CHOOSE LAYER

Page 16: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 15

You have now completed a terrain mesh model.

13. BAKED MESH

Page 17: Guide: Contour Modelling Software: Grasshopper · 2017. 5. 14. · 5. Open Grasshopper 6. Input contour curves 7. Extract curve endpoints 8. Create terrain mesh 9. Reference contour

P 16