sakov / nn-c Goto Github PK
View Code? Open in Web Editor NEWNatural Neighbours interpolation
Natural Neighbours interpolation
Looking for some help compiling for Windows 10. I compiled it in Linux with no problems but am struggling to get a version working in Windows using mingw64 and msys2. The command line utility nnbathy compiled and runs but does not perform the interpolation. The compiled code for the minimal ellipse construction works. When compiling, there were a few warnings about redefining "isnan." Any guidance would be very much appreciated.
Line 31 of triangle.c clearly state that:
"Distribution of this code as part of a commercial system is permissible ONLY
BY DIRECT ARRANGEMENT WITH THE AUTHOR."
The package as a whole marked as MIT License would give misleading message that
may cause unintended license violation of using it.
Original issue reported on code.google.com by [email protected]
on 11 Apr 2012 at 2:52
I am using nn-c on Windows 10 64bit.
When I have big point clouds I get segmentation faults.
The problem is that a long on linux is 64bit but 32bit on windows.
I solved the problem by replacing all longs with long long in triangle.c.
The problem might occur in other parts of the code that I am not using.
I thought that others might find this useful.
-What steps will reproduce the problem?
Make a static 64-bit lib in VC++ 2012 using the source code. Write a simple
main stub, link to the lib and then call nnpi_interpolate_points() in code.
- What is the expected output? What do you see instead?
The call shall succeed, but instead it crashes in transfernodes() at line:
/* Read the vertex coordinates. */
x = vertexloop[0] = pointlist[coordindex++];
- What version of the product are you using? On what operating system?
Using VC++ 2012, 64-bit. 32-bit build works as expected.
- Please provide any additional information below.
Does the lib ever work in 64-bit mode? I think something needs to be change in
the Triangle code to make it work in 64-bit mode.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2015 at 9:36
a sample, input data:
A:100 100 1
B:100 200 1
C:200 150 1
interpolation point at [135,185]
if i use a geometry intersect algorithm, the right weights like A:5% B:70%
C:25%.
if i use this program, the weight of A is negative.
so, i think the Watson's algorithm (Compound Signed Decomposition) just work
at multiple vertex, maybe.
Henry Ho
Original issue reported on code.google.com by [email protected]
on 9 Sep 2013 at 11:17
Hello
Can nn-c be used in a commercial product for free?
Thank you.
Best regards
Toke
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.