changrd update for a vertex normal functions void PerVertex(VertexType *v)
This commit is contained in:
parent
5efa62c6ab
commit
dff2dfb828
|
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.5 2004/06/15 16:01:26 pietroni
|
||||||
|
added functions to update local vertices normal
|
||||||
|
|
||||||
Revision 1.4 2004/05/26 11:59:09 turini
|
Revision 1.4 2004/05/26 11:59:09 turini
|
||||||
Changed : Use Of vector In Use Of std::vector.
|
Changed : Use Of vector In Use Of std::vector.
|
||||||
|
|
||||||
|
|
@ -96,12 +99,16 @@ static void PerVertex(VertexType *v)
|
||||||
while (!VTi.End())
|
while (!VTi.End())
|
||||||
{
|
{
|
||||||
//take the tree faces on the vertex's tetrahedron
|
//take the tree faces on the vertex's tetrahedron
|
||||||
int f0=Tetra::FofV(VTi.Vi(),0);
|
int f;
|
||||||
int f1=Tetra::FofV(VTi.Vi(),1);
|
for (int j=0;j<3;j++)
|
||||||
int f2=Tetra::FofV(VTi.Vi(),2);
|
{
|
||||||
|
int f=Tetra::FofV(VTi.Vi(),j);
|
||||||
|
if (VTi.Vt()->IsBorderF(f))
|
||||||
|
{
|
||||||
iter++;
|
iter++;
|
||||||
if (VTi.Vt()->IsBorderF(f0))
|
Norm+=VTi.Vt()->N(f);
|
||||||
Norm+=VTi.Vt()->N(f0);
|
}
|
||||||
|
}
|
||||||
VTi++;
|
VTi++;
|
||||||
}
|
}
|
||||||
Norm/=iter;
|
Norm/=iter;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue