Permalink
Browse files

Introduce node-centric target edge length calculator.

  • Loading branch information...
1 parent f8f5d0f commit 9c2715927b0af26fc96188690c53d4c944766fd6 @ramcdona committed Apr 16, 2012
Showing with 10 additions and 1 deletion.
  1. +9 −1 src/vsp/Mesh.cpp
  2. +1 −0 src/vsp/Mesh.h
View
@@ -1118,7 +1118,15 @@ void Mesh::AdjustEdgeLengths()
}
}
-
+
+void Mesh::ComputeTargetEdgeLength( Node* n )
+{
+ for( int i = 0; i < n->edgeVec.size(); i++)
+ {
+ ComputeTargetEdgeLength( n->edgeVec[i] );
+ }
+}
+
void Mesh::ComputeTargetEdgeLength( Edge* edge )
{
assert( m_GridDensity );
View
@@ -72,6 +72,7 @@ class Mesh
void SmoothTargetEdgeLength( Edge* e, Node* notn );
void ComputeTargetEdgeLength( Edge* edge );
+ void ComputeTargetEdgeLength( Node* n );
void SetNodeFlags();

0 comments on commit 9c27159

Please sign in to comment.