[brlcad-commits] SF.net SVN: brlcad:[45923] osl/trunk/boost_1_46_1/boost/

2011-08-11 Thread kunigami
Revision: 45923
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45923view=rev
Author:   kunigami
Date: 2011-08-11 11:14:44 + (Thu, 11 Aug 2011)

Log Message:
---
adding latest compatible boost version with osl. part 2

Added Paths:
---
osl/trunk/boost_1_46_1/boost/


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45926] brlcad/trunk/src/tclscripts/lib/Ged.tcl

2011-08-11 Thread bob1961
Revision: 45926
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45926view=rev
Author:   bob1961
Date: 2011-08-11 19:43:54 + (Thu, 11 Aug 2011)

Log Message:
---
Need to destroy the ray object whenever the ged object is destroyed or when 
opening a different database. This fix was prompted by database turds being 
left on Windows platforms whenever the ray object was used. That is, the ray 
object also has the database copy (i.e. the turd) open and so the code that 
removes the database copy fails.

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

Modified: brlcad/trunk/src/tclscripts/lib/Ged.tcl
===
--- brlcad/trunk/src/tclscripts/lib/Ged.tcl 2011-08-11 19:40:01 UTC (rev 
45925)
+++ brlcad/trunk/src/tclscripts/lib/Ged.tcl 2011-08-11 19:43:54 UTC (rev 
45926)
@@ -656,6 +656,8 @@
variable mViewMeasureCallbacks 
variable mViewRectCallbacks 
 
+   variable mRay ray
+
method init_button_no_op_prot {{_button 1}}
method measure_line_erase {}
method multi_pane {args}
@@ -754,6 +756,7 @@
 
 ::itcl::body cadwidgets::Ged::destructor {} {
 if {!$mSharedGed} {
+   catch {rename $mRay }
rename $mGed 
 }
 }
@@ -1600,11 +1603,12 @@
 }
 
 ::itcl::body cadwidgets::Ged::open {args} {
+catch {rename $mRay }
 set $mGedFile [eval $mGed open $args]
 }
 
 ::itcl::body cadwidgets::Ged::opendb {args} {
-set $mGedFile [eval $mGed open $args]
+eval open $args
 }
 
 ::itcl::body cadwidgets::Ged::orient {args} {
@@ -3546,12 +3550,12 @@
 
 set result 
 catch {
-   eval $mGed rt_gettrees ray -i -u [$mGed who]
-   ray prep $_prep
-   ray no_bool $_no_bool
-   ray onehit $_onehit
+   eval $mGed rt_gettrees $mRay -i -u [$mGed who]
+   $mRay prep $_prep
+   $mRay no_bool $_no_bool
+   $mRay onehit $_onehit
 
-   set result [ray shootray $_start $_op $_target]
+   set result [$mRay shootray $_start $_op $_target]
 }
 
 SetNormalCursor $this


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45927] brlcad/trunk/src/tclscripts/archer/ArcherCore. tcl

2011-08-11 Thread starseeker
Revision: 45927
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45927view=rev
Author:   starseeker
Date: 2011-08-11 20:10:20 + (Thu, 11 Aug 2011)

Log Message:
---
Do as MGED does and default to Navy

Modified Paths:
--
brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-08-11 19:43:54 UTC 
(rev 45926)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-08-11 20:10:20 UTC 
(rev 45927)
@@ -351,7 +351,7 @@
variable mBindingMode Default
variable mBindingModePref 
variable mBackground 0 0 0
-   variable mBackgroundColor Black
+   variable mBackgroundColor Navy
variable mBackgroundColorPref 
variable mFBBackgroundColor Black
variable mFBBackgroundColorPref 


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45928] brlcad/trunk/src/tclscripts/archer/ArcherCore. tcl

2011-08-11 Thread bob1961
Revision: 45928
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45928view=rev
Author:   bob1961
Date: 2011-08-11 20:55:30 + (Thu, 11 Aug 2011)

Log Message:
---
The backgroundColor routine should be calling ::cadwidgets::Ged::get_rgb_color 
instead of getRgbColor for consistency.

Modified Paths:
--
brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-08-11 20:10:20 UTC 
(rev 45927)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2011-08-11 20:55:30 UTC 
(rev 45928)
@@ -2786,12 +2786,8 @@
 ::itcl::body ArcherCore::backgroundColor {_color} {
 set mCurrentPaneName 
 set mBackgroundColor $_color
+set mBackground [::cadwidgets::Ged::get_rgb_color $mBackgroundColor]
 
-if {[catch {getRgbColor $mBackgroundColor} mBackground]} {
-   set mBackgroundColor black
-   set mBackground {0 0 0}
-}
-
 if {[info exists itk_component(ged)]} {
eval $itk_component(ged) bg_all $mBackground
 }


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45930] brlcad/trunk/src/other

2011-08-11 Thread starseeker
Revision: 45930
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45930view=rev
Author:   starseeker
Date: 2011-08-11 21:17:58 + (Thu, 11 Aug 2011)

Log Message:
---
Make a stab at itk, probably the trickiest of these extensions.  Need to do 
some more logic consolidation into tcl.cmake and the src/other CMakeLists.txt 
settings probably need some more study (there are a lot of possible cases) but 
getting there.  Need to study STUBS usage in the standard Tcl/Tk build more and 
see if I need some conditionalization logic for those flags...

Modified Paths:
--
brlcad/trunk/src/other/CMakeLists.txt
brlcad/trunk/src/other/incrTcl/itcl/CMakeLists.txt
brlcad/trunk/src/other/incrTcl/itk/CMake/CheckSystemFunctionality.cmake
brlcad/trunk/src/other/incrTcl/itk/CMake/FindX11.cmake
brlcad/trunk/src/other/incrTcl/itk/CMake/tcl.cmake
brlcad/trunk/src/other/incrTcl/itk/CMakeLists.txt

Added Paths:
---
brlcad/trunk/src/other/incrTcl/itk/CMake/ac_std_funcs.cmake

Modified: brlcad/trunk/src/other/CMakeLists.txt
===
--- brlcad/trunk/src/other/CMakeLists.txt   2011-08-11 20:57:14 UTC (rev 
45929)
+++ brlcad/trunk/src/other/CMakeLists.txt   2011-08-11 21:17:58 UTC (rev 
45930)
@@ -336,12 +336,16 @@
 
 # Handle Tcl/Tk packages
 IF(BRLCAD_BUILD_LOCAL_ITCL)
+   SET(TCL_SRC_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/tcl)
IF(NOT BRLCAD_BUILD_LOCAL_TCL)
IF(WIN32)
SET(TCL_INCLUDE_DIRS ${TCL_INCLUDE_DIRS} 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/generic ${CMAKE_CURRENT_SOURCE_DIR}/tcl/win 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/libtommath)
ELSE(WIN32)
SET(TCL_INCLUDE_DIRS ${TCL_INCLUDE_DIRS} 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/generic ${CMAKE_CURRENT_SOURCE_DIR}/tcl/unix 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/libtommath)
ENDIF(WIN32)
+   get_filename_component(TCL_BIN_PREFIX ${TCL_LIBRARY} PATH)
+   ELSE(NOT BRLCAD_BUILD_LOCAL_TCL)
+   SET(TCL_BIN_PREFIX ${CMAKE_BINARY_DIR}/${LIB_DIR})
ENDIF(NOT BRLCAD_BUILD_LOCAL_TCL)
ADD_SUBDIRECTORY(incrTcl/itcl)
ADD_DEPENDENCIES(itcl tcl)
@@ -367,13 +371,36 @@
 
 
 IF(BRLCAD_BUILD_LOCAL_ITK)
