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

Function check_source_planes

code/method/hypothesis_generator.cpp:193–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193static void check_source_planes(Map* mesh) {
194 MapFacetAttribute<Plane3d*> face_supporting_plane(mesh, "FacetSupportingPlane");
195 MapHalfedgeAttribute< std::set<Plane3d*> > edge_source_planes(mesh, "EdgeSourcePlanes");
196 MapVertexAttribute< std::set<Plane3d*> > vertex_source_planes(mesh, "VertexSourcePlanes");
197
198 FOR_EACH_FACET(Map, mesh, it) {
199 if (face_supporting_plane[it] == nil)
200 std::cerr << "fatal error: face_supporting_plane[it] == nil" << std::endl;
201 }
202
203 FOR_EACH_HALFEDGE(Map, mesh, it) {
204 const std::set<Plane3d*>& tmp = edge_source_planes[it];
205 if (tmp.size() != 2)
206 std::cerr << "fatal error: edge_source_planes[it].size() != 2. Size = " << tmp.size() << std::endl;
207 }
208
209 FOR_EACH_VERTEX(Map, mesh, it) {
210 const std::set<Plane3d*>& tmp = vertex_source_planes[it];
211 if (tmp.size() != 3)
212 std::cerr << "vertex_source_planes[it].size() != 3. Size = " << tmp.size() << std::endl;
213 }
214}
215
216
217Map* HypothesisGenerator::construct_bbox_mesh() {

Callers 2

compute_proxy_meshMethod · 0.85
generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected