Updated to reflect the Normal() -> TriangleNormal() change
This commit is contained in:
parent
62af567808
commit
63e67d5131
wrap/io_trimesh
|
@ -113,7 +113,7 @@ static int Save(SaveMeshType &m, const char * filename , bool binary =true, int
|
|||
for(FaceIterator fi=m.face.begin(); fi!=m.face.end(); ++fi) if( !(*fi).IsD() )
|
||||
{
|
||||
// For each triangle write the normal, the three coords and a short set to zero
|
||||
p.Import(vcg::NormalizedNormal(*fi));
|
||||
p.Import(vcg::TriangleNormal(*fi).Normalize());
|
||||
fwrite(p.V(),3,sizeof(float),fp);
|
||||
|
||||
for(int k=0;k<3;++k){
|
||||
|
@ -138,7 +138,7 @@ static int Save(SaveMeshType &m, const char * filename , bool binary =true, int
|
|||
for(fi=m.face.begin(); fi!=m.face.end(); ++fi) if( !(*fi).IsD() )
|
||||
{
|
||||
// For each triangle write the normal, the three coords and a short set to zero
|
||||
p.Import(vcg::NormalizedNormal(*fi));
|
||||
p.Import(TriangleNormal(*fi).Normalize());
|
||||
fprintf(fp," facet normal %13e %13e %13e\n",p[0],p[1],p[2]);
|
||||
fprintf(fp," outer loop\n");
|
||||
for(int k=0;k<3;++k){
|
||||
|
|
|
@ -710,7 +710,7 @@ namespace vcg {
|
|||
}
|
||||
else
|
||||
{
|
||||
face::ComputeNormalizedNormal(m.face[i]);
|
||||
m.face[i].N().Import(TriangleNormal(m.face[i]).Normalize());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue