示例#1
0
        /// <summary>
        /// /// Gets the point on the mesh that is closest to a given test point. Similar to the
        /// ClosestPoint function except this returns a MeshPoint class which includes
        /// extra information beyond just the location of the closest point.
        /// </summary>
        /// <param name="testPoint"></param>
        /// <param name="maximumDistance"></param>
        /// <returns></returns>
        public Point3 ClosestMeshPoint(Point3 testPoint, double maximumDistance)
        {
#if UnitTest
            throw new NotImplementedException();
#else
            return((mesh.ClosestMeshPoint(testPoint.Convert(), maximumDistance)).Point.Convert());
#endif
        }