首页 > TAG信息列表 > openMesh

如何将OpenMesh中的网格结构转化为CGAL中的网格结构(精简版)

本来准备封装一个函数,用来把OpenMesh中的网格结构转化为CGAL中的网格结构,然后发现没必要,大家可以看看下面这三个没必要的文件 mian.cpp 1 #include <iostream> 2 #include <OpenMesh/Core/IO/MeshIO.hh> 3 #include "OMmeshToCGALmesh.h" 4 5 6 int main() { 7 8

OpenMesh中如何利用CGAL提供的API定位距离给定点最近的面

关键代码核心逻辑 step 1 - 将OpenMesh:TriMesh的mesh转化为CGAL:Surface_mesh<Point_3>的mesh step 2 - 将三个轴上的坐标转化成CGAL:Point step 3 - 调用PMP::locate() step 4 - CGAL:Face_location转化为OpenMesh:faceHandle remark : 输入的是OpenMesh类型的mesh,输出的是Op