0

I am currently using Tetgen to generate Delaunay triangulation, but since I have to use C programming language and not C++, is there a way in which I can call Tetgen from C?

Thank you in advance

NotMe
  • 65
  • 5
  • Well, you can wrap c++ API's with plain c API's but that's a very broad topic and may not get a concise answer here. – πάντα ῥεῖ Feb 08 '16 at 19:38
  • 1
    Maybe [this](http://stackoverflow.com/questions/2045774/developing-c-wrapper-api-for-object-oriented-c-code) Q&A can help you get started. – triple_r Feb 08 '16 at 19:39
  • 1
    In order to call tergen, you will have to write *some* C++ code. Why do you have to use C? – n. m. could be an AI Feb 08 '16 at 20:32
  • The library will form part of a bigger code, which is in C, so I am 'obliged' to use C... Will the Api interface modify the original library? – NotMe Feb 09 '16 at 09:59
  • Having some part of your project in C does not preclude you from writing other parts in C++. If it's OK to use C++ code written by somebody else (Tetgen), it should be OK to use C++ code written by yourself. – n. m. could be an AI Feb 11 '16 at 07:40

0 Answers0