void set_face( Face_handle g) { f = g; } bool is_border() const { return f == Face_handle(); } }; // Replace halfedge in the default items type. struct My_items : public CGAL::HalfedgeDS_items_2 { template <class Refs, class Traits> struct Halfedge_wrapper { typedef My_h...
normalize_border_is_valid()提供对normalize_border()排序结果的检查,满足normalize_border_is_valid()的Polyhedron_3方可调用边计数size_of_border_edges(),半边计数size_of_border_halfedges(),边界边迭代border_edges_begin(),边界半边迭代border_halfedges_begin() 半边的is_border()检查自身是否为边界边,is_bo...
读取网格:使用PMP::IO::read_polygon_mesh读取输入的 OFF 文件,并检查网格是否为三角网格。 标记约束边:创建一个属性映射is_constrained_map,并标记所有边界边为约束边。 进行各向同性网格重构:调用PMP::isotropic_remeshing进行网格重构,指定目标边长和迭代次数,并传递约束边映射。
多边形表面是可以有洞的,由于每一个facet都不准有洞,每一个facet至少需要两个facet和它相邻。一个洞(hole)周围的半边被叫做border halfedge,border halfedge是没有incident facet的。一条edge是border edge当且仅当它的其中一条halfedges是border halfedges。一个表面如果不含border halfedges,那它就是封闭的。一...
this style is combined with the BS_LEFTTEXT style). • BS_DEFPUSHBUTTON 默认普通按钮 Creates a button that has a heavy black border. The user can select this button by pressing the ENTER key. This style enables the user to quickly select the most likely option (the default option). ...
It won't be if k==t but p->q is border // 若p-q-k是一个面的话,则不会出现k==t,而k->q是border或k==b而q->b是border的情况 boollIsFace = ( aProfile.vL() == k && aProfile.left_face_exists () ) || ( aProfile.vR() == k && aProfile.right_face_exists() ) ; ...
Computational Geometry Algorithms Library,CGAL,计算几何算法库。使用C++语言编写的,提供高效、可控的算法...
bool h.is_border() ; bool h.is_border_edge()判断h是否是border或者它的对边是否是border Halfedge_around_vetex_circulator h.vertex_begin()表示circulator of halfedges around the vertex (clockwise). Halfedge_around_facet_circulator h.facet_begin()表示circulator of halfedges around the facet (count...
PMP::split_long_edges(border, target_edge_length, mesh); PMP::isotropic_remeshing(faces(mesh), target_edge_length, mesh, CGAL::parameters::number_of_iterations(nb_iter) .protect_constraints(true)); return convert_mesh_from_CGAL_to_Numpy(mesh); ...
.size()==node_ids.size() );//对边上的交点进行排序sort_vertices_along_hedge(node_ids,hedge,tm,vpm,nodes);//save original face and nodes for face of hedge (1)// 保存hedge的面的原始面和nodes(1)if( !is_border(hedge,tm) ){