Revision: 32984
          http://brlcad.svn.sourceforge.net/brlcad/?rev=32984&view=rev
Author:   bob1961
Date:     2008-10-17 16:31:13 +0000 (Fri, 17 Oct 2008)

Log Message:
-----------
Enable clipping.

Modified Paths:
--------------
    brlcad/trunk/src/libged/ps.c

Modified: brlcad/trunk/src/libged/ps.c
===================================================================
--- brlcad/trunk/src/libged/ps.c        2008-10-17 03:10:46 UTC (rev 32983)
+++ brlcad/trunk/src/libged/ps.c        2008-10-17 16:31:13 UTC (rev 32984)
@@ -42,9 +42,7 @@
 
 #define GED_TO_PS(_x) ((int)((_x)+2048))
 #define GED_TO_PS_COLOR(_c) ((_c)*ged_ps_color_sf)
-#define GED_PS_CLIPPING 0
 
-
 static void
 ged_draw_ps_header(FILE *fp, char *font, char *title, char *creator, int 
linewidth, fastf_t scale, int xoffset, int yoffset)
 {
@@ -93,10 +91,8 @@
 ged_draw_ps_solid(struct ged *gedp, FILE *fp, struct solid *sp, matp_t psmat)
 {
     static vect_t              last;
-#if GED_PS_CLIPPING
-    point_t                    clipmin = {0.0, 0.0, 0.0};
-    point_t                    clipmax = {0.0, 0.0, 0.0};
-#endif
+    point_t                    clipmin = {-1.0, -1.0, -MAX_FASTF};
+    point_t                    clipmax = {1.0, 1.0, MAX_FASTF};
     register struct bn_vlist   *tvp;
     register point_t           *pt_prev=NULL;
     register fastf_t           dist_prev=1.0;
@@ -214,10 +210,8 @@
                    break;
            }
 
-#if GED_PS_CLIPPING
            if (ged_vclip(start, fin, clipmin, clipmax) == 0)
                continue;
-#endif
 
            fprintf(fp,
                    "newpath %d %d moveto %d %d lineto stroke\n",


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to