+   SET(TCL_SRC_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/tcl)
+   SET(TK_SRC_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/tk)
+   SET(ITCL_SRC_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/incrTcl/itcl)
+   IF(NOT BRLCAD_BUILD_LOCAL_TCL)
+   IF(WIN32)
+   SET(TCL_INCLUDE_DIRS ${TCL_INCLUDE_DIRS} 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/generic ${CMAKE_CURRENT_SOURCE_DIR}/tcl/win 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/libtommath)
+   ELSE(WIN32)
+   SET(TCL_INCLUDE_DIRS ${TCL_INCLUDE_DIRS} 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/generic ${CMAKE_CURRENT_SOURCE_DIR}/tcl/unix 
${CMAKE_CURRENT_SOURCE_DIR}/tcl/libtommath)
+   ENDIF(WIN32)
+   get_filename_component(TCL_BIN_PREFIX ${TCL_LIBRARY} PATH)
+   ELSE(NOT BRLCAD_BUILD_LOCAL_TCL)
+   SET(TCL_BIN_PREFIX ${CMAKE_BINARY_DIR}/${LIB_DIR})
+   ENDIF(NOT BRLCAD_BUILD_LOCAL_TCL)
+
IF(NOT BRLCAD_BUILD_LOCAL_TK)
IF(WIN32)
SET(TK_INCLUDE_PATH ${TK_INCLUDE_PATH} 
${CMAKE_CURRENT_SOURCE_DIR}/tk/generic ${CMAKE_CURRENT_SOURCE_DIR}/tk/bitmaps)
ELSE(WIN32)
SET(TK_INCLUDE_PATH ${TK_INCLUDE_PATH} 
${CMAKE_CURRENT_SOURCE_DIR}/tk/generic ${CMAKE_CURRENT_SOURCE_DIR}/tk/win 
${CMAKE_CURRENT_SOURCE_DIR}/tk/bitmaps)
ENDIF(WIN32)
+   get_filename_component(TK_BIN_PREFIX ${TK_LIBRARY} PATH)
+   ELSE(NOT BRLCAD_BUILD_LOCAL_TK)
+   SET(TK_BIN_PREFIX ${CMAKE_BINARY_DIR}/${LIB_DIR})
ENDIF(NOT BRLCAD_BUILD_LOCAL_TK)
+   IF(NOT BRLCAD_BUILD_LOCAL_ITCL)
+   SET(ITCL_INCLUDE_DIRS 
${CMAKE_CURRENT_SOURCE_DIR}/incrTcl/itcl/generic)
+   get_filename_component(ITCL_BIN_PREFIX ${ITCL_LIBRARY} PATH)
+   ELSE(NOT BRLCAD_BUILD_LOCAL_ITCL)
+   SET(ITCL_BIN_PREFIX ${CMAKE_BINARY_DIR}/${LIB_DIR})
+   ENDIF(NOT BRLCAD_BUILD_LOCAL_ITCL)
ADD_SUBDIRECTORY(incrTcl/itk)
ADD_DEPENDENCIES(itk itcl tcl tk)
SET(ITK_LIBRARY itk CACHE STRING ITK_LIBRARY FORCE)

Modified: brlcad/trunk/src/other/incrTcl/itcl/CMakeLists.txt
===
--- brlcad/trunk/src/other/incrTcl/itcl/CMakeLists.txt  2011-08-11 20:57:14 UTC 
(rev 45929)
+++ brlcad/trunk/src/other/incrTcl/itcl/CMakeLists.txt  2011-08-11 21:17:58 UTC 
(rev 45930)
@@ -513,11 +513,10 @@
 
 IF(WIN32)
add_library(itcl ${ITCL_GENERIC_SRCS} ${ITCL_WIN_SRCS})
-   target_link_libraries(itcl ${M_LIBRARY} ${TCL_STUB_LIBRARIES} )
 ELSE(WIN32)
add_library(itcl ${ITCL_GENERIC_SRCS})
-   target_link_libraries(itcl ${M_LIBRARY} ${TCL_STUB_LIBRARIES} )
 ENDIF(WIN32)

[brlcad-commits] SF.net SVN: brlcad:[45931] brlcad/trunk/src/libbu/progname.c

2011-08-11 Thread starseeker
Revision: 45931
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45931view=rev
Author:   starseeker
Date: 2011-08-11 22:10:29 + (Thu, 11 Aug 2011)

Log Message:
---
We need a static buffer here, otherwise our path disappears on us.

Modified Paths:
--
brlcad/trunk/src/libbu/progname.c

Modified: brlcad/trunk/src/libbu/progname.c
===
--- brlcad/trunk/src/libbu/progname.c   2011-08-11 21:17:58 UTC (rev 45930)
+++ brlcad/trunk/src/libbu/progname.c   2011-08-11 22:10:29 UTC (rev 45931)
@@ -46,7 +46,7 @@
 {
 /* private stash */
 static const char *ipwd = NULL;
-char buffer[MAXPATHLEN] = {0};
+static char buffer[MAXPATHLEN] = {0};
 const char *pwd = NULL;
 
 /* already found the path before */


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45932] brlcad/trunk/src/libbu/progname.c

2011-08-11 Thread starseeker
Revision: 45932
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45932view=rev
Author:   starseeker
Date: 2011-08-11 22:45:43 + (Thu, 11 Aug 2011)

Log Message:
---
avoid overwriting the full argv0 path - bu_getprogname was storing its basename 
in the save variable as argv0's full path information.

Modified Paths:
--
brlcad/trunk/src/libbu/progname.c

Modified: brlcad/trunk/src/libbu/progname.c
===
--- brlcad/trunk/src/libbu/progname.c   2011-08-11 22:10:29 UTC (rev 45931)
+++ brlcad/trunk/src/libbu/progname.c   2011-08-11 22:45:43 UTC (rev 45932)
@@ -31,6 +31,7 @@
 #include bu.h
 
 /* internal storage for bu_getprogname/bu_setprogname */
+static char bu_argv0_buffer[MAXPATHLEN] = {0};
 static char bu_progname[MAXPATHLEN] = {0};
 
 
@@ -112,8 +113,8 @@
 /* FIXME: this is temporary until bu_getcwd() is working. */
 (void)_bu_ipwd();
 
-if (bu_progname[0] != '\0') {
-   argv0 = bu_progname;
+if (bu_argv0_buffer[0] != '\0') {
+   argv0 = bu_argv0_buffer;
 }
 
 #ifdef HAVE_GETPROGNAME
@@ -206,6 +207,8 @@
 
 if (argv0) {
snprintf(bu_progname, MAXPATHLEN, %s, argv0);
+   if (strlen(bu_argv0_buffer) == 0)
+   snprintf(bu_argv0_buffer, MAXPATHLEN, %s, argv0);
 } else {
bu_progname[0] = '\0';
 }


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45934] brlcad/trunk/CMakeLists.txt

2011-08-11 Thread starseeker
Revision: 45934
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45934view=rev
Author:   starseeker
Date: 2011-08-12 02:14:36 + (Fri, 12 Aug 2011)

Log Message:
---
Stay with the release wording.

Modified Paths:
--
brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2011-08-12 00:36:29 UTC (rev 45933)
+++ brlcad/trunk/CMakeLists.txt 2011-08-12 02:14:36 UTC (rev 45934)
@@ -1301,7 +1301,7 @@
endif (BRLCAD-ENABLE_64BIT)
SET(BRLCAD_ARCH_BITSETTING_LABEL Build 64-bit release )
SET(BRLCAD-ENABLE_OPTIMIZED_BUILD_LABEL Build optimized release )
-   SET(BRLCAD-ENABLE_DEBUG_FLAGS_LABEL Build with debug flags)
+   SET(BRLCAD-ENABLE_DEBUG_FLAGS_LABEL Build debuggable release)
SET(BRLCAD-ENABLE_PROFILING_LABEL Build profile release )
SET(BRLCAD-ENABLE_SMP_LABEL Build SMP-capable release )
SET(BUILD_STATIC_LIBS_LABEL Build static libraries )


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45936] brlcad/trunk/NEWS

2011-08-11 Thread brlcad
Revision: 45936
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45936view=rev
Author:   brlcad
Date: 2011-08-12 04:28:20 + (Fri, 12 Aug 2011)

Log Message:
---
reword to put verb foot forward first, and to remove trailing dash

Modified Paths:
--
brlcad/trunk/NEWS

Modified: brlcad/trunk/NEWS
===
--- brlcad/trunk/NEWS   2011-08-12 03:12:02 UTC (rev 45935)
+++ brlcad/trunk/NEWS   2011-08-12 04:28:20 UTC (rev 45936)
@@ -13,7 +13,7 @@
 --- 2011-07-XX  Release 7.20.4 ---
 --
 
-* Archer starts even if html documentation is not found - 
+* modified archer startup to not require html documentation
 - Cliff Yapp, Brandon Hinesley
 * improved mged/archer/bwish run-time path behavior on Windows
- Cliff Yapp, Bob Parker


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45937] brlcad/trunk/NEWS

2011-08-11 Thread brlcad
Revision: 45937
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45937view=rev
Author:   brlcad
Date: 2011-08-12 04:29:06 + (Fri, 12 Aug 2011)

Log Message:
---
reword to put verb foot forward first, and to remove trailing dash; A bug in 
Archer's help browser code resulted in Archer failing to start if it was unable 
to find the html files used for the help system - it now starts even if those 
files are not present.

Modified Paths:
--
brlcad/trunk/NEWS

Modified: brlcad/trunk/NEWS
===
--- brlcad/trunk/NEWS   2011-08-12 04:28:20 UTC (rev 45936)
+++ brlcad/trunk/NEWS   2011-08-12 04:29:06 UTC (rev 45937)
@@ -13,7 +13,7 @@
 --- 2011-07-XX  Release 7.20.4 ---
 --
 
-* modified archer startup to not require html documentation
+* modified archer startup to not require html documentation files
 - Cliff Yapp, Brandon Hinesley
 * improved mged/archer/bwish run-time path behavior on Windows
- Cliff Yapp, Bob Parker


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45938] brlcad/trunk

2011-08-11 Thread brlcad
Revision: 45938
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45938view=rev
Author:   brlcad
Date: 2011-08-12 04:37:18 + (Fri, 12 Aug 2011)

Log Message:
---
the keep command now saves the sketch associated with a revolve, not just the 
revolve itself.

Modified Paths:
--
brlcad/trunk/NEWS
brlcad/trunk/src/libged/keep.c

Modified: brlcad/trunk/NEWS
===
--- brlcad/trunk/NEWS   2011-08-12 04:29:06 UTC (rev 45937)
+++ brlcad/trunk/NEWS   2011-08-12 04:37:18 UTC (rev 45938)
@@ -13,6 +13,7 @@
 --- 2011-07-XX  Release 7.20.4 ---
 --
 
+* 'keep' command includes sketch when keeping revolve - Sean Morrison
 * modified archer startup to not require html documentation files
 - Cliff Yapp, Brandon Hinesley
 * improved mged/archer/bwish run-time path behavior on Windows

Modified: brlcad/trunk/src/libged/keep.c
===
--- brlcad/trunk/src/libged/keep.c  2011-08-12 04:29:06 UTC (rev 45937)
+++ brlcad/trunk/src/libged/keep.c  2011-08-12 04:37:18 UTC (rev 45938)
@@ -60,8 +60,8 @@
return;
 }
 
