@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