MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / look_up_voxels

Method look_up_voxels

tools/Assembler/Materials/ElementWiseMaterial.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39VectorI 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
52Float ElementWiseMaterial::compute_cell_size() {
53 if (!m_material_mesh->has_attribute("edge_length")) {

Callers

nothing calls this directly

Calls 1

get_items_near_pointMethod · 0.80

Tested by

no test coverage detected