Giter Site home page Giter Site logo

alpha-shape's People

Contributors

mikolalysenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alpha-shape's Issues

How to use alpha-shapes with GeoJSON

The demo you provided looks great. Good work!

I tried to use your code to generate an alpha-shape around geographical coordinates, but here I am a bit stuck on how to use your return value.
My code uses GeoJSON, so I first extracted points to calculate the alpha-shape from.

I am not sure what the returned value means, but first I thought that the returned array will contain coordinates as well. That's obviously not the case, since the values returned are far off the coordinates given (my coordinates are around 11.35 and 46.50, the values returned are often above 100).
So I thought that the actual coordinates need to be read from the input value (that the returned array references the values in the input array).
Using the parameter this way works somehow, but does not deliver anything near to the result I expected.

I created a JSFiddle 1 with the input array and the expected result: http://jsfiddle.net/Niko_K/weqfy733/
Could you please elaborate a bit on how to use your function's return value and how to exactly use you code to create an alpha-shape that is near the exact solution given in the JSFiddle (and not the red one that I get when calling your function with an alpha value of 10)?

Bug in the demo page

In the demo page, clicking on the slider to change alpha value, unintentionally creates a new point and modifies the set on which the test has to be done.

3D

Can I make a 3D shape from 3D point cloud with this?

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.