-/* if this is an extrusion, keep the referenced sketch */
 if (dp-d_major_type == DB5_MAJORTYPE_BRLCAD  dp-d_minor_type == 
DB5_MINORTYPE_BRLCAD_EXTRUDE) {
+   /* if this is an extrusion, keep the referenced sketch */
struct rt_extrude_internal *extr;
struct directory *dp2;
 
@@ -71,11 +71,22 @@
if ((dp2 = db_lookup(dbip, extr-sketch_name, LOOKUP_QUIET)) != 
RT_DIR_NULL) {
node_write(dbip, dp2, ptr);
}
+} else if (dp-d_major_type == DB5_MAJORTYPE_BRLCAD  dp-d_minor_type == 
DB5_MINORTYPE_BRLCAD_REVOLVE) {
+   /* if this is a revolve, keep the referenced sketch */
+   struct rt_revolve_internal *rev;
+   struct directory *dp2;
+
+   rev = (struct rt_revolve_internal *)intern.idb_ptr;
+   RT_REVOLVE_CK_MAGIC(rev);
+
+   if ((dp2 = db_lookup(dbip, bu_vls_addr(rev-sketch_name), 
LOOKUP_QUIET)) != RT_DIR_NULL) {
+   node_write(dbip, dp2, ptr);
+   }
 } else if (dp-d_major_type == DB5_MAJORTYPE_BRLCAD  dp-d_minor_type == 
DB5_MINORTYPE_BRLCAD_DSP) {
+   /* if this is a DSP, keep the referenced binary object too */
struct rt_dsp_internal *dsp;
struct directory *dp2;
 
-   /* this is a DSP, if it uses a binary object, keep it also */
dsp = (struct rt_dsp_internal *)intern.idb_ptr;
RT_DSP_CK_MAGIC(dsp);
 


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45939] brlcad/trunk/BUGS

2011-08-11 Thread brlcad
Revision: 45939
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45939view=rev
Author:   brlcad
Date: 2011-08-12 04:46:27 + (Fri, 12 Aug 2011)

Log Message:
---
revolve is busted?

Modified Paths:
--
brlcad/trunk/BUGS

Modified: brlcad/trunk/BUGS
===
--- brlcad/trunk/BUGS   2011-08-12 04:37:18 UTC (rev 45938)
+++ brlcad/trunk/BUGS   2011-08-12 04:46:27 UTC (rev 45939)
@@ -15,6 +15,9 @@
 Recent Bugs
 ---
 
+* revolve raytracing seems to be busted.. at least with the example
+  csgbrep revolve shape
+
 * torus with a near zero inner diamater results in zero-length edges
   during tessellation.
 


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45940] brlcad/trunk

2011-08-11 Thread brlcad
Revision: 45940
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45940view=rev
Author:   brlcad
Date: 2011-08-12 04:53:23 + (Fri, 12 Aug 2011)

Log Message:
---
document a few more issues being uncovered by the nurbs testing.  tessellation 
failures (crash and graceful aborts) on rhc and epa hypersensitivity to 
absolute tolerance.

Modified Paths:
--
brlcad/trunk/BUGS
brlcad/trunk/TODO

Modified: brlcad/trunk/BUGS
===
--- brlcad/trunk/BUGS   2011-08-12 04:46:27 UTC (rev 45939)
+++ brlcad/trunk/BUGS   2011-08-12 04:53:23 UTC (rev 45940)
@@ -15,6 +15,11 @@
 Recent Bugs
 ---
 
+* raytracing rhc crashes (inside malloc, so previous memory badness)
+  with normal tolerance set to non-default value (e.g. tol norm 0.1);
+  also fails (non-crash) if absolute tolerance is changed (e.g., tol
+  abs 0.1)
+
 * revolve raytracing seems to be busted.. at least with the example
   csgbrep revolve shape
 

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2011-08-12 04:46:27 UTC (rev 45939)
+++ brlcad/trunk/TODO   2011-08-12 04:53:23 UTC (rev 45940)
@@ -52,6 +52,9 @@
 THESE ARE UNSCHEDULED BACKLOG TASKS
 ---
 
+* investigate why epa primitive is so sensitive to coarse absolute
+  value changes (run csgbrep, tol abs=1, facetize and get 321k poly)
+
 * implement a new simulate command for applying physics deformations
   to geometry.  Each timestep (default steps==1) would get recorded as
   new geometry unless updating the existing is requested.  Usage might


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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:[45941] brlcad/trunk/src/libged/edit.c

2011-08-11 Thread bhinesley
Revision: 45941
  http://brlcad.svn.sourceforge.net/brlcad/?rev=45941view=rev
Author:   bhinesley
Date: 2011-08-12 05:07:34 + (Fri, 12 Aug 2011)

Log Message:
---
Tweak behavior of -k/-a/-r translations, per IRC conversation with Sean on June 
30, 2011, around 05:45:00 to UTC. Seems to be fully in compliance.

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

