Commit c2d3d7c9 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey

correction import (généricité type REAL)

parent e01c7393
......@@ -381,12 +381,10 @@ bool MeshTablesSurface<PFP>::importOff(const std::string& filename, std::vector<
template<typename PFP>
bool MeshTablesSurface<PFP>::importMeshBin(const std::string& filename, std::vector<std::string>& attrNames)
{
std::cout << filename << std::endl ;
AttributeHandler<typename PFP::VEC3> positions = m_map.template getAttribute<typename PFP::VEC3>(VERTEX, "position") ;
if (!positions.isValid())
{
std::cout << "Not valid" << std::endl ;
positions = m_map.template addAttribute<typename PFP::VEC3>(VERTEX, "position") ;
}
......@@ -427,7 +425,6 @@ bool MeshTablesSurface<PFP>::importMeshBin(const std::string& filename, std::vec
verticesID.push_back(id) ;
}
std::cout << positions[0] << std::endl ;
// Read foreach face
m_nbEdges.reserve(m_nbFaces) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment