/// <summary> /// Prompt for the getting of a truncated cone. /// </summary> /// <param name="truncatedCone">The truncated cone in Brep form.</param> /// <returns>The result of the getting operation.</returns> public Commands.Result Get(out Geometry.Brep truncatedCone) { IntPtr ptr_this = NonConstPointer(); truncatedCone = new Geometry.Brep(); IntPtr ptr_truncated_cone = truncatedCone.NonConstPointer(); uint rc = UnsafeNativeMethods.RHC_RhinoGetTcone(ptr_truncated_cone, ptr_this); return((Commands.Result)rc); }
/// <summary> /// Adds a brep to the list. /// </summary> /// <param name="brep">A brep to add.</param> /// <param name="asConst">Whether this brep should be treated as non-modifiable.</param> public void Add(Geometry.Brep brep, bool asConst) { if (null != brep) { IntPtr pBrep = brep.ConstPointer(); if (!asConst) { pBrep = brep.NonConstPointer(); } IntPtr ptr = NonConstPointer(); UnsafeNativeMethods.ON_BrepArray_Append(ptr, pBrep); } }