static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.LineUtility o;
         o = new UnityEngine.LineUtility();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Ejemplo n.º 2
0
 public static void Simplify(List <Vector2> points, float tolerance, List <Vector2> simplifiedPoints)
 {
     if (points == null)
     {
         throw new ArgumentNullException("points");
     }
     if (simplifiedPoints == null)
     {
         throw new ArgumentNullException("simplifiedPoints");
     }
     LineUtility.GenerateSimplifiedPoints2D(points, tolerance, simplifiedPoints);
 }
Ejemplo n.º 3
0
 public static void Simplify(List <Vector2> points, float tolerance, List <int> pointsToKeep)
 {
     if (points == null)
     {
         throw new ArgumentNullException("points");
     }
     if (pointsToKeep == null)
     {
         throw new ArgumentNullException("pointsToKeep");
     }
     LineUtility.GeneratePointsToKeep2D(points, tolerance, pointsToKeep);
 }
Ejemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.LineUtility o;
         o = new UnityEngine.LineUtility();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
0
        public static void Simplify(List <Vector3> points, float tolerance, List <Vector3> simplifiedPoints)
        {
            bool flag = points == null;

            if (flag)
            {
                throw new ArgumentNullException("points");
            }
            bool flag2 = simplifiedPoints == null;

            if (flag2)
            {
                throw new ArgumentNullException("simplifiedPoints");
            }
            LineUtility.GenerateSimplifiedPoints3D(points, tolerance, simplifiedPoints);
        }
Ejemplo n.º 6
0
        public static void Simplify(List <Vector3> points, float tolerance, List <int> pointsToKeep)
        {
            bool flag = points == null;

            if (flag)
            {
                throw new ArgumentNullException("points");
            }
            bool flag2 = pointsToKeep == null;

            if (flag2)
            {
                throw new ArgumentNullException("pointsToKeep");
            }
            LineUtility.GeneratePointsToKeep3D(points, tolerance, pointsToKeep);
        }