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

Method export_voxels

src/IO/VEGAParser.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void VEGAParser::export_voxels(int* buffer) {
194 size_t count = 0;
195 for (VoxelList::const_iterator vi=m_voxels.begin();
196 vi != m_voxels.end(); vi++) {
197 const VectorI& v = *vi;
198 assert(v.size() == m_vertex_per_voxel);
199 std::copy(v.data(), v.data() + m_vertex_per_voxel,
200 buffer + count * m_vertex_per_voxel);
201 count++;
202 }
203}
204
205VEGAParser::AttrNames VEGAParser::get_attribute_names() const {
206 return AttrNames();

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected