Revision: 44816
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44816&view=rev
Author:   brlcad
Date:     2011-06-08 04:29:30 +0000 (Wed, 08 Jun 2011)

Log Message:
-----------
tmpvert seems unnecessary

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

Modified: brlcad/trunk/src/libged/tire.c
===================================================================
--- brlcad/trunk/src/libged/tire.c      2011-06-08 04:25:28 UTC (rev 44815)
+++ brlcad/trunk/src/libged/tire.c      2011-06-08 04:29:30 UTC (rev 44816)
@@ -809,7 +809,6 @@
     size_t i;
     struct bu_vls str;
     struct bu_vls str2;
-    point2d_t tmpvert[] = {{0, 0}};
 
     bu_vls_init(&str);
     bu_vls_init(&str2);
@@ -830,9 +829,9 @@
     skt->vert_count = vertcount;
     skt->verts = (point2d_t *)bu_calloc(skt->vert_count, sizeof( point2d_t ), 
"verts");
     for (i = 0; i < skt->vert_count; i++ ) {
-       tmpvert[0][0] = verts[i][0] * patternwidth2 - patternwidth2 / 2;
-       tmpvert[0][1] = verts[i][1] * tirewidth;
-       V2MOVE( skt->verts[i], tmpvert[0] );
+       V2SET(skt->verts[i],
+             verts[i][0] * patternwidth2 - patternwidth2 / 2,
+             verts[i][1] * tirewidth);
     }
 
     /* Specify number of segments and allocate memory for reverse??


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to