/// <summary>
        ///
        /// </summary>
        /// <param name="contextSurface"></param>
        /// <param name="u"></param>
        /// <param name="v"></param>
        /// <returns></returns>
        public static DSSurfaceCurvature BySurfaceParameters(DSSurface contextSurface, double u, double v)
        {
            if (contextSurface == null)
            {
                return(null);
            }

            ISurfaceEntity host = contextSurface.GetSurfaceEntity();

            if (host == null)
            {
                return(null);
            }

            ICoordinateSystemEntity coordinateSystemEntity = host.CurvatureAtParameter(u, v);

            if (null != coordinateSystemEntity)
            {
                DSSurfaceCurvature surfCurv = new DSSurfaceCurvature(contextSurface, u, v, coordinateSystemEntity);
                return(surfCurv);
            }

            return(null);
        }
Beispiel #2
0
 /// <summary>
 /// Returns the surface curvature at given U, V parameter
 /// </summary>
 /// <param name="u"></param>
 /// <param name="v"></param>
 /// <returns></returns>
 public DSSurfaceCurvature CurvatureAtParameter(double u, double v)
 {
     return(DSSurfaceCurvature.BySurfaceParameters(this, u, v));
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="contextSurface"></param>
        /// <param name="u"></param>
        /// <param name="v"></param>
        /// <returns></returns>
        public static DSSurfaceCurvature BySurfaceParameters(DSSurface contextSurface, double u, double v)
        {
            if (contextSurface == null)
                return null;

            ISurfaceEntity host = contextSurface.GetSurfaceEntity();
            if (host == null)
                return null;

            ICoordinateSystemEntity coordinateSystemEntity = host.CurvatureAtParameter(u, v);
            if (null != coordinateSystemEntity)
            {
                DSSurfaceCurvature surfCurv = new DSSurfaceCurvature(contextSurface, u, v, coordinateSystemEntity);
                return surfCurv;
            }

            return null;
        }