| 54 | } |
| 55 | |
| 56 | void TriangleElements::check_mesh() { |
| 57 | if (m_mesh->get_num_faces() == 0) { |
| 58 | throw RuntimeError("Mesh contains zero faces."); |
| 59 | } |
| 60 | if (m_mesh->get_vertex_per_face() != 3) { |
| 61 | throw RuntimeError("Mesh is not a triangle mesh."); |
| 62 | } |
| 63 | if (!m_mesh->has_attribute("face_area")) { |
| 64 | m_mesh->add_attribute("face_area"); |
| 65 | } |
| 66 | } |
nothing calls this directly
no test coverage detected