Skip to content

harveydevereux/AlphaShapes.jl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AlphaShapes.jl

Basic implementation of alpha shapes in 2+ dimensions

Travis CodeCov Doc
Build Status codecov

Functionality:

AlphaShape is a function which returns the alpha shape from a set of N dimensional points

AlphaShape(X;α=nothing,search=(0.0, 10.0),MaxSteps=100)

Returns a list of triangles (N+1 by 3) arrays with vertices addressed by [:, v].

Search is a tuple passed to the optimiser as the range of alpha values to search, whilst MaxSteps is the soft maximum number of steps the optimiser takes (may take many more if each iteration is very quick)

AlphaShapeArea(A)

Computes the area of the alpha shape from the triangulation returned from AlphaShape

Usage:

Given a set of N-D points, X ~ X by npoints, compute the alpha shape (by automatically optimising alpha) using

A = AlphaShape(X)

To choose an alpha value simply pass it

A = AlphaShape(X,α=1.0)

Deps:

"Normal donut" Example

example