Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to know nodes are cutty? (Read 5178 times)
Taivan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 37
Joined: Jun 15th, 2012
How to know nodes are cutty?
Jun 28th, 2012 at 8:05am
Print Post  
How to know nodes are cutty?

thnx.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know nodes are cutty?
Reply #1 - Jun 28th, 2012 at 10:05am
Print Post  
What do you mean by "cutty nodes"?
  
Back to top
 
IP Logged
 
Taivan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 37
Joined: Jun 15th, 2012
Re: How to know nodes are cutty?
Reply #2 - Jun 28th, 2012 at 10:24am
Print Post  
Stoyo wrote on Jun 28th, 2012 at 10:05am:
What do you mean by "cutty nodes"?


I m sorry my bad english. Please see the pic.
Thanks Stoyan.
  

Untitled_005.png ( 41 KB | 349 Downloads )
Untitled_005.png
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know nodes are cutty?
Reply #3 - Jun 28th, 2012 at 1:15pm
Print Post  
You can check if (node1.Bounds.Intersect(node2.Bounds) != Rect.Empty) to find out if the nodes intersect.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Taivan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 37
Joined: Jun 15th, 2012
Re: How to know nodes are cutty?
Reply #4 - Jun 29th, 2012 at 1:44am
Print Post  
Stoyo wrote on Jun 28th, 2012 at 1:15pm:
You can check if (node1.Bounds.Intersect(node2.Bounds) != Rect.Empty) to find out if the nodes intersect.

I hope that helps,
Stoyan

thanks Stoyan

But syntax error :

Error      11      Operator '!=' cannot be applied to operands of type 'void' and 'System.Windows.Rect'      

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to know nodes are cutty?
Reply #5 - Jun 29th, 2012 at 7:21am
Print Post  
Ok, you will have to use a separate Rect variable:

Code
Select All
Rect rect = node1.Bounds;
rect.Intersect(node2.Bounds);
if (rect != Rect.Empty) ... 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint