コード例 #1
0
ファイル: hostutils.cs プロジェクト: grantmduffy/rhinocommon
 /// <summary>
 /// Gets the debug dumps. This is a text description of the geometric contents.
 /// DebugDump() is intended for debugging and is not suitable for creating high
 /// quality text descriptions of an object.
 /// </summary>
 /// <param name="bezierCurve">curve to evaluate</param>
 /// <returns>A debug dump text.</returns>
 public static string DebugDumpToString(Rhino.Geometry.BezierCurve bezierCurve)
 {
   IntPtr pConstThis = bezierCurve.ConstPointer();
   using (var sh = new StringHolder())
   {
     IntPtr pString = sh.NonConstPointer();
     UnsafeNativeMethods.ON_BezierCurve_Dump(pConstThis, pString);
     return sh.ToString();
   }
 }
コード例 #2
0
        public bool PickFrustumTest(Rhino.Geometry.BezierCurve bezier, out double t, out double depth, out double distance)
        {
            t        = -1;
            depth    = -1;
            distance = -1;
            IntPtr pConstThis   = ConstPointer();
            IntPtr pConstBezier = bezier.ConstPointer();

            return(UnsafeNativeMethods.CRhinoPickContext_PickBezier(pConstThis, pConstBezier, ref t, ref depth, ref distance));
        }