GithubHelp home page GithubHelp logo

jorarc / gh-meshcomponents Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 19 KB

Algorithm to calculate the geodesic distance of a mesh

License: GNU General Public License v3.0

C# 100.00%
computational-geometry geodesic-distances mesh rhino3d

gh-meshcomponents's Introduction

Geodesic Distance

This documentation covers the C# script used in Grasshopper for calculating approximate geodesic distances from a specified point on a mesh to all other vertices. The script is designed to work within the Grasshopper environment and is optimized for performance with large meshes.

The script implements a version of Dijkstra's algorithm using a custom priority queue. It is tailored for use with RhinoCommon's mesh data structures in Grasshopper and is designed to calculate distances efficiently, even for large meshes.

image description

  • Input: Mesh (Mesh):
    • ๐ŸŸฆ Type: Rhino.Geometry.Mesh
    • ๐Ÿ“ Description: The input mesh on which geodesic distances are to be calculated.
  • Input: StartPoint (Point3d):
    • ๐Ÿ”ต Type: Rhino.Geometry.Point3d
    • ๐Ÿ“ Description: The starting point on the mesh from which distances to all vertices are calculated.
  • Output: U (object)
    • ๐ŸŸฉ Type: Array of Grasshopper.Kernel.Types.GH_Number
    • ๐Ÿ“ Description: An array containing the calculated geodesic distances from the StartPoint to each vertex in the Mesh. The distances are represented as Grasshopper numbers for compatibility with other Grasshopper components.

gh-meshcomponents's People

Contributors

jorarc avatar

Stargazers

 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.