Delaunay Trangulation for VS2012 C++?

Delaunay Trangulation for VS2012 C++?

本文关键字:C++ VS2012 for Trangulation Delaunay      更新时间:2023-10-16

VS2012 C++是否有Delaunay三角剖分的代码/库?在不使用第三部分二进制文件的情况下,我会期待一些轻松的东西。

我试过很多(三角形,C中的Delaunay三角函数,poly2tri,Geom Fade 2D)。其中许多只是不易使用,否则与vs2012不兼容;

有人有什么建议吗?非常感谢

编辑:三角形问题:

有一个三角形网格生成器(Shewchuk,CMU),"三角形",由于其重量轻而被人们推荐。它是用C编写的。但是我不能在我的VS2012 C++项目中使用它。我正在使用x64平台编译它。我使用的是Windows 7 64位。

基本上,我按照所描述的makefile编译了triangle.c。因此,生成了一个三角形.o。然后我1.在我的解决方案中添加了三角形.o作为附加依赖项,2.在我的项目中添加了三角形.c和三角形.h。3.将c/c++预编译头选项中的三角形.c更改为"不使用预编译的头">

然后我收到了很多这样的错误:

1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(430): error C2143: syntax error : missing ';' before '*'
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(497): error C2143: syntax error : missing ';' before '*'
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(497): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(498): error C2143: syntax error : missing ';' before '*'
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(498): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program Files (x86)Windows Kits8.0Includeumwinnt.h(2517): warning C4391: 'SHORT _InterlockedIncrement16(volatile SHORT *)' : incorrect return type for intrinsic function, expected 'short'

我已经好几年没有使用VS了,但上次我很高兴地将我的应用程序与Triangle链接起来,我们对结果非常满意。

您看到的兼容性问题是什么?