[vtk-developers] vtkGraphLayout - how to count the layout strategy

Nasztanovics Ferenc naszta at naszta.hu
Tue Jan 19 04:17:39 EST 2010


I would change (to support iterative solution) the layout counting in vtkGraphLayout (in RequestData) to the followings:

Code now:
<code>
  this->LayoutStrategy->Layout();
</code>

Suggested code:
<code>
do
{
  this->LayoutStrategy->Layout();
}
while ( this->LayoutStrategy->IsLayoutComplete() != 1 );
</code>

Best regards,

Naszta


More information about the vtk-developers mailing list