2016-04-07 2 views
0

三角形メッシュの変形の場合CGALはブーストのvertex_iterator & vertex_descriptorを使用します。 x, y, zブーストイテレータ/記述子を指し示す頂点の値を取得したいと思います。CGAL&Boost - vertex_iterator&vertex_descriptor

これらを取得する方法x, y, zポイント/頂点の値は?

vertex_iterator/vertex_descriptorは私が慣れていたCGALとは異なりますが、私はブーストの実装を得ていません。

ブーストの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を入手できますか?もしそうなら、どのように?

答えて

0

CGAL::Polyhedron_3の場合はcontrol_3->point()とします。 CGAL::Surface_meshsmの場合はsm.point(control_point)とします。

+0

ありがとうございました。 –

関連する問題