CGAL & Boost - vertex_iterator & vertex_descriptor
CGAL & Boost - vertex_iterator & vertex_descriptor
对于三角形网格的变形,CGAL使用vertex_iterator
&来自升压的vertex_descriptor
。我想得到boost迭代器/描述符指向的顶点的x, y, z
值。
如何获得点/顶点的x, y, z
值?
vertex_iterator
/vertex_descriptor
与我习惯的CGAL不同,但我不太了解boost实现。
有人知道如何使用boost的vertex_iterator
/vertex_descriptor
来获得点的坐标吗?
在下面的片段中,您将获得一个顶点描述符。
// Add another control vertex which requires another call to preprocess.
vertex_descriptor control_3 = *CGAL::cpp11::next(vb, 92);
deform_mesh.insert_control_vertex(control_3);
我可以使用此描述符获取Point_3
吗?如果是,怎么办?
如果是CGAL::Polyhedron_3
,则调用control_3->point()
。如果是CGAL::Surface_mesh
sm
,则调用sm.point(control_point)
。
相关文章:
- 提升图库示例 凯文培根的六度:示例中的 Vertex() 是什么
- 图形"Vertex cover"暴力算法
- OpenGL,Cubemap,Vertex和FragmentShader
- 为什么 VERTEX 着色器中的矩阵乘法无法正常工作
- 尝试使用 SFLM 顶点时出错:"Vertex is not a member of sf"
- 在 OpenGL 计划链路状态检查期间"No definition of main in vertex shader"
- 如何通过 int-descriptor 找出文件名?(或"can I..?")
- 在调用GllinkProgram()之前,Vertex着色器和碎片着色器(S)无法编译
- 在多线程环境中,什么可能导致"bad file descriptor"?
- 尝试使用 execp、dup2 和管道实现 shell,挂起或"bad file descriptor"
- VS 2013 DirectX Project Vertex着色器文件缺失
- 使用 boost::asio 和 boost::thread 时"Bad file descriptor"
- 似乎无法使用<VERTEX>迭代器在 for 循环中打印列表顶点?C++
- 比较 descriptor.type 和 descriptor.cols 后的 OpenCV 分割错误
- OpenGL HeightMap with vertex shader and QGLShaderProgram
- 使用着色器渲染三角形时"vertex colored" OpenGL "black screen"
- 生成文件'fdopen: Bad file descriptor'错误
- C++ 成员引用基类型'Vertex *const'不是结构或联合
- DirectX Vertex中的RHW是什么
- 访问子线程中的套接字描述符时"Bad file descriptor"