[brlcad-commits] SF.net SVN: brlcad:[53386] brlcad/trunk/src/librt/primitives/ell/ell.c

2012-10-25 Thread brlcad
Revision: 53386
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53386&view=rev
Author:   brlcad
Date: 2012-10-26 05:26:07 + (Fri, 26 Oct 2012)
Log Message:
---
remove var that's set but not used

Modified Paths:
--
brlcad/trunk/src/librt/primitives/ell/ell.c

Modified: brlcad/trunk/src/librt/primitives/ell/ell.c
===
--- brlcad/trunk/src/librt/primitives/ell/ell.c 2012-10-26 05:17:30 UTC (rev 
53385)
+++ brlcad/trunk/src/librt/primitives/ell/ell.c 2012-10-26 05:26:07 UTC (rev 
53386)
@@ -762,11 +762,10 @@
const struct rt_ell_internal *ell,
const struct rt_view_info *info)
 {
-fastf_t samples_per_mm, mm_per_sample;
+fastf_t samples_per_mm;
 fastf_t radius, radius_samples;
 
 samples_per_mm = sqrt(info->view_samples) / info->view_size;
-mm_per_sample = 1.0 / samples_per_mm;
 
 radius = fabs((MAGNITUDE(ell->a) + MAGNITUDE(ell->b) + MAGNITUDE(ell->c))
/ 3.0);

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53385] brlcad/trunk/NEWS

2012-10-25 Thread brlcad
Revision: 53385
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53385&view=rev
Author:   brlcad
Date: 2012-10-26 05:17:30 + (Fri, 26 Oct 2012)
Log Message:
---
richard fixed a bug exporting/tessellating pipe objects in r53375 where the 
edges were not being properly fused.  this impacted booleans and raytracing.

Revision Links:
--
http://brlcad.svn.sourceforge.net/brlcad/?rev=53375&view=rev

Modified Paths:
--
brlcad/trunk/NEWS

Modified: brlcad/trunk/NEWS
===
--- brlcad/trunk/NEWS   2012-10-25 21:46:13 UTC (rev 53384)
+++ brlcad/trunk/NEWS   2012-10-26 05:17:30 UTC (rev 53385)
@@ -13,6 +13,7 @@
 --- 2012-07-XX  Release 7.22.2 ---
 --
 
+* fixed corrupted tessellation pipe export bug - Richard Weiss
 * output from g-var no longer prints 'fwrite' messages - Sean Morrison
 * fixed crash in step-g tool importing AP214 entities - Sean Morrison
 * improved 3dm-g output and invalid geometry support - Sean Morrison

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53384] brlcad/trunk/src/util/plrot.1

2012-10-25 Thread carlmoore
Revision: 53384
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53384&view=rev
Author:   carlmoore
Date: 2012-10-25 21:46:13 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/plrot.1

Modified: brlcad/trunk/src/util/plrot.1
===
--- brlcad/trunk/src/util/plrot.1   2012-10-25 21:45:17 UTC (rev 53383)
+++ brlcad/trunk/src/util/plrot.1   2012-10-25 21:46:13 UTC (rev 53384)
@@ -131,7 +131,7 @@
 UnixPlot is traditionally a first quadrant 2D plotting space with
 X increasing to the right of the plot, and Y increasing up the plot.
 The "front" of a solid model in the BRL-CAD Package is traditionally
-defined by the right handed system of X comming out of the screen
+defined by the right handed system of X coming out of the screen
 toward you, Y increasing to the right, and Z increasing up the display
 (elevation above the XY ground plane).  The
 .B \-g

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53383] brlcad/trunk/src/util/mac-pix.1

2012-10-25 Thread carlmoore
Revision: 53383
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53383&view=rev
Author:   carlmoore
Date: 2012-10-25 21:45:17 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/mac-pix.1

Modified: brlcad/trunk/src/util/mac-pix.1
===
--- brlcad/trunk/src/util/mac-pix.1 2012-10-25 21:44:24 UTC (rev 53382)
+++ brlcad/trunk/src/util/mac-pix.1 2012-10-25 21:45:17 UTC (rev 53383)
@@ -94,7 +94,7 @@
 .B \-W
 and
 .B \-N
-flags can be used to specify the otuput width and height.
+flags can be used to specify the output width and height.
 If no input file is specified, standard input is read instead.
 .SH "EXAMPLES"
 Especially pleasing displays of MacPaint documents can be made by using

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53382] brlcad/trunk/src/util/buffer.c

2012-10-25 Thread carlmoore
Revision: 53382
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53382&view=rev
Author:   carlmoore
Date: 2012-10-25 21:44:24 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/buffer.c

Modified: brlcad/trunk/src/util/buffer.c
===
--- brlcad/trunk/src/util/buffer.c  2012-10-25 21:43:16 UTC (rev 53381)
+++ brlcad/trunk/src/util/buffer.c  2012-10-25 21:44:24 UTC (rev 53382)
@@ -26,7 +26,7 @@
  * amount of data may need to be buffered, so a combination of a 1
  * Mbyte memory buffer and a temporary file is used.
  *
- * The use of read() and write() is prefered over fread() and fwrite()
+ * The use of read() and write() is preferred over fread() and fwrite()
  * for reasons of efficiency, given the large buffer size in use.
  *
  */

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53381] brlcad/trunk/src/util/dpix-pix.c

2012-10-25 Thread carlmoore
Revision: 53381
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53381&view=rev
Author:   carlmoore
Date: 2012-10-25 21:43:16 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/dpix-pix.c

Modified: brlcad/trunk/src/util/dpix-pix.c
===
--- brlcad/trunk/src/util/dpix-pix.c2012-10-25 21:40:32 UTC (rev 53380)
+++ brlcad/trunk/src/util/dpix-pix.c2012-10-25 21:43:16 UTC (rev 53381)
@@ -20,7 +20,7 @@
 /** @file util/dpix-pix.c
  *
  * Convert double precision images in .dpix form to a .pix file.  By
- * default, will determin min/max values to drive exposure
+ * default, will determine min/max values to drive exposure
  * calculations, and perform linear interpolation on the way to 1-byte
  * values.
  *
@@ -72,7 +72,7 @@
 
 /* Note that the minimum is set to 1.0e20, the computer's working
  * equivalent of positive infinity.  Thus any subsequent value
- * must be larger. Likewise, the maximun is set to -1.0e20, the
+ * must be larger. Likewise, the maximum is set to -1.0e20, the
  * equivalent of negative infinity, and any values must thus be
  * bigger than it.
  */

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53380] brlcad/trunk/src/util/pixrot.c

2012-10-25 Thread carlmoore
Revision: 53380
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53380&view=rev
Author:   carlmoore
Date: 2012-10-25 21:40:32 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/pixrot.c

Modified: brlcad/trunk/src/util/pixrot.c
===
--- brlcad/trunk/src/util/pixrot.c  2012-10-25 21:38:47 UTC (rev 53379)
+++ brlcad/trunk/src/util/pixrot.c  2012-10-25 21:40:32 UTC (rev 53380)
@@ -28,7 +28,7 @@
  *
  * This is a generalization of bwrot and can in fact handle "pixels"
  * of any size.  Thus this routine could be used to say, rotate a
- * matix of floating point values, etc.
+ * matrix of floating point values, etc.
  *
  */
 
@@ -113,7 +113,7 @@
}
 }
 
-/* XXX - backward compatability hack */
+/* XXX - backward compatibility hack */
 if (bu_optind+2 == argc) {
nxin = atoi(argv[bu_optind++]);
nyin = atoi(argv[bu_optind++]);

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53379] brlcad/trunk/src/util/bwhist.1

2012-10-25 Thread carlmoore
Revision: 53379
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53379&view=rev
Author:   carlmoore
Date: 2012-10-25 21:38:47 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/bwhist.1

Modified: brlcad/trunk/src/util/bwhist.1
===
--- brlcad/trunk/src/util/bwhist.1  2012-10-25 21:37:42 UTC (rev 53378)
+++ brlcad/trunk/src/util/bwhist.1  2012-10-25 21:38:47 UTC (rev 53379)
@@ -60,7 +60,7 @@
 the maximum is full screen.  The value 0 is at the bottom of the
 screen, 255 is at the top.
 .br
-The output is overlayed on whatever is currently on the display.
+The output is overlaid on whatever is currently on the display.
 .PP
 The
 .B \-v

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53378] brlcad/trunk/src/util/pixstat.1

2012-10-25 Thread carlmoore
Revision: 53378
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53378&view=rev
Author:   carlmoore
Date: 2012-10-25 21:37:42 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pixstat.1

Modified: brlcad/trunk/src/util/pixstat.1
===
--- brlcad/trunk/src/util/pixstat.1 2012-10-25 21:36:41 UTC (rev 53377)
+++ brlcad/trunk/src/util/pixstat.1 2012-10-25 21:37:42 UTC (rev 53378)
@@ -65,7 +65,7 @@
 The median (dividing line where half the pixels are above this
 value, half below).
 .br
-The mode (most frequently occuring value) and
+The mode (most frequently occurring value) and
 the number of pixels at this value.
 .br
 The variance, standard deviation, and skew.

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53377] brlcad/trunk/src/util/hex.1

2012-10-25 Thread carlmoore
Revision: 53377
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53377&view=rev
Author:   carlmoore
Date: 2012-10-25 21:36:41 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/hex.1

Modified: brlcad/trunk/src/util/hex.1
===
--- brlcad/trunk/src/util/hex.1 2012-10-25 21:34:38 UTC (rev 53376)
+++ brlcad/trunk/src/util/hex.1 2012-10-25 21:36:41 UTC (rev 53377)
@@ -58,12 +58,12 @@
 in hexadecimal and ASCII.  If no files are specified on the command
 line,
 .I hex
-checks to to be sure the standard input is not comming from a terminal
+checks to to be sure the standard input is not coming from a terminal
 before dumping from the standard input.
 .LP
 Input is
 dumped 16 bytes at a time.  The program displays the offset
-from the begining of the file/input
+from the beginning of the file/input
 in hexadecimal, followed by
 the hexadecimal representations for the
 next 16
@@ -79,7 +79,7 @@
 .B \-o offset
 start printing at byte position
 .I offset
-instead of at the begining of the data.
+instead of at the beginning of the data.
 .I Offset
 is rounded down to a multiple of 16.
 .SH SEE ALSO

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53376] brlcad/trunk/src/util/pixmerge.1

2012-10-25 Thread carlmoore
Revision: 53376
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53376&view=rev
Author:   carlmoore
Date: 2012-10-25 21:34:38 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pixmerge.1

Modified: brlcad/trunk/src/util/pixmerge.1
===
--- brlcad/trunk/src/util/pixmerge.12012-10-25 21:31:50 UTC (rev 53375)
+++ brlcad/trunk/src/util/pixmerge.12012-10-25 21:34:38 UTC (rev 53376)
@@ -76,7 +76,7 @@
 For example,
 .B \-le
 selects a foreground pixel when it
-is lexicaly less than or equal to the background pixel,
+is lexically less than or equal to the background pixel,
 that is, when all bytes of the foreground pixel are less than
 or equal to the background pixel.
 The

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53375] brlcad/trunk/src/librt/primitives/pipe/pipe.c

2012-10-25 Thread r_weiss
Revision: 53375
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53375&view=rev
Author:   r_weiss
Date: 2012-10-25 21:31:50 + (Thu, 25 Oct 2012)
Log Message:
---
Added a call to function "nmg_edge_fuse" at the end of function "rt_pipe_tess" 
in file "pipe.c". This is required because if a pipe is facetized to an NMG 
object, the resulting NMG can not be properly raytraced without the edges being 
fused. This also impacts NMG boolean operations since raytracing is sometimes 
necessary to determine if an NMG object is in/out/on another NMG object.

Modified Paths:
--
brlcad/trunk/src/librt/primitives/pipe/pipe.c

Modified: brlcad/trunk/src/librt/primitives/pipe/pipe.c
===
--- brlcad/trunk/src/librt/primitives/pipe/pipe.c   2012-10-25 21:29:18 UTC 
(rev 53374)
+++ brlcad/trunk/src/librt/primitives/pipe/pipe.c   2012-10-25 21:31:50 UTC 
(rev 53375)
@@ -,6 +,7 @@
 bu_free((char *)inner_loop, "rt_pipe_tess: inner_loop");
 
 nmg_rebound(m, tol);
+nmg_edge_fuse(&s->l.magic, tol);
 
 return 0;
 }

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53374] brlcad/trunk/src/util/pix-bw3.c

2012-10-25 Thread carlmoore
Revision: 53374
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53374&view=rev
Author:   carlmoore
Date: 2012-10-25 21:29:18 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pix-bw3.c

Modified: brlcad/trunk/src/util/pix-bw3.c
===
--- brlcad/trunk/src/util/pix-bw3.c 2012-10-25 21:28:04 UTC (rev 53373)
+++ brlcad/trunk/src/util/pix-bw3.c 2012-10-25 21:29:18 UTC (rev 53374)
@@ -20,7 +20,7 @@
 /** @file util/pix-bw3.c
  *
  * Converts a RGB pix file into 3 8-bit BW files.
- * (i.e. seperates the colors)
+ * (i.e. separates the colors)
  *
  */
 

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53373] brlcad/trunk/src/util/pixbackgnd.1

2012-10-25 Thread carlmoore
Revision: 53373
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53373&view=rev
Author:   carlmoore
Date: 2012-10-25 21:28:04 + (Thu, 25 Oct 2012)
Log Message:
---
change ie to i.e.

Modified Paths:
--
brlcad/trunk/src/util/pixbackgnd.1

Modified: brlcad/trunk/src/util/pixbackgnd.1
===
--- brlcad/trunk/src/util/pixbackgnd.1  2012-10-25 21:26:14 UTC (rev 53372)
+++ brlcad/trunk/src/util/pixbackgnd.1  2012-10-25 21:28:04 UTC (rev 53373)
@@ -100,7 +100,7 @@
 By specifying the
 .B \-i
 flag, the scanlines will be written out in inverted order
-(ie, top to bottom).
+(i.e., top to bottom).
 This is mostly useful with programs like
 .IR cat-fb (1)
 .PP

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53372] brlcad/trunk/src/util/alias-pix.c

2012-10-25 Thread carlmoore
Revision: 53372
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53372&view=rev
Author:   carlmoore
Date: 2012-10-25 21:26:14 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/alias-pix.c

Modified: brlcad/trunk/src/util/alias-pix.c
===
--- brlcad/trunk/src/util/alias-pix.c   2012-10-25 21:16:56 UTC (rev 53371)
+++ brlcad/trunk/src/util/alias-pix.c   2012-10-25 21:26:14 UTC (rev 53372)
@@ -19,7 +19,7 @@
  */
 /** @file util/alias-pix.c
  *
- * Convert ALIAS(tm) PIX format image files to BRL PIX fomat files.
+ * Convert ALIAS(tm) PIX format image files to BRL PIX format files.
  *
  */
 

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53371] brlcad/trunk/src/util/bwmod.1

2012-10-25 Thread carlmoore
Revision: 53371
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53371&view=rev
Author:   carlmoore
Date: 2012-10-25 21:16:56 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/bwmod.1

Modified: brlcad/trunk/src/util/bwmod.1
===
--- brlcad/trunk/src/util/bwmod.1   2012-10-25 21:16:09 UTC (rev 53370)
+++ brlcad/trunk/src/util/bwmod.1   2012-10-25 21:16:56 UTC (rev 53371)
@@ -111,7 +111,7 @@
 .br
 .I bwmod\ \-m\-1\ \-a255\ \<\ file.bw\ \>\ file2.bw
 .br
-will produce the negative of a file by first mutiplying by minus
+will produce the negative of a file by first multiplying by minus
 one, and then adding 255 to shift the pixels back into the 0->255 range.
 .PP
 One can apply a gamma factor to a file as follows:

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53370] brlcad/trunk/src/util/pix-orle.1

2012-10-25 Thread carlmoore
Revision: 53370
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53370&view=rev
Author:   carlmoore
Date: 2012-10-25 21:16:09 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pix-orle.1

Modified: brlcad/trunk/src/util/pix-orle.1
===
--- brlcad/trunk/src/util/pix-orle.12012-10-25 21:14:54 UTC (rev 53369)
+++ brlcad/trunk/src/util/pix-orle.12012-10-25 21:16:09 UTC (rev 53370)
@@ -55,9 +55,9 @@
 format image in a
 Run-Length Encoded (RLE) form,
 using the old University of Utah standard (Edition-2) format.
-This program is provided for compatability with the old RLE image
+This program is provided for compatibility with the old RLE image
 tools, and generally should not be used for saving new images,
-except where compatability with the old tools is a factor.
+except where compatibility with the old tools is a factor.
 The equivalent new tool is
 .IR pix-rle(1) .
 .PP

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53369] brlcad/trunk/src/util/pixhist3d-pl.1

2012-10-25 Thread carlmoore
Revision: 53369
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53369&view=rev
Author:   carlmoore
Date: 2012-10-25 21:14:54 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pixhist3d-pl.1

Modified: brlcad/trunk/src/util/pixhist3d-pl.1
===
--- brlcad/trunk/src/util/pixhist3d-pl.12012-10-25 20:55:27 UTC (rev 
53368)
+++ brlcad/trunk/src/util/pixhist3d-pl.12012-10-25 21:14:54 UTC (rev 
53369)
@@ -49,7 +49,7 @@
 takes a color
 .IR pix (5)
 format file
-and outputs points for each RGB color occuring in the image.
+and outputs points for each RGB color occurring in the image.
 The format of these points is the BRL extended three dimensional UNIX
 plot (see
 .IR libplot3 (3)).

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53368] brlcad/trunk/src/util/pixfilter.c

2012-10-25 Thread carlmoore
Revision: 53368
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53368&view=rev
Author:   carlmoore
Date: 2012-10-25 20:55:27 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pixfilter.c

Modified: brlcad/trunk/src/util/pixfilter.c
===
--- brlcad/trunk/src/util/pixfilter.c   2012-10-25 20:53:53 UTC (rev 53367)
+++ brlcad/trunk/src/util/pixfilter.c   2012-10-25 20:55:27 UTC (rev 53368)
@@ -50,7 +50,7 @@
 { "Low Pass", "lo", {3, 5, 3, 5, 10, 5, 3, 5, 3}, 42, 0 },
 { "Laplacian", "la", {-1, -1, -1, -1, 8, -1, -1, -1, -1}, 16, 128 },
 { "High Pass", "hi", {-1, -2, -1, -2, 13, -2, -1, -2, -1}, 1, 0 },
-{ "Horizontal Gradiant", "hg", {1, 0, -1, 1, 0, -1, 1, 0, -1}, 6, 128 },
+{ "Horizontal Gradient", "hg", {1, 0, -1, 1, 0, -1, 1, 0, -1}, 6, 128 },
 { "Vertical Gradient", "vg", {1, 1, 1, 0, 0, 0, -1, -1, -1}, 6, 128 },
 { "Boxcar Average", "b", {1, 1, 1, 1, 1, 1, 1, 1, 1}, 9, 0 },
 { NULL, NULL, {0, 0, 0, 0, 0, 0, 0, 0, 0}, 0, 0 },

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53367] brlcad/trunk/src/util/bw-ps.1

2012-10-25 Thread carlmoore
Revision: 53367
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53367&view=rev
Author:   carlmoore
Date: 2012-10-25 20:53:53 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/bw-ps.1

Modified: brlcad/trunk/src/util/bw-ps.1
===
--- brlcad/trunk/src/util/bw-ps.1   2012-10-25 20:51:46 UTC (rev 53366)
+++ brlcad/trunk/src/util/bw-ps.1   2012-10-25 20:53:53 UTC (rev 53367)
@@ -78,11 +78,11 @@
 .I \-W
 and
 .I \-N
-can be used to set the size in inches analagous to the input
+can be used to set the size in inches analogous to the input
 parameters.
 Finally,
 .I \-L
-selects landscape mode, i.e. rotates the output image by ninty degrees.
+selects landscape mode, i.e. rotates the output image by ninety degrees.
 .PP
 Encapsulated PostScript files can be generated via
 .I \-e.

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53366] brlcad/trunk/src/util/bwshrink.1

2012-10-25 Thread carlmoore
Revision: 53366
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53366&view=rev
Author:   carlmoore
Date: 2012-10-25 20:51:46 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/bwshrink.1

Modified: brlcad/trunk/src/util/bwshrink.1
===
--- brlcad/trunk/src/util/bwshrink.12012-10-25 20:43:13 UTC (rev 53365)
+++ brlcad/trunk/src/util/bwshrink.12012-10-25 20:51:46 UTC (rev 53366)
@@ -86,7 +86,7 @@
 brlcad(1), bwcrop(1), bwrect(1), bwscale(1), bw(5).
 .SH BUGS
 If the dimensions of the input image are not evenly divisible by the shrink
-factor, incorrect and bizzare output is generated.
+factor, incorrect and bizarre output is generated.
 
 .SH AUTHOR
 BRL-CAD Team

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53365] brlcad/trunk/src/util/brlcad.1

2012-10-25 Thread carlmoore
Revision: 53365
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53365&view=rev
Author:   carlmoore
Date: 2012-10-25 20:43:13 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/brlcad.1

Modified: brlcad/trunk/src/util/brlcad.1
===
--- brlcad/trunk/src/util/brlcad.1  2012-10-25 20:38:57 UTC (rev 53364)
+++ brlcad/trunk/src/util/brlcad.1  2012-10-25 20:43:13 UTC (rev 53365)
@@ -116,7 +116,7 @@
 TCP-based network server which implements remote frame-buffer services.
 .TP
 .B libsysv
-Some System-V compatability routines
+Some System-V compatibility routines
 .TP
 .B libtermio
 A library to handle terminal mode setting
@@ -126,7 +126,7 @@
 A public-domain version of the UNIX-Plot library
 which differs from that of the standard
 .IR libplot (3),
-by the addition of 3-D primatives, color, floating point
+by the addition of 3-D primitives, color, floating point
 coordinate routines, and the use of a file pointer parameter.
 See
 .IR libplot3 (3),
@@ -280,9 +280,9 @@
 size of 512x512
 to 1024x1024.  Has same effect as
 .B \-s 1024 \-S 1024
-but exists as a convienient shorthand held over from the simple days
+but exists as a convenient shorthand held over from the simple days
 when framebuffers where square, and only came in two resolutions.
-This historical usage unfortunately prempts this letter from use
+This historical usage unfortunately preempts this letter from use
 as a height specifier, forcing that function to relocate under
 protest to
 .BR \-n ,
@@ -366,7 +366,7 @@
 .IR files-tape (1)
 utility is helpful in performing this function.
 .PP
-The capacity of an averate 2400 foot reel of tape at 6250 is 6144 records
+The capacity of an average 2400 foot reel of tape at 6250 is 6144 records
 of 24k bytes each.
 For the various combinations of density and image resolution,
 a convention for the number of frames/reel exists:

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53364] brlcad/trunk/src/util/orle-pix.c

2012-10-25 Thread carlmoore
Revision: 53364
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53364&view=rev
Author:   carlmoore
Date: 2012-10-25 20:38:57 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/orle-pix.c

Modified: brlcad/trunk/src/util/orle-pix.c
===
--- brlcad/trunk/src/util/orle-pix.c2012-10-25 20:31:25 UTC (rev 53363)
+++ brlcad/trunk/src/util/orle-pix.c2012-10-25 20:38:57 UTC (rev 53364)
@@ -34,7 +34,7 @@
 {
 "Usage: rle-pix [-dv] [-b (rgbBG)] [file.rle]",
 "",
-"If no rle file is specifed, rle-pix will read its standard input.",
+"If no rle file is specified, rle-pix will read its standard input.",
 "Pix(5B) format is written to the standard output.",
 0
 };

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53363] brlcad/trunk/src/util/pixfade.c

2012-10-25 Thread carlmoore
Revision: 53363
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53363&view=rev
Author:   carlmoore
Date: 2012-10-25 20:31:25 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/pixfade.c

Modified: brlcad/trunk/src/util/pixfade.c
===
--- brlcad/trunk/src/util/pixfade.c 2012-10-25 19:56:11 UTC (rev 53362)
+++ brlcad/trunk/src/util/pixfade.c 2012-10-25 20:31:25 UTC (rev 53363)
@@ -19,22 +19,22 @@
  */
 /** @file util/pixfade.c
  *
- * Fade a pixture
+ * Fade a picture
  *
- * pixfade will darken a pix by a certen percentage or do an integer
+ * pixfade will darken a pix by a certain percentage or do an integer
  * max pixel value.  It runs in two modes, truncate which will cut any
  * channel greater than param to param, and scale which will change
- * a channel to param percent of its orignal value (limited by 0-255)
+ * a channel to param percent of its original value (limited by 0-255)
  *
  * Inputs:
  * -m  integer max value
  * -f  fraction to fade
  * -p  percentage of fade (fraction = percentage/100)
- * filea pixture file.
- * STDIN   a pixture file if 'file' is not given.
+ * filea picture file.
+ * STDIN   a picture file if 'file' is not given.
  *
  * Output:
- * STDOUT  the faded pixture.
+ * STDOUT  the faded picture.
  *
  * Calls:
  * get_args
@@ -72,14 +72,14 @@
case 'p':
*multiplier = atof(bu_optarg) / 100.0;
if (*multiplier < 0.0) {
-   fprintf(stderr, "pixfade: percent is negitive");
+   fprintf(stderr, "pixfade: percent is negative");
bu_exit (1, NULL);
}
break;
case 'f':
*multiplier = atof(bu_optarg);
if (*multiplier < 0.0) {
-   fprintf(stderr, "pixfade: fraction is negitive");
+   fprintf(stderr, "pixfade: fraction is negative");
bu_exit (1, NULL);
}
break;

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53362] brlcad/trunk/src/util/pixrect.c

2012-10-25 Thread carlmoore
Revision: 53362
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53362&view=rev
Author:   carlmoore
Date: 2012-10-25 19:56:11 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings (notice sdtin --> stdin)

Modified Paths:
--
brlcad/trunk/src/util/pixrect.c

Modified: brlcad/trunk/src/util/pixrect.c
===
--- brlcad/trunk/src/util/pixrect.c 2012-10-25 19:16:22 UTC (rev 53361)
+++ brlcad/trunk/src/util/pixrect.c 2012-10-25 19:56:11 UTC (rev 53362)
@@ -142,7 +142,7 @@
perror("scanf");
 }
 
-/* Make sure nessecary variables set */
+/* Make sure necessary variables set */
 if (linelen <= 0 || xnum <= 0 || ynum <= 0) {
fprintf(stderr, "%s", usage);
bu_exit(1, "pixrect: args for -w -W -N [-S] must be > 0\n");
@@ -154,7 +154,7 @@
if (bu_optind >= argc) {
if (isatty(fileno(stdin))) {
fprintf(stderr,
-   "pixrect: input from sdtin\n");
+   "pixrect: input from stdin\n");
return 0;
}
ifp = stdin;

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53361] brlcad/trunk/src/util/pixcut.c

2012-10-25 Thread carlmoore
Revision: 53361
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53361&view=rev
Author:   carlmoore
Date: 2012-10-25 19:16:22 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/pixcut.c

Modified: brlcad/trunk/src/util/pixcut.c
===
--- brlcad/trunk/src/util/pixcut.c  2012-10-25 18:16:38 UTC (rev 53360)
+++ brlcad/trunk/src/util/pixcut.c  2012-10-25 19:16:22 UTC (rev 53361)
@@ -270,7 +270,7 @@
 }
 /*
  * If the new image does not intersect the original, then set the base_x
- * so that it does not overlap the original but at the same time minmizes
+ * so that it does not overlap the original but at the same time minimizes
  * the memory hit.
  */
 if (base_x + new_width < 0 || base_x > org_width) {
@@ -342,7 +342,7 @@
row++;
 }
 /*
- * Refill the output buffer if we are going to be outputing background
+ * Refill the output buffer if we are going to be outputting background
  * lines.
  */
 if (row >= org_height) {

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53360] brlcad/trunk/src/util/pixscale.c

2012-10-25 Thread carlmoore
Revision: 53360
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53360&view=rev
Author:   carlmoore
Date: 2012-10-25 18:16:38 + (Thu, 25 Oct 2012)
Log Message:
---
fix spelling

Modified Paths:
--
brlcad/trunk/src/util/pixscale.c

Modified: brlcad/trunk/src/util/pixscale.c
===
--- brlcad/trunk/src/util/pixscale.c2012-10-25 17:59:01 UTC (rev 53359)
+++ brlcad/trunk/src/util/pixscale.c2012-10-25 18:16:38 UTC (rev 53360)
@@ -375,7 +375,7 @@
}
 }
 
-/* XXX - backward compatability hack */
+/* XXX - backward compatibility hack */
 if (bu_optind+5 == argc) {
file_name = argv[bu_optind++];
if ((buffp = fopen(file_name, "r")) == NULL) {

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53359] brlcad/trunk/TODO

2012-10-25 Thread brlcad
Revision: 53359
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53359&view=rev
Author:   brlcad
Date: 2012-10-25 17:59:01 + (Thu, 25 Oct 2012)
Log Message:
---
add a section for windows binaries still needing to be ported.  list compiled 
by yapp.

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2012-10-25 17:56:12 UTC (rev 53358)
+++ brlcad/trunk/TODO   2012-10-25 17:59:01 UTC (rev 53359)
@@ -1335,6 +1335,39 @@
   project as a possible means of procedurally generating plant models
   in BRL-CAD (libraries are BSD licensed: http://ngplant.sourceforge.net)
 
+
+WINDOWS
+---
+
+The following binaries are not yet available on Windows.  The reason
+is identified in parentheses.
+
+bombardier (possibly just a problem with the build logic)
+burst  (TERMLIB)
+enigma (not ported)
+fbcolor(TERMLIB)
+fbed   (TERMLIB)
+fbpoint(TERMLIB) 
+fbzoom (TERMLIB)
+ir-X   (X11 specific)
+irdisp (X11 specific)
+isst   (Togl widget on Windows, possibly other issues)
+lgt(TERMLIB)
+pl-X   (X11 specific)
+pl-dm  (possibly X11 specific)
+pp-fb  (TERMLIB)
+remrt  (remrt dir commented out for WIN32 in src/CMakeLists.txt)
+rtsrv  (remrt dir commented out for WIN32 in src/CMakeLists.txt)
+rttherm(rttherm dir commented out for WIN32 in src/CMakeLists.txt)
+scriptsort (lex)
+ssamp-bw   (rttherm dir commented out for WIN32 in src/CMakeLists.txt)
+ssampview  (rttherm dir commented out for WIN32 in src/CMakeLists.txt)
+ttcp   (not ported)
+
+The MGED points support doesn't appear as an executable, but it is
+missing on Windows due to needing lex.
+
+
 CONVERTERS
 --
 

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53358] brlcad/trunk/src/tclscripts/archer

2012-10-25 Thread bob1961
Revision: 53358
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53358&view=rev
Author:   bob1961
Date: 2012-10-25 17:56:12 + (Thu, 25 Oct 2012)
Log Message:
---
Added the flexibility to pick BOT points and edges along the full depth of the 
BOT or only from the front of the BOT.

Modified Paths:
--
brlcad/trunk/src/tclscripts/archer/Archer.tcl
brlcad/trunk/src/tclscripts/archer/BotEditFrame.tcl
brlcad/trunk/src/tclscripts/archer/GeometryEditFrame.tcl

Modified: brlcad/trunk/src/tclscripts/archer/Archer.tcl
===
--- brlcad/trunk/src/tclscripts/archer/Archer.tcl   2012-10-25 17:25:13 UTC 
(rev 53357)
+++ brlcad/trunk/src/tclscripts/archer/Archer.tcl   2012-10-25 17:56:12 UTC 
(rev 53358)
@@ -153,9 +153,9 @@
 
method importFg4Sections   {_slist _wlist _delta}
method initAppendPipePoint {_obj _button _callback}
-   method initFindBotEdge {_obj _button _callback}
+   method initFindBotEdge {_obj _button _viewz _callback}
method initFindBotFace {_obj _button _callback}
-   method initFindBotPoint {_obj _button _callback}
+   method initFindBotPoint {_obj _button _viewz _callback}
method initFindPipePoint {_obj _button _callback}
method initPrependPipePoint {_obj _button _callback}
 
@@ -752,7 +752,7 @@
 }
 
 
