| 37 | } |
| 38 | |
| 39 | VectorI ElementWiseMaterial::look_up_voxels(const VectorF& coords) const { |
| 40 | //const size_t dim = m_material_mesh->get_dim(); |
| 41 | //const size_t length = coords.size(); |
| 42 | //const size_t num_coords = length / dim; |
| 43 | //Eigen::Map<const MatrixFr> unflattened_coords(coords.data(), num_coords, dim); |
| 44 | |
| 45 | //m_locator.locate(unflattened_coords); |
| 46 | //return m_locator.get_enclosing_voxels(); |
| 47 | |
| 48 | VectorI candidates = m_grid->get_items_near_point(coords); |
| 49 | return candidates; |
| 50 | } |
| 51 | |
| 52 | Float ElementWiseMaterial::compute_cell_size() { |
| 53 | if (!m_material_mesh->has_attribute("edge_length")) { |
nothing calls this directly
no test coverage detected