Code Monkey home page Code Monkey logo

gh-topography-surface-generator's Introduction

Topography Surface Generator

GHPython component to generate NURBS topography surface

How to use

How to open

You can drag and drop the .ghpy file inside the "GH Component" folder into the Grasshopper environment. Then you can find the component in the "AliT Toolkit > Site" in the Grasshopper tabs. Or you can use the source .gh file in the "source code" folder.

Inputs

topo_curves

A list of topography contour curves in their actual height.

boundary_crv

A planar rectangle curve describing the boundaries of the generated surface.

grid_size

An approximate distance between control points. Smaller number results in a more accurate surface but it also takes more time to calculate.

Outputs

topo_surface

A NURBS surface generated from control pointes at the topography heights.

Notes

  • The code is developed and tested in Rhino 7
  • The code is written in Grasshopper default Python component.
  • The current version calculates the surface points' height based on a weighted average of its distance to the topography curves. This results in a linear change in height. Probebly a non-linear formula would fill the gaps more naturally but that's for another day.

Demo

https://vimeo.com/909340113?share=copy

gh-topography-surface-generator's People

Contributors

alitghomi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.