-::itcl::body Archer::initFindBotEdge {_obj _button _callback} {
+::itcl::body Archer::initFindBotEdge {_obj _button _viewz _callback} {
 if {![info exists itk_component(ged)]} {
return
 }
@@ -760,7 +760,7 @@
 # This deselects the selected mouse mode in the primary toolbar
 set mDefaultBindingMode FIRST_FREE_BINDING_MODE
 
-$itk_component(ged) init_find_bot_edge $_obj $_button $_callback
+$itk_component(ged) init_find_bot_edge $_obj $_button $_viewz $_callback
 }
 
 
@@ -776,7 +776,7 @@
 }
 
 
-::itcl::body Archer::initFindBotPoint {_obj _button _callback} {
+::itcl::body Archer::initFindBotPoint {_obj _button _viewz _callback} {
 if {![info exists itk_component(ged)]} {
return
 }
@@ -784,7 +784,7 @@
 # This deselects the selected mouse mode in the primary toolbar
 set mDefaultBindingMode FIRST_FREE_BINDING_MODE
 
-$itk_component(ged) init_find_botpt $_obj $_button $_callback
+$itk_component(ged) init_find_botpt $_obj $_button $_viewz $_callback
 }
 
 

Modified: brlcad/trunk/src/tclscripts/archer/BotEditFrame.tcl
===
--- brlcad/trunk/src/tclscripts/archer/BotEditFrame.tcl 2012-10-25 17:25:13 UTC 
(rev 53357)
+++ brlcad/trunk/src/tclscripts/archer/BotEditFrame.tcl 2012-10-25 17:56:12 UTC 
(rev 53358)
@@ -86,7 +86,7 @@
method moveBotElement {_dname _obj _x _y}
method moveBotFaceMode {_dname _obj _x _y}
method moveBotPt {_dname _obj _x _y}
-   method moveBotPtMode {_dname _obj _x _y}
+   method moveBotPtMode {_dname _obj _viewz _x _y}
method moveBotPts {_dname _obj _x _y _plist}
method moveBotPtsMode {_dname _obj _x _y}
 }
@@ -101,6 +101,7 @@
variable mCurrentBotPoints ""
variable mCurrentBotEdges ""
variable mCurrentBotFaces ""
+   variable mFrontPointsOnly 1
 
# Methods used by the constructor
# override methods in GeometryEditFrame
@@ -292,10 +293,20 @@
 
 ::itcl::body BotEditFrame::moveBotEdgeMode {_dname _obj _x _y} {
 $itk_option(-mged) clear_bot_callbacks
-set edge [$itk_option(-mged) pane_mouse_find_bot_edge $_dname $_obj $_x 
$_y]
 
+if {$mFrontPointsOnly} {
+   set zlist [ $::ArcherCore::application getZClipState]
+   set viewz [lindex $zlist 0]
+} else {
+   set viewz -1.0
+}
+
+set edge [$itk_option(-mged) pane_mouse_find_bot_edge $_dname $_obj $viewz 
$_x $_y]
+
 set mCurrentBotPoints {}
+set mCurrentBotEdges {}
 $itk_component(vertTab) unselectAllRows
+$itk_component(edgeTab) unselectAllRows
 botEdgesSelectCallback $edge
 
 set plist [$itk_component(vertTab) getSelectedRows]
@@ -352,9 +363,10 @@
 }
 
 
-::itcl::body BotEditFrame::moveBotPtMode {_dname _obj _x _y} {
+::itcl::body BotEditFrame::moveBotPtMode {_dname _obj _viewz _x _y} {
 $itk_option(-mged) clear_bot_callbacks
-set pindex [$itk_option(-mged) pane_mouse_find_botpt $_dname $_obj $_x $_y]
+
+set pindex [$itk_option(-mged) pane_mouse_find_botpt $_dname $_obj $_viewz 
$_x $_y]
 $itk_option(-mged) pane_move_botpt_mode $_dname $_obj $pindex $_x $_y
 
 botPointSelectCallback $pindex
@@ -376,7 +388,14 @@
 
 set plist [$itk_component(vertTab) getSelectedRows]
 if {[llength $plist] < 2} {
-   moveBotPtMode $_dname $_obj $_x $_y
+   if {$mFrontPointsOnly} {
+   set zlist [ $::ArcherCore::application getZClipState]
+   set viewz [lindex $zlist 0]
+   } else {
+   set viewz -1.0
+   }
+
+   moveBotPtMode $_dname $_obj $viewz

[brlcad-commits] SF.net SVN: brlcad:[53357] brlcad/trunk/src/librt/primitives/tgc/tgc.c

2012-10-25 Thread n_reed
Revision: 53357
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53357&view=rev
Author:   n_reed
Date: 2012-10-25 17:25:13 + (Thu, 25 Oct 2012)
Log Message:
---
be smarter at picking number of sample points

Modified Paths:
--
brlcad/trunk/src/librt/primitives/tgc/tgc.c

Modified: brlcad/trunk/src/librt/primitives/tgc/tgc.c
===
--- brlcad/trunk/src/librt/primitives/tgc/tgc.c 2012-10-25 16:55:33 UTC (rev 
53356)
+++ brlcad/trunk/src/librt/primitives/tgc/tgc.c 2012-10-25 17:25:13 UTC (rev 
53357)
@@ -1830,7 +1830,6 @@
 static int
 tgc_points_per_ellipse(const struct rt_db_internal *ip, const struct 
rt_view_info *info)
 {
-int num_points;
 struct rt_tgc_internal *tgc;
 fastf_t samples_per_mm, avg_axis_len, avg_axis_samples;
 
@@ -1838,23 +1837,13 @@
 tgc = (struct rt_tgc_internal *)ip->idb_ptr;
 RT_TGC_CK_MAGIC(tgc);
 
-avg_axis_len = 2.0 * sqrt((MAGSQ(tgc->a) + MAGSQ(tgc->b) + MAGSQ(tgc->c) +
-   MAGSQ(tgc->d)) / 4.0);
+avg_axis_len = (2.0 * (MAGNITUDE(tgc->a) + MAGNITUDE(tgc->b) +
+   MAGNITUDE(tgc->c) + MAGNITUDE(tgc->d))) / 4.0;
 
 samples_per_mm = sqrt(info->view_samples) / info->view_size;
 avg_axis_samples = samples_per_mm * avg_axis_len;
 
-num_points = sqrt(avg_axis_samples);
-
-if (num_points % 2 != 0) {
-   ++num_points;
-}
-
-if (num_points < 8) {
-   num_points = 8;
-}
-
-return num_points;
+return pow(avg_axis_samples * M_PI, .55);
 }
 
 int
@@ -1871,6 +1860,16 @@
 
 points_per_ellipse = tgc_points_per_ellipse(ip, info);
 
+if (points_per_ellipse < 4) {
+   point_t p;
+
+   VADD2(p, tip->v, tip->h);
+   RT_ADD_VLIST(info->vhead, tip->v, BN_VLIST_LINE_MOVE);
+   RT_ADD_VLIST(info->vhead, p, BN_VLIST_LINE_DRAW);
+
+   return 0;
+}
+
 VMOVE(ellipse1.center, tip->v);
 VMOVE(ellipse1.axis_a, tip->a);
 VMOVE(ellipse1.axis_b, tip->b);

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53356] brlcad/trunk/src/librt/primitives/ell/ell.c

2012-10-25 Thread n_reed
Revision: 53356
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53356&view=rev
Author:   n_reed
Date: 2012-10-25 16:55:33 + (Thu, 25 Oct 2012)
Log Message:
---
be smarter at picking number of sample points

Modified Paths:
--
brlcad/trunk/src/librt/primitives/ell/ell.c

Modified: brlcad/trunk/src/librt/primitives/ell/ell.c
===
--- brlcad/trunk/src/librt/primitives/ell/ell.c 2012-10-25 15:57:02 UTC (rev 
53355)
+++ brlcad/trunk/src/librt/primitives/ell/ell.c 2012-10-25 16:55:33 UTC (rev 
53356)
@@ -756,42 +756,62 @@
 }
 }
 
+/* choose number of samples to use per ellipse based on view and ell info */
+static int
+ell_ellipse_samples(
+   const struct rt_ell_internal *ell,
+   const struct rt_view_info *info)
+{
+fastf_t samples_per_mm, mm_per_sample;
+fastf_t radius, radius_samples;
+
+samples_per_mm = sqrt(info->view_samples) / info->view_size;
+mm_per_sample = 1.0 / samples_per_mm;
+
+radius = fabs((MAGNITUDE(ell->a) + MAGNITUDE(ell->b) + MAGNITUDE(ell->c))
+   / 3.0);
+radius_samples = radius * samples_per_mm;
+
+/* (2 * PI * radius_samples) would give us the number of times we expect
+ * our ellipse curves to be sampled by the view. This is sufficient to
+ * produce a very good rasterized image, but it is actually overkill.
+ *
+ * If we reduce the number of lines segments, those segment may
+ * nevertheless pass through almost all of the same pixels in the view,
+ * producing an equivalent rasterized image. Rather than expending the
+ * effort to directly calculate how few segments we can get away with
+ * without reducing the apparant quality of the rasterized curve, we just
+ * use this empirical calculation.
+ */
+return pow(bn_twopi * radius_samples, .55);
+}
+
 int
 rt_ell_adaptive_plot(struct rt_db_internal *ip, const struct rt_view_info 
*info)
 {
 struct ell_draw_configuration config;
 struct rt_ell_internal *eip;
-fastf_t samples;
 
 BU_CK_LIST_HEAD(info->vhead);
 RT_CK_DB_INTERNAL(ip);
 eip = (struct rt_ell_internal *)ip->idb_ptr;
 RT_ELL_CK_MAGIC(eip);
 
-samples = primitive_diagonal_samples(ip, info);
-
 config.vhead = info->vhead;
 VMOVE(config.ell_center, eip->v);
-config.points_per_section = sqrt(samples);
 
+config.points_per_section = ell_ellipse_samples(eip, info);
+
 if (config.points_per_section < 6) {
-   config.points_per_section = 6;
+   return 0;
 }
 
-if (config.points_per_section > 32) {
-   config.points_per_section = 32;
-}
-
-config.num_cross_sections = sqrt(samples) / 3.0;
-
-if (config.num_cross_sections < 1) {
+if (config.points_per_section < 16) {
config.num_cross_sections = 1;
+} else {
+   config.num_cross_sections = sqrt(config.points_per_section);
 }
 
-if (config.num_cross_sections > 5) {
-   config.num_cross_sections = 5;
-}
-
 VMOVE(config.ell_travel_vector, eip->a);
 VMOVE(config.ell_axis_vector_a, eip->b);
 VMOVE(config.ell_axis_vector_b, eip->c);

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53355] brlcad/trunk/src/util/dunnsnap.1

2012-10-25 Thread carlmoore
Revision: 53355
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53355&view=rev
Author:   carlmoore
Date: 2012-10-25 15:57:02 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/dunnsnap.1

Modified: brlcad/trunk/src/util/dunnsnap.1
===
--- brlcad/trunk/src/util/dunnsnap.12012-10-25 15:17:33 UTC (rev 53354)
+++ brlcad/trunk/src/util/dunnsnap.12012-10-25 15:57:02 UTC (rev 53355)
@@ -79,7 +79,7 @@
 flag causes the named framebuffer to be opened before exposure,
 and closed afterwards.
 This is intended for use with display systems like the SGI 4-D,
-which always run a window mamager.
+which always run a window manager.
 The particular framebuffer options used could, for example,
 cause the image to blanket the whole screen, or
 change the video output to some other frequency.
@@ -114,7 +114,7 @@
 the entire screen).
 .PP
 The Dunn camera has been successfully operated while attached to
-an Adage (Ikonas) RDS-3000 frambuffer in both low-res (512\u2\d 60 Hz)
+an Adage (Ikonas) RDS-3000 framebuffer in both low-res (512\u2\d 60 Hz)
 and high-res (1024\u2\d 30 Hz) modes.
 The
 .PP

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53354] brlcad/trunk/src/tclscripts/lib/Ged.tcl

2012-10-25 Thread bob1961
Revision: 53354
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53354&view=rev
Author:   bob1961
Date: 2012-10-25 15:17:33 + (Thu, 25 Oct 2012)
Log Message:
---
Added cadwidgets::Ged::pane_find_bot_edge_in_face and 
cadwidgets::Ged::pane_find_botpt_in_face. Updated 
cadwidgets::Ged::pane_mouse_find_bot_edge and 
cadwidgets::Ged::pane_mouse_find_botpt to call the new functions.

Modified Paths:
--
brlcad/trunk/src/tclscripts/lib/Ged.tcl

