Revision: 49087 http://brlcad.svn.sourceforge.net/brlcad/?rev=49087&view=rev Author: starseeker Date: 2012-01-25 22:21:29 +0000 (Wed, 25 Jan 2012) Log Message: ----------- Add regression testing for nirt based on the nirt DocBook manual.
Modified Paths: -------------- brlcad/trunk/TODO brlcad/trunk/regress/CMakeLists.txt Added Paths: ----------- brlcad/trunk/regress/nirt.sh Modified: brlcad/trunk/TODO =================================================================== --- brlcad/trunk/TODO 2012-01-25 22:15:59 UTC (rev 49086) +++ brlcad/trunk/TODO 2012-01-25 22:21:29 UTC (rev 49087) @@ -18,8 +18,6 @@ THESE TASKS SHOULD HAPPEN BEFORE THE NEXT RELEASE ------------------------------------------------- -* test nirt template file loading - * g-nff is crashing, fix it; g-dot outputs garbage * test illuminate (e.g. oed) + Z, report of crash (on Windows) Modified: brlcad/trunk/regress/CMakeLists.txt =================================================================== --- brlcad/trunk/regress/CMakeLists.txt 2012-01-25 22:15:59 UTC (rev 49086) +++ brlcad/trunk/regress/CMakeLists.txt 2012-01-25 22:21:29 UTC (rev 49087) @@ -1,6 +1,9 @@ # Geometry Conversion Regression Tests (experimental) add_subdirectory(gcv) +# MGED command tests +add_subdirectory(mged) + if(SH_EXEC) add_custom_target(regress-mged ${SH_EXEC} ${CMAKE_SOURCE_DIR}/regress/mged.sh ${CMAKE_SOURCE_DIR} @@ -62,8 +65,16 @@ ${SH_EXEC} ${CMAKE_SOURCE_DIR}/regress/vls.sh ${CMAKE_SOURCE_DIR} DEPENDS test_vls ) + add_custom_target(regress-nirt + ${SH_EXEC} ${CMAKE_SOURCE_DIR}/regress/nirt.sh ${CMAKE_SOURCE_DIR} + DEPENDS mged nirt + ) add_custom_target(regress - DEPENDS regress-mged regress-moss regress-lights regress-solids regress-shaders regress-spdi regress-iges regress-weight regress-gqa regress-fastgen regress-bots regress-flawfinder regress-repository regress-red regress-vls + DEPENDS regress-mged regress-moss regress-lights + regress-solids regress-shaders regress-spdi regress-iges + regress-weight regress-gqa regress-fastgen regress-bots + regress-flawfinder regress-repository regress-red regress-nirt + regress-vls ) endif(SH_EXEC) Added: brlcad/trunk/regress/nirt.sh =================================================================== --- brlcad/trunk/regress/nirt.sh (rev 0) +++ brlcad/trunk/regress/nirt.sh 2012-01-25 22:21:29 UTC (rev 49087) @@ -0,0 +1,476 @@ +#!/bin/sh +# N I R T . S H +# BRL-CAD +# +# Copyright (c) 2012 United States Government as represented by +# the U.S. Army Research Laboratory. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. 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. +# +# 3. The name of the author may not be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. +# +### + +# Ensure /bin/sh +export PATH || (echo "This isn't sh."; sh $0 $*; kill $$) + +# source common library functionality, setting ARGS, NAME_OF_THIS, +# PATH_TO_THIS, and THIS. +. $1/regress/library.sh + +MGED="`ensearch mged`" +if test ! -f "$MGED" ; then + echo "Unable to find mged, aborting" + exit 1 +fi +NIRT="`ensearch nirt`" +if test ! -f "$NIRT" ; then + echo "Unable to find nirt, aborting" + exit 1 +fi + +# Clear old files +rm -f nirt.mged nirt_g.log nirt.g nirt.ref nirt.out nirt.log + +cat > nirt.mged <<EOF +opendb nirt.g y +title "NIRT example database" +in center_box.s rpp -1 1 -1 1 -1 1 +in left_box.s rpp -3 -1 -1 1 -1 1 +in right_box.s rpp 1 3 -1 1 -1 1 +r center_cube.r u center_box.s +r center_overlap.r u center_box.s +r left_cube.r u left_box.s +r right_cube.r u right_box.s +r left_and_right_cubes.r u right_box.s u left_box.s +r all_cubes.r u left_box.s u center_box.s u right_box.s +comb overlap_example u center_overlap.r u all_cubes.r +r left_cube_color.r u left_box.s +r center_cube_color.r u center_box.s +r right_cube_color.r u right_box.s +attr set left_cube_color.r color 255/0/0 +attr set center_cube_color.r color 0/255/0 +attr set right_cube_color.r color 0/0/255 +comb center_cube_air u center_box.s +attr set center_cube_air region 1 air 1 +EOF + +$MGED -c > nirt_g.log 2>&1 << EOF +`cat nirt.mged` +EOF + +echo "NIRT Program Output:" > nirt.out +echo "NIRT Error Log:" > nirt.log +echo "*** Test 1 - shot command ***" >> nirt.out +$NIRT -h 0 -e "s;q" nirt.g center_cube.r >> nirt.out 2>> nirt.log +echo "*** Test 2 - xyz command ***" >> nirt.out +$NIRT -h 0 -e "xyz;xyz 0 0 .5;s;q" nirt.g center_cube.r >> nirt.out 2>> nirt.log +echo "*** Test 3 - backout command ***" >> nirt.out +$NIRT -h 0 -e "s;backout 1;s;q" nirt.g left_and_right_cubes.r >> nirt.out 2>> nirt.log +echo "*** Test 4 - backout/xyz interaction ***" >> nirt.out +$NIRT -h 0 -e "backout 0;xyz;xyz 0 0 .5;s;backout 1;xyz;backout 0;xyz;backout 1;xyz 0 0 .8;s;backout 0;s;q" nirt.g left_and_right_cubes.r >> nirt.out 2>> nirt.log +echo "*** Test 5 - dir command***" >> nirt.out +$NIRT -h 0 -e "xyz 0 0 0;dir;s;dir -1 -.5 0;dir;s;dir 0 0 1;s;q" nirt.g left_and_right_cubes.r >> nirt.out 2>> nirt.log +echo "*** Test 6 - reporting of overlaps ***" >> nirt.out +$NIRT -h 0 -e "backout 1;s;dir 0 0 -1;s;q" nirt.g overlap_example >> nirt.out 2>> nirt.log +echo "*** Test 7 - output formatting ***" >> nirt.out +$NIRT -h 0 -b -f csv -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -f csv-gap -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -f default -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -f entryexit -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -f gap1 -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -f gap2 -e "s;q" nirt.g left_cube.r center_cube.r right_cube.r >> nirt.out 2>> nirt.log +echo "*** Test 8 - attribute reporting ***" >> nirt.out +$NIRT -h 0 -b -e "attr -p; attr rgb; attr -p;s;attr -f;attr -p; attr rgb region;attr -p;s;q" nirt.g left_cube_color.r center_cube_color.r right_cube_color.r >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -A rgb -e "attr -p;s;q" nirt.g left_cube_color.r center_cube_color.r right_cube_color.r >> nirt.out 2>> nirt.log +echo "*** Test 9 - units ***" >> nirt.out +$NIRT -h 0 -b -e "units;s;units m;s;units in;s;units ft;s;q" nirt.g center_cube.r >> nirt.out 2>> nirt.log +echo "*** Test 10 - air regions ***" >> nirt.out +$NIRT -h 0 -b -e "s;q" nirt.g left_cube.r center_cube_air >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -u 0 -e "s;q" nirt.g left_cube.r center_cube_air >> nirt.out 2>> nirt.log +$NIRT -h 0 -b -u 1 -e "s;q" nirt.g left_cube.r center_cube_air >> nirt.out 2>> nirt.log + + + +cat >> nirt.ref <<EOF +NIRT Program Output: +*** Test 1 - shot command *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'center_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-1, -1, -1) model_max = (1, 1, 1) +Origin (x y z) = (0.00000000 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +*** Test 2 - xyz command *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'center_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-1, -1, -1) model_max = (1, 1, 1) +(x, y, z) = (0.00, 0.00, 0.00) +Origin (x y z) = (0.00000000 0.00000000 0.50000000) (h v d) = (0.0000 0.5000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 1.0000 0.0000 0.5000) 2.0000 0.0000 +Quitting... +*** Test 3 - backout command *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'left_and_right_cubes.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (0.00000000 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 +left_and_right_cubes.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +*** Test 4 - backout/xyz interaction *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'left_and_right_cubes.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +(x, y, z) = (0.00, 0.00, 0.00) +Origin (x y z) = (0.00000000 0.00000000 0.50000000) (h v d) = (0.0000 0.5000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( -1.0000 0.0000 0.5000) 2.0000 0.0000 +(x, y, z) = (0.00, 0.00, 0.50) +(x, y, z) = (0.00, 0.00, 0.50) +Origin (x y z) = (6.63324958 0.00000000 0.80000000) (h v d) = (0.0000 0.8000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( 3.0000 0.0000 0.8000) 2.0000 0.0000 +left_and_right_cubes.r ( -1.0000 0.0000 0.8000) 2.0000 0.0000 +Origin (x y z) = (0.00000000 0.00000000 0.80000000) (h v d) = (0.0000 0.8000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( -1.0000 0.0000 0.8000) 2.0000 0.0000 +Quitting... +*** Test 5 - dir command*** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'left_and_right_cubes.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +(x, y, z) = (-1.00, 0.00, 0.00) +Origin (x y z) = (0.00000000 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +(x, y, z) = (-0.89, -0.45, 0.00) +Origin (x y z) = (0.00000000 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-0.89442719 -0.44721360 0.00000000) (az el) = (26.56505118 -0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_and_right_cubes.r ( -1.0000 -0.5000 0.0000) 1.1180 26.5651 +Origin (x y z) = (0.00000000 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (0.00000000 0.00000000 1.00000000) (az el) = (0.00000000 -90.00000000) +You missed the target +Quitting... +*** Test 6 - reporting of overlaps *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'overlap_example' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +all_cubes.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 +OVERLAP: 'all_cubes.r' and 'center_overlap.r' xyz_in=(1 0 0) los=2 +center_overlap.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +all_cubes.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Origin (x y z) = (0.00000000 0.00000000 6.63324958) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (0.00000000 0.00000000 -1.00000000) (az el) = (0.00000000 90.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_overlap.r ( 0.0000 0.0000 1.0000) 2.0000 0.0000 +OVERLAP: 'all_cubes.r' and 'center_overlap.r' xyz_in=(0 0 1) los=2 +Quitting... +*** Test 7 - output formatting *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Ray: +x_orig,y_orig,z_orig,d_orig,h,v,x_dir,y_dir,z_dir,az,el +6.63324958,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,-1.00000000,0.00000000,0.00000000,0.00000000,0.00000000 + +Results: +reg_name,path_name,reg_id,x_in,y_in,z_in,d_in,x_out,y_out,z_out,d_out,los,scaled_los,obliq_in,obliq_out,surf_num_in,surf_num_out +"right_cube.r","/right_cube.r",1003,3.000000,0.000000,0.000000,3.000000,1.000000,0.000000,0.000000,1.000000,2.000000,2.000000,0.000000,0.000000,0,1 +"center_cube.r","/center_cube.r",1000,1.000000,0.000000,0.000000,1.000000,-1.000000,0.000000,0.000000,-1.000000,2.000000,2.000000,0.000000,0.000000,0,1 +"left_cube.r","/left_cube.r",1002,-1.000000,0.000000,0.000000,-1.000000,-3.000000,0.000000,0.000000,-3.000000,2.000000,2.000000,0.000000,0.000000,0,1 + +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Ray: +x_orig,y_orig,z_orig,d_orig,h,v,x_dir,y_dir,z_dir,az,el +6.63324958,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,-1.00000000,0.00000000,0.00000000,0.00000000,0.00000000 + +Results: +reg_name,path_name,reg_id,x_in,y_in,z_in,d_in,x_out,y_out,z_out,d_out,los,scaled_los,obliq_in,obliq_out,surf_num_in,surf_num_out +"right_cube.r","/right_cube.r",1003,3.000000,0.000000,0.000000,3.000000,1.000000,0.000000,0.000000,1.000000,2.000000,2.000000,0.000000,0.000000,0,1 +"center_cube.r","/center_cube.r",1000,1.000000,0.000000,0.000000,1.000000,-1.000000,0.000000,0.000000,-1.000000,2.000000,2.000000,0.000000,0.000000,0,1 +"left_cube.r","/left_cube.r",1002,-1.000000,0.000000,0.000000,-1.000000,-3.000000,0.000000,0.000000,-3.000000,2.000000,2.000000,0.000000,0.000000,0,1 + +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 +center_cube.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) Exit (x y z) Obliq_in Attrib +right_cube.r ( 3.0000 0.0000 0.0000) ( 1.0000 0.0000 0.0000) 0.0000 +center_cube.r ( 1.0000 0.0000 0.0000) ( -1.0000 0.0000 0.0000) 0.0000 +left_cube.r ( -1.0000 0.0000 0.0000) ( -3.0000 0.0000 0.0000) 0.0000 +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 +center_cube.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube.r' 'right_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 +center_cube.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +*** Test 8 - attribute reporting *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube_color.r' 'center_cube_color.r' 'right_cube_color.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +"color" + +Get trees... +Prepping the geometry... +Objects 'left_cube_color.r' 'center_cube_color.r' 'right_cube_color.r' processed +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube_color.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 color=0/0/255 +center_cube_color.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 color=0/255/0 +left_cube_color.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 color=255/0/0 +"color" +"region" + +Get trees... +Prepping the geometry... +Objects 'left_cube_color.r' 'center_cube_color.r' 'right_cube_color.r' processed +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube_color.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 color=0/0/255 region=R +center_cube_color.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 color=0/255/0 region=R +left_cube_color.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 color=255/0/0 region=R +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube_color.r' 'center_cube_color.r' 'right_cube_color.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (3, 1, 1) +"color" +Origin (x y z) = (6.63324958 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +right_cube_color.r ( 3.0000 0.0000 0.0000) 2.0000 0.0000 color=0/0/255 +center_cube_color.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 color=0/255/0 +left_cube_color.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 color=255/0/0 +Quitting... +*** Test 9 - units *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Object 'center_cube.r' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-1, -1, -1) model_max = (1, 1, 1) +units = 'mm' +Origin (x y z) = (3.46410162 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +Origin (x y z) = (0.00346410 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 0.0010 0.0000 0.0000) 0.0020 0.0000 +Origin (x y z) = (0.13638195 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 0.0394 0.0000 0.0000) 0.0787 0.0000 +Origin (x y z) = (0.01136516 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube.r ( 0.0033 0.0000 0.0000) 0.0066 0.0000 +Quitting... +*** Test 10 - air regions *** +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube_air' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (-1, 1, 1) +Origin (x y z) = (1.46410162 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube_air' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (-1, 1, 1) +Origin (x y z) = (1.46410162 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +Database file: 'nirt.g' +Building the directory... +Get trees... +Prepping the geometry... +Objects 'left_cube.r' 'center_cube_air' processed +Database title: 'NIRT example database' +Database units: 'mm' +model_min = (-3, -1, -1) model_max = (1, 1, 1) +Origin (x y z) = (3.89897949 0.00000000 0.00000000) (h v d) = (0.0000 0.0000 0.0000) +Direction (x y z) = (-1.00000000 0.00000000 0.00000000) (az el) = (0.00000000 0.00000000) + Region Name Entry (x y z) LOS Obliq_in Attrib +center_cube_air ( 1.0000 0.0000 0.0000) 2.0000 0.0000 +left_cube.r ( -1.0000 0.0000 0.0000) 2.0000 0.0000 +Quitting... +EOF + +cmp nirt.ref nirt.out +STATUS=$? + +if [ X$STATUS != X0 ] ; then + echo "nirt results differ $STATUS" +else + echo "-> nirt.sh succeeded" +fi + +exit $STATUS + +# Local Variables: +# mode: sh +# tab-width: 8 +# sh-indentation: 4 +# sh-basic-offset: 4 +# indent-tabs-mode: t +# End: +# ex: shiftwidth=4 tabstop=8 Property changes on: brlcad/trunk/regress/nirt.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + text/x-sh Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits