Example #1
0
        /// <summary>
        /// If Style==Wireframe, then the default decomposes the curve object into
        /// nurbs curve segments and calls the virtual DrawNurbsCurve for each segment.
        /// </summary>
        /// <param name="curve">A document curve object.</param>
        /// <param name="pipeline">The drawing pipeline.</param>
        protected virtual void DrawCurveObject(Rhino.DocObjects.CurveObject curve, DisplayPipeline pipeline)
        {
            IntPtr pConstThis  = ConstPointer();
            IntPtr pConstCurve = curve.ConstPointer();
            IntPtr pPipeline   = pipeline.NonConstPointer();

            UnsafeNativeMethods.CRhinoVisualAnalysisMode_DrawCurveObject(pConstThis, pConstCurve, pPipeline);
        }
Example #2
0
        internal override void Draw(DisplayPipeline pipeline, System.Drawing.Color color, int thickness)
        {
            IntPtr pDisplayPipeline = pipeline.NonConstPointer();
            int    argb             = color.ToArgb();
            IntPtr pCurveDisplay    = CurveDisplay();

            UnsafeNativeMethods.CurveDisplay_Draw(pCurveDisplay, pDisplayPipeline, argb, thickness);
        }