[brlcad-commits] SF.net SVN: brlcad:[46323] brlcad/trunk/CMakeLists.txt

2011-08-23 Thread d_rossberg
Revision: 46323
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46323view=rev
Author:   d_rossberg
Date: 2011-08-23 07:25:07 + (Tue, 23 Aug 2011)

Log Message:
---
quell cmake warning
and apparently trimmed trailing spaces

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

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2011-08-23 05:57:57 UTC (rev 46322)
+++ brlcad/trunk/CMakeLists.txt 2011-08-23 07:25:07 UTC (rev 46323)
@@ -569,8 +569,8 @@
 OPTION(BUILD_SHARED_LIBS Build shared libraries ON)
 MARK_AS_ADVANCED(BUILD_SHARED_LIBS)
 
-# Build static libs by default unless we're debugging. Note: this 
-# option will not disable libraries specifically added as STATIC even 
+# Build static libs by default unless we're debugging. Note: this
+# option will not disable libraries specifically added as STATIC even
 # when OFF.
 AUTO_OPTION(BRLCAD_BUILD_STATIC BUILD_STATIC_LIBS OFF ON)
 
@@ -821,17 +821,17 @@
MESSAGE(WARNING Selected MSVC compiler is 32 
bit - setting cpu type to 32 bit. To perform a 64 bit MSVC build, select the 64 
bit MSVC CMake generator.)
SET(BRLCAD-CPU_TYPE 32BIT CACHE STRING 
Detect system CPU type. FORCE)
ENDIF(NOT ${BRLCAD-CPU_TYPE} STREQUAL AUTO)
-   ENDIF(NOT ${BRLCAD-CPU_TYPE} STREQUAL 32BIT)
+   ENDIF(NOT ${CMAKE_CPU_TYPE} STREQUAL 32BIT)
ENDIF(CMAKE_CL_64)
 ENDIF(MSVC)
 
 # One of the problems with 32/64 building is we need to search anew
 # for 64 bit libs after a 32 bit configure, or vice versa.
-IF(PREVIOUS_CONFIGURE_TYPE) 
+IF(PREVIOUS_CONFIGURE_TYPE)
IF(NOT ${PREVIOUS_CONFIGURE_TYPE} STREQUAL ${CMAKE_CPU_TYPE})
MESSAGE(FATAL_ERROR Configuring for ${CMAKE_CPU_TYPE} build, 
but previous configuration for ${PREVIOUS_CONFIGURE_TYPE} is already present.  
To proceed, either clear CMakeCache.txt file or specify 
${PREVIOUS_CONFIGURE_TYPE} as the build type.)
ENDIF(NOT ${PREVIOUS_CONFIGURE_TYPE} STREQUAL ${CMAKE_CPU_TYPE})
-ENDIF(PREVIOUS_CONFIGURE_TYPE) 
+ENDIF(PREVIOUS_CONFIGURE_TYPE)
 
 SET(PREVIOUS_CONFIGURE_TYPE ${CMAKE_CPU_TYPE} CACHE STRING Previous 
configuration CPU type FORCE)
 MARK_AS_ADVANCED(PREVIOUS_CONFIGURE_TYPE)


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-d2d-2
___
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:[46324] brlcad/tags

2011-08-23 Thread brlcad
Revision: 46324
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46324view=rev
Author:   brlcad
Date: 2011-08-23 12:19:43 + (Tue, 23 Aug 2011)
Log Message:
---
revmoed additional 3rd party dependencies that don't really belong amongst our 
other tags

Removed Paths:
-
brlcad/tags/itcl3-2/
brlcad/tags/libpng_1_0_2/
brlcad/tags/tcl8-3/
brlcad/tags/tk8-3/

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-d2d-2
___
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:[46325] brlcad/trunk/src/libged/simulate.c

2011-08-23 Thread abhi2011
Revision: 46325
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46325view=rev
Author:   abhi2011
Date: 2011-08-23 13:35:13 + (Tue, 23 Aug 2011)
Log Message:
---
Removed C++ style comments in C file to conform to C90

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

Modified: brlcad/trunk/src/libged/simulate.c
===
--- brlcad/trunk/src/libged/simulate.c  2011-08-23 12:19:43 UTC (rev 46324)
+++ brlcad/trunk/src/libged/simulate.c  2011-08-23 13:35:13 UTC (rev 46325)
@@ -46,45 +46,7 @@
 
 extern int single_step_sim(struct bu_vls *result_str, int argc, const char 
*argv[]);
 
-/**
- * Duplicate existing objects : Unused for now as shape duplicated using copy 
command
- */
-#if 0
-static int
-duplicate_objects(struct ged *gedp, int argc, const char *argv[])
-{
-struct directory *from_dp;
-struct bu_external external;
-int i;
-
-for (i = 1; i  argc; i++) {
-
-GED_DB_LOOKUP(gedp, from_dp, argv[i], LOOKUP_NOISY, GED_ERROR  
GED_QUIET);
-//GED_CHECK_EXISTS(gedp, argv[i], LOOKUP_QUIET, GED_ERROR);
 
-if (db_get_external(external, from_dp, gedp-ged_wdbp-dbip)) {
-   bu_vls_printf(gedp-ged_result_str, Database read error, 
aborting\n);
-   return GED_ERROR;
-}
-
-if (wdb_export_external(gedp-ged_wdbp, external, TransformedResult,
-   from_dp-d_flags,  from_dp-d_minor_type)  0) {
-   bu_free_external(external);
-   bu_vls_printf(gedp-ged_result_str,
- Failed to write new object (%s) to database - 
aborting!!\n,
- argv[i]);
-   return GED_ERROR;
-}
-
-bu_free_external(external);
-}
-
-bu_vls_printf(gedp-ged_result_str, Objects duplicated !\n);
-  
-return GED_OK;
-}
-#endif
-
 /**
  * How to use simulate.Blissfully simple interface, more options will be added 
soon
  */
@@ -108,7 +70,7 @@
 {
 struct directory *ndp;
 int i, rv;
-struct rt_db_internal intern;   //input and output solid
+struct rt_db_internal intern;
 static const char *transf_shape_name = Transformed_Shape;
 static const char *usage = object(s);
 char *cmd_args[5], result_str[100];
@@ -132,8 +94,7 @@
 }
 
 /* First duplicate the passed shape, so the original is untouched */
