コード例 #1
0
        /// <summary>
        /// Prompt for the getting of a sphere.
        /// </summary>
        /// <param name="sphere">The sphere geometry defined by the user.</param>
        /// <returns>The result of the getting operation.</returns>
        public Commands.Result Get(out Geometry.Sphere sphere)
        {
            IntPtr ptr_this = NonConstPointer();

            sphere = Geometry.Sphere.Unset;
            uint rc = UnsafeNativeMethods.RHC_RhinoGetSphere(ref sphere, ptr_this);

            return((Commands.Result)rc);
        }
コード例 #2
0
        /// <summary>
        /// Prompt for the getting of a mesh sphere.
        /// </summary>
        /// <param name="style">The style of the mesh sphere.</param>
        /// <param name="verticalFaces">The number of UV mesh faces in the vertical direction.</param>
        /// <param name="aroundFaces">The number of UV mesh faces in the around direction.</param>
        /// <param name="triangleSubdivisions">The number of triangle mesh subdivisions.</param>
        /// <param name="quadSubdivisions">The number of quad mesh subdivisions.</param>
        /// <param name="sphere">The sphere geometry defined by the user.</param>
        /// <returns>The result of the getting operation.</returns>
        public Commands.Result GetMesh(ref MeshSphereStyle style, ref int verticalFaces, ref int aroundFaces, ref int triangleSubdivisions, ref int quadSubdivisions, out Geometry.Sphere sphere)
        {
            IntPtr ptr_this = NonConstPointer();

            sphere = Geometry.Sphere.Unset;
            uint rc = UnsafeNativeMethods.RHC_RhinoGetMeshSphere(ref sphere, ref style, ref verticalFaces, ref aroundFaces, ref triangleSubdivisions, ref quadSubdivisions, ptr_this);

            return((Commands.Result)rc);
        }