function Draw()

Top  Previous  Next

 

This function enables Us to Draw on the screen simple geometry

and so give a feedback on the command state:

 

Example:

 

/* Note:  We are running as a command so this object is a  BK_CommandScriptable */

 

function Draw()

{

 var pos = this.GetPoint( 0 );

 var vec = this.GetNormal( 0 );

 if( pos && vec  )

 {

     var pnt2 = pos.sum( vec.point() );

     this.DrawLine(pos,pnt2);        

 }

}