Modified: brlcad/trunk/src/tclscripts/lib/Ged.tcl
===
--- brlcad/trunk/src/tclscripts/lib/Ged.tcl 2012-10-25 14:46:48 UTC (rev 
53353)
+++ brlcad/trunk/src/tclscripts/lib/Ged.tcl 2012-10-25 15:17:33 UTC (rev 
53354)
@@ -191,6 +191,8 @@
method faceplate {args}
method facetize {args}
method fb2pix {args}
+   method find_bot_edge_in_face {_bot _face _mx _my}
+   method find_botpt_in_face {_bot _face _mx _my}
method find_pipept {args}
method fontsize {args}
method form {args}
@@ -259,8 +261,8 @@
method mouse_append_pipept {args}
method mouse_constrain_rot {args}
method mouse_constrain_trans {args}
-   method mouse_find_bot_edge {args}
-   method mouse_find_botpt {args}
+   method mouse_find_bot_edge {_bot _mx _my}
+   method mouse_find_botpt {_bot _mx _my}
method mouse_find_pipept {args}
method mouse_move_arb_edge {args}
method mouse_move_arb_face {args}
@@ -319,8 +321,10 @@
method pane_eye {_pane args}
method pane_eye_pos {_pane args}
method pane_fb2pix {_pane args}
-   method pane_find_botpt {args}
-   method pane_find_pipept {args}
+   method pane_find_botpt {_pane args}
+   method pane_find_bot_edge_in_face {_pane _bot _face _mx _my}
+   method pane_find_botpt_in_face {_pane _bot _face _mx _my}
+   method pane_find_pipept {_pane args}
method pane_fontsize {_pane args}
method pane_get_eyemodel {_pane args}
method pane_grid {_pane args}
@@ -342,9 +346,9 @@
method pane_mouse_append_pipept {_pane args}
method pane_mouse_constrain_rot {_pane args}
method pane_mouse_constrain_trans {_pane args}
-   method pane_mouse_find_bot_edge {_pane args}
+   method pane_mouse_find_bot_edge {_pane _bot _viewz _mx _my}
method pane_mouse_find_bot_face {_pane _bot _viewz _mx _my}
-   method pane_mouse_find_botpt {_pane args}
+   method pane_mouse_find_botpt {_pane _bot _viewz _mx _my}
method pane_mouse_find_pipept {_pane args}
method pane_mouse_move_arb_edge {_pane args}
method pane_mouse_move_arb_face {_pane args}
@@ -619,9 +623,9 @@
method init_data_poly_cont {{_button 1}}
method init_data_poly_ell {{_button 1}}
method init_data_poly_rect {{_button 1} {_sflag 0}}
-   method init_find_bot_edge {_obj {_button 1} {_callback {}}}
+   method init_find_bot_edge {_obj {_button 1} {_viewz 1.0} {_callback {}}}
method init_find_bot_face {_obj {_button 1} {_viewz 1.0} {_callback {}}}
-   method init_find_botpt {_obj {_button 1} {_callback {}}}
+   method init_find_botpt {_obj {_button 1} {_viewz 1.0} {_callback {}}}
method init_find_pipept {_obj {_button 1} {_callback {}}}
method init_prepend_pipept {_obj {_button 1} {_callback {}}}
method init_view_bindings {{_type default}}
@@ -1444,6 +1448,17 @@
 eval $mGed fb2pix $itk_component($itk_option(-pane)) $args
 }
 
+
+::itcl::body cadwidgets::Ged::find_bot_edge_in_face {_bot _face _mx _my} {
+pane_find_bot_edge_in_face $itk_option(-pane) $_bot $_face $_mx $_my
+}
+
+
+::itcl::body cadwidgets::Ged::find_botpt_in_face {_bot _face _mx _my} {
+pane_find_botpt_in_face $itk_option(-pane) $_bot $_face $_mx $_my
+}
+
+
 ::itcl::body cadwidgets::Ged::find_pipept {args} {
 eval $mGed find_pipept $itk_component($itk_option(-pane)) $args
 }
@@ -1798,12 +1813,12 @@
 eval $mGed mouse_constrain_trans $itk_component($itk_option(-pane)) $args
 }
 
