corrected 1 bug in ImportFromPolyMesh
This commit is contained in:
parent
811ac9b940
commit
af8ce3b7e2
|
@ -95,7 +95,7 @@ namespace tri {
|
||||||
}
|
}
|
||||||
std::vector<int> faces;
|
std::vector<int> faces;
|
||||||
TessellatePlanarPolygon3(points,faces);
|
TessellatePlanarPolygon3(points,faces);
|
||||||
for(size_t i = 0; i<faces.size()/3;i+=3){
|
for(size_t i = 0; i<faces.size();i+=3){
|
||||||
TriFaceIterator tfi = Allocator<TriMeshType>::AddFace(tm,
|
TriFaceIterator tfi = Allocator<TriMeshType>::AddFace(tm,
|
||||||
tri::Index(pm,(*fi).V( faces[i+0] )),
|
tri::Index(pm,(*fi).V( faces[i+0] )),
|
||||||
tri::Index(pm,(*fi).V( faces[i+1] )),
|
tri::Index(pm,(*fi).V( faces[i+1] )),
|
||||||
|
|
Loading…
Reference in New Issue