Exemple #1
0
        internal override void Draw(Display.DisplayPipeline pipeline, System.Drawing.Color color, int density)
        {
            IntPtr pDisplayPipeline = pipeline.NonConstPointer();
            IntPtr ptr  = ConstPointer();
            int    argb = color.ToArgb();

            UnsafeNativeMethods.CRhinoDisplayPipeline_DrawNurbsSurface(pDisplayPipeline, ptr, argb, density);
        }
Exemple #2
0
 /// <summary>
 /// Get CRhinoDisplayPipeline* for a DisplayPipeline instance
 /// </summary>
 /// <param name="pipeline"></param>
 /// <returns></returns>
 /// <since>6.0</since>
 public static IntPtr NativeNonConstPointer(Display.DisplayPipeline pipeline)
 {
     return(pipeline.NonConstPointer());
 }