Brought back extractSubset from Thermite. Fixed to work with PositionMaterial vertices. Also made it a free function.

This commit is contained in:
David Williams
2011-01-23 17:41:06 +00:00
parent c1ebed678e
commit ae3ac704e4
3 changed files with 73 additions and 3 deletions

View File

@ -93,6 +93,9 @@ namespace PolyVox
//exist on a material boundary do not count.
std::set<uint8_t> m_mapUsedMaterials;
};
template <typename VertexType>
polyvox_shared_ptr< SurfaceMesh<VertexType> > extractSubset(SurfaceMesh<VertexType>& inputMesh, std::set<uint8_t> setMaterials);
}
#include "SurfaceMesh.inl"