Modified: brlcad/trunk/src/libged/edit.c
===
--- brlcad/trunk/src/libged/edit.c  2011-08-12 04:53:23 UTC (rev 45940)
+++ brlcad/trunk/src/libged/edit.c  2011-08-12 05:07:34 UTC (rev 45941)
@@ -527,6 +527,8 @@
  * 
  * EXAMPLES
  *
+ * FIXME: These are outdated, and some are just plain wrong.
+ *
  * # move all instances of sph.s to x=1, y=2, z=3
  * translate -a 1 2 3 /sph.s
  *
@@ -535,9 +537,6 @@
  * translate -k sph.s -a 1 2 3 sph.s
  * translate -k . -a 1 2 3 sph.s
  *
- *  # A very practical use of
- * translate -k . -a . -x sph2.s sph1.s
- *
  * # move all instances of sph.s from a point 5 units above
  * # sph.s's center to x=1, y=2, z=3, by using OFFSET_DIST of
  * # -z 5.
@@ -1229,7 +1228,9 @@
 edit_cmd_expand_vectors(struct ged *gedp, union edit_cmd *const subcmd)
 {
 struct edit_arg *arg_head;
-vect_t src_v = VINIT_ZERO;
+vect_t src_v = VINIT_ZERO; /* where ommited points draw from */
+vect_t *kp_v = (vect_t *)NULL; /* 'from' point, aka keypoint */
+vect_t *to_v = (vect_t *)NULL; /* 'to' point */
 int i = 0;
 
 /* draw source vector from target object */
@@ -1239,28 +1240,36 @@
 
 while ((arg_head = *(subcmd-cmd-get_arg_head(subcmd, i++))) != 
   subcmd-common.objects) {
+   if (arg_head-type  EDIT_FROM)
+   kp_v = arg_head-vector;
+   to_v = arg_head-vector;
+
if (arg_head-type  EDIT_REL_DIST) {
/* convert to absolute position */
arg_head-type = ~EDIT_REL_DIST;
-   if (arg_head-coords_used  EDIT_COORD_X)
-   (*arg_head-vector)[0] += src_v[0];
-   else 
-   (*arg_head-vector)[0] = src_v[0];
-   if (arg_head-coords_used  EDIT_COORD_Y)
-   (*arg_head-vector)[1] += src_v[1];
-   else
-   (*arg_head-vector)[1] = src_v[1];
-   if (arg_head-coords_used  EDIT_COORD_Z)
-   (*arg_head-vector)[2] += src_v[2];
-   else
-   (*arg_head-vector)[2] = src_v[2];
+   if (arg_head-coords_used  EDIT_COORD_X) {
+   (*to_v)[0] += (*kp_v)[0];
+   (*kp_v)[0] = src_v[0];
+   } else /* no movement */
+   (*to_v)[0] = (*kp_v)[0];
+   if (arg_head-coords_used  EDIT_COORD_Y) {
+   (*to_v)[1] += (*kp_v)[1];
+   (*kp_v)[1] = src_v[1];
+   } else
+   (*to_v)[1] = (*kp_v)[1];
+   if (arg_head-coords_used  EDIT_COORD_Z) {
+   (*to_v)[2] += (*kp_v)[2];
+   (*kp_v)[2] = src_v[2];
+   } else
+   (*to_v)[2] = (*kp_v)[2];
+   kp_v = (vect_t *)NULL;
} else {
if (!(arg_head-coords_used  EDIT_COORD_X))
-   (*arg_head-vector)[0] = src_v[0];
+   (*to_v)[0] = src_v[0];
if (!(arg_head-coords_used  EDIT_COORD_Y))
-   (*arg_head-vector)[1] = src_v[1];
+   (*to_v)[1] = src_v[1];
if (!(arg_head-coords_used  EDIT_COORD_Z))
-   (*arg_head-vector)[2] = src_v[2];
+   (*to_v)[2] = src_v[2];
}
arg_head-coords_used |= EDIT_COORDS_ALL;
 }


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

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits