MCPcopy Create free account
hub / github.com/LiangliangNan/PolyFit / new_halfedge_between

Method new_halfedge_between

code/model/map_builder.cpp:321–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321Map::Halfedge* MapBuilder::new_halfedge_between(
322 Vertex* from, Vertex* to
323 ) {
324
325 ogf_assert(from != to) ;
326
327 // Non-manifold edges have been removed
328 // by the higher level public functions.
329 // Let us do a sanity check anyway ...
330 ogf_assert(find_halfedge_between(from, to) == nil) ;
331
332 Map::Halfedge* result = new_halfedge() ;
333 set_halfedge_facet(result, current_facet_) ;
334 set_halfedge_vertex(result, to) ;
335
336 Map::Halfedge* opposite = find_halfedge_between(to, from) ;
337 if(opposite != nil) {
338 make_opposite(result, opposite) ;
339 }
340
341 star_[from].push_back(result) ;
342 set_vertex_halfedge(to, result) ;
343
344 return result ;
345}
346
347Map::Halfedge* MapBuilder::find_halfedge_between(
348 Vertex* from, Vertex* to

Callers

nothing calls this directly

Calls 7

find_halfedge_betweenFunction · 0.85
new_halfedgeFunction · 0.85
set_halfedge_facetFunction · 0.85
set_halfedge_vertexFunction · 0.85
make_oppositeFunction · 0.85
set_vertex_halfedgeFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected