Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

DepthMode at PreDrawObject in Conduit

$
0
0

@Eliseo wrote:

Hi,

I do not understand the behavior of DepthMode very well.
I am trying to know when an object that is in the conduit and on the pad is moving and when it is released. I thought that when it was moving the DepthMode had the value of AlwaysInFront but in some computers it does not go that way and in the Rhino 6 that I am testing either.
Any ideas about it?

This is my code:

protected override void PreDrawObject( DrawObjectEventArgs e )
{
                if ( e.Display.DepthMode == DepthMode.AlwaysInFront )
                {
                        if ( e.RhinoObject.Id.Equals( myGUID ) )
                        {
                         ......
                        }
                } else if ( !Rhino.Input.RhinoGet.InGet( RhinoDoc.ActiveDoc ) )
                {
                      //Code when the movement has finished
                }
}

Thanks
Eliseo

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles