quick and dirty fix for polygon import from trimesh
This commit is contained in:
parent
82ce871150
commit
f83bdf0815
|
|
@ -141,6 +141,7 @@ namespace tri {
|
||||||
{
|
{
|
||||||
std::vector<typename TriMeshType::VertexPointer> vs;// vertices of the polygon
|
std::vector<typename TriMeshType::VertexPointer> vs;// vertices of the polygon
|
||||||
ExtractPolygon(&*tfi,vs);
|
ExtractPolygon(&*tfi,vs);
|
||||||
|
if (vs.size() > 3)
|
||||||
std::reverse(vs.begin(), vs.end());
|
std::reverse(vs.begin(), vs.end());
|
||||||
//now vs contains all the vertices of the polygon (still in the trimesh)
|
//now vs contains all the vertices of the polygon (still in the trimesh)
|
||||||
if (vs.size()==0)continue;
|
if (vs.size()==0)continue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue