| 191 | |
| 192 | |
| 193 | static 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 | |
| 217 | Map* HypothesisGenerator::construct_bbox_mesh() { |
no outgoing calls
no test coverage detected