cgal - [cgal]; 3D Delaunay 三角剖分
问题描述
我正在尝试进行 3D Delaunay 三角剖分,我需要获得该三角剖分的外心。我是这样做的:
typedef CGAL::Delaunay_triangulation_3<K, Tds> Triangulation;
// Construct the triangulation in parallel
Triangulation T(V.begin(), V.end());
assert(T.is_valid());
centros.open("centros.txt");
//With this I would obtain the circumcenters of the triangulation?:
for (Triangulation::Finite_cells_iterator it = T.finite_cells_begin(); it != T.finite_cells_end(); it++)
{
cout << it->circumcenter() << " / " << T.dual(it) << endl;
}
但是,我获得的中心距离我的初始点太远了,所以我怀疑这是否是获得球体外心的正确方法。有什么帮助吗?谢谢。
解决方案
推荐阅读
- mongodb - Mongoose - 修改帖子查找结果
- maven - 由于管道中未发布的依赖项,无法发布项目
- python - 如何修复 TypeError:'intancemethod' 对象在 Python/Fiji 中是不可编写脚本的错误
- node.js - NodeJS 访问 Oracle DB getConnection() 阻塞,几个小时后浏览器出现“服务器不响应”消息
- java - 如何在没有 labelmaps.txt 文件的情况下使用 Tensorflow lite 检测对象地标?
- html - 表格单元格周围的第二个框架(仅在 Chrome 中),如何摆脱?
- python-3.x - App Engine:如何为烧瓶应用配置 app.yaml?错误:未找到 index.html
- proxy - 当代理设置为 true 时,Nuxt 代理将 POST 更改为 GET
- reactjs - 如何使用 react-router 使用来自单独页面的信息更新页面?
- javascript - 如何在 Javascript 中向 btn.innerHTML 添加函数?