Git Product home page Git Product logo

zishun / geodesic_matlab Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 9.0 270 KB

Exact geodesic for triangular meshes implemented by Danil Kirsanov

Home Page: https://mathworks.com/matlabcentral/fileexchange/18168-exact-geodesic-for-triangular-meshes

License: BSD 2-Clause "Simplified" License

C++ 80.02% MATLAB 17.18% Makefile 0.45% C 2.35%
geodesic triangular-meshes matlab geometry-processing shortest-path

geodesic_matlab's Introduction

geodesic_matlab's People

Contributors

zishun avatar

Stargazers

 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

geodesic_matlab's Issues

when running example 1,3,5, error occured. Error using calllib. The pointer type must match the data type

Error using calllib.
The pointer type must match the data type

Error geodesic_distance_and_source (line 19)
[num_vertices, d, s] = calllib(geodesic_library, 'distance_and_source_for_all_vertices', algorithm.id, tmp, tmp1);

Error example3 (line 30)
[source_ids, distances] = geodesic_distance_and_source(algorithm); %for every vertex, figure out which source it belongs to

Could you please help me solve this problem? Thank you~

The error still exists

I did what you said, but there were still mistakes.
{
索引超出矩阵维度。

出错 loadlibrary>getLoadlibraryCompilerConfiguration (line 520)

出错 loadlibrary (line 263)

出错 geodesic_new_mesh (line 7)
loadlibrary([geodesic_library '.dll'], hfile);

出错 example1 (line 13)
mesh = geodesic_new_mesh(vertices,faces); %initilize new mesh
}

Matlab example2 assertion failed!

When the dll built with debug configuration is used, Matlab example2 pops up a window saying that

“Assertion failed! geodesic_algorithm_exact.h Line:1166 
Expression:p->start() < p->stop()” 

Reasonable results can still be obtained if you click the button Ignore.
If the dll built with release is used, Matlab will crash.

Is it necessary to have geodesic_algorithm_exact.h Line:1166?

assert(p->start() < p->stop());

Of course it is a straightforward workaround to comment out that line, which has been tested.

I can do nothing!

Error geodesic_new_mesh (line 7)
loadlibrary([geodesic_library '.dll'], hfile);
when run "example1.m"

and please tell me how to do this:
{
Build
Windows + MSVC
C++ executable

Build projects example0 and example1 in geodesic.sln.
MATLAB API functions

Build project geodesic in geodesic.sln.
Copy built library geodesic_(debug|release).dll to the folder matlab.
Run example[1-5] in Matlab.
}

geodesic_new_mesh causes segmentation fault for some meshes

Hi, thank you for creating geodesic_matlab!

For some inputs, geodesic_new_mesh causes a segmentation fault. This issue occurs on line 32, where the library is called:

[id, tmp1, tmp2, num_edges, edges] = calllib(geodesic_library, 'new_mesh', length(p)/3, p, length(t)/3, t, 1, tmp);

To reproduce:

load points.mat
load tri.mat
geodesic_new_mesh(points, tri)

I've included points.mat, tri.mat, and the crash report in new_mesh_crashes.zip

Any suggestions would be much appreciated!

Issues with M1 chip

Hi, thank you very much for the wonderful solutions on the geodesic distance computation toolbox. It works with windows and old macOS perfectly. However, I encountered issues with new Apple model with M1 chip. The error was:

"... (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), ..."

I would appreciate it sincerely if you can help with this issue. Many thanks!

I meeting a Problem

Sir or Madam:
At first, thanks for your effort.
Well I met a problem when using your code. Honestly I am not a skillful programmer. I only make some basic appliction. I intalled MATLAB 2016b and VS2013, I downloaded your code, and I followed your advice:
1.Build projects example0 and example1 in geodesic.sln.
2.Copy built library geodesic.dll to the folder matlab.
then I run example1in Matlab. But the matlab shows

   >> example1
   错误使用 loadlibrary
   加载库 "geodesic_debug.dll" 时出错
   找不到指定的模块。
   出错 geodesic_new_mesh (line 7)
    loadlibrary([geodesic_library '.dll'], hfile);
   出错 example1 (line 13)
   mesh = geodesic_new_mesh(vertices,faces);         %initilize new mesh
   原因:
       错误使用 loaddefinedlibrary
       找不到指定的模块。   

I don know whats wrong?
btw, My email address is [email protected],waiting for you reply, thank you

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.