作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<分区>
是否有适用于 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 位系统。
基本上,我按照 makefile 中描述的那样编译 triangle.c。于是,生成了一个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'
我有一个绕其 3 轴旋转的立方体,当 key[a] == true 时,它会向左旋转,就好像它正在滚动一样。将立方体向任何方向旋转 45 度,将其向后旋转 90 度,以获得继续的错觉。这将保持 3
我是一名优秀的程序员,十分优秀!