Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
VS2012 C ++是否有Delaunay三角剖分的任何代码/库?我希望可以在不使用第三方二进制文件的情况下实现轻巧的效果。
我尝试了许多方法(Triangle,A Delaunay triangulation function in C,poly2tri,Geom Fade 2D)。它们中的许多只是不容易使用,否则与vs2012不兼容。
有人有建议吗?非常感谢
编辑:三角形的问题:
有一个三角形网格生成器(Shewchuk,CMU),“ Triangle”,由于其轻巧而受到人们的推荐。它是用C编写的。但是我不能在VS2012 C ++项目中使用它。我正在使用x64平台进行编译。我使用的是Windows 7 64位。
基本上,我将triangle.c编译为描述的makefile。因此,生成了triangle.o。然后我
1.在我的解决方案中添加了triangle.o作为其他依赖项,
2.在我的项目中添加了triangle.c和triangle.h。
3.将C / C ++预编译头选项中的triangle.c更改为“不使用预编译头”
然后我得到了很多这样的错误:
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
VS2012 C ++是否有Delaunay三角剖分的任何代码/库?我希望可以在不使用第三方二进制文件的情况下实现轻巧的效果。
我尝试了许多方法(Triangle,A Delaunay triangulation function in C,poly2tri,Geom Fade 2D)。它们中的许多只是不容易使用,否则与vs2012不兼容。
有人有建议吗?非常感谢
编辑:三角形的问题:
有一个三角形网格生成器(Shewchuk,CMU),“ Triangle”,由于其轻巧而受到人们的推荐。它是用C编写的。但是我不能在VS2012 C ++项目中使用它。我正在使用x64平台进行编译。我使用的是Windows 7 64位。
基本上,我将triangle.c编译为描述的makefile。因此,生成了triangle.o。然后我
1.在我的解决方案中添加了triangle.o作为其他依赖项,
2.在我的项目中添加了triangle.c和triangle.h。
3.将C / C ++预编译头选项中的triangle.c更改为“不使用预编译头”
然后我得到了很多这样的错误:
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(430): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(497): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(497): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(498): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(498): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(2517): warning C4391: 'SHORT _InterlockedIncrement16(volatile SHORT *)' : incorrect return type for intrinsic function, expected 'short'
最佳答案
我已经有好几年没有使用VS了,但是上一次我却很乐意将我的应用程序与Triangle链接起来,我们对结果非常满意。
您看到的兼容性问题是什么?