[gimp/soc-2011-warp: 51/56] gimpoperationwarp: mitch styled cleaning



commit f25aa8d7ad7eb6458c86228ce7e20ff4495c15e8
Author: Michael Murà <batolettre gmail com>
Date:   Fri Jul 8 21:02:23 2011 +0200

    gimpoperationwarp: mitch styled cleaning

 app/gegl/gimpoperationwarp.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/app/gegl/gimpoperationwarp.c b/app/gegl/gimpoperationwarp.c
index 4ccdb83..aa771b9 100644
--- a/app/gegl/gimpoperationwarp.c
+++ b/app/gegl/gimpoperationwarp.c
@@ -74,7 +74,6 @@ G_DEFINE_TYPE (GimpOperationWarp, gimp_operation_warp,
 
 #define parent_class gimp_operation_warp_parent_class
 
-#define STROKE_RATE 10
 #define POW2(a) ((a)*(a))
 
 static void
@@ -263,7 +262,7 @@ gimp_operation_warp_process (GeglOperation       *operation,
   gulong               i;
   GeglPathList        *event;
 
-  printf("Process\n");
+  printf("Process %p\n", ow);
 
   ow->buffer = gegl_buffer_dup (in_buf);
 
@@ -273,15 +272,11 @@ gimp_operation_warp_process (GeglOperation       *operation,
 
   while (event->next)
     {
-
       event = event->next;
       next = *(event->d.point);
       dist = point_dist (&next, &prev);
       stamps = dist / spacing;
 
-      /* we are doing a sort of interpolation 3d throught x,y and time */
-      /*distance = sqrt (POW2() + POW2(STROKE_RATE)); Weird stuff... */
-
       if (stamps < 1)
        {
         gimp_operation_warp_stamp (ow, next.x, next.y);
@@ -296,8 +291,6 @@ gimp_operation_warp_process (GeglOperation       *operation,
           }
          prev = lerp;
        }
-
-      
     }
 
   /* Affect the output buffer */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]