-::itcl::body cadwidgets::Ged::mouse_find_bot_edge {args} {
+::itcl::body cadwidgets::Ged::mouse_find_bot_edge {_bot _mx _my} {
 eval $mGed mouse_find_bot_edge $itk_component($itk_option(-pane)) $args
 }
 
-::itcl::body cadwidgets::Ged::mouse_find_botpt {args} {
-eval $mGed mouse_find_botpt $itk_component($itk_option(-pane)) $args
+::itcl::body cadwidgets::Ged::mouse_find_botpt {_bot _mx _my} {
+eval $mGed mouse_find_botpt $itk_component($itk_option(-pane)) $_bot $_mx 
$_my
 }
 
 ::itcl::body cadwidgets::Ged::mouse_find_pipept {args} {
@@ -2042,10 +2057,112 @@
 eval $mGed fb2pix $itk_component($_pane) $args
 }
 
+
 ::itcl::body cadwidgets::Ged::pane_find_botpt {_pane args} {
 eval $mGed find_botpt $itk_component($_pane) $args
 }
 
+
+::itcl::body cadwidgets::Ged::pane_find_bot_edge_in_face {_pane _bot _face _mx 
_my} {
+set vertices [$mGed get $_bo

[brlcad-commits] SF.net SVN: brlcad:[53353] brlcad/trunk/src/util/pix-sun.c

2012-10-25 Thread carlmoore
Revision: 53353
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53353&view=rev
Author:   carlmoore
Date: 2012-10-25 14:46:48 + (Thu, 25 Oct 2012)
Log Message:
---
fix spellings

Modified Paths:
--
brlcad/trunk/src/util/pix-sun.c

Modified: brlcad/trunk/src/util/pix-sun.c
===
--- brlcad/trunk/src/util/pix-sun.c 2012-10-25 13:52:38 UTC (rev 53352)
+++ brlcad/trunk/src/util/pix-sun.c 2012-10-25 14:46:48 UTC (rev 53353)
@@ -124,7 +124,7 @@
   119, 136, 170, 187, 221, 238, 17, 34, 68, 85, 119, 136, 170, 187, 221, 238 };
 
 
-/* indicies of the primary colors and grey values in the color map */
+/* indices of the primary colors and grey values in the color map */
 static unsigned char rvec[16] = { 0, 216, 217, 1, 218, 219, 2, 220, 221,
  3, 222, 223, 4, 224, 225, 5};
 static unsigned char gvec[16] = { 0, 226, 227,  6, 228, 229, 12, 230,
@@ -267,7 +267,7 @@
  */
 free(pix);
 
-/* fill in miscelaneous rasterfile header fields */
+/* fill in miscellaneous rasterfile header fields */
 ras.ras_length = ras.ras_width * ras.ras_height;
 
 /* write the rasterfile header */
@@ -310,7 +310,7 @@
 /*
  * M A I N
  *
- * Perform miscelaneous tasks such as argument parsing and
+ * Perform miscellaneous tasks such as argument parsing and
  * I/O setup and then call "doit" to perform the task at hand
  */
 int

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53352] brlcad/trunk/doc/deprecation.txt

2012-10-25 Thread brlcad
Revision: 53352
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53352&view=rev
Author:   brlcad
Date: 2012-10-25 13:52:38 + (Thu, 25 Oct 2012)
Log Message:
---
some folks would like librtserver to be an external project and I'm inclined to 
oblige.  this will allow us to eliminate all references to java and a common 
point of misunderstanding from users

Modified Paths:
--
brlcad/trunk/doc/deprecation.txt

Modified: brlcad/trunk/doc/deprecation.txt
===
--- brlcad/trunk/doc/deprecation.txt2012-10-25 12:17:14 UTC (rev 53351)
+++ brlcad/trunk/doc/deprecation.txt2012-10-25 13:52:38 UTC (rev 53352)
@@ -67,6 +67,8 @@
 
 7.22
 
+librtserver
+becoming stand-alone project, removes optional java dependency 
[deprecated 7.22]
 mged
em, e_muves, l_muves, lm, read_muves, and t_muves MUVES-specific 
commands [deprecated 7.22]
 

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits


[brlcad-commits] SF.net SVN: brlcad:[53351] brlcad/trunk/src

2012-10-25 Thread brlcad
Revision: 53351
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53351&view=rev
Author:   brlcad
Date: 2012-10-25 12:17:14 + (Thu, 25 Oct 2012)
Log Message:
---
more fastf_t / double consistency conversions to support single and double 
precision.

Modified Paths:
--
brlcad/trunk/src/conv/comgeom/solid.c
brlcad/trunk/src/lgt/do_options.c
brlcad/trunk/src/lgt/extern.h
brlcad/trunk/src/lgt/lgt.h
brlcad/trunk/src/lgt/reflect.c
brlcad/trunk/src/mged/clone.c
brlcad/trunk/src/nirt/read_mat.c
brlcad/trunk/src/proc-db/pipe.c
brlcad/trunk/src/proc-db/sphflake.c
brlcad/trunk/src/remrt/remrt.c
brlcad/trunk/src/rt/read-rtlog.c
brlcad/trunk/src/shapes/fence.c

Modified: brlcad/trunk/src/conv/comgeom/solid.c
===
--- brlcad/trunk/src/conv/comgeom/solid.c   2012-10-25 12:15:03 UTC (rev 
53350)
+++ brlcad/trunk/src/conv/comgeom/solid.c   2012-10-25 12:17:14 UTC (rev 
53351)
@@ -81,10 +81,10 @@
  * -1  failure
  */
 int
-getsoldata(double *dp, int num, int solid_num)
+getsoldata(fastf_t *dp, int num, int solid_num)
 {
 intcd;
-double *fp;
+fastf_t *fp;
 inti;
 intj;
 
@@ -131,10 +131,10 @@
  * -1  failure
  */
 int
-getxsoldata(double *dp, int num, int solid_num)
+getxsoldata(fastf_t *dp, int num, int solid_num)
 {
 intcd;
-double *fp;
+fastf_t *fp;
 inti;
 intj;
 
@@ -567,7 +567,7 @@
int numpts; /* points per wire */
int num;
double  dia;
-   double  *pts;   /* 3 entries per pt */
+   fastf_t *pts;   /* 3 entries per pt */
struct  wdb_pipept  *ps;
struct  bu_list head;   /* allow a whole struct for 
head */
 
@@ -576,7 +576,7 @@
num = numpts * 3 + 1;   /* 3 entries per pt */
 
/* allocate space for the points array */
-   pts = (double *)bu_malloc(num * sizeof(double), "pts");
+   pts = (fastf_t *)bu_malloc(num * sizeof(fastf_t), "pts");
 
if (getsoldata(pts, num, sol_work) < 0) {
bu_free(name, "name");
@@ -779,8 +779,8 @@
 intneq;/* # planes from equation */
 intnae;/* # planes from az, el & vertex index 
*/
 intnface;  /* total number of faces */
-double *input_points = (double *)0;
-double *vertex = (double *)0;  /* vertex list of final solid */
+fastf_t *input_points = NULL;
+double *vertex = NULL; /* vertex list of final solid */
 intlast_vertex;/* index of first unused vertex */
 intmax_vertex; /* size of vertex array */
 int*used = (int *)0;   /* plane eqn use count */
@@ -826,11 +826,11 @@
 
 if (npt >= 1) {
/* Obtain vertex input_points */
-   input_points = (double *)bu_malloc(npt*3*sizeof(double), 
"input_points");
+   input_points = (fastf_t *)bu_malloc(npt*3*sizeof(fastf_t), 
"input_points");
 
if (getxsoldata(input_points, npt*3, sol_work) < 0) {
bu_free((char *)input_points, "input_points");
-   input_points = (double *)0;
+   input_points = NULL;
goto bad;
}
 }
@@ -978,7 +978,7 @@
 
 /* Release storage for input points */
 bu_free((char *)input_points, "input_points");
-input_points = (double *)0;
+input_points = NULL;
 
 /*
  *  ARBN must be convex.  Test for concavity.

Modified: brlcad/trunk/src/lgt/do_options.c
===
--- brlcad/trunk/src/lgt/do_options.c   2012-10-25 12:15:03 UTC (rev 53350)
+++ brlcad/trunk/src/lgt/do_options.c   2012-10-25 12:17:14 UTC (rev 53351)
@@ -3208,7 +3208,7 @@
/* Lights must track view, explicit light source positions
   not supported. */
for (i = 1; i < lgt_db_size; i++) {
-   fastf_t azim, elev;
+   double azim, elev;
if (! lgts[i].over
/* Fill in ptr to solid table for quick checking. */
&& (lgts[i].stp = rt_find_solid(rt_ip, lgts[i].name)) != 
SOLTAB_NULL

Modified: brlcad/trunk/src/lgt/extern.h
===
--- brlcad/trunk/src/lgt/extern.h   2012-10-25 12:15:03 UTC (rev 53350)
+++ brlcad/trunk/src/lgt/extern.h   2012-10-25 12:17:14 UTC (rev 53351)
@@ -39,9 +39,12 @@
 extern int lgt_Print_Db();
 extern int pars_Argv();
 
+void cons_Vector(double *vec, double azim, double elev);
+void render_Model(int frame);
+void render_Scan(int cpu, void *data);
+
 extern void append_Octp();
 extern void close_Output_Device();
-extern void cons_Vector();
 extern void delete_OcList();
 extern void display_Temp

[brlcad-commits] SF.net SVN: brlcad:[53350] brlcad/trunk/src/libbn/tcl.c

2012-10-25 Thread bob1961
Revision: 53350
  http://brlcad.svn.sourceforge.net/brlcad/?rev=53350&view=rev
Author:   bob1961
Date: 2012-10-25 12:15:03 + (Thu, 25 Oct 2012)
Log Message:
---
Added a tcl interface to bn_dist_pt2_lseg2.

Modified Paths:
--
brlcad/trunk/src/libbn/tcl.c

Modified: brlcad/trunk/src/libbn/tcl.c
===
--- brlcad/trunk/src/libbn/tcl.c2012-10-25 03:46:05 UTC (rev 53349)
+++ brlcad/trunk/src/libbn/tcl.c2012-10-25 12:15:03 UTC (rev 53350)
@@ -192,6 +192,7 @@
 char *name;
 void (*func)();
 } math_funcs[] = {
+{"bn_dist_pt2_lseg2",  (void (*)())bn_dist_pt2_lseg2},
 {"bn_isect_line2_line2",   (void (*)())bn_isect_line2_line2},
 {"bn_isect_line3_line3",   (void (*)())bn_isect_line3_line3},
 {"mat_mul",bn_mat_mul},
@@ -680,6 +681,48 @@
VJOIN1(a, pt, dist[0], dir);
bu_vls_printf(&result, "%g %g", V2INTCLAMPARGS(a));
 
+} else if (math_func == (void (*)())bn_dist_pt2_lseg2) {
+   point_t ptA, ptB, pca;
+   point_t pt;
+   fastf_t dist;
+   int ret;
+   static const struct bn_tol tol = {
+   BN_TOL_MAGIC, BN_TOL_DIST, BN_TOL_DIST*BN_TOL_DIST, 1e-6, 1-1e-6
+   };
+
+   if (argc != 4) {
+   bu_vls_printf(&result,
+ "Usage: bn_dist_pt2_lseg2 ptA ptB pt (%d args 
specified)", argc-1);
+   goto error;
+   }
+
+   if (bn_decode_vect(ptA, argv[1]) < 2) {
+   bu_vls_printf(&result, "bn_dist_pt2_lseg2 no ptA: %s\n", argv[0]);
+   goto error;
+   }
+
+   if (bn_decode_vect(ptB, argv[2]) < 2) {
+   bu_vls_printf(&result, "bn_dist_pt2_lseg2 no ptB: %s\n", argv[0]);
+   goto error;
+   }
+
+   if (bn_decode_vect(pt, argv[3]) < 2) {
+   bu_vls_printf(&result, "bn_dist_pt2_lseg2 no pt: %s\n", argv[0]);
+   goto error;
+   }
+
+   ret = bn_dist_pt2_lseg2(&dist, pca, ptA, ptB, pt, &tol);
+   switch (ret) {
+   case 0:
+   case 1:
+   case 2:
+   dist = 0.0;
+   break;
+   default:
+   break;
+   }
+
+   bu_vls_printf(&result, "%g", dist);
 } else {
bu_vls_printf(&result, "libbn/bn_tcl.c: math function %s not supported 
yet\n", argv[0]);
goto error;

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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits