| 33 | //} |
| 34 | |
| 35 | std::vector<VectorF> IsotropicDofExtractor::extract_dofs(const VectorF& v) { |
| 36 | const size_t dim = m_wire_network->get_dim(); |
| 37 | assert(v.size() == dim); |
| 38 | if (dim == 3) { |
| 39 | return extract_3D_dofs(v); |
| 40 | } else if (dim == 2) { |
| 41 | return extract_2D_dofs(v); |
| 42 | } else { |
| 43 | std::stringstream err_msg; |
| 44 | err_msg << "Unsupported dim: " << dim; |
| 45 | throw NotImplementedError(err_msg.str()); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | void IsotropicDofExtractor::check_bbox_is_isotropic() const { |
| 50 | VectorF half_size = 0.5 * (m_bbox_max - m_bbox_min); |
no test coverage detected