Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic springLayout in 3D put all nodes in the same locat (Read 2367 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
springLayout in 3D put all nodes in the same locat
Aug 1st, 2011 at 8:54am
Print Post  
I am working with 3D
I am using this line
springLayout.Iterate(currentIteration, ++currentIteration)

the springLayout ill put all the nodes in the same position

what I did wrong?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: springLayout in 3D put all nodes in the same l
Reply #1 - Aug 1st, 2011 at 11:14am
Print Post  
Are you looking at the SpringLayout sample?

As you can see there, you have to invoke DiagramView3D.ResetProjection method after each iteration to update the view with the new positions of the nodes? In addition, make sure you have called SpringLayout.BeginArrange before making any calls to SpringLayout.Iterate.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: springLayout in 3D put all nodes in the same l
Reply #2 - Aug 1st, 2011 at 11:15am
Print Post  
Yes I did all of that m but still all ones in the center
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: springLayout in 3D put all nodes in the same l
Reply #3 - Aug 1st, 2011 at 11:16am
Print Post  
  springLayout.BeginArrange(CurrentDiag3D, Nothing)

then

Private Sub timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timer.Tick
       springLayout.Iterate(currentIteration, ++currentIteration)
       CurrentDiagView3D.ResetProjection()
    End Sub
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: springLayout in 3D put all nodes in the same l
Reply #4 - Aug 1st, 2011 at 11:48am
Print Post  
Is it possible to send me your application (or a smaller sample illustrating this problem) to meppy@mindfusion.eu?

Regards,
Meppy
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: springLayout in 3D put all nodes in the same l
Reply #5 - Aug 1st, 2011 at 1:16pm
Print Post  
it is working now
I miss the links
Thanks for ur help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint