Beispiel #1
0
        /// <summary>
        /// Prompt for the getting of a mesh cone.
        /// </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="cone">The cone geometry defined by the user.</param>
        /// <returns>The result of the getting operation.</returns>
        public Commands.Result GetMesh(ref int verticalFaces, ref int aroundFaces, out Geometry.Cone cone)
        {
            IntPtr ptr_this = NonConstPointer();

            cone = Geometry.Cone.Unset;
            uint rc = UnsafeNativeMethods.RHC_RhinoGetMeshCone(ref cone, ref verticalFaces, ref aroundFaces, ptr_this);

            return((Commands.Result)rc);
        }
Beispiel #2
0
        /// <summary>
        /// Prompt for the getting of a cone.
        /// </summary>
        /// <param name="cone">The cone geometry defined by the user.</param>
        /// <returns>The result of the getting operation.</returns>
        public Commands.Result Get(out Geometry.Cone cone)
        {
            IntPtr ptr_this = NonConstPointer();

            cone = Geometry.Cone.Unset;
            uint rc = UnsafeNativeMethods.RHC_RhinoGetCone(ref cone, ptr_this);

            return((Commands.Result)rc);
        }