liagson / concavehullgenerator Goto Github PK
View Code? Open in Web Editor NEWConcave hull for C# (Comes with a Unity demo)
License: Other
Concave hull for C# (Comes with a Unity demo)
License: Other
Do you have an idea what would be involved with adding 3D support for this?
Is it possible to make bigger area, concave hull with buffer?
So corner points needs to be moved more out for some buffer number...
First thank you for your amazing work
I am trying to use your library but i got this error, and I couldn't find this function anywhere
The name 'LineIntersectionFunctions' does not exist in the current context.
Am I missing something here ?
Hi,
I am trying to use concavity diferent than 1 and I am getting error.
Points which I am using are here "dot_list" points.txt
Graphical image of points points
//geometry
List<Position> lineCoordinates2 = new List<Position>();
int scaleFactor = 1;
double concavity = 0;
bool isSquareGrid = false;
Hull.setConvHull(dot_list);
Hull.setConcaveHull(Math.Round(Convert.ToDecimal(concavity), 2), scaleFactor, isSquareGrid);
List<PointLatLng> coordinatesGeo = new List<PointLatLng>();
for (var i = 0; i < Hull.hull_concave_edges.Count; i++)
{
for (var j = 0; j < Hull.hull_concave_edges[i].nodes.Length; j++)
{
PointLatLng myPosition = new PointLatLng(Hull.hull_concave_edges[i].nodes[j].x, Hull.hull_concave_edges[i].nodes[j].y);
if (!coordinatesGeo.Contains(myPosition))
{
GPoint gp = MainForm.instance.gMapControl.FromLatLngToLocal(myPosition);
int index = uav.getInsertIndex(coordinatesGeo, new Accord.Point(gp.X, gp.Y));
if (index >= 0 && index <= coordinatesGeo.Count)
coordinatesGeo.Insert(index, myPosition);
}
}
}
What I am doing wrong? Is the Node id important and I need to set it? Currently it fix the error but it does not help to calculate correct points according to concavity.
It looks like something is wrong with calculation, because if I move points a littlebit it calculate ok.
Picture Example2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.