-//duplicate_objects(gedp, argc, argv);  //does not do deep object copy, so 
original primitives are attached:BAD
-//Check if the duplicate exists, and kill it if so
+/* Check if the duplicate exists, and kill it if so */
 if (db_lookup(gedp-ged_wdbp-dbip, transf_shape_name, LOOKUP_QUIET) != 
RT_DIR_NULL) {
cmd_args[0] = sim_kill;
 cmd_args[1] = (char *)transf_shape_name;
@@ -147,8 +108,8 @@

 /* Copy the shape, clone is required for combinations(full tree copy) : 
TODO */
 cmd_args[0] = sim_copy;
-cmd_args[1] = (char *)argv[1];  //same as passed 
argv[1]/primitive
-cmd_args[2] = (char *)transf_shape_name;//new primitive name
+cmd_args[1] = (char *)argv[1]; 
+cmd_args[2] = (char *)transf_shape_name;
 cmd_args[3] = (char *)0;
 rv = ged_copy(gedp, 3, (const char **)cmd_args);
 if (rv != GED_OK)

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-d2d-2
___
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:[46326] brlcad/trunk/src/libged/simphysics.cpp

2011-08-23 Thread abhi2011
Revision: 46326
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46326view=rev
Author:   abhi2011
Date: 2011-08-23 13:37:34 + (Tue, 23 Aug 2011)
Log Message:
---
Changed mode to C++ in the file style section at the bottom

Modified Paths:
--
brlcad/trunk/src/libged/simphysics.cpp

Modified: brlcad/trunk/src/libged/simphysics.cpp
===
--- brlcad/trunk/src/libged/simphysics.cpp  2011-08-23 13:35:13 UTC (rev 
46325)
+++ brlcad/trunk/src/libged/simphysics.cpp  2011-08-23 13:37:34 UTC (rev 
46326)
@@ -47,7 +47,7 @@
 /*
  * Local Variables:
  * tab-width: 8
- * mode: C
+ * mode: C++
  * indent-tabs-mode: t
  * c-file-style: stroustrup
  * End:

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-d2d-2
___
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:[46327] brlcad/trunk/src/conv/obj-g_new.c

2011-08-23 Thread n_reed
Revision: 46327
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46327view=rev
Author:   n_reed
Date: 2011-08-23 13:41:14 + (Tue, 23 Aug 2011)
Log Message:
---
Fixed missing header and implicit return statement that g++ complained about.

Modified Paths:
--
brlcad/trunk/src/conv/obj-g_new.c

Modified: brlcad/trunk/src/conv/obj-g_new.c
===
--- brlcad/trunk/src/conv/obj-g_new.c   2011-08-23 13:37:34 UTC (rev 46326)
+++ brlcad/trunk/src/conv/obj-g_new.c   2011-08-23 13:41:14 UTC (rev 46327)
@@ -56,6 +56,7 @@
 #include bu.h
 #include vmath.h
 #include nmg.h
+#include plot3.h
 #include rtgeom.h
 #include raytrace.h
 #include wdb.h
@@ -150,6 +151,10 @@
already exists, it will be\n\
overwritten.\n;
 
+int test_face(struct ga_t *ga, struct gfi_t *gfi, size_t face_idx,
+fastf_t conv_factor, struct bn_tol *tol, int face_test_type,
+int force_retest);
+
 /* global definition */
 size_t *tmp_ptr = NULL;
 static int NMG_debug; /* saved arg of -X, for longjmp handling */
@@ -1797,9 +1802,13 @@
 index_arr_tri_1D = (tri_arr_1D_t)ti-index_arr_tri;
 for (i = 0 ; i  ti-bot_num_faces ; i++) {
 for (j = 0 ; j  3 ; j++) {
-if ((res_v = bsearch((index_arr_tri_1D[i][j]), ti-uvi, 
ti-num_uvi, sizeof(size_t),
-(int (*)(const void *a, const void 
*b))comp_b)) == (size_t)NULL) {
-   bu_log(ERROR: FACE_V bsearch returned null, 
face=(%zu)idx=(%zu)\n, i, j);
+if ((res_v = (size_t *)bsearch((index_arr_tri_1D[i][j]),
+   ti-uvi, ti-num_uvi, sizeof(size_t),
+   (int (*)(const void *a, const void *b))comp_b)) ==
+   (size_t)NULL)
+   {
+   bu_log(ERROR: FACE_V bsearch returned null, 
+   face=(%zu)idx=(%zu)\n, i, j);
return 1;
 } else {
 ti-bot_faces[(i*3)+j] = (int)(res_v - ti-uvi);
@@ -1813,14 +1822,18 @@
 index_arr_tri_2D = (tri_arr_2D_t)ti-index_arr_tri;
 for (i = 0 ; i  ti-bot_num_faces ; i++) {
 for (j = 0 ; j  3 ; j++) {
-if ((res_v = bsearch((index_arr_tri_2D[i][j][0]), ti-uvi, 
ti-num_uvi, sizeof(size_t),
-(int (*)(const void *a, const void 
*b))comp_b)) == (size_t)NULL) {
-   bu_log(ERROR: FACE_TV bsearch returned vertex null, 
face=(%zu)idx=(%zu)\n, i, j);
+if ((res_v = (size_t *)bsearch((index_arr_tri_2D[i][j][0]),
+   ti-uvi, ti-num_uvi, sizeof(size_t),
+   (int (*)(const void *a, const void *b))comp_b)) ==
+   (size_t)NULL)
+   {
+   bu_log(ERROR: FACE_TV bsearch returned vertex null, 
+   face=(%zu)idx=(%zu)\n, i, j);
return 1;
 } else {
 ti-bot_faces[(i*3)+j] = (int)(res_v - ti-uvi);
 }
-if ((res_t = bsearch((index_arr_tri_2D[i][j][1]), ti-utvi, 
ti-num_utvi, sizeof(size_t),
+if ((res_t = (size_t*)bsearch((index_arr_tri_2D[i][j][1]), 
ti-utvi, ti-num_utvi, sizeof(size_t),
 (int (*)(const void *a, const void 
*b))comp_b)) == (size_t)NULL) {
bu_log(ERROR: FACE_TV bsearch returned texture null, 
face=(%zu)idx=(%zu)\n, i, j);
return 1;
@@ -1837,14 +1850,14 @@
 index_arr_tri_2D = (tri_arr_2D_t)ti-index_arr_tri;
 for (i = 0 ; i  ti-bot_num_faces ; i++) {
 for (j = 0 ; j  3 ; j++) {
-if ((res_v = bsearch((index_arr_tri_2D[i][j][0]), ti-uvi, 
ti-num_uvi, sizeof(size_t),
+if ((res_v = (size_t*)bsearch((index_arr_tri_2D[i][j][0]), 
ti-uvi, ti-num_uvi, sizeof(size_t),
 (int (*)(const void *a, const void 
*b))comp_b)) == (size_t)NULL) {
bu_log(ERROR: FACE_NV bsearch returned vertex null, 
face=(%zu)idx=(%zu)\n, i, j);
return 1;
 } else {
 ti-bot_faces[(i*3)+j] = (int)(res_v - ti-uvi);
 }
-if ((res_n = bsearch((index_arr_tri_2D[i][j][1]), ti-uvni, 
ti-num_uvni, sizeof(size_t),
+if ((res_n = (size_t*)bsearch((index_arr_tri_2D[i][j][1]), 
ti-uvni, ti-num_uvni, sizeof(size_t),
 (int (*)(const void *a, const void 
*b))comp_b)) == (size_t)NULL) {
bu_log(ERROR: FACE_NV bsearch returned normal null, 
face=(%zu)idx=(%zu)\n, i, j);
return 1;
@@ -1861,21 +1874,21 @@
 index_arr_tri_3D = (tri_arr_3D_t)ti-index_arr_tri;
 for (i = 0 ; i  ti-bot_num_faces ; i++) {
 for (j = 0 ; j  3 ; j++) {
-  

[brlcad-commits] SF.net SVN: brlcad:[46328] brlcad/tags

2011-08-23 Thread brlcad
Revision: 46328
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46328view=rev
Author:   brlcad
Date: 2011-08-23 13:42:42 + (Tue, 23 Aug 2011)
Log Message:
---
more removal of cvs branching artifacts where it was necessary to tag before 
and after merging, pushed into the depths of svn history

Removed Paths:
-
brlcad/tags/autoconf-20031202/
brlcad/tags/autoconf-20031203/
brlcad/tags/postmerge-20040315-windows/
brlcad/tags/postmerge-20040405-ansi/
brlcad/tags/postmerge-20051223-bobWinPort/
brlcad/tags/postmerge-autoconf/
brlcad/tags/premerge-20040315-windows/
brlcad/tags/premerge-20040404-ansi/
brlcad/tags/premerge-20051223-bobWinPort/
brlcad/tags/premerge-autoconf/

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-d2d-2
___
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:[46329] brlcad/trunk/src/libgcv/wfobj

2011-08-23 Thread n_reed
Revision: 46329
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46329view=rev
Author:   n_reed
Date: 2011-08-23 14:07:22 + (Tue, 23 Aug 2011)

Log Message:
---
Replaced flex scanner with re2c equivalent.

Modified Paths:
--
brlcad/trunk/src/libgcv/wfobj/obj_grammar.h.in
brlcad/trunk/src/libgcv/wfobj/obj_grammar.yy
brlcad/trunk/src/libgcv/wfobj/obj_parser.cpp
brlcad/trunk/src/libgcv/wfobj/obj_parser.h

Added Paths:
---
brlcad/trunk/src/libgcv/wfobj/obj_rules.h
brlcad/trunk/src/libgcv/wfobj/obj_rules.re
brlcad/trunk/src/libgcv/wfobj/obj_token_type.h
brlcad/trunk/src/libgcv/wfobj/re2c_utils.c
brlcad/trunk/src/libgcv/wfobj/re2c_utils.h

Removed Paths:
-
brlcad/trunk/src/libgcv/wfobj/obj_rules.ll

Modified: brlcad/trunk/src/libgcv/wfobj/obj_grammar.h.in
===
--- brlcad/trunk/src/libgcv/wfobj/obj_grammar.h.in  2011-08-23 13:42:42 UTC 
(rev 46328)
+++ brlcad/trunk/src/libgcv/wfobj/obj_grammar.h.in  2011-08-23 14:07:22 UTC 
(rev 46329)
@@ -1,23 +1,18 @@
 #ifndef OBJ_GRAMMAR_H
 #define OBJ_GRAMMAR_H
 
+#include common.h
 #include obj_tokens.h
+#include obj_rules.h
+#include obj_token_type.h
 
-const int TOKEN_STRING_LEN = 80;
+__BEGIN_DECLS
 
-typedef union YYSTYPE
-{
-float real;
-int integer;
-int reference[3];
-bool toggle;
-size_t index;
-char string[TOKEN_STRING_LEN];
-} YYSTYPE;
-
 void *ParseAlloc(void *(*mallocProc)(size_t));
-void Parse(void *parser, int tokenType, YYSTYPE tokenValue, void *scanner);
+void Parse(void *parser, int tokenType, YYSTYPE tokenValue, yyscan_t scanner);
 void ParseFree(void *p, void (*freeProc)(void*));
 void ParseTrace(FILE *stream, char *prefix);
 
+__END_DECLS
+
 #endif

Modified: brlcad/trunk/src/libgcv/wfobj/obj_grammar.yy
===
--- brlcad/trunk/src/libgcv/wfobj/obj_grammar.yy2011-08-23 13:42:42 UTC 
(rev 46328)
+++ brlcad/trunk/src/libgcv/wfobj/obj_grammar.yy2011-08-23 14:07:22 UTC 
(rev 46329)
@@ -57,16 +57,14 @@
 #include string
 #include cstddef
 #include sys/types.h
+#include iostream
 
 #define SET_SYNTAX_ERROR \
 static_castdetail::objCombinedState* \
-   (scanner)-parser_state.syntaxError = true;
+   (scanner-extra)-parser_state.syntaxError = true;
 
 #define YYERROR SET_SYNTAX_ERROR
 
-/* EOF symbol returned by flex */
-#define YYEOF 0
-
 #if 0
 #define DEBUG_STRINGS \
 std::cout  \n\tworking_stringset: ; \
@@ -173,7 +171,8 @@
  * and no calls to non-reentrant functions
  *
  * returns 1 on syntax error, 0 otherwise
- * error message in ((objCombinedState*)scanner)-parser_state.err.str()
+ * returns error message in
+ * ((objCombinedState*)scanner-extra)-parser_state.err.str()
  */
 int obj_parser_parse(yyscan_t scanner)
 {
@@ -182,14 +181,12 @@
 
 int yychar;
 YYSTYPE yyval;
-objCombinedState *state = static_castobjCombinedState*(scanner);
+objCombinedState *state = static_castobjCombinedState*(scanner-extra);
 parser_type parser = state-parser;
 bool error = state-parser_state.syntaxError;
 
 error = false;
 
-// ParseTrace(stdout, );
-
 while ((yychar = obj_parser_lex(yyval, scanner)) != YYEOF) {
 #if 0
/* print tokens received from scanner */
@@ -286,8 +283,6 @@
Parse(parser, yychar, yyval, scanner);
 }
 
-ParseFree(parser,free);
-
 return error;
 }
 

Modified: brlcad/trunk/src/libgcv/wfobj/obj_parser.cpp
===
--- brlcad/trunk/src/libgcv/wfobj/obj_parser.cpp2011-08-23 13:42:42 UTC 
(rev 46328)
+++ brlcad/trunk/src/libgcv/wfobj/obj_parser.cpp2011-08-23 14:07:22 UTC 
(rev 46329)
@@ -27,14 +27,17 @@
  * contents in.
  */
 
+#include common.h
 #include obj_parser.h
 #include obj_parser_state.h
 
 #include obj_grammar.h
 #include obj_rules.h
 
+#include cerrno
 #include cstdio
 #include sstream
+#include iostream
 
 extern int obj_parser_parse(yyscan_t);
 
@@ -110,29 +113,31 @@
 
 } /* namespace detail */
 
+__BEGIN_DECLS
 
-#if defined(__cplusplus)
-extern C {
-#endif
-
 static void createParser(detail::parser_type *parser)
 {
 *parser = ParseAlloc(malloc);
 }
 
+static void destroyParser(detail::parser_type *parser)
+{
+ParseFree(*parser, free);
+}
+
 static void createScanner(yyscan_t *scanner)
 {
-obj_parser_lex_init(scanner);
+BU_GETTYPE(*scanner, scanner_t);
 }
 
 static void setScannerIn(yyscan_t scanner, FILE *in)
 {
-obj_parser_set_in(in, scanner);
+initScanner(scanner, in);
 }
 
 static void setScannerExtra(yyscan_t scanner, detail::objCombinedState *extra)
 {
-obj_parser_set_extra(extra, scanner);
+obj_parser_set_extra(scanner, extra);
 }
 
 int obj_parser_create(obj_parser_t *parser)
@@ -183,8 +188,6 @@
yyscan_t scanner;
createScanner(scanner);
 
-   detail::lex_sentry 

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

2011-08-23 Thread starseeker
Revision: 46330
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46330view=rev
Author:   starseeker
Date: 2011-08-23 14:15:58 + (Tue, 23 Aug 2011)

Log Message:
---
We're not using them right now, re2c/lemon work is progressing, and svn has our 
back if we have to return to this route - clear out m4/byacc/flex

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

Removed Paths:
-
brlcad/trunk/src/other/byacc/
brlcad/trunk/src/other/flex/
brlcad/trunk/src/other/m4/

Modified: brlcad/trunk/src/other/CMakeLists.txt
===
--- brlcad/trunk/src/other/CMakeLists.txt   2011-08-23 14:07:22 UTC (rev 
46329)
+++ brlcad/trunk/src/other/CMakeLists.txt   2011-08-23 14:15:58 UTC (rev 
46330)
@@ -41,38 +41,11 @@
 
#-
 # Local Copies of Tools
 
#-
-OPTION(BUILD_LOCAL_TOOLS Build local copies of m4, byacc and flex OFF)
+OPTION(BUILD_LOCAL_TOOLS Build local copies of re2c and lemon OFF)
 MARK_AS_ADVANCED(BUILD_LOCAL_TOOLS)
 IF(BUILD_LOCAL_TOOLS)
-# Build Berkeley Yacc - guarantees certain extensions added originally by GNU
-# Bison are supported, as well as yacc itself (problematic on, say, Windows.)
-# Need to upgrade FindYacc.cmake to test for advanced Bison options
-# options and be smarter - in the meantime just turn this on.  Not used yet,
-# for now just testing the build - the CMake script is basic and doesn't
-# implement any of the checks in byacc's aclocal.m4 or use a config.h file.
-ADD_SUBDIRECTORY(byacc)
-
-# Preparing to build flex as well - modern implementations apparently are
-# heavily dependent on m4, so the simplest path is to get the simplest
-# m4 that can compile flex into a working state.  Using NetBSD's port of the 
OpenBSD
-# m4 implementation - very small, about 280K for m4 plus portability files,
-# and that will be smaller once we hook into byacc to generate a couple
-# of the files.
-ADD_SUBDIRECTORY(m4)
-
-# This is a very minimal flex build.  Need to improve this by getting the
-# LOCATION of the m4 target from the above build and pass that in to flex
-# for it's M4 location definition.  Also should probably remove the
-# environment variable check for M4 from flex to avoid unexpected behavior - 
-# using our m4 will give consistent behavior (once we test it out and make
-# sure it IS correct...) and a system m4 might do unexpected things.
-ADD_SUBDIRECTORY(flex)
 ENDIF(BUILD_LOCAL_TOOLS)
 
-DISTCHECK_IGNORE_ITEM(byacc)
-DISTCHECK_IGNORE_ITEM(m4)
-DISTCHECK_IGNORE_ITEM(flex)
-
 # Ignore the boost subdir - it's only used for the boost headers and is not
 # compiled
 DISTCHECK_IGNORE_ITEM(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-d2d-2
___
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:[46333] brlcad/trunk

2011-08-23 Thread starseeker
Revision: 46333
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46333view=rev
Author:   starseeker
Date: 2011-08-23 14:59:41 + (Tue, 23 Aug 2011)

Log Message:
---
Add more CMake logic for re2c/lemon, this time relating to deciding whether or 
not to build local copies - this is Not Done, particularly the FindRE2C and 
FindLEMON files, but checkpointing.

Modified Paths:
--
brlcad/trunk/misc/CMake/ThirdParty.cmake
brlcad/trunk/src/other/CMakeLists.txt

Added Paths:
---
brlcad/trunk/misc/CMake/FindLEMON.cmake
brlcad/trunk/misc/CMake/FindRE2C.cmake

Added: brlcad/trunk/misc/CMake/FindLEMON.cmake
===
--- brlcad/trunk/misc/CMake/FindLEMON.cmake (rev 0)
+++ brlcad/trunk/misc/CMake/FindLEMON.cmake 2011-08-23 14:59:41 UTC (rev 
46333)
@@ -0,0 +1,115 @@
+# - Find lemon executable and provides macros to generate custom build rules
+# The module defines the following variables
+#
+#  LEMON_EXECUTABLE - path to the lemon program
+#  LEMON_FOUND - true if the program was found
+#
+# If lemon is found, the module defines the macros:
+#  LEMON_TARGET(Name LemonInput CodeOutput [VERBOSE file]
+#  [COMPILE_FLAGS string])
+# which will create  a custom rule to generate  a parser. LemonInput is
+# the path to  a lemon file. CodeOutput is the name  of the source file
+# generated by lemon.  A header file is also  be generated, and contains
+# the  token  list.  If  COMPILE_FLAGS  option is  specified,  the  next
+# parameter is  added in the lemon command line.  if  VERBOSE option is
+# specified, file is created  and contains verbose descriptions of the
+# grammar and parser. The macro defines a set of variables:
+#  LEMON_${Name}_DEFINED - true is the macro ran successfully
+#  LEMON_${Name}_INPUT - The input source file, an alias for LemonInput
+#  LEMON_${Name}_OUTPUT_SOURCE - The source file generated by lemon 
+#  LEMON_${Name}_OUTPUT_HEADER - The header file generated by lemon
+#  LEMON_${Name}_OUTPUTS - The sources files generated by lemon
+#  LEMON_${Name}_COMPILE_FLAGS - Options used in the lemon command line
+#
+#  
+#  Example:
+#
+#   find_package(LEMON)
+#   LEMON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
+#   add_executable(Foo main.cpp ${LEMON_MyParser_OUTPUTS})
+#  
+#
+#=
+# Copyright 2010 United States Government as represented by
+#the U.S. Army Research Laboratory.
+# Copyright 2009 Kitware, Inc.
+# Copyright 2006 Tristan Carel
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#  
+# * Redistributions of source code must retain the above copyright
+#   notice, this list of conditions and the following disclaimer.
+# 
+# * Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in the
+#   documentation and/or other materials provided with the distribution.
+# 
+# * The names of the authors may not be used to endorse or promote
+#   products derived from this software without specific prior written
+#   permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=
+
+
+FIND_PROGRAM(LEMON_EXECUTABLE lemon DOC path to the lemon executable)
+MARK_AS_ADVANCED(LEMON_EXECUTABLE)
+
+IF(LEMON_EXECUTABLE)
+   #
+   # LEMON_TARGET (public macro)
+   #
+   #
+   MACRO(LEMON_TARGET Name LemonInput LemonOutput)
+   SET(LEMON_TARGET_outputs ${LemonOutput})
+   IF(NOT ${ARGC} EQUAL 3 AND NOT ${ARGC} EQUAL 4)
+   MESSAGE(SEND_ERROR Usage)
+   ELSE()
+   # lemon generates files in source 

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

2011-08-23 Thread bob1961
Revision: 46334
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46334view=rev
Author:   bob1961
Date: 2011-08-23 15:30:45 + (Tue, 23 Aug 2011)

Log Message:
---
Updated Ged::pane_mouse_ray to calculate the mLastMouseRayStart point (i.e. the 
point from which to fire a ray) so that all displayed geometry is in front of 
the ray firing point.

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-23 14:59:41 UTC (rev 
46333)
+++ brlcad/trunk/src/tclscripts/lib/Ged.tcl 2011-08-23 15:30:45 UTC (rev 
46334)
@@ -3387,8 +3387,21 @@
 set view [$mGed screen2view $itk_component($_pane) $_x $_y]
 set view [$mGed snap_view $itk_component($_pane) [lindex $view 0] [lindex 
$view 1]]
 
-set bounds [$mGed bounds $itk_component($_pane)]
-set vZ [expr {[lindex $bounds 4] / -2048.0}]
+if {[catch {eval $mGed bb -q -e [$mGed who]} bblist]} {
+   set bounds [$mGed bounds $itk_component($_pane)]
+   set vZ [expr {[lindex $bounds 4] / -2048.0}]
+} else {
+   set base2local [$mGed base2local]
+   set vcenter [center]
+   set vsize [size]
+
+   set bbmin [vscale [lindex $bblist 1] $base2local]
+   set bbmax [vscale [lindex $bblist 3] $base2local]
+   set bbdiag [vmagnitude [vsub2 $bbmax $bbmin]]
+   set bbcenter [vscale [vadd2 $bbmin $bbmax] 0.5]
+   set dist [expr [vmagnitude [vsub2 $vcenter $bbcenter]] + $bbdiag]
+   set vZ [expr $dist / $vsize]
+}
 set mLastMouseRayStart [$mGed v2m_point $itk_component($_pane) [lindex 
$view 0] [lindex $view 1] $vZ]
 set mLastMouseRayTarget [$mGed v2m_point $itk_component($_pane) [lindex 
$view 0] [lindex $view 1] 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-d2d-2
___
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:[46335] brlcad/tags

2011-08-23 Thread brlcad
Revision: 46335
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46335view=rev
Author:   brlcad
Date: 2011-08-23 15:44:24 + (Tue, 23 Aug 2011)

Log Message:
---
move cvs branch tagging artifact removal

Removed Paths:
-
brlcad/tags/merge-to-head-20051223/
brlcad/tags/stable-branch/


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-d2d-2
___
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:[46336] brlcad/tags/temp_tag/

2011-08-23 Thread brlcad
Revision: 46336
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46336view=rev
Author:   brlcad
Date: 2011-08-23 15:47:55 + (Tue, 23 Aug 2011)

Log Message:
---
remove what looks like a tag related to the merging of the bobWinPort work, 
some artifact tag that was retained through conversion from cvs.

Removed Paths:
-
brlcad/tags/temp_tag/


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-d2d-2
___
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:[46337] brlcad/tags/CMD/

2011-08-23 Thread brlcad
Revision: 46337
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46337view=rev
Author:   brlcad
Date: 2011-08-23 15:52:01 + (Tue, 23 Aug 2011)

Log Message:
---
nice.. remove very old version of remrt that was tagged in the early 90's.  
nice and easy to read.

Removed Paths:
-
brlcad/tags/CMD/


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-d2d-2
___
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:[46338] brlcad/tags/help/

2011-08-23 Thread brlcad
Revision: 46338
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46338view=rev
Author:   brlcad
Date: 2011-08-23 15:56:43 + (Tue, 23 Aug 2011)

Log Message:
---
remove mysterious 'help' tag from 7.8, no apparent purpose and certainly no 
need to keep it around now

Removed Paths:
-
brlcad/tags/help/


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-d2d-2
___
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:[46339] brlcad/trunk/src/libged/simulate/

2011-08-23 Thread abhi2011
Revision: 46339
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46339view=rev
Author:   abhi2011
Date: 2011-08-23 16:03:54 + (Tue, 23 Aug 2011)
Log Message:
---
stub in simulate dir

Added Paths:
---
brlcad/trunk/src/libged/simulate/

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-d2d-2
___
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:[46340] brlcad/trunk/src/libged

2011-08-23 Thread abhi2011
Revision: 46340
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46340view=rev
Author:   abhi2011
Date: 2011-08-23 16:10:06 + (Tue, 23 Aug 2011)
Log Message:
---
stub for 2 files moved to simulate dir

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

Added Paths:
---
brlcad/trunk/src/libged/simulate/simphysics.cpp
brlcad/trunk/src/libged/simulate/simulate.c

Removed Paths:
-
brlcad/trunk/src/libged/simphysics.cpp
brlcad/trunk/src/libged/simulate.c

Modified: brlcad/trunk/src/libged/CMakeLists.txt
===
--- brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 16:03:54 UTC (rev 
46339)
+++ brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 16:10:06 UTC (rev 
46340)
@@ -212,8 +212,8 @@
 shells.c
 showmats.c
 size.c
-simulate.c
-simphysics.cpp
+simulate/simulate.c
+simulate/simphysics.cpp
 slew.c
 solids_on_ray.c
 sphgroup.c

Deleted: brlcad/trunk/src/libged/simphysics.cpp
===
--- brlcad/trunk/src/libged/simphysics.cpp  2011-08-23 16:03:54 UTC (rev 
46339)
+++ brlcad/trunk/src/libged/simphysics.cpp  2011-08-23 16:10:06 UTC (rev 
46340)
@@ -1,55 +0,0 @@
-/*  S I M P H Y S I C S . C P P
- * BRL-CAD
- *
- * Copyright (c) 2008-2011 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-/** @file libged/simphysics.cpp
- *
- *
- * Routines related to performing a single step of physics on passed objects
- *
- * 
- * 
- */
-
-#include iostream
-
-#include common.h
-#include db.h
-
-/**
- * C++ wrapper for doing physics using bullet : Doesn't have any significant 
physics code yet
- * 
- */
-extern C int
-single_step_sim(struct bu_vls *result_str, int argc, const char *argv[])
-{
-bu_vls_printf(result_str, %s: In physics\n, argv[0]);
-
-
-return 0;
-}
-
-/*
- * Local Variables:
- * tab-width: 8
- * mode: C++
- * indent-tabs-mode: t
- * c-file-style: stroustrup
- * End:
- * ex: shiftwidth=4 tabstop=8
- */

Copied: brlcad/trunk/src/libged/simulate/simphysics.cpp (from rev 46326, 
brlcad/trunk/src/libged/simphysics.cpp)
===
--- brlcad/trunk/src/libged/simulate/simphysics.cpp 
(rev 0)
+++ brlcad/trunk/src/libged/simulate/simphysics.cpp 2011-08-23 16:10:06 UTC 
(rev 46340)
@@ -0,0 +1,55 @@
+/*  S I M P H Y S I C S . C P P
+ * BRL-CAD
+ *
+ * Copyright (c) 2008-2011 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file libged/simphysics.cpp
+ *
+ *
+ * Routines related to performing a single step of physics on passed objects
+ *
+ * 
+ * 
+ */
+
+#include iostream
+
+#include common.h
+#include db.h
+
+/**
+ * C++ wrapper for doing physics using bullet : Doesn't have any significant 
physics code yet
+ * 
+ */
+extern C int
+single_step_sim(struct bu_vls *result_str, int argc, const char *argv[])
+{
+bu_vls_printf(result_str, %s: In physics\n, argv[0]);
+
+
+return 0;
+}
+
+/*
+ * Local Variables:
+ * tab-width: 8
+ * mode: C++
+ * indent-tabs-mode: t
+ * c-file-style: stroustrup
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */

Copied: brlcad/trunk/src/libged/simulate/simulate.c (from rev 46326, 
brlcad/trunk/src/libged/simulate.c)
===
--- brlcad/trunk/src/libged/simulate/simulate.c (rev 0)
+++ brlcad/trunk/src/libged/simulate/simulate.c 2011-08-23 16:10:06 UTC (rev 
46340)
@@ 

[brlcad-commits] SF.net SVN: brlcad:[46341] brlcad/trunk/src/mged/cmd.c

2011-08-23 Thread abhi2011
Revision: 46341
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46341view=rev
Author:   abhi2011
Date: 2011-08-23 16:13:17 + (Tue, 23 Aug 2011)
Log Message:
---
stub for simulate cmd wrapper modification

Modified Paths:
--
brlcad/trunk/src/mged/cmd.c

Modified: brlcad/trunk/src/mged/cmd.c
===
--- brlcad/trunk/src/mged/cmd.c 2011-08-23 16:10:06 UTC (rev 46340)
+++ brlcad/trunk/src/mged/cmd.c 2011-08-23 16:13:17 UTC (rev 46341)
@@ -177,7 +177,7 @@
 return TCL_ERROR;
 
 av[0] = draw;
-av[1] = argv[argc-1];
+av[1] = argv[1];
 av[2] = NULL;
 cmd_draw(clientData, interpreter, 2, av);


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-d2d-2
___
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:[46342] brlcad/tags/Original/

2011-08-23 Thread brlcad
Revision: 46342
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46342view=rev
Author:   brlcad
Date: 2011-08-23 16:23:02 + (Tue, 23 Aug 2011)
Log Message:
---
remove '98 tagging of the html docs

Removed Paths:
-
brlcad/tags/Original/

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-d2d-2
___
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:[46343] brlcad/tags/release-7-0/

2011-08-23 Thread brlcad
Revision: 46343
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46343view=rev
Author:   brlcad
Date: 2011-08-23 16:27:25 + (Tue, 23 Aug 2011)
Log Message:
---
clearly not actually release 7.0 .. remove the cvs tag relic that was made on a 
few files just before the project was converted to open source.

Removed Paths:
-
brlcad/tags/release-7-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-d2d-2
___
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:[46344] brlcad/tags/rel-5-0beta/

2011-08-23 Thread brlcad
Revision: 46344
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46344view=rev
Author:   brlcad
Date: 2011-08-23 16:30:42 + (Tue, 23 Aug 2011)

Log Message:
---
remove the rel-5-0beta cvs-to-svn relic as it's not actually the 5.0 beta 
release.  the rel-5-0-beta tag has that so this one that just has tcl/tk can 
get gone.

Removed Paths:
-
brlcad/tags/rel-5-0beta/


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-d2d-2
___
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:[46345] brlcad/trunk/CMakeLists.txt

2011-08-23 Thread abhi2011
Revision: 46345
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46345view=rev
Author:   abhi2011
Date: 2011-08-23 16:40:38 + (Tue, 23 Aug 2011)
Log Message:
---
Added detection of bullet dynamic libraries using the stock CMAKE 
FindCMake.cmake module

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

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2011-08-23 16:30:42 UTC (rev 46344)
+++ brlcad/trunk/CMakeLists.txt 2011-08-23 16:40:38 UTC (rev 46345)
@@ -1003,6 +1003,12 @@
 # IRIX libgen library
 BRLCAD_CHECK_LIBRARY(GEN gen basename)
 
+# Bullet physics library
+FIND_PACKAGE(Bullet)
+IF(BULLET_FOUND)   
+FILE(APPEND ${CONFIG_H_FILE} #define HAVE_BULLET 1\n)   
+ENDIF(BULLET_FOUND)
+
 # ***
 # *** Check for Headers - Stage 5 of 9***
 # ***

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-d2d-2
___
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:[46346] brlcad/trunk/src/libged

2011-08-23 Thread abhi2011
Revision: 46346
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46346view=rev
Author:   abhi2011
Date: 2011-08-23 16:44:37 + (Tue, 23 Aug 2011)
Log Message:
---
Changes in the CMake build logic and source files to allow the simulate command 
to link to bullet

Modified Paths:
--
brlcad/trunk/src/libged/CMakeLists.txt
brlcad/trunk/src/libged/simulate/simphysics.cpp
brlcad/trunk/src/libged/simulate/simulate.c

Added Paths:
---
brlcad/trunk/src/libged/simulate/CMakeLists.txt

Modified: brlcad/trunk/src/libged/CMakeLists.txt
===
--- brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 16:40:38 UTC (rev 
46345)
+++ brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 16:44:37 UTC (rev 
46346)
@@ -212,8 +212,6 @@
 shells.c
 showmats.c
 size.c
-simulate/simulate.c
-simulate/simphysics.cpp
 slew.c
 solids_on_ray.c
 sphgroup.c
@@ -265,6 +263,8 @@
 zoom/zoom.c
 )
 
+ADD_SUBDIRECTORY(simulate)
+
 include_directories(
 ${PNG_INCLUDE_DIR}
 ${ZLIB_INCLUDE_DIR}
@@ -272,7 +272,7 @@
 ${TCL_INCLUDE_DIRS}
 )
 
-BRLCAD_ADDLIB(libged ${LIBGED_SOURCES} libwdb librt libfb libbu libanalyze 
${REGEX_LIBRARY} ${WINSOCK_LIB} ${M_LIBRARY})
+BRLCAD_ADDLIB(libged ${LIBGED_SOURCES} libwdb librt libfb libbu libanalyze 
libgedsim ${REGEX_LIBRARY} ${WINSOCK_LIB} ${M_LIBRARY})
 SET_TARGET_PROPERTIES(libged PROPERTIES VERSION 19.0.1 SOVERSION 19)
 
 SET(ged_ignore_files

Added: brlcad/trunk/src/libged/simulate/CMakeLists.txt
===
--- brlcad/trunk/src/libged/simulate/CMakeLists.txt 
(rev 0)
+++ brlcad/trunk/src/libged/simulate/CMakeLists.txt 2011-08-23 16:44:37 UTC 
(rev 46346)
@@ -0,0 +1,13 @@
+set(LIBGED_SIM_SOURCES
+simphysics.cpp
+simulate.c   
+)
+
+# Bullet physics library : includes and libs
+IF(BULLET_FOUND)
+include_directories(${BULLET_INCLUDE_DIR})
+BRLCAD_ADDLIB(libgedsim ${LIBGED_SIM_SOURCES} ${BULLET_LIBRARIES})
+ENDIF(BULLET_FOUND)
+
+SET_TARGET_PROPERTIES(libgedsim PROPERTIES VERSION 19.0.1 SOVERSION 19)
+


Property changes on: brlcad/trunk/src/libged/simulate/CMakeLists.txt
___
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native

Modified: brlcad/trunk/src/libged/simulate/simphysics.cpp
===
--- brlcad/trunk/src/libged/simulate/simphysics.cpp 2011-08-23 16:40:38 UTC 
(rev 46345)
+++ brlcad/trunk/src/libged/simulate/simphysics.cpp 2011-08-23 16:44:37 UTC 
(rev 46346)
@@ -20,36 +20,150 @@
 /** @file libged/simphysics.cpp
  *
  *
- * Routines related to performing a single step of physics on passed objects
+ * Routines related to performing physics on the passed shape
  *
  * 
  * 
  */
 
+#include common.h
+
+#ifdef HAVE_BULLET
+
 #include iostream
 
-#include common.h
 #include db.h
+#include vmath.h
 
+#include btBulletDynamicsCommon.h
+
 /**
+ * Prints the 16 by 16 transform matrices for debugging
+ *
+ */
+void print_matrices(struct bu_vls *result_str, mat_t t, btScalar *m)
+{
+   int i, j;
+
+   bu_vls_printf(result_str,Transformation 
matrices(Debug)--\n);
+
+   for (i=0 ; i4 ; i++) {
+   for (j=0 ; j4 ; j++) {
+   bu_vls_printf(result_str,t[%d]: %f\t, (i*4 + j), 
t[i*4 + j] );
+   }
+   bu_vls_printf(result_str,\n);
+   }
+
+   bu_vls_printf(result_str,\n);
+
+   for (i=0 ; i4 ; i++) {
+   for (j=0 ; j4 ; j++) {
+   bu_vls_printf(result_str,m[%d]: %f\t, (j*4 + i), 
m[j*4 + i] );
+   }
+   bu_vls_printf(result_str,\n);
+   }
+
+   
bu_vls_printf(result_str,---\n);
+
+}
+
+/**
  * C++ wrapper for doing physics using bullet : Doesn't have any significant 
physics code yet
  * 
  */
 extern C int
-single_step_sim(struct bu_vls *result_str, int argc, const char *argv[])
+run_simulation(struct bu_vls *result_str, mat_t t, int argc, const char 
*argv[])
 {
-bu_vls_printf(result_str, %s: In physics\n, argv[0]);
-
-
-return 0;
+   int i = argc; // to eliminate 'unused' warning
+   btScalar m[16];
+   int num_steps = atoi(argv[1]);
+
+   bu_vls_printf(result_str, Simulation will run for %d 
steps.\n,num_steps);
+   bu_vls_printf(result_str, A 1 kg sphere will be dropped from a height 
of 50 m.\n);
+   bu_vls_printf(result_str, Every time step is 1/60th of a second 
long(can be altered).\n);
+
+   btBroadphaseInterface* broadphase = new btDbvtBroadphase();
+
+   btDefaultCollisionConfiguration* collisionConfiguration = new 
btDefaultCollisionConfiguration();
+   btCollisionDispatcher* dispatcher = new 

[brlcad-commits] SF.net SVN: brlcad:[46347] brlcad/trunk/src/libgcv/wfobj/Makefile.sample

2011-08-23 Thread n_reed
Revision: 46347
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46347view=rev
Author:   n_reed
Date: 2011-08-23 17:02:35 + (Tue, 23 Aug 2011)

Log Message:
---
Adding local makefile to demonstrate necessary build steps.

Added Paths:
---
brlcad/trunk/src/libgcv/wfobj/Makefile.sample

Added: brlcad/trunk/src/libgcv/wfobj/Makefile.sample
===
--- brlcad/trunk/src/libgcv/wfobj/Makefile.sample   
(rev 0)
+++ brlcad/trunk/src/libgcv/wfobj/Makefile.sample   2011-08-23 17:02:35 UTC 
(rev 46347)
@@ -0,0 +1,63 @@
+BRLCAD = $(HOME)/brlcad
+LIBDIR = $(HOME)/build/lib
+
+vpath obj-g_new.c $(BRLCAD)/src/conv
+
+INCLUDES = -I . -I $(BRLCAD)/include -I $(BRLCAD)/src/other/openNURBS/
+CFLAGS = -g $(INCLUDES)
+
+# need to define one of the symbols in obj_parser_state.h to get shared_ptr
+# SHARED_PTR_TR1_STD if we have GCC 4.1
+# SHARED_PTR_STD if we have GCC 4.3+
+# SHARED_PTR_BOOST   if we have boost library
+CPPFLAGS = $(CFLAGS) -D SHARED_PTR_TR1_MEMORY
+
+# Linux won't look in the local lib dir we specify
+# unless we build it into the executable
+LIB_RPATH = -Wl,-rpath -Wl,$(LIBDIR)
+LIBS = $(LIB_RPATH) -L$(LIBDIR) -lbu -lbn -lwdb
+
+
+
+.PHONY : clean cleaner cleanest install obj_grammar.h
+
+obj-g : obj-g_new.o obj_grammar.o obj_parser.o obj_rules.o re2c_utils.o
+   $(CXX) $(LIBS) -o $@ $^
+
+obj-g_new.o : obj-g_new.c obj_parser.h
+   $(CXX) $(CPPFLAGS) -c -o $@ $
+
+obj_grammar.o : obj_grammar.cpp
+   $(CXX) $(CPPFLAGS) -c -o $@ $
+
+obj_parser.o : obj_parser.cpp obj_parser.h obj_parser_state.h obj_grammar.h 
obj_rules.h
+re2c_utils.o : re2c_utils.c re2c_utils.h
+
+obj_grammar.cpp obj_tokens.h : obj_grammar.yy
+   lemon -q $
+   cp obj_grammar.c obj_grammar.cpp
+   mv obj_grammar.h obj_tokens.h
+   cp obj_grammar.h.in obj_grammar.h
+
+obj_grammar.yy : obj_parser.h obj_parser_state.h obj_grammar.h.in obj_rules.h
+
+obj_rules.cpp : obj_rules.re
+   re2c -Fc -o obj_rules.cpp $^
+
+obj_rules.re : obj_grammar.h obj_parser_state.h obj_rules.h re2c_utils.h
+
+obj_rules.h obj_rules.re re2c_utils.c : re2c_utils.h
+
+clean :
+   -rm -f obj-g_new.o obj_parser.o obj_rules.o obj_grammar.o re2c_utils.o
+
+cleaner : clean
+   -rm -f obj_grammar.h obj_tokens.h
+   -rm -f obj_grammar.c obj_grammar.cpp
+   -rm -f obj_rules.cpp
+
+cleanest : cleaner
+   -rm -f obj-g
+
+install :
+   cp obj-g $(HOME)/bin


Property changes on: brlcad/trunk/src/libgcv/wfobj/Makefile.sample
___
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native


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-d2d-2
___
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:[46348] brlcad/trunk/src/other/lemon/CMakeLists.txt

2011-08-23 Thread starseeker
Revision: 46348
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46348view=rev
Author:   starseeker
Date: 2011-08-23 18:10:00 + (Tue, 23 Aug 2011)
Log Message:
---
need lempar.c in the same directory as the lemon binary

Modified Paths:
--
brlcad/trunk/src/other/lemon/CMakeLists.txt

Modified: brlcad/trunk/src/other/lemon/CMakeLists.txt
===
--- brlcad/trunk/src/other/lemon/CMakeLists.txt 2011-08-23 17:02:35 UTC (rev 
46347)
+++ brlcad/trunk/src/other/lemon/CMakeLists.txt 2011-08-23 18:10:00 UTC (rev 
46348)
@@ -8,3 +8,4 @@
 PROJECT(LEMON)
 
 add_executable(lemon lemon.c)
+configure_file(lempar.c ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lempar.c COPY_ONLY)

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-d2d-2
___
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:[46349] brlcad/trunk/src/other/Makefile.am

2011-08-23 Thread brlcad
Revision: 46349
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46349view=rev
Author:   brlcad
Date: 2011-08-23 18:11:17 + (Tue, 23 Aug 2011)

Log Message:
---
bison/flex/m4 removed, stay in sync with CMakeLists.txt

Modified Paths:
--
brlcad/trunk/src/other/Makefile.am

Modified: brlcad/trunk/src/other/Makefile.am
===
--- brlcad/trunk/src/other/Makefile.am  2011-08-23 18:10:00 UTC (rev 46348)
+++ brlcad/trunk/src/other/Makefile.am  2011-08-23 18:11:17 UTC (rev 46349)
@@ -173,9 +173,6 @@
 
 EXTRA_DIST = \
boost \
-   byacc \
-   flex \
-   m4 \
togl \
CMakeLists.txt \
itcl.dist \


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-d2d-2
___
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:[46350] brlcad/trunk/src/other/Makefile.am

2011-08-23 Thread brlcad
Revision: 46350
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46350view=rev
Author:   brlcad
Date: 2011-08-23 18:12:26 + (Tue, 23 Aug 2011)

Log Message:
---
add lemon and re2c dirs

Modified Paths:
--
brlcad/trunk/src/other/Makefile.am

Modified: brlcad/trunk/src/other/Makefile.am
===
--- brlcad/trunk/src/other/Makefile.am  2011-08-23 18:11:17 UTC (rev 46349)
+++ brlcad/trunk/src/other/Makefile.am  2011-08-23 18:12:26 UTC (rev 46350)
@@ -179,12 +179,14 @@
itk.dist \
iwidgets.dist \
jove.dist \
+   lemon \
libpng.dist \
libregex.dist \
libtermlib.dist \
libutahrle.dist \
libz.dist \
openNURBS.dist \
+   re2c \
step.dist \
tcl.dist \
tk.dist \


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-d2d-2
___
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:[46352] brlcad/trunk/TODO

2011-08-23 Thread brlcad
Revision: 46352
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46352view=rev
Author:   brlcad
Date: 2011-08-23 19:29:17 + (Tue, 23 Aug 2011)
Log Message:
---
primitive testing has uncovered off-by-one raytrace errors during identical 
subsequent invocations of rt due to some floating point issue during parallel 
processing.  single processor results in zero errors yet parallel gives subtle 
changes.  should investigate to see if there's a code issue though the problem 
persists back as far as at least 7.8 (on 64-bit Linux).

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2011-08-23 19:28:27 UTC (rev 46351)
+++ brlcad/trunk/TODO   2011-08-23 19:29:17 UTC (rev 46352)
@@ -58,6 +58,10 @@
 THESE ARE UNSCHEDULED BACKLOG TASKS
 ---
 
+* investigate off-by-one errors from identical rt invocations.
+  running with -P1 results in no errors, parallel (on 64-bit Linux
+  RHEL) is giving many floating-point related errors.
+
 * investigate why epa primitive is so sensitive to coarse absolute
   value changes (run csgbrep, tol abs=1, facetize and get 321k poly)
 

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-d2d-2
___
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:[46354] brlcad/trunk/src/libged

2011-08-23 Thread n_reed
Revision: 46354
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46354view=rev
Author:   n_reed
Date: 2011-08-23 21:22:23 + (Tue, 23 Aug 2011)
Log Message:
---
get the build working - probably not the 'right' fix (starseeker)

Modified Paths:
--
brlcad/trunk/src/libged/CMakeLists.txt
brlcad/trunk/src/libged/simulate/CMakeLists.txt

Modified: brlcad/trunk/src/libged/CMakeLists.txt
===
--- brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 20:59:45 UTC (rev 
46353)
+++ brlcad/trunk/src/libged/CMakeLists.txt  2011-08-23 21:22:23 UTC (rev 
46354)
@@ -272,7 +272,7 @@
 ${TCL_INCLUDE_DIRS}
 )
 
-BRLCAD_ADDLIB(libged ${LIBGED_SOURCES} libwdb librt libfb libbu libanalyze 
libgedsim ${REGEX_LIBRARY} ${WINSOCK_LIB} ${M_LIBRARY})
+BRLCAD_ADDLIB(libged ${LIBGED_SOURCES} libwdb librt libfb libbu libanalyze 
${GEDSIM_LIB} ${REGEX_LIBRARY} ${WINSOCK_LIB} ${M_LIBRARY})
 SET_TARGET_PROPERTIES(libged PROPERTIES VERSION 19.0.1 SOVERSION 19)
 
 SET(ged_ignore_files

Modified: brlcad/trunk/src/libged/simulate/CMakeLists.txt
===
--- brlcad/trunk/src/libged/simulate/CMakeLists.txt 2011-08-23 20:59:45 UTC 
(rev 46353)
+++ brlcad/trunk/src/libged/simulate/CMakeLists.txt 2011-08-23 21:22:23 UTC 
(rev 46354)
@@ -7,7 +7,8 @@
 IF(BULLET_FOUND)
 include_directories(${BULLET_INCLUDE_DIR})
 BRLCAD_ADDLIB(libgedsim ${LIBGED_SIM_SOURCES} ${BULLET_LIBRARIES})
+SET_TARGET_PROPERTIES(libgedsim PROPERTIES VERSION 19.0.1 SOVERSION 19)
+SET(GEDSIM_LIB libgedsim)
 ENDIF(BULLET_FOUND)
 
-SET_TARGET_PROPERTIES(libgedsim PROPERTIES VERSION 19.0.1 SOVERSION 19)
 

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46355] brlcad/trunk/src/mged/setup.c

2011-08-23 Thread n_reed
Revision: 46355
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46355view=rev
Author:   n_reed
Date: 2011-08-23 21:40:49 + (Tue, 23 Aug 2011)
Log Message:
---
Need to use HAVE_BULLET in mged too - no ged_simulate, no simulate command.

Modified Paths:
--
brlcad/trunk/src/mged/setup.c

Modified: brlcad/trunk/src/mged/setup.c
===
--- brlcad/trunk/src/mged/setup.c   2011-08-23 21:22:23 UTC (rev 46354)
+++ brlcad/trunk/src/mged/setup.c   2011-08-23 21:40:49 UTC (rev 46355)
@@ -325,7 +325,9 @@
 {showmats, cmd_ged_plain_wrapper, ged_showmats},
 {sill, f_be_s_illuminate, GED_FUNC_PTR_NULL},
 {size, cmd_size, GED_FUNC_PTR_NULL},
+#ifdef HAVE_BULLET
 {simulate, cmd_ged_simulate_wrapper, ged_simulate},
+#endif
 {solid_report, cmd_ged_plain_wrapper, ged_report},
 {solids, cmd_ged_plain_wrapper, ged_tables},
 {solids_on_ray, cmd_ged_plain_wrapper, ged_solids_on_ray},

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46356] brlcad/trunk/src/conv/obj-g_new.c

2011-08-23 Thread n_reed
Revision: 46356
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46356view=rev
Author:   n_reed
Date: 2011-08-23 21:52:42 + (Tue, 23 Aug 2011)

Log Message:
---
Removed obsolete debug output.

Modified Paths:
--
brlcad/trunk/src/conv/obj-g_new.c

Modified: brlcad/trunk/src/conv/obj-g_new.c
===
--- brlcad/trunk/src/conv/obj-g_new.c   2011-08-23 21:40:49 UTC (rev 46355)
+++ brlcad/trunk/src/conv/obj-g_new.c   2011-08-23 21:52:42 UTC (rev 46356)
@@ -2140,10 +2140,6 @@
  * texture_vertex_index_list
  */
 for (face_idx = 0; face_idx  gfi-num_faces; face_idx++) {
-#if DEBUG
-   printf(\tface %d / %d, %d vertices\n, face_idx, gfi-num_faces,
-   gfi-num_vertices_arr[face_idx]);
-#endif
 for (vert_idx = 0; vert_idx  gfi-num_vertices_arr[face_idx];
 vert_idx++)
{


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

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46357] brlcad/trunk/src/libgcv/wfobj/obj_rules.re

2011-08-23 Thread n_reed
Revision: 46357
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46357view=rev
Author:   n_reed
Date: 2011-08-23 22:00:37 + (Tue, 23 Aug 2011)

Log Message:
---
Removed obsolete debug output.

Modified Paths:
--
brlcad/trunk/src/libgcv/wfobj/obj_rules.re

Modified: brlcad/trunk/src/libgcv/wfobj/obj_rules.re
===
--- brlcad/trunk/src/libgcv/wfobj/obj_rules.re  2011-08-23 21:52:42 UTC (rev 
46356)
+++ brlcad/trunk/src/libgcv/wfobj/obj_rules.re  2011-08-23 22:00:37 UTC (rev 
46357)
@@ -273,10 +273,6 @@
 detail::get_state(yyextra).working_string = yytext;
 bu_strlcpy(yylval-string, yytext, TOKEN_STRING_LEN);
 
-#if DEBUG
-std::cout  yylval-string;
-#endif
-
 BEGIN(INITIAL);
 RETURN(ID);
 }
@@ -303,9 +299,6 @@
 // Goto initial state after single token
 detail::get_state(yyextra).working_string = yytext;
 bu_strlcpy(yylval-string, yytext, TOKEN_STRING_LEN);
-#if DEBUG
-std::cout  yylval-string;
-#endif
 
 BEGIN(INITIAL);
 RETURN(ID);
@@ -326,9 +319,6 @@
 // Keywords are valid identifiers here
 detail::get_state(yyextra).working_string = yytext;
 bu_strlcpy(yylval-string, yytext, TOKEN_STRING_LEN);
-#if DEBUG
-std::cout  yylval-string;
-#endif
 
 RETURN(ID);
 }


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

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46359] brlcad/trunk/src/libpc/CMakeLists.txt

2011-08-23 Thread starseeker
Revision: 46359
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46359view=rev
Author:   starseeker
Date: 2011-08-23 22:33:28 + (Tue, 23 Aug 2011)

Log Message:
---
because we have both boost and libs dirs now, include src/other/boost not 
src/other

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

Modified: brlcad/trunk/src/libpc/CMakeLists.txt
===
--- brlcad/trunk/src/libpc/CMakeLists.txt   2011-08-23 22:30:14 UTC (rev 
46358)
+++ brlcad/trunk/src/libpc/CMakeLists.txt   2011-08-23 22:33:28 UTC (rev 
46359)
@@ -14,7 +14,7 @@
 ENDIF(BUILD_TYPE)
 
 include_directories(
-   ${CMAKE_SOURCE_DIR}/src/other
+   ${CMAKE_SOURCE_DIR}/src/other/boost
${OPENNURBS_INCLUDE_DIR}
${TCL_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}


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

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46360] brlcad/trunk/TODO

2011-08-23 Thread brlcad
Revision: 46360
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46360view=rev
Author:   brlcad
Date: 2011-08-23 23:04:24 + (Tue, 23 Aug 2011)
Log Message:
---
potential lead, -B works with parallel enabled so something fishy is going on.  
possibly conversion from float to double ... but random numbers should not be 
involved!

Modified Paths:
--
brlcad/trunk/TODO

Modified: brlcad/trunk/TODO
===
--- brlcad/trunk/TODO   2011-08-23 22:33:28 UTC (rev 46359)
+++ brlcad/trunk/TODO   2011-08-23 23:04:24 UTC (rev 46360)
@@ -58,9 +58,11 @@
 THESE ARE UNSCHEDULED BACKLOG TASKS
 ---
 
-* investigate off-by-one errors from identical rt invocations.
-  running with -P1 results in no errors, parallel (on 64-bit Linux
-  RHEL) is giving many floating-point related errors.
+* investigate off-by-one AND off-by-many errors from identical rt
+  invocations.  running with -P1 results in no errors, parallel (on
+  64-bit Linux RHEL) is giving many floating-point related errors.
+  running with -B also results in no errors indicating maybe something
+  related to libbn random numbers.
 
 * investigate why epa primitive is so sensitive to coarse absolute
   value changes (run csgbrep, tol abs=1, facetize and get 321k poly)

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46361] brlcad/trunk/src

2011-08-23 Thread starseeker
Revision: 46361
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46361view=rev
Author:   starseeker
Date: 2011-08-23 23:07:14 + (Tue, 23 Aug 2011)
Log Message:
---
libpc ain't happy about the boost change - turn it off for now.

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

Modified: brlcad/trunk/src/CMakeLists.txt
===
--- brlcad/trunk/src/CMakeLists.txt 2011-08-23 23:04:24 UTC (rev 46360)
+++ brlcad/trunk/src/CMakeLists.txt 2011-08-23 23:07:14 UTC (rev 46361)
@@ -55,7 +55,7 @@
 # The interaction of MSVC and Boost looks problematic - 
 # since we're not using libpc at the moment, conditionalize
 IF(NOT MSVC)
-   SET(LIBPC libpc)
+   #SET(LIBPC libpc)
 ENDIF(NOT MSVC)
 # anything not included from above
 SET(remaining_dirs 

Modified: brlcad/trunk/src/util/CMakeLists.txt
===
--- brlcad/trunk/src/util/CMakeLists.txt2011-08-23 23:04:24 UTC (rev 
46360)
+++ brlcad/trunk/src/util/CMakeLists.txt2011-08-23 23:07:14 UTC (rev 
46361)
@@ -26,10 +26,10 @@
 
 BRLCAD_ADDFILE(pl-dm.c sample_applications)
 
-IF(NOT MSVC)
+IF(LIBPC)
add_executable(pc_test pc_test.c)
target_link_libraries(pc_test libwdb libpc)
-ENDIF(NOT MSVC)
+ENDIF(LIBPC)
 
 BRLCAD_ADDEXEC(alias-pix alias-pix.c libbu)
 BRLCAD_ADDEXEC(ap-pix ap-pix.c libbu)

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46362] brlcad/trunk/src/libgcv/wfobj

2011-08-23 Thread starseeker
Revision: 46362
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46362view=rev
Author:   starseeker
Date: 2011-08-23 23:14:06 + (Tue, 23 Aug 2011)
Log Message:
---
Well, can now use src/other/boost for obj-g anyway...

Modified Paths:
--
brlcad/trunk/src/libgcv/wfobj/CMakeLists.txt

Removed Paths:
-
brlcad/trunk/src/libgcv/wfobj/boost_shared_ptr/

Modified: brlcad/trunk/src/libgcv/wfobj/CMakeLists.txt
===
--- brlcad/trunk/src/libgcv/wfobj/CMakeLists.txt2011-08-23 23:07:14 UTC 
(rev 46361)
+++ brlcad/trunk/src/libgcv/wfobj/CMakeLists.txt2011-08-23 23:14:06 UTC 
(rev 46362)
@@ -1,6 +1,6 @@
 include_directories(
   ${CMAKE_CURRENT_SOURCE_DIR}
-  ${CMAKE_CURRENT_SOURCE_DIR}/boost_shared_ptr
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/other/boost
   ${CMAKE_CURRENT_BINARY_DIR}
 )
 

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46364] brlcad/trunk/CMakeLists.txt

2011-08-23 Thread starseeker
Revision: 46364
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46364view=rev
Author:   starseeker
Date: 2011-08-24 00:29:02 + (Wed, 24 Aug 2011)
Log Message:
---
Since it's proving convenient to make a build directory in the src dir for a 
cmake .. build, ignore the two most common cases when doing cpack

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

Modified: brlcad/trunk/CMakeLists.txt
===
--- brlcad/trunk/CMakeLists.txt 2011-08-23 23:23:55 UTC (rev 46363)
+++ brlcad/trunk/CMakeLists.txt 2011-08-24 00:29:02 UTC (rev 46364)
@@ -1617,7 +1617,7 @@
 
SET(CPACK_SOURCE_GENERATOR TGZ TBZ2 ZIP)
SET(CPACK_SOURCE_PACKAGE_FILE_NAME brlcad-${BRLCAD_VERSION})
-   SET(CPACK_SOURCE_IGNORE_FILES .svn/)
+   SET(CPACK_SOURCE_IGNORE_FILES .svn/ build/ brlcad-build/)
 
CONFIGURE_FILE(${BRLCAD_CMAKE_DIR}/BRLCAD_CPackOptions.cmake.in   
${CMAKE_BINARY_DIR}/BRLCAD_CPackOptions.cmake @ONLY)
SET(CPACK_PROJECT_CONFIG_FILE 
${CMAKE_BINARY_DIR}/BRLCAD_CPackOptions.cmake)

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46365] brlcad/trunk/misc/CMake/BRLCAD_Util.cmake

2011-08-23 Thread starseeker
Revision: 46365
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46365view=rev
Author:   starseeker
Date: 2011-08-24 01:39:42 + (Wed, 24 Aug 2011)
Log Message:
---
Be nice to source file flags set prior to the target being defined and bring 
them along for the ride.

Modified Paths:
--
brlcad/trunk/misc/CMake/BRLCAD_Util.cmake

Modified: brlcad/trunk/misc/CMake/BRLCAD_Util.cmake
===
--- brlcad/trunk/misc/CMake/BRLCAD_Util.cmake   2011-08-24 00:29:02 UTC (rev 
46364)
+++ brlcad/trunk/misc/CMake/BRLCAD_Util.cmake   2011-08-24 01:39:42 UTC (rev 
46365)
@@ -109,10 +109,12 @@
IF(${srcfile} MATCHES cpp$ OR ${srcfile} MATCHES 
cc$)
IF(BRLCAD-ENABLE_COMPILER_WARNINGS)
IF(NOERROR_FLAG)
-   
set_source_files_properties(${srcfile} COMPILE_FLAGS -Wno-error)
+   GET_PROPERTY(previous_flags 
SOURCE ${srcfile} PROPERTY COMPILE_FLAGS)
+   
set_source_files_properties(${srcfile} COMPILE_FLAGS -Wno-error 
${previous_flags})
ENDIF(NOERROR_FLAG)
ELSE(BRLCAD-ENABLE_COMPILER_WARNINGS)
-   set_source_files_properties(${srcfile} 
COMPILE_FLAGS -w)
+   GET_PROPERTY(previous_flags SOURCE 
${srcfile} PROPERTY COMPILE_FLAGS)
+   set_source_files_properties(${srcfile} 
COMPILE_FLAGS -w ${previous_flags})
ENDIF(BRLCAD-ENABLE_COMPILER_WARNINGS)
ENDIF(${srcfile} MATCHES cpp$ OR ${srcfile} MATCHES 
cc$)
ENDFOREACH(srcfile ${${srcslist}})

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-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:[46366] brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags. cmake

2011-08-23 Thread starseeker
Revision: 46366
  http://brlcad.svn.sourceforge.net/brlcad/?rev=46366view=rev
Author:   starseeker
Date: 2011-08-24 01:46:35 + (Wed, 24 Aug 2011)
Log Message:
---
Check if we have the no-unused flag

Modified Paths:
--
brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake

Modified: brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake
===
--- brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2011-08-24 01:39:42 UTC 
(rev 46365)
+++ brlcad/trunk/misc/CMake/BRLCAD_CompilerFlags.cmake  2011-08-24 01:46:35 UTC 
(rev 46366)
@@ -44,6 +44,11 @@
 ENDIF(BRLCAD-ENABLE_COMPILER_WARNINGS OR BRLCAD-ENABLE_STRICT)
 MARK_AS_ADVANCED(WARNING_FLAGS)
 
+# There are some specific situations, such as auto-generated sources,
+# where we have no real control over the code generating the warnings
+# and need to disable them individually.  Test for those flags.
+CHECK_C_FLAG(Wno-unused)
+
 IF(BRLCAD-ENABLE_STRICT)
CHECK_C_FLAG_GATHER(Werror STRICT_FLAGS)
ADD_NEW_FLAG(C STRICT_FLAGS)

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


--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits