Exemplo n.º 1
0
 /// <summary>
 /// Prompt for the getting of a mesh cylinder.
 /// </summary>
 /// <param name="verticalFaces">The number of faces in the vertical direction.</param>
 /// <param name="aroundFaces">The number of faces in the around direction</param>
 /// <param name="cylinder">The cylinder geometry defined by the user.</param>
 /// <returns>The result of the getting operation.</returns>
 /// <since>7.0</since>
 public Commands.Result GetMesh(ref int verticalFaces, ref int aroundFaces, out Geometry.Cylinder cylinder)
 {
   IntPtr ptr_this = NonConstPointer();
   cylinder = Geometry.Cylinder.Unset;
   uint rc = UnsafeNativeMethods.RHC_RhinoGetMeshCylinder(ref cylinder, ref verticalFaces, ref aroundFaces, ptr_this);
   return (Commands.Result)rc;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Prompt for the getting of a cylinder.
 /// </summary>
 /// <param name="cylinder">The cylinder geometry defined by the user.</param>
 /// <returns>The result of the getting operation.</returns>
 /// <since>6.0</since>
 public Commands.Result Get(out Geometry.Cylinder cylinder)
 {
   IntPtr ptr_this = NonConstPointer();
   cylinder = Geometry.Cylinder.Unset;
   uint rc = UnsafeNativeMethods.RHC_RhinoGetCylinder(ref cylinder, ptr_this);
   return (Commands.Result)rc;
 }