Compare commits
1
Commits
gedplugins
..
cmake
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
614129fe4c |
@@ -0,0 +1,2 @@
|
||||
/.cproject
|
||||
/.project
|
||||
@@ -37,7 +37,7 @@ contributor credits are organized into the following general
|
||||
categories depending on the level and type of involvement:
|
||||
|
||||
* Mathematical, Algorithmic, and Geometric Support
|
||||
* Documentation, Artwork, and Website Contributors
|
||||
* Documentation Writers
|
||||
* Code Contributors
|
||||
* Special Thanks
|
||||
|
||||
@@ -60,7 +60,7 @@ Open Source Point of Contact
|
||||
Morrison, Christopher Sean <morrison@brlcad.org>
|
||||
|
||||
U.S. Army Research Laboratory Point of Contact
|
||||
Yapp, Cliff
|
||||
Davisson, Edwin O. <davisson@arl.army.mil>
|
||||
|
||||
|
||||
DEVELOPERS
|
||||
@@ -141,7 +141,7 @@ nicknames gdurf
|
||||
1992 August
|
||||
ARL Student Hire / Carnegie Mellon University
|
||||
|
||||
Anderson, John R. <jra@arl.army.mil>
|
||||
Anderson, John R. <jra@arl.army.mil> **
|
||||
nicknames jra, johnranderson
|
||||
1993 May
|
||||
U.S. Army Ballistic Research Laboratory
|
||||
@@ -206,34 +206,6 @@ nicknames starseeker
|
||||
2007 September
|
||||
Open Source
|
||||
Quantum Research International, Inc.
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Bowman, W. Keith **
|
||||
nicknames indianlarry
|
||||
SURVICE Engineering, Inc.
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Weiss, Richard **
|
||||
nicknames r_weiss
|
||||
2008 December
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Browder, Thomas M. Jr. **
|
||||
nicknames tbrowder2
|
||||
2008 June
|
||||
ManTech International Corporation
|
||||
Open Source
|
||||
|
||||
Reed, Nicholas **
|
||||
nicknames n_reed
|
||||
2008 July
|
||||
ARL Student Hire / University of Maryland, Baltimore County
|
||||
Quantum Research International, Inc.
|
||||
|
||||
Moore, Jr., Carl G. **
|
||||
nicknames cmoore, carlmoore
|
||||
2011 October
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
|
||||
MATHEMATICAL, ALGORITHMIC, AND GEOMETRIC SUPPORT
|
||||
@@ -246,7 +218,7 @@ U.S. Army Ballistic Research Laboratory
|
||||
Davisson, Edwin O. **
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Rogers, David
|
||||
Rodgers, David
|
||||
U.S. Naval Academy
|
||||
|
||||
Stiller, Peter
|
||||
@@ -268,8 +240,8 @@ Weaver, Stephanie 'Rain' **
|
||||
ARL Student Hire / Bridgewater College
|
||||
|
||||
|
||||
DOCUMENTATION, ARTWORK, AND WEBSITE CONTRIBUTORS
|
||||
------------------------------------------------
|
||||
DOCUMENTATION WRITERS
|
||||
---------------------
|
||||
|
||||
Weaver, Earl P.
|
||||
1980
|
||||
@@ -279,15 +251,15 @@ Schueler, Betty J.
|
||||
|
||||
Edwards, Eric
|
||||
SURVICE Engineering, Inc.
|
||||
Open Source (Doc Camp)
|
||||
|
||||
Kregel, Dwayne
|
||||
SURVICE Engineering, Inc.
|
||||
|
||||
Leverington, Robert
|
||||
nicknames MinuteElectron
|
||||
2007 June
|
||||
Yapp, Cliff **
|
||||
nicknames starseeker
|
||||
2007 September
|
||||
Open Source
|
||||
Quantum Research International, Inc.
|
||||
|
||||
Harder, Brad
|
||||
nicknames yukonbob, bharder, bch
|
||||
@@ -298,97 +270,11 @@ Gettier, Janine
|
||||
2008 October
|
||||
SURVICE Engineering, Inc.
|
||||
|
||||
Ilya
|
||||
nicknames ilya
|
||||
2008 December
|
||||
Open Source
|
||||
|
||||
Giudice, Jesica
|
||||
nicknames jesica Nohla giudicejesica
|
||||
2009 December
|
||||
Open Source
|
||||
|
||||
Jansa, Pavel
|
||||
nicknames pawleeq
|
||||
2011 November
|
||||
Open Source
|
||||
|
||||
Mgebrova, Karen
|
||||
2012 February
|
||||
Open Source
|
||||
|
||||
Elnazli, Cezar
|
||||
nicknames caen23
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Burroughs, Jacob
|
||||
nicknames maths22
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Stoyanova, Stefi
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Perez, Alex
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Singh, Harmanpreet
|
||||
nicknames harmanpreet
|
||||
2013 October
|
||||
Open Source (Doc Camp)
|
||||
|
||||
Kamga, Isaac
|
||||
nicknames Izak, iiizzzaaakkk
|
||||
2013 October
|
||||
Open Source (Doc Camp)
|
||||
|
||||
Check, Nyah
|
||||
nicknames Ch3ck
|
||||
2013 October
|
||||
Open Source (Doc Camp)
|
||||
|
||||
Scott Nesbitt
|
||||
2013 October
|
||||
Open Source (Doc Camp)
|
||||
|
||||
Wood, David
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
Agarwal, Yatharth
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
McDonald, Rob
|
||||
2013 November
|
||||
Open Source
|
||||
|
||||
Tannous, Marc
|
||||
2014 December
|
||||
Open Source (GCI)
|
||||
|
||||
Chiplunkar, Shardul
|
||||
nicknames microchip, shardulc
|
||||
2014 December
|
||||
Open Source (GCI)
|
||||
|
||||
Juvekar, Mandar
|
||||
nicknames mandarj
|
||||
2014 December
|
||||
Open Source (GCI)
|
||||
|
||||
Sofat, Hitesh
|
||||
nicknames sofat
|
||||
2015 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Sieu, Jeff
|
||||
2017 December
|
||||
Open Source (GCI)
|
||||
|
||||
|
||||
CODE CONTRIBUTIONS
|
||||
------------------
|
||||
@@ -505,6 +391,11 @@ ARL Student Hire / Johns Hopkins University
|
||||
Yemc, David J.
|
||||
Johns Hopkins University Applied Physics Laboratory
|
||||
|
||||
Bowman, W. Keith
|
||||
nicknames indianlarry
|
||||
SURVICE Engineering, Inc.
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Anderson, David
|
||||
SGI
|
||||
|
||||
@@ -517,9 +408,7 @@ nicknames mjgillich mgillich
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Howard, Doug
|
||||
nicknames dhoward
|
||||
SURVICE Engineering, Inc.
|
||||
2006 April
|
||||
|
||||
Silva, Prasad Prometheus
|
||||
nicknames prasad_silva
|
||||
@@ -572,11 +461,21 @@ nicknames homovulgaris, madant
|
||||
2008 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Reed, Nicholas
|
||||
nicknames n_reed
|
||||
2008 July
|
||||
ARL Student Hire / University of Maryland, Baltimore County
|
||||
|
||||
Saunders, Benjamin
|
||||
nicknames Ralith, ralith
|
||||
nicknames Ralith
|
||||
2008 July
|
||||
Open Source
|
||||
|
||||
Weiss, Richard
|
||||
nicknames r_weiss
|
||||
2008 December
|
||||
U.S. Army Research Laboratory
|
||||
|
||||
Knaute, Philip
|
||||
2009 February
|
||||
Industrieanlagen-Betriebsgesellschaft mbH (IABG)
|
||||
@@ -593,315 +492,6 @@ ARL Student Hire / University of Maryland, Baltimore County
|
||||
|
||||
Shinn, Rob
|
||||
2010 April
|
||||
Open Source
|
||||
|
||||
nicknames Alexandrus
|
||||
2010 July
|
||||
Open Source
|
||||
|
||||
Hinesley, Brandon
|
||||
nicknames bhinesley
|
||||
2011 March
|
||||
Open Source (GSoC)
|
||||
|
||||
Kunigami, Guilherme
|
||||
nicknames kunigami
|
||||
2011 March
|
||||
Open Source (GSoC)
|
||||
|
||||
Jain, Sachin
|
||||
2011 April
|
||||
Open Source
|
||||
|
||||
Gerstner, Nick
|
||||
2011 May
|
||||
SURVICE Engineering, Inc.
|
||||
|
||||
Easterbrook, Zach
|
||||
nicknames lainiwakurax
|
||||
2011 July
|
||||
Open Source
|
||||
|
||||
Nandy, Abhijit
|
||||
nicknames abhi2011
|
||||
2011 July
|
||||
Open Source (SOCIS)
|
||||
|
||||
Silvko, Ksenija
|
||||
nicknames ksuzee
|
||||
2012 March
|
||||
Open Source (GSoC)
|
||||
|
||||
Dueck, Chris R.
|
||||
nicknames crdueck
|
||||
2012 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Jianbang, Wu
|
||||
nicknames phoenix, phoenixyjll
|
||||
2012 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Precup, Cristina
|
||||
nicknames cprecup
|
||||
2012 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Murty, Anurag
|
||||
nicknames anrgmrty
|
||||
2012 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Oezdogan, Mesut
|
||||
nicknames kane_
|
||||
2012 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Taylor, Alex
|
||||
nicknames Al_Da_Best, aldabest
|
||||
2012 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Laijiren
|
||||
nicknames plussai2008
|
||||
2012 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Niculaescu, Oana
|
||||
nicknames elf11
|
||||
2012 August
|
||||
Open Source (SOCIS)
|
||||
|
||||
Ungureanu, Silviu
|
||||
nicknames Silvrous
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Kashyap, Akshay
|
||||
nicknames Skriptkid
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Borisov, Dimitar
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Pal, Ambar
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Elnazli, Cezar
|
||||
nicknames caen23
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
Huang, Michael
|
||||
nicknames fernozzle
|
||||
2012 November
|
||||
Open Source (GCI)
|
||||
|
||||
nicknames Reikaze
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Phillips, Lachlan
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Calle, Adrián Arroyo
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Keesing, Aaron
|
||||
nicknames agkphysics
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Govindjee, Arjun
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Ramirez, Daniel
|
||||
nicknames javamonn
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Nagy, Csaba
|
||||
nicknames ncsaba
|
||||
2013 April
|
||||
Open Source
|
||||
|
||||
Check, Nyah
|
||||
nicknames Ch3ck
|
||||
2013 July
|
||||
Open Source (GSoC)
|
||||
|
||||
Shah, Kesha
|
||||
nicknames keshashah
|
||||
2013 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Bogolin, Vlad
|
||||
nicknames vladbogo
|
||||
2013 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Kaur, Avneet
|
||||
nicknames avneetkhalsa
|
||||
2013 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Daga, Mohit
|
||||
nicknames zero_level, mohitdaga
|
||||
2013 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Kamga, Isaac
|
||||
nicknames Izak, iiizzzaaakkk
|
||||
2013 July
|
||||
Open Source (GSoC)
|
||||
|
||||
Singh, Harmanpreet
|
||||
nicknames harmanpreet
|
||||
2013 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Huff, Emory
|
||||
nicknames hknoll
|
||||
2013 July
|
||||
ARL Student Hire
|
||||
|
||||
Engbert, Jonathan
|
||||
nicknames ejno
|
||||
2013 July
|
||||
Open Source
|
||||
ARL Student Hire / University of Maryland, Baltimore County
|
||||
|
||||
Andrew
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
Schulte, Johannes
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
Amidon, Peter
|
||||
nicknames peter-sa, Andromeda Galaxy
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
Chiplunkar, Shardul
|
||||
nicknames microchip
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
Берегов, Станислав
|
||||
2013 December
|
||||
Open Source (GCI)
|
||||
|
||||
nicknames huskmate13
|
||||
2014 January
|
||||
Open Source
|
||||
|
||||
Granroth, Gustave
|
||||
2014 May
|
||||
Open Source
|
||||
|
||||
Jain, Rishub
|
||||
2014 July
|
||||
ARL Student Hire
|
||||
|
||||
Roberts, Mitchell
|
||||
2014 July
|
||||
ARL Student Hire
|
||||
|
||||
Bayes, Matthew
|
||||
nicknames klinger4077
|
||||
2014 July
|
||||
ARL Student Hire / University of Maryland College Park
|
||||
|
||||
Mirea, Ștefan-Gabriel
|
||||
2014 October
|
||||
Open Source
|
||||
|
||||
Krishna
|
||||
2015 January
|
||||
Open Source (GCI)
|
||||
|
||||
Konrad, Djimeli
|
||||
2015 February
|
||||
Open Source
|
||||
|
||||
Alexandre da Silva Costa, Vasco
|
||||
nicknames vasco_costa
|
||||
2015 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Thakkar, Kalpit
|
||||
nicknames dracarys983
|
||||
2015 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Ilinca, Andrei
|
||||
nicknames andrei_il
|
||||
2015 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Sofat, Hitesh
|
||||
nicknames sofat
|
||||
2015 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Hollister, Brad
|
||||
nicknames bhollister
|
||||
2015 July
|
||||
Open Source (GSoC)
|
||||
|
||||
Hanji, Param
|
||||
2016 March
|
||||
Open Source (GSoC)
|
||||
|
||||
Wu, Bojian
|
||||
2016 June
|
||||
Open Source (GSoC)
|
||||
|
||||
Bagavathy, Rakshika
|
||||
nicknames tandoorichick
|
||||
2016 October
|
||||
Open Source (GSoC)
|
||||
|
||||
Gao, Tianyue
|
||||
2016 December
|
||||
Open Source (GCI)
|
||||
|
||||
Rathore, Shubham
|
||||
nicknames gabbar1947
|
||||
2017 April
|
||||
Open Source
|
||||
|
||||
nicknames Rakete1111
|
||||
2017 November
|
||||
Open Source
|
||||
|
||||
Narayan, Saran
|
||||
nicknames sharannyn
|
||||
2018 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Shinde, Chetan
|
||||
nicknames chetanshinde911
|
||||
2019 April
|
||||
Open Source (GSoC)
|
||||
|
||||
Haydar, Ali
|
||||
nicknames lois221
|
||||
2019 May
|
||||
Open Source (GSoC)
|
||||
|
||||
Vaidya, Sahil
|
||||
nicknames sahilvaidya99
|
||||
2020 April
|
||||
ARL Student Hire / University of Texas at Austin
|
||||
|
||||
|
||||
SPECIAL THANKS
|
||||
@@ -927,12 +517,12 @@ Kuehl, Gary
|
||||
U.S. Army Ballistic Research Laboratory
|
||||
|
||||
Martin, Glenn E.
|
||||
Northrop Research and Technology Center
|
||||
Northrup Research and Technology Center
|
||||
|
||||
Willson, Stephen Hunter
|
||||
Northrop Research and Technology Center
|
||||
Northrup Research and Technology Center
|
||||
|
||||
Merritt, Don
|
||||
Merrit, Don
|
||||
nicknames merritt
|
||||
1988 September
|
||||
U.S. Army Ballistic Research Laboratory
|
||||
@@ -1034,7 +624,7 @@ Thomas, Balbir
|
||||
Open Source
|
||||
|
||||
Remenak, Daniel T.
|
||||
nicknames DTRemenak, Erroneous, dtremenak
|
||||
nicknames DTRemenak, Erroneous
|
||||
2005 July
|
||||
California Institute of Technology
|
||||
Open Source
|
||||
@@ -1082,6 +672,12 @@ nicknames ebautu
|
||||
2008 April
|
||||
Open Source
|
||||
|
||||
Browder, Jr., Thomas M.
|
||||
nicknames tbrowder2
|
||||
2008 June
|
||||
ManTech SRS Technologies, Inc.
|
||||
Open Source
|
||||
|
||||
Hocevar, Samuel
|
||||
nicknames sam, sammy
|
||||
2008 July
|
||||
@@ -1148,75 +744,6 @@ nicknames epileg, jordisayol
|
||||
2011 January
|
||||
Open Source
|
||||
|
||||
Pitts, Christopher M.
|
||||
nicknames cmpitts
|
||||
2011 August
|
||||
Open Source
|
||||
|
||||
Wang, Max
|
||||
nicknames wmaanxg
|
||||
2012 October
|
||||
Open Source
|
||||
|
||||
Ha, An Tuan
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Singh, Gauravjeet
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Saxena, Amit
|
||||
nicknames amit.daBeast
|
||||
2012 December
|
||||
Open Source (GCI)
|
||||
|
||||
Saini, Talwinder
|
||||
nicknames talwindersaini
|
||||
2013 July
|
||||
Open Source
|
||||
|
||||
YuGin, Tan
|
||||
2013 November
|
||||
Open Source (GCI)
|
||||
|
||||
nicknames mandar
|
||||
2013 December
|
||||
Open Source (GCI)
|
||||
|
||||
Lotsu, Alexander
|
||||
nicknames Alex
|
||||
2013 December
|
||||
Open Source (GCI)
|
||||
|
||||
Hyams, Daniel
|
||||
nicknames dhyams
|
||||
2014 February
|
||||
Open Source
|
||||
|
||||
Reddy, Raj
|
||||
nicknames raj12lnm
|
||||
2014 May
|
||||
Open Source
|
||||
|
||||
Malhotra, Shivoam
|
||||
nicknames shiv05
|
||||
2015 March
|
||||
Open Source
|
||||
|
||||
Chepkwony, Benson
|
||||
nicknames bchepkwny
|
||||
2015 December
|
||||
Open Source
|
||||
|
||||
Sagarwal
|
||||
2017 January
|
||||
Open Source (GCI)
|
||||
|
||||
Liu, Jeffrey
|
||||
2019 December
|
||||
Open Source (GCI)
|
||||
|
||||
|
||||
CORPORATE AND ORGANIZATION SUPPORT
|
||||
----------------------------------
|
||||
@@ -1234,8 +761,8 @@ Night Vision & Electronic Sensors Directorate
|
||||
|
||||
U.S. Naval Academy
|
||||
|
||||
Northrop Corporation
|
||||
Northrop Research and Technology Center
|
||||
Northrup, Inc.
|
||||
Norhtrup Research and Technology Center
|
||||
|
||||
SGI
|
||||
formerly named Silicon Graphics, Inc.
|
||||
|
||||
@@ -15,262 +15,8 @@ on-going issues.
|
||||
Recent Bugs
|
||||
-----------
|
||||
|
||||
* dbupgrade -r produces an invalid rhc with the default v5 rhc produced
|
||||
by MGED with "make rhc rhc"
|
||||
|
||||
* apparently all four BRL-CAD Tutorial Series volumes are missing from
|
||||
our bibliography...
|
||||
|
||||
* Tessellating an ETO with a normal tolerance results in stack
|
||||
smashing due to bad logic in recursive algorithm: set norm 2;
|
||||
facetize my.eto my.bot;. Observed infinite recursion in both
|
||||
make_ellipse4() in eto.c and (after adding max recursion test) in
|
||||
paint_face() in manif.c:190
|
||||
|
||||
* bot_dump -o file.obj is possibly generating invalid OBJ files.
|
||||
tested on two different pieces of software including xcode and cura,
|
||||
both failed to read our obj files where stl worked.
|
||||
|
||||
* mater -d information stored in the .g file doesn't survive a
|
||||
garbage collection operation.
|
||||
|
||||
|
||||
* fix checker.sh script and/or overlap GUI so that the latter will
|
||||
read the resulting overlap pairings file from the prior.
|
||||
alternatively, need to be able to run overlap check on server
|
||||
without GUI, so could implement an overlaps file output option to be
|
||||
run via mged -c.
|
||||
|
||||
* running 'put' on geometry that is already displayed results in a NaN
|
||||
view (at least View and Eye_pos parameters are non) despite geometry
|
||||
still being displayed. this causes 'rt' to fly into an infinite
|
||||
loop, presumably trying to increment rays from the eye position.
|
||||
|
||||
* icv dpix support is not cross-platform (it writes out native, reads
|
||||
in assuming same encoding). regression tests fail on big endian.
|
||||
|
||||
* creating an object with a slashes in the name (e.g., cp foo foo/R)
|
||||
results in an object that cannot be deleted/renamed. bad behavior
|
||||
presumably extends to any name with path separators.
|
||||
|
||||
* mirror command rejects brep solids and turns faces inside-out when
|
||||
mirroring a comb with brep solids below it.
|
||||
|
||||
* rtsil command works if do what usage says and redirect output to
|
||||
file, but mentions .pix when data is actually .bw; and using the -o
|
||||
option results in a black image. it is also inconsistent, writing a
|
||||
black silhouette on a white background, instead of black on white
|
||||
and missing background color options.
|
||||
|
||||
* make sph sph
|
||||
clone -i 1 -t 1000 0 0 -n 100 sph
|
||||
kill sph
|
||||
g line sph*
|
||||
clone -i 1 -t 0 1000 0 -n 100 line
|
||||
kill line
|
||||
g square line*
|
||||
clone -i 1 -t 0 0 1000 -n 100 square
|
||||
... never returns ...
|
||||
|
||||
This should be merely 1M spheres, but something chokes. Could be
|
||||
somewhere in the Tk layer. Maybe somewhere in the db layer. Maybe
|
||||
something is corrupted by clone when it
|
||||
|
||||
* If we draw any form, then trace it using rt, then change of database
|
||||
(by clicking file>open and selecting another database), badness
|
||||
ensues. One report has quitting the rt window causing a segfault.
|
||||
Another (confirmed) hung mged (stuck/inf loop).
|
||||
|
||||
* annotation bugs:
|
||||
in sph1.s sph 0 0 0 10
|
||||
in ann1.s annot 0 0 0 test1 10 10 3 1
|
||||
in ann2.s annot 30 30 30 test2 40 40 3 1
|
||||
# ann2.s's label looks wrong, points at origin?
|
||||
in ann3.s annot 0 0 0 1 10 10 3 1
|
||||
# using numbers for a label results in no label
|
||||
|
||||
* make eto eto
|
||||
tol norm 1
|
||||
facetize eto.bot eto
|
||||
[crashes due to excessive recursion]
|
||||
|
||||
* crash in rt_bot_xform() due to a bot being marked as having face
|
||||
normals, but didn't. bot probably written wrong via conversion
|
||||
to/from obj or asc. found importing teapot.
|
||||
|
||||
* rtedge with perspective is wrong. it fills in nearly entire faces,
|
||||
vertically in particular. it's worse on small sized renders, and
|
||||
gets better the larger the render size (indicating there's some
|
||||
neighbor distance coming into play that is not affected by
|
||||
max_dist). eoes not happen in non-perspective ray-traces.
|
||||
|
||||
* a character is (still) sometimes captured by the cursor box. steps
|
||||
to reproduce:
|
||||
1) write a word on the mged command prompt ("e.g. hello")
|
||||
2) select the word to end of line with mouse
|
||||
3) paste the word (e.g., middle mouse) and press enter
|
||||
4) type "hello" again and press enter
|
||||
|
||||
you should now see an "o" in the yellow cursor box. sometimes
|
||||
you'll see the "o" after step 3. running "clear" resets the cursor.
|
||||
|
||||
* get_regions tcl command doesn't respond well to situations where
|
||||
child object names in combs have dashes (the "-" character) in
|
||||
names. It tries to interpret the dash as an argument delimiter.
|
||||
Looks like this may be only in situations where the "-" is the
|
||||
lead character and on Windows? Been hard to reproduce...
|
||||
|
||||
* dsp does not facetize correctly with zero elevation areas in the
|
||||
data - need robustness improvements
|
||||
|
||||
* dsp primitives specifying data using Windows style file paths
|
||||
don't work.
|
||||
|
||||
* attempting to create a dsp using a binary object caused a crash on
|
||||
Linux - need to figure out if this was caused by feeding it the wrong
|
||||
kind of binary object or some other error...
|
||||
|
||||
* screengrab on windows does not work
|
||||
|
||||
* Recursive submodel predictably goes infinite, need stack-based
|
||||
db_walk_tree(): mged> in submodel submodel submodel grid test.g
|
||||
|
||||
* running rt -s20 -F file.pix ... does not result in an 20x20 image
|
||||
being written out. it ends up being 512x512.
|
||||
|
||||
* running rt -C255/0/0 -o file.pix ... does not result in the
|
||||
background color getting used. It does work with -F file.pix, going
|
||||
through libfb instead of libicv.
|
||||
|
||||
* ogl display manager and framebuffer are creating windows with
|
||||
transparent backgrounds (the glClear color is not being drawn) on
|
||||
Linux. Presumably a driver-related issue, alpha channel, or expose
|
||||
event issue. Inspecting further, it may be related to environments
|
||||
where shmget() fails (or is requested via /dev/oglp) and we get
|
||||
private memory -- looks like private memory is not initialized
|
||||
(observed on Mac 10.6, Windows, and Ubuntu Linux using 7.26).
|
||||
|
||||
* pixdiff on Windows is reporting no differences with a pair of files
|
||||
that pixcmp can see differences in.
|
||||
|
||||
* fblabel seems quite busted, at least talking to a /dev/X fbserv, in
|
||||
that it only draws the first character and eventually displays
|
||||
rem_read() failures when run in -d debug mode.
|
||||
|
||||
* rtedge doesn't refresh a /dev/X fbserv (presumably double-buffered)
|
||||
after doing an overlay render. it does draw, though, as confirmed
|
||||
by a forced fb-fb refresh.
|
||||
|
||||
* pixborder doesn't account for an edge case where the right edge of
|
||||
an image is expected to be colored (except for one pixel on the top
|
||||
edge). Example:
|
||||
|
||||
pixborder -b "255 0 0" -t "255 255 255" < pix/moss.pix | pix-fb
|
||||
|
||||
* report that attempting to change units on a read-only file in MGED
|
||||
will not change the units in the file but changes them in MGED,
|
||||
resulting in problems with nirt missing geometry it shouldn't miss.
|
||||
|
||||
* typing 'comb -f -r assembly_name' shuts down mged with the error:
|
||||
ERROR: bad pointer 0000000000B4CA50: s/b bu_external(x768dbbd0), was bu_vls(x89333bbb), file ..\..\..\brlcad_src\src\libbu\parse.c, line 2443"
|
||||
And on the mged command line:
|
||||
rt_db_cvt_to_external5 expecting non-NULL name parameter
|
||||
wdb_export((null)): solid export failure
|
||||
|
||||
* report of mged command history not working with the down arrow key
|
||||
in 7.25.0 (on Windows, unknown on other platforms). Up arrow works
|
||||
fine.
|
||||
|
||||
* wgl framebuffer is not lingering on windows (regardless of using
|
||||
wgll or default) when it should
|
||||
|
||||
* nirt -e "xyz val val val" doesn't work due to the space after the -e
|
||||
and how the nirt/rt commands parse quoted args.
|
||||
|
||||
* calling "attr set obj key value" should always result in key getting
|
||||
set to value, no matter what, as it is the lowest-level attribute
|
||||
management interface and what the command (correctly) documents.
|
||||
example demonstrated to not work was: attr set obj rgb 123/123/123
|
||||
|
||||
* report of LIBBU not working when accessed by a multithreaded
|
||||
application on Windows. reportedly due to some problem with the
|
||||
debug memory queue.
|
||||
|
||||
* report of g-iges crashing (on Windows) when exporting a 1.2MB BoT
|
||||
mesh (presumably imported via stl-g). worked for smaller models.
|
||||
|
||||
* autoview [scale] isn't updating the wireframe when opening a
|
||||
database, drawing geometry, then running autoview. the status bar
|
||||
shows the scale change, but the graphics window remains unaffected
|
||||
unless you run "view size" to set it.
|
||||
|
||||
* overlay command reports an error when trying to load a file
|
||||
names edges.pl, but succeeds when the file is called patches.pl
|
||||
Need to see why edges.pl is not accepted.
|
||||
|
||||
* step-g crashing on mac with lazy symbol load failure missing:
|
||||
brlcad::SurfaceTree::SurfaceTree(ON_BrepFace*, bool, int)
|
||||
|
||||
* metaball tessellation enters either an infinite loop or an absurdly
|
||||
long tessellation process - observed on Linux 64 bit system - quick
|
||||
test:
|
||||
|
||||
rm -f metaball.g && mged -c metaball.g "make m.s metaball; facetize m.bot m.s"
|
||||
|
||||
* corruption/crash issue rendering terra.g without terra.dsp,
|
||||
possibly/probably parallel-related in libbn/noise.c's
|
||||
bn_noise_turb() function. gdb eventually catches a segfault in
|
||||
find_spec_wgt() loop with indications of corrupted memory. valgrind
|
||||
confirms corrupted memory (8 bytes) after a build_spec_table()
|
||||
realloc within find_spec_wgt() but it's not clear why. etbl
|
||||
book-keeping seems okay.. corrupted read consistently detected on
|
||||
spec_wgts = ep->spec_wgts line in bn_noise_turb(). observed on
|
||||
64-bit linux system:
|
||||
|
||||
rm -f terra.pix && valgrind bin/rt -o terra.pix -P1 -H3 -s1024 share/brlcad/7.21.0/db/terra.g all.g
|
||||
|
||||
* mged 'joint' hold command isn't working. looks like the fp_names
|
||||
book-keeping is fuxored or the db_lookup is returning NULL (or isn't
|
||||
yet performed).
|
||||
|
||||
* idents command is reporting a bogus region count in the region
|
||||
output table listing (first column).
|
||||
|
||||
* src/librt/primitives/bot/g_bot_include.c:rt_bot_bbox() routine isn't
|
||||
calculating the bbox correctly
|
||||
|
||||
* 'exists' command documentation claims more than has been implemented
|
||||
|
||||
* rtxray crashes if you specify a -o *.bw output file due to
|
||||
assumptions in the rt front-end that all output files are .pix
|
||||
|
||||
* raytracing a revolved sketch seems to work fine, but rtarea and gqa
|
||||
seem to be crashing on that same revolve. curiously, the brep
|
||||
revolve from the csgbrep proc-db has the same failure as well as the
|
||||
brep ehy.
|
||||
|
||||
* encountered a crash during rtarea on a (default) facetized version
|
||||
of the hyp from the proc-db csgbrep tool.
|
||||
|
||||
* raytracing rhc crashes (inside malloc, so previous memory badness)
|
||||
with normal tolerance set to non-default value (e.g. tol norm 0.1);
|
||||
also fails (non-crash) if absolute tolerance is changed (e.g., tol
|
||||
abs 0.1)
|
||||
|
||||
* revolve raytracing seems to be busted.. at least with the example
|
||||
csgbrep revolve shape
|
||||
|
||||
* torus with a near zero inner diameter results in zero-length edges
|
||||
during tessellation.
|
||||
|
||||
* opening a database in archer with the same name as a command doesn't
|
||||
work.
|
||||
|
||||
* bu_log() with a width specifier does not align like printf().
|
||||
Example: bu_log("%24s", str);
|
||||
|
||||
* report that "keep" sometimes results in a .g file with unknown units;
|
||||
dbconcat also is reported to set the units to unknown if concatting
|
||||
* report that keep sometimes results in a .g file with unknown units
|
||||
dbconcat also is reported to set the units to unknown if concating
|
||||
a file with unknown units.
|
||||
|
||||
* infinite loop in rt_find_backing_dist() raytracing a BoT (without
|
||||
@@ -305,14 +51,11 @@ Recent Bugs
|
||||
|
||||
* mged/tcl "gets" command doesn't work if you run the "source" command
|
||||
to read in a script that uses gets on stdin. it just hangs until
|
||||
multiple sigint's are received.
|
||||
muliple sigint's are received.
|
||||
|
||||
* invoking mged from a system menu seems to be broken. reported by a
|
||||
reliable ArchLinux user. probably exhibits cross-platform on KDE,
|
||||
GNOME, or XFCE (but original environment is unknown). the bug is
|
||||
undoubtedly related to mged's interactive and stdin/stdout input
|
||||
detection where mged thinks it's being scripted (beginning on or
|
||||
about mged.c:1150)
|
||||
* mged 'cd' on Windows results in the rt* commands failing.
|
||||
|
||||
* menu invocation seems to be broken again (ArchLinux)
|
||||
|
||||
* Report of copy/paste not working with Tk on Windows Vista - does
|
||||
work on Windows XP.
|
||||
@@ -333,11 +76,6 @@ Recent Bugs
|
||||
* Detailed BoT model ray trace image had incorrect background pixel
|
||||
values in framebuffer, off slightly by one.
|
||||
|
||||
* ogl display manager still crashes on attach in mged on Mac OS X 10.5
|
||||
|
||||
* rt is consuming 100% CPU in fb_close() on a lingering ogl
|
||||
framebuffer waiting to close. needs to sleep or select for a while.
|
||||
|
||||
* /dev/oglb 'copy mode' fails to refresh the framebuffer
|
||||
|
||||
* X display manager (and probably others) will lock up mged if you Z/B
|
||||
@@ -346,10 +84,13 @@ Recent Bugs
|
||||
sub-1sec fps, Z/B after rotating wireframe but before update
|
||||
finishes drawing.
|
||||
|
||||
* rtedge help shows redirection to a file working, but it does not
|
||||
seem to work (zero-file results).
|
||||
|
||||
* report of rt aborting randomly on 64-bit with camo shader.
|
||||
|
||||
* mged raytrace fails with simple "raytrace failed" message when using
|
||||
rt, nirt, etc. on Windows after modifying a region. See sf bug
|
||||
rt, nirt, etc on Windows after modifying a region. See sf bug
|
||||
report 2954404.
|
||||
|
||||
* mged rrt command is not respecting the view size, just does
|
||||
@@ -364,14 +105,16 @@ Recent Bugs
|
||||
* vdeck truncates the region names in the 'regions' file, probably
|
||||
wrong bu_strlcpy() length.
|
||||
|
||||
* hyp tessellation routine creates bot that does not raytrace
|
||||
|
||||
* hyp used in a boolean with other objects (even unions) does not
|
||||
raytrace
|
||||
* hyp tesselation routine creates bot that does not raytrace
|
||||
|
||||
* if you attach a display manager in tk-mged, kill the window, then
|
||||
quit, mged crashes on exit.
|
||||
|
||||
* CMD-b and CMD-f navigates the mged command window text widget on Mac
|
||||
and trivally causes problems with the cursor and text injection.
|
||||
|
||||
* ogl display manager still crashes on attach in mged on Mac OS X 10.5
|
||||
|
||||
* mged segfaults when drawing lots of solids at once (e.g. draw *.s)
|
||||
|
||||
* mged command mode doesn't display the output of multiple
|
||||
@@ -382,7 +125,7 @@ Recent Bugs
|
||||
mged -c moss.g "puts OK ; tops ; puts OK2 ; title ; puts DONE"
|
||||
|
||||
Note that this is consistent with doing the same thing on the MGED
|
||||
Command Window's command prompt - if the above is a bug it is
|
||||
Command Window's command prompt - if the above is a bug it is
|
||||
apparently not restricted to command/classic mode.
|
||||
|
||||
Further investigation suggests that this is a consequence of
|
||||
@@ -395,18 +138,23 @@ Recent Bugs
|
||||
* mged rotation halts after a few events and after zooming in/out at
|
||||
least once (Mac OS X 10.5)
|
||||
More info: This problem appears to be specific to a particular
|
||||
X11 version or versions - it has been observed with
|
||||
X11 version or versions - it has been observed with
|
||||
xorg-server-1.4.2-apple33 on 10.5. It does not occur with the
|
||||
community XQuartz 2.5.0 (xorg-server 1.7.6), nor does it occur
|
||||
when Tk 8.5.8 is compiled to use the Aqua backend. At least one other
|
||||
(possibly earlier) version of X11 from Apple on a 10.5 Mac did not
|
||||
exhibit bad rotate behavior. The problem is not specifically the
|
||||
(possibly earlier) verison of X11 from Apple on a 10.5 Mac did not
|
||||
exhibit bad rotate behavior. The problem is not specifically the
|
||||
zooming action - rather, the zoom triggers
|
||||
a Tk focus call on the display manager window (rather than the
|
||||
a Tk focus call on the display manager window (rather than the
|
||||
Tk parent window) and the problem manifests when focus is on the
|
||||
display manager window. mged classic mode, where there is no
|
||||
parent window, exhibits the bad rotate behavior immediately.
|
||||
|
||||
* rtedge fills in nearly entire faces of an object when executing on a
|
||||
model that is in perspective mode. Effects really bad on small sized
|
||||
renders, and gets better the larger the render size. Does not happen
|
||||
in non-perspective ray-traces.
|
||||
|
||||
* infinite light sources close to objects result in unexpected/bad
|
||||
light behavior. example is a 1m sph light about 5m from a box about
|
||||
1k x 1k x 1k in size. setting make each light be red, green, and
|
||||
@@ -417,9 +165,12 @@ Recent Bugs
|
||||
|
||||
* fastgen plate mode bots are reporting invalid shotline segments.
|
||||
depending on whether you shoot from the front or back can result in
|
||||
bogus lists visible with nirt in mged, entirely missing the bot, or
|
||||
bogus lists visiable with nirt in mged, entirely missing the bot, or
|
||||
mismatched entry/exit/overlap segments.
|
||||
|
||||
* nirt -e "xyz val val val" doesn't work due to the space after the -e
|
||||
and how the nirt/rt commands parse quoted args.
|
||||
|
||||
* tab completion in classic/command mode sometimes doesn't work
|
||||
(presumably if mged can't find tcl resources). was finally able to
|
||||
reproduce this with the result given as:
|
||||
@@ -429,7 +180,7 @@ Recent Bugs
|
||||
* mged 'facetize -n' command is giving many errors:
|
||||
ERROR: color index out of range (-128 > 255)
|
||||
and it shouldn't. seems to be happening on 3-manifold surfaces but
|
||||
only for particular faces. looks like the painting algorithm that is
|
||||
only for particuar faces. looks like the painting algorithm that is
|
||||
being used is flawed (and an incomplete implementation).
|
||||
|
||||
* running 'keep' on too many objects (hundreds is causing a usage
|
||||
@@ -451,10 +202,9 @@ Recent Bugs
|
||||
|
||||
* File->Export seems to not work on Windows
|
||||
|
||||
* xpush fails to properly create a hierarchy killing existing objects
|
||||
resulting in dangling references. This may have been fixed by
|
||||
r69256, but a model that exposes the issue has to be tested to be
|
||||
sure.
|
||||
* xpush fails to properly create a hierarchy leaving some as top-level
|
||||
objects and killing other existing objects resulting in dangling
|
||||
references.
|
||||
|
||||
* mged on Mac OS X will crash on an X11 call if compiled against
|
||||
system Tcl/Tk (at least on 10.4 linking against 8.4), see TODO
|
||||
@@ -489,6 +239,9 @@ Recent Bugs
|
||||
on freebsd using xfce and metacity (single display, 1680x1050 res).
|
||||
dm shows up just fine.
|
||||
|
||||
* wireframe is failing to draw when framebuffer is displayed (underlay
|
||||
or overlay) in mged. problem is specific to dm-ogl (dm-x is fine).
|
||||
|
||||
* g2asc of a v4 is apparently writing out the wrong s_cgtypes and
|
||||
otherwise parsing v4 .g files incorrectly
|
||||
|
||||
@@ -499,6 +252,12 @@ Recent Bugs
|
||||
ubuntu linux. key events go to the command window even with the
|
||||
graphics window has focus.
|
||||
|
||||
* rt is consuming 100% CPU in fb_close() on a lingering ogl
|
||||
framebuffer waiting to close. needs to sleep or select for a while.
|
||||
|
||||
* report of mged being locked up on startup taking full cpu, works
|
||||
fine with with -c with X dm.
|
||||
|
||||
* MGED File->Preferences->Fonts results in error "named font "button
|
||||
_font" doesn't exist on Linux.
|
||||
|
||||
@@ -508,7 +267,7 @@ Recent Bugs
|
||||
(seems to be Mac OS X specific)
|
||||
|
||||
* turning on Framebuffer->Rectangle Area in mged disables the
|
||||
embedded framebuffer display on Mac OS X when you sweep a raytrace
|
||||
embedded framebuffer diplay on Mac OS X when you sweep a raytrace
|
||||
rectangle. sweeping still works if you leave it at All.
|
||||
|
||||
* invalid shaders result in an "Unable to locate where BRL-CAD ... is
|
||||
@@ -531,6 +290,8 @@ Recent Bugs
|
||||
* overlap tool in mged encourages very inefficient CSG operations
|
||||
(e.g. a simple bolt with an entire hull armor subtracted)
|
||||
|
||||
* a character is (still) sometimes captured by the cursor box
|
||||
|
||||
* permute (in mged) requires apply or save before 'new' vertex values
|
||||
will function properly as keypoints.
|
||||
|
||||
@@ -571,6 +332,13 @@ Recent Bugs
|
||||
* triangulation of some pipe in toyjeep.g fails (rather reliably) on
|
||||
some given bend. fails in nmg_triangulate model().
|
||||
|
||||
* tgc reports one hit errors though hit point has 0,0,0 direction
|
||||
implying that maybe the point was supposedly deleted.
|
||||
|
||||
* rtedge is not respecting the -c"set" options. needs to give some
|
||||
indication that they were parsed too since it ignores unrecognized
|
||||
values apparently.
|
||||
|
||||
* fbhelp sends some of the output to stdout and some to stderr...
|
||||
|
||||
* debugbu 2 immediately reports a bu_vls_free() error.. apparently
|
||||
@@ -654,12 +422,6 @@ Recent Bugs
|
||||
line (infinite loop). also gives infinite areas when presented with
|
||||
an empty .density file.
|
||||
|
||||
* rtarea gives incorrect areas when using -H hypersample flag
|
||||
|
||||
* rtweight/gqa volumes seem wrong with simple sphere test case, with
|
||||
values consistently and quickly converging less than the actual
|
||||
volume regardless of the grid size.
|
||||
|
||||
* setting src/librt/db5_io.c's AVS_ADD off in db5_import_attributes
|
||||
causes bad things to happen and it really shouldn't.
|
||||
|
||||
|
||||
+1176
-3436
File diff suppressed because it is too large
Load Diff
@@ -41,11 +41,11 @@ the prefix "lib" in the src/ directory (e.g. src/librt/). All of
|
||||
BRL-CAD's libraries, applications, and any content lacking a license
|
||||
specification are covered by the terms of the LGPL.
|
||||
|
||||
Most of BRL-CAD's build infrastructure including files required by
|
||||
the GNU Build System (such as the CMakeLists.txt files), a variety
|
||||
of scripts located in the misc/ and sh/ directories, and the testing
|
||||
infrastructure (scripts and resources) are provided either under
|
||||
the BSD license or are in the public domain. Similarly, most of
|
||||
Most of BRL-CAD's build infrastructure including files required by the
|
||||
GNU Build System (such as the configure.ac and all Makefile.am files),
|
||||
a variety of scripts located in the misc/ and sh/ directories, and the
|
||||
testing infrastructure (scripts and resources) are provided either
|
||||
under the BSD license or are in the public domain. Similarly, most of
|
||||
the geometric models, images, and other data resources are also
|
||||
provided under the BSD license. Refer to each individual file for
|
||||
specific terms.
|
||||
@@ -101,7 +101,7 @@ arranged. This includes an implicit assignment of copyright for any
|
||||
and all contributions being made. The following notice should be
|
||||
prominent in the BRL-CAD sources:
|
||||
|
||||
Copyright (c) 1984-2020 United States Government as represented by
|
||||
Copyright (c) 1984-2011 United States Government as represented by
|
||||
the U.S. Army Research Laboratory.
|
||||
|
||||
Contact
|
||||
|
||||
+825
@@ -0,0 +1,825 @@
|
||||
The Installation Guide to BRL-CAD
|
||||
=================================
|
||||
|
||||
Please read this document if you are interested in installing BRL-CAD.
|
||||
|
||||
This document covers the basics of installing BRL-CAD from either a
|
||||
source or binary distribution. Please see the 'Reporting Problems'
|
||||
section if you run into any trouble installing BRL-CAD.
|
||||
|
||||
Some platforms have additional platform-specific documentation
|
||||
provided in the doc/ directory of the source distribution that should
|
||||
be consulted if that is the platform you are installing on. This
|
||||
presently includes the following:
|
||||
|
||||
doc/README.MacOSX -- Apple Mac OS X
|
||||
doc/README.IRIX -- SGI IRIX and IRIX64
|
||||
doc/README.Linux -- Various Linux distributions
|
||||
doc/README.Windows -- Microsoft Windows
|
||||
|
||||
|
||||
TABLE OF CONTENTS
|
||||
-----------------
|
||||
Introduction
|
||||
Table of Contents
|
||||
Quick Installation
|
||||
Installing from Binary
|
||||
Installing from Source
|
||||
Configuration Options
|
||||
Compilation Options
|
||||
Installation Options
|
||||
Testing Functionality
|
||||
Post-Installation
|
||||
Reporting Problems
|
||||
|
||||
|
||||
QUICK INSTALLATION
|
||||
------------------
|
||||
|
||||
Note that the downloaded files have two check sums calculated
|
||||
automatically by the Source Forge file release system. The values are
|
||||
used to verify the integrity of the files as distributed. Get those
|
||||
data by clicking on the 'i' button at the end of each file's name.
|
||||
You should ensure those data are retained and kept with the files if
|
||||
you re-distribute them.
|
||||
|
||||
|
||||
If you downloaded a binary distribution of BRL-CAD for your system,
|
||||
please read the INSTALLING FROM BINARY section of this document down
|
||||
below. The rest of this quick installation section is only relevant
|
||||
to source code distributions of BRL-CAD.
|
||||
|
||||
For the impatient or simplistic, the following steps should compile,
|
||||
test, and install an optimized BRL-CAD quickly into the /usr/brlcad
|
||||
directory if CMake is installed on your system:
|
||||
|
||||
gunzip brlcad-X.Y.Z.tar.gz
|
||||
tar -xvf brlcad-X.Y.Z.tar
|
||||
mkdir brlcad-build
|
||||
cd brlcad-build
|
||||
cmake ../brlcad-X.Y.Z -DBRLCAD-ENABLE_OPTIMIZED=ON
|
||||
make
|
||||
make benchmark
|
||||
make regress
|
||||
make install # as root, e.g. sudo make install
|
||||
|
||||
If any of the listed steps fail, then something unexpected happened.
|
||||
See the REPORTING PROBLEMS section of this document to report the
|
||||
problem or the INSTALLING FROM SOURCE section for more comprehensive
|
||||
instructions.
|
||||
|
||||
Once installed, add /usr/brlcad/bin to your path, and you should be
|
||||
able to run one of the 400+ applications that constitute BRL-CAD. For
|
||||
example, to run the MGED solid modeler:
|
||||
|
||||
PATH=/usr/brlcad/bin:$PATH ; export PATH
|
||||
mged
|
||||
|
||||
If you use tcsh or another C-shell based command shell, use this
|
||||
instead:
|
||||
|
||||
set path=( /usr/brlcad/bin $path ) ; rehash
|
||||
mged
|
||||
|
||||
|
||||
INSTALLING FROM BINARY
|
||||
----------------------
|
||||
|
||||
There are a variety of different kinds of binary distributions of
|
||||
BRL-CAD. Some of the binary disributions are sufficiently generic and
|
||||
are simply a binary commpressed tarball distribution. Others are
|
||||
specific to a particular platform such as Debian, Mac OS X, FreeBSD,
|
||||
and Windows etc.
|
||||
|
||||
|
||||
Generic Binary Distributions:
|
||||
|
||||
For the unspecialized binary distributions that are basically
|
||||
compressed tarballs of the installation root, they should contain the
|
||||
entire hierarchy of the distribution. That is to say that they
|
||||
contain /usr/brlcad in its entirety so that if you decompress, you
|
||||
will have a `usr' directory that contains a single `brlcad' directory:
|
||||
|
||||
gunzip BRL-CAD_7.2.4_Linux_ia64.tar.gz
|
||||
tar -xvf BRL-CAD_7.2.4_Linux_ia64.tar
|
||||
sudo mkdir /usr/brlcad
|
||||
sudo mv BRL-CAD_7.2.4_Linux_ia64/* /usr/brlcad/
|
||||
|
||||
Of course, there are other compression options possible including zip
|
||||
and bzip2. By default, BRL-CAD expects to be installed into
|
||||
/usr/brlcad. On some platforms the binary may be relocatable, but this
|
||||
is not guaranteed. It's recommended that you start from a source
|
||||
distribution if you would like to install into an alternate installation
|
||||
location.
|
||||
|
||||
However, if you do desire to install and run BRL-CAD from a different
|
||||
location, give it a try.. ;) If it doesn't work (some platforms are more
|
||||
problematic than others), you will need to compile and install from a
|
||||
source distribution.
|
||||
|
||||
|
||||
Mac OS X Disk Mounting Image:
|
||||
|
||||
Mount the .dmg and run the Installer .pkg contained therein. This
|
||||
will install into /usr/brlcad and will only require confirming that
|
||||
your environment is set up properly (i.e. add /usr/brlcad/bin to your
|
||||
path) as described in this document's Installation Options section.
|
||||
|
||||
|
||||
INSTALLING FROM SOURCE
|
||||
----------------------
|
||||
|
||||
There are a couple of ways to obtain the BRL-CAD sources, usually via
|
||||
one of the following starting points:
|
||||
|
||||
1) from a SVN checkout/export, or
|
||||
2) from a source distribution tarball
|
||||
|
||||
Using the latest SVN sources is recommended where possible since it
|
||||
will have the latest changes. See the corresponding section below for
|
||||
details on how to install from either starting point.
|
||||
|
||||
|
||||
Starting From a SVN Checkout/Export:
|
||||
|
||||
With CMake, there is no longer any difference between building from
|
||||
a subversion checkout and a tarball - follow the Source Distribution
|
||||
instructions below.
|
||||
|
||||
Starting From a Source Distribution:
|
||||
|
||||
There are many different ways to build BRL-CAD and depending on what
|
||||
you need/want will determine which configuration options you should
|
||||
use. See the CONFIGURATION OPTIONS section below for details on how
|
||||
to go about selecting which options are appropriate for you.
|
||||
|
||||
By default, the default configuration will prepare the build system
|
||||
for installation into the /usr/brlcad directory (the
|
||||
CMAKE_INSTALL_PREFIX option may be used to change that). This
|
||||
tradition goes back a couple decades and is a convenient means to
|
||||
isolate the BRL-CAD solid modeling system from your system, resolves
|
||||
conflicts, facilitates uninstalls, and simplifies upgrades. The
|
||||
default configuration is performed by running `cmake'. It is not
|
||||
required to do the build in a directory different from your source
|
||||
directory, but it is much cleaner and highly recommended - this guide
|
||||
will illustrate the build process with the assumption that the
|
||||
BRL-CAD source code is in the directory brlcad-7.2.4 and the
|
||||
directory intended to hold the build output is brlcad-build, located
|
||||
in the same parent directory as brlcad-7.2.4:
|
||||
|
||||
.
|
||||
./brlcad-7.2.4
|
||||
./brlcad-build
|
||||
|
||||
To start the build process, cd into brlcad-build and run the following
|
||||
|
||||
cmake ../brlcad-7.2.4
|
||||
|
||||
By default, an unoptimized build of BRL-CAD will be configured
|
||||
for compilation. This is a "bare bones" compile that does not
|
||||
add debug flags, optimization, or other features that are generally
|
||||
useful. There are several "build profiles" that may be invoked
|
||||
to automatically set up several options for particular purposes -
|
||||
see the BUILD TYPES section below.
|
||||
|
||||
By default, all components and functionality will be built except
|
||||
jove. However, BRL-CAD does require and include several 3rd party
|
||||
components. If your system does not include a sufficient version of
|
||||
those required 3rd party components, they will be automatically
|
||||
configured for compilation.
|
||||
|
||||
If the autodetection mechanisms fail to produce a working configuration,
|
||||
the next simplest approach is typically to enable ALL the third party
|
||||
components - this is typically a well tested configuration, but will
|
||||
increase both the build time and final install size of BRL-CAD on
|
||||
the system. To set this variable on the command line, use -D to
|
||||
define BRLCAD-ENABLE_ALL_LOCAL_LIBS for CMake:
|
||||
|
||||
-DBRLCAD-ENABLE_ALL_LOCAL_LIBS=ON
|
||||
|
||||
If the graphical interface (cmake-gui) is in use, it will list this
|
||||
and other common options by default, allowing the user to check and
|
||||
uncheck the ON/OFF status of various options. This is often quicker
|
||||
and more convenient than defining options on the command line, but
|
||||
both will work.
|
||||
|
||||
You can also force on or off any individual 3rd party library by
|
||||
setting either of two variables:
|
||||
|
||||
-DBRLCAD_BUILD_LOCAL_<FEATURE>_FORCE_ON=ON
|
||||
-DBRLCAD_BUILD_LOCAL_<FEATURE>_FORCE_OFF=ON
|
||||
|
||||
These options are not available by default in the graphical interface,
|
||||
but can be accessed by enabling the Advanced view, which will list all
|
||||
available options. This list can be made somewhat more managable by
|
||||
also enabling the Grouped option, which organizes variables into
|
||||
groups based on name. In this case, the above two variables would be
|
||||
found under the BRLCAD group.
|
||||
|
||||
To obtain an optimized build (for example, for BRL-CAD Benchmark
|
||||
performance evaluation), enable BRLCAD-ENABLE_OPTIMIZED_BUILD
|
||||
|
||||
See the CONFIGURATION OPTIONS below for more details on all of the
|
||||
possible settings.
|
||||
|
||||
Once configured, you should be able to succesfully build BRL-CAD via
|
||||
make:
|
||||
|
||||
make
|
||||
|
||||
See the COMPILATION OPTIONS section in this document for more details
|
||||
on compile-time options including options for parallel build support.
|
||||
|
||||
|
||||
Testing the Compilation:
|
||||
|
||||
To test BRL-CAD before installation, you can run the BRL-CAD benchmark.
|
||||
The benchmark will report if the results are correct, testing a
|
||||
majority of the core functionality of BRL-CAD in addition to testing
|
||||
your system's performance:
|
||||
|
||||
make benchmark
|
||||
|
||||
Note that the benchmark target will build ONLY the pieces required for
|
||||
the benchmark tests, unless a general make has already been performed.
|
||||
|
||||
See the TESTING FUNCTIONALITY section of this document for more
|
||||
details on how to ensure that the build completed successfully and
|
||||
additional tests that may be run.
|
||||
|
||||
|
||||
Installing the Compilation:
|
||||
|
||||
After the build successfully completes and assuming the benchmark also
|
||||
produces correct results, installation may begin. Like any package,
|
||||
you must have sufficient filesystem permissions to install. To
|
||||
install into a system location, you can generally either become a
|
||||
super user via the su or sudo commands:
|
||||
|
||||
sudo make install
|
||||
|
||||
See the INSTALLATION OPTIONS section of this document for more details
|
||||
on BRL-CAD installation options and post-install environment
|
||||
preparations.
|
||||
|
||||
BUILD TYPES
|
||||
-----------
|
||||
|
||||
As mentioned earlier, the default CMake settings are very minimalist and
|
||||
not usually the most useful. There are two "build types", controlled by
|
||||
the CMAKE_BUILD_TYPE variable, that are useful for specific purposes:
|
||||
|
||||
* Debug (-DCMAKE_BUILD_TYPE=Debug) - Debug is the configuration that most
|
||||
developers will want to use when working on BRL-CAD. It will add
|
||||
debug flags to the compile, and sets the default install directory to
|
||||
be ../brlcad-install instead of /usr/brlcad. (This avoids the need to
|
||||
constantly enable sudo to do an install, and lets a developer work on
|
||||
their build even when a system install is also present.) In order to
|
||||
run the resulting install binaries, the developer should ensure that
|
||||
the local install path is first in their PATH environment variable -
|
||||
see INSTALLATION OPTIONS below.
|
||||
|
||||
* Release (-DCMAKE_BUILD_TYPE=Release) - A release build is intended for
|
||||
final consumption by end users and as such has optimizations enabled.
|
||||
It also sets the install path to /usr/brlcad/rel-X.Y.Z - best practice
|
||||
for release installation is to set up symbolic links in /usr/brlcad to
|
||||
point to the most current BRL-CAD release, while allowing older versions
|
||||
to remain installed on the system in case they are needed.
|
||||
|
||||
In both of these cases any individual variable may be overridden - for
|
||||
example, setting -DCMAKE_INSTALL_PREFIX=/usr/brlcad in a Debug build will
|
||||
override the ../brlcad-install default. Build types are a convenient way
|
||||
to bundle sets of settings, but they do not prevent overrides if a more
|
||||
custom setup is needed.
|
||||
|
||||
|
||||
CONFIGURATION OPTIONS
|
||||
---------------------
|
||||
|
||||
The `configure' build script is used to set compilation options and
|
||||
supports a wide selection of compilation directives. See the ENABLE
|
||||
OPTIONS and WITH OPTIONS lists below for the arguments presently
|
||||
available to configure in more descriptive detail. The brief summary
|
||||
is that "enable" options focus INWARD and "with" options focus
|
||||
OUTWARD. There are various --enable-* flags that toggle how BRL-CAD
|
||||
code is compiled. There are various --with-* flags that toggle what
|
||||
system services are used and how to find them.
|
||||
|
||||
In order to avoid compilation problems, you should set all compilation
|
||||
options on the `configure' command line, using `VAR=value'. For
|
||||
example:
|
||||
|
||||
./configure CC=/usr/ucb/bin/cc
|
||||
|
||||
will cause the specified executable program to be used as the C
|
||||
compiler. The most common configuration tested is a default
|
||||
debuggable build intended for installation into /usr/brlcad with no
|
||||
external dependencies assumed:
|
||||
|
||||
./configure --enable-all --disable-strict
|
||||
|
||||
By default, BRL-CAD is configured to build the entire package and will
|
||||
install completely isolated into the /usr/brlcad directory.
|
||||
Configuration will prepare the build for an unoptimized compilation by
|
||||
default and will attempt to utilize required system libraries if they
|
||||
are available, otherwise compiling the required library dependencies
|
||||
as needed. Run `./configure --help' for a list of all of the possible
|
||||
configuration options.
|
||||
|
||||
|
||||
ENABLE OPTIONS:
|
||||
|
||||
The below --enable-* options can be used to enable or disable aspects
|
||||
of compilation that relate to what and how BRL-CAD will be compiled.
|
||||
Using --disable-* is the same as --enable-*=no and either can be used
|
||||
interchangably. As BRL-CAD is a large bazaar of functionality, there
|
||||
are a lot of options and configurations possible. See the section
|
||||
labeled WITH OPTIONS below for a list of options that enable/disable
|
||||
optional system functionality.
|
||||
|
||||
--enable-almost-everything enables compilation of all 3rd party
|
||||
sources that are provided within a BRL-CAD source distribution. If
|
||||
used, this option effectively turns on all of the below documented
|
||||
--enable-*-build options. Default is "auto", 3rd party sources are
|
||||
compiled only if they are not detected as being available and
|
||||
functioning as expected. Aliases:
|
||||
--enable-all
|
||||
--enable-all-build
|
||||
--enable-build-all
|
||||
--enable-all-builds
|
||||
--enable-everything
|
||||
--enable-everything-build
|
||||
--enable-build-everything
|
||||
|
||||
--enable-only-benchmark prepares the build system to only compile and
|
||||
install the minimal set of libraries and binaries needed to run the
|
||||
BRL-CAD Benchmark suite. Default is "no". Aliases:
|
||||
--enable-only-bench
|
||||
--enable-only-benchmarks
|
||||
--enable-bench-only
|
||||
--enable-benchmark-only
|
||||
--enable-benchmarks-only
|
||||
|
||||
--enable-only-rtserver prepares the build system to only compile and
|
||||
install the minimal set of libraries needed for the Java-interfacing
|
||||
"rtserver" interface (used by ARL for analysis purposes). Default is
|
||||
"no". Aliases:
|
||||
--enable-only-rts
|
||||
--enable-only-librtserver
|
||||
--enable-rts-only
|
||||
--enable-rtserver-only
|
||||
--enable-librtserver-only
|
||||
|
||||
--enable-runtime-debug enables support for application and library
|
||||
debugging facilities. Disabling the run-time debugging facilities can
|
||||
provide a significant (10%-30%) performance boost at the expense of
|
||||
extensive error checking (that in turn help prevent corruption of your
|
||||
data). Default is "yes", and should only be disabled for read-only
|
||||
render work where performance is critical. Aliases:
|
||||
--enable-run-time-debug
|
||||
--enable-runtime-debugging
|
||||
--enable-run-time-debugging
|
||||
|
||||
--enable-strict-build causes all compilation warnings to be treated as
|
||||
errors for certain portions of code that has undergone a more thorough
|
||||
review. This behavior of this flag is heavily influenced by
|
||||
compilation settings (such as --enable-warnings) including
|
||||
optimization flags (such as --enable-optimized). Default is "yes".
|
||||
Aliases:
|
||||
--enable-strict
|
||||
--enable-strict-compile
|
||||
--enable-strict-compile-flags
|
||||
|
||||
--enable-64bit-build attempts to force compilation to produce 64-bit
|
||||
binaries and libraries. Note that it merely *ATTEMPTS* to force
|
||||
64-bit compilation but in all practicality and likelihood, you will
|
||||
need to manually specify CFLAGS/CPPFLAGS/CXXFLAGS/LDFLAGS to specify
|
||||
64-bit compilation. Default is "auto", where the default compilation
|
||||
mode as set by the compiler will be utilized. Aliases:
|
||||
--enable-64bit
|
||||
--enable-64
|
||||
--enable-64-build
|
||||
--enable-64-bit
|
||||
--enable-64-bit-build
|
||||
|
||||
--enable-regex-build turns on compilation of the regular expression
|
||||
library that is provided in a BRL-CAD source distribution. Default is
|
||||
"auto", meaning that libregex will be compiled and installed only if a
|
||||
suitable system regex library is not found. Aliases:
|
||||
--enable-regex
|
||||
--enable-libregex
|
||||
--enable-libregex-build
|
||||
|
||||
--enable-png-build turns on compilation of the Portable Network
|
||||
Graphics library that is provided in a BRL-CAD source distribution.
|
||||
Default is "auto", meaning that libpng will be compiled and installed
|
||||
only if a suitable system PNG library is not found. Aliases:
|
||||
--enable-png
|
||||
--enable-libpng
|
||||
--enable-libpng-build
|
||||
|
||||
--enable-zlib-build turns on compilation of the zlib library that is
|
||||
provided in a BRL-CAD source distribution. Default is "auto", meaning
|
||||
that libz will be compiled and installed only if a suitable system
|
||||
zlib is not found. Aliases:
|
||||
--enable-zlib
|
||||
--enable-libz
|
||||
--enable-libz-build
|
||||
|
||||
--enable-urt-build turns on compilation of the Utah Raster Toolkit
|
||||
that is provided in a BRL-CAD source distribution. Default is "auto",
|
||||
meaning that libutahrle will be compiled and installed only if a
|
||||
suitable system rle library is not found. Aliases:
|
||||
--enable-urt
|
||||
--enable-urtoolkit
|
||||
--enable-urtoolkit-build
|
||||
--enable-utahrle
|
||||
--enable-utahrle-build
|
||||
--enable-libutahrle
|
||||
--enable-libutahrle-build
|
||||
--enable-utah-raster-toolkit
|
||||
--enable-utah-raster-toolkit-build
|
||||
|
||||
--enable-opennurbs-build turns on compilation of the openNURBS library
|
||||
that is provided in a BRL-CAD source distribution. Default is "auto",
|
||||
meaning that libopenNURBS will be compiled and installed only if a
|
||||
suitable system openNURBS library is not found. Aliases:
|
||||
--enable-opennurbs
|
||||
--enable-libopennurbs
|
||||
--enable-libopennurbs-build
|
||||
--enable-open-nurbs
|
||||
--enable-open-nurbs-build
|
||||
|
||||
--enable-step-build turns on compilation of the NIST Step Class
|
||||
Libraries that are provided in a BRL-CAD source distribution. Default
|
||||
is "auto", meaning that step will be compiled and installed only if a
|
||||
suitable system NIST SCL libraries are not found. Aliases:
|
||||
--enable-step
|
||||
--enable-steplibs
|
||||
--enable-libstep
|
||||
--enable-libstep-build
|
||||
|
||||
--enable-termlib-build turns on compilation of the termlib library
|
||||
that is provided in a BRL-CAD source distribution. Default is "auto",
|
||||
meaning that libtermlib will be compiled and installed only if a
|
||||
suitable system termcap or termlib library is not found. Aliases:
|
||||
--enable-termlib
|
||||
--enable-termcap
|
||||
--enable-termcap-build
|
||||
--enable-libtermlib
|
||||
--enable-libtermlib-build
|
||||
--enable-libtermcap
|
||||
--enable-libtermcap-build
|
||||
|
||||
--enable-tcl-build turns on compilation of the Tcl library that is
|
||||
provided in a BRL-CAD source distribution. Default is "auto", meaning
|
||||
that libtcl will be compiled and installed only if a suitable system
|
||||
Tcl library is not found. Aliases:
|
||||
--enable-tcl
|
||||
--enable-libtcl
|
||||
--enable-libtcl-build
|
||||
|
||||
--enable-tk-build turns on compilation of the Tk library that is
|
||||
provided in a BRL-CAD source distribution. Default is "auto", meaning
|
||||
that libtk will be compiled and installed only if a suitable system Tk
|
||||
library is not found. Aliases:
|
||||
--enable-tk
|
||||
--enable-libtk
|
||||
--enable-libtk-build
|
||||
|
||||
--enable-aquatk-build turns on compilation of the Aqua Tk options for
|
||||
the Tk library on Mac OSX. Default is "off". Aliases:
|
||||
--enable-aquatk
|
||||
--enable-aqua-tk
|
||||
--enable-aqua-tk-build
|
||||
--enable-tkaqua
|
||||
--enable-tkaqua-build
|
||||
--enable-tk-aqua-build
|
||||
|
||||
--enable-itcl-build turns on compilation of the Incr Tcl/Tk library
|
||||
that is provided in a BRL-CAD source distribution. Default is "auto",
|
||||
meaning that libitcl and libitk will be compiled and installed only if
|
||||
a suitable system library (for either) is not found. Aliases:
|
||||
--enable-itcl
|
||||
--enable-itk
|
||||
--enable-itk-build
|
||||
--enable-libitcl
|
||||
--enable-libitcl-build
|
||||
--enable-libitk
|
||||
--enable-libitk-build
|
||||
--enable-incrtcl
|
||||
--enable-incrtcl-build
|
||||
|
||||
--enable-iwidgets-install turns on installation of the Iwidgets
|
||||
library that is provided in a BRL-CAD source distribution. Default is
|
||||
"auto", meaning that the iwidgets tcl scripts will be installed only
|
||||
if a suitable system Iwidgets functionality is not found. Aliases:
|
||||
--enable-iwidgets
|
||||
--enable-iwidgets-build
|
||||
|
||||
--enable-tkhtml-build turns on compilation of the tkhtml library that is
|
||||
provided in a BRL-CAD source distribution. Default is "yes".
|
||||
Aliases:
|
||||
--enable-tkhtml
|
||||
--enable-tkhtml-build
|
||||
|
||||
--enable-tkpng-build turns on compilation of the tkpng library that is
|
||||
provided in a BRL-CAD source distribution. Default is "auto", meaning
|
||||
that libtkpng will be compiled and installed only if a suitable system
|
||||
tkpng library is not found. Aliases:
|
||||
--enable-tkpng
|
||||
--enable-tkpng-build
|
||||
--enable-libtkpng
|
||||
--enable-libtkpng-build
|
||||
|
||||
--enable-tktable-build turns on compilation of the tktable library that is
|
||||
provided in a BRL-CAD source distribution. Default is "yes". Aliases:
|
||||
--enable-tktable
|
||||
--enable-tktable-build
|
||||
|
||||
--enable-tnt-install turns on installation of the Template Numerical
|
||||
Toolkit that is provided in a BRL-CAD source distribution. Default is
|
||||
"auto", meaning that the TNT headers will be installed only if
|
||||
suitable system TNT functionality is not found. Aliases:
|
||||
--enable-tnt
|
||||
--enable-tnt-build
|
||||
--enable-template-numerical-toolkit
|
||||
--enable-template-numerical-toolkit-build
|
||||
--enable-template-numerical-toolkit-install
|
||||
|
||||
--enable-jove-build turns on compilation of Jonathan's Own Version of
|
||||
Emacs (jove), a lightweight text editor with functionality similar to
|
||||
Emacs but with different key bindings that is included in a BRL-CAD
|
||||
source distribution. Default is "auto", meaning that jove will be
|
||||
compiled and installed only if suitable system editor functionality is
|
||||
not found. Aliases:
|
||||
--enable-jove
|
||||
|
||||
--enable-ef-build turns on compilation of the Endgame Framework module
|
||||
used to provide BRL-CAD geometry import support to the Endgame
|
||||
Framework application development environment. Default is "no".
|
||||
Aliases:
|
||||
--enable-ef
|
||||
--enable-endgameframework
|
||||
--enable-endgameframework-build
|
||||
--enable-endgame-framework
|
||||
--enable-endgame-framework-build
|
||||
|
||||
--enable-unigraphics-build turns on compilation of the Unigraphics (NX)
|
||||
importer used to provide conversion support from Unigraphics format to
|
||||
a tessellated BRL-CAD geometry format. Default is "no". Aliases:
|
||||
--enable-unigraphics
|
||||
--enable-ug
|
||||
--enable-ug-build
|
||||
--enable-nx
|
||||
--enable-nx-build
|
||||
|
||||
--enable-models-install turns on installation of provided example
|
||||
geometry models. Default is "yes". Aliases:
|
||||
--enable-models
|
||||
--enable-models-build
|
||||
--enable-geometry
|
||||
--enable-geometry-build
|
||||
--enable-geometry-install
|
||||
|
||||
--enable-documentation turns on documentation requiring Docbook based
|
||||
compilation. Default is "auto", meaning it will build the documentation
|
||||
if suitable tools to do so are found. Aliases:
|
||||
--enable-documentation-install
|
||||
--enable-docs
|
||||
--enable-docs-install
|
||||
|
||||
--enable-optimized turns on optimized compilation. Note that
|
||||
optimized compilation may potentially change the warnings produced by
|
||||
the compiler. You may also need to specify --disable-strict or
|
||||
--disable-warnings to avoid halting on compilation warnings. Default
|
||||
is "no". Aliases:
|
||||
--enable-opt
|
||||
--enable-optimize
|
||||
--enable-optimization
|
||||
--enable-optimizations
|
||||
|
||||
--enable-debug turns on debug compilation (debugging symbols).
|
||||
Default is "yes". Aliases:
|
||||
--enable-debugging
|
||||
|
||||
--enable-profiling turns on profile compilation. Default is "no".
|
||||
Aliases:
|
||||
--enable-profile
|
||||
--enable-profiled
|
||||
|
||||
--enable-parallel turns on support for SMP architectures. Default is "yes".
|
||||
Aliases:
|
||||
--enable-parallel-build
|
||||
--enable-smp
|
||||
--enable-smp-build
|
||||
|
||||
--enable-dtrace turns on Sun dtrace support. Default is "no".
|
||||
Aliases:
|
||||
None
|
||||
|
||||
--enable-verbose turns on verbose compilation output effectively
|
||||
implying --enable-warnings and --enable-progress as described below.
|
||||
Default is "no". Aliases:
|
||||
--enable-verbosity
|
||||
--enable-output-verbose
|
||||
--enable-verbose-output
|
||||
--enable-build-verbose
|
||||
--enable-verbose-build
|
||||
|
||||
--enable-warnings turns on verbose compilation warnings, causing
|
||||
additional compilation flags to be given to the compiler in order to
|
||||
provoke additional compilation warnings. Default is "no". Aliases:
|
||||
--enable-warning
|
||||
--enable-verbose-warnings
|
||||
--enable-warnings-verbose
|
||||
--enable-build-warnings
|
||||
--enable-warnings-build
|
||||
|
||||
--enable-progress turns on verbose compilation progress status,
|
||||
showing unquelled libtool compilation steps. Default is "no".
|
||||
Aliases:
|
||||
--enable-verbose-progress
|
||||
--enable-progress-verbose
|
||||
--enable-build-progress
|
||||
--enable-progress-build
|
||||
|
||||
--enable-rtgl turns on compilation of an experimental Ray Trace OpenGL
|
||||
display manager, providing shaded displays within MGED. Default is
|
||||
"no". Aliases:
|
||||
None
|
||||
|
||||
|
||||
WITH OPTIONS:
|
||||
|
||||
The below --with-* options enable/disable/locate OPTIONAL SYSTEM
|
||||
FUNCTIONALITY that should be compiled against. Contrary to the
|
||||
--enable-* options, none of the --with-* options are required to
|
||||
obtain a fully functional BRL-CAD install. Using --without-* is the
|
||||
same as --with-*=no and either can be used interchangably (though be
|
||||
careful of options that expect a PATH instead of "no"). See the
|
||||
section labeled ENABLE OPTIONS above for a list of options that
|
||||
enable/disable all other aspects of BRL-CAD compilation.
|
||||
|
||||
--with-jdk[=PATH] turns on compilation of code that requires the Java
|
||||
Development Kit. The specified PATH should be provided. Default is
|
||||
"auto" meaning that if suitable Java functionality is detected, then
|
||||
code that uses Java will be compiled (librtserver). Aliases:
|
||||
--with-java
|
||||
|
||||
--with-proe is in flux with --enable-proe-build. Consult the help for
|
||||
current information.
|
||||
|
||||
--with-x11[=PATH] informs configure where X11 headers/libraries may be
|
||||
located. Default is "auto" meaning that standard/common paths will be
|
||||
searched for X11 functionality. Aliases:
|
||||
--with-x
|
||||
|
||||
--with-ogl informs configure that the OpenGL framebuffer and
|
||||
display manager interfaces should be compiled (and hence they should
|
||||
link against a system OpenGL library). This option has absolutely
|
||||
nothing to do with shaded displays of geometry in MGED. Default is
|
||||
"auto" meaning the interfaces will be automatically compiled if
|
||||
suitable OpenGL headers and libraries are found. Aliases:
|
||||
--with-opengl
|
||||
|
||||
--with-wgl informs configure that it should attempt to compile the
|
||||
Windows GL framebuffer and display manager interfaces. This option is
|
||||
hard-enabled in the MSVC build files for BRL-CAD. Default is "auto"
|
||||
for configure meaning that the wgl interfaces will be compiled if the
|
||||
Windows opengl32 dll is found. Aliases:
|
||||
--with-windowsgl
|
||||
|
||||
|
||||
COMPILATION OPTIONS
|
||||
-------------------
|
||||
|
||||
If you are on a multiprocessor machine, you can compile in parallel
|
||||
depending on the version of `make' being used. For the GNU and BSD
|
||||
make, you can use the -j argument. For example, to use 4 CPUs:
|
||||
|
||||
make -j4
|
||||
|
||||
With the IRIX compiler, the -P option enables parallel build mode and
|
||||
the PARALLEL environment variable sets the number of CPUs (default is
|
||||
two):
|
||||
|
||||
PARALLEL=4 make -P
|
||||
|
||||
If you would like to pass custom compiler or linker options, there are
|
||||
several ways this may be achieved both during 'configure' and/or
|
||||
during 'make'. These flags include CFLAGS, CPPFLAGS, LDFLAGS, and
|
||||
LIBS. Configure supports these as either variables or as --with
|
||||
options:
|
||||
|
||||
./configure CFLAGS="-O3" LDFLAGS="-pthread"
|
||||
./configure --with-cppflags="-I/opt/include" --with-libs="-lz"
|
||||
|
||||
BRLCAD_C_FLAGS - may need to set up the others?
|
||||
|
||||
|
||||
GNU and BSD make support the same flags as overrides of the default
|
||||
provided flags as well:
|
||||
|
||||
make CFLAGS="-O0 -g -pg" LDFLAGS="-L/opt/malloc" LIBS="-lmalloc"
|
||||
|
||||
|
||||
INSTALLATION OPTIONS
|
||||
--------------------
|
||||
|
||||
By default, `make install' will install BRL-CAD's files into
|
||||
`/usr/brlcad/bin', `/usr/brlcad/man', etc. You can specify an
|
||||
installation prefix other than `/usr/brlcad' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
|
||||
Setting Up the Path:
|
||||
|
||||
Once installed, you will need to add /usr/brlcad/bin to your system
|
||||
PATH. For Bourne shell users, you can run the following:
|
||||
|
||||
PATH=/usr/brlcad/bin:$PATH ; export PATH
|
||||
|
||||
For C shell users, this should do the same thing:
|
||||
|
||||
set path=( /usr/brlcad/bin $path ) ; rehash
|
||||
|
||||
If you would like to provide BRL-CAD to multiple users, your shell
|
||||
environment scripts should be edited so that /usr/brlcad/bin is added
|
||||
to the system path. This usually entails editing /etc/profile,
|
||||
/etc/csh.login, /etc/bashrc, and possibly other files depending on
|
||||
your platform.
|
||||
|
||||
|
||||
Setting Up the Manual Pages Path:
|
||||
|
||||
It may be useful to add /usr/brlcad/man to your MANPATH in the same
|
||||
manner as shown above for PATH. Conversely, you can use the `brlman'
|
||||
command that is already preconfigured to locate the BRL-CAD manpages.
|
||||
|
||||
|
||||
Configuring permissions uniformly with group read/write access:
|
||||
|
||||
find /usr/brlcad -type d -exec chmod ug+rwx {} \; -exec chmod o+rx {} \; -o -type f -exec chmod ug+rw {} \; -exec chmod o+r {} \;
|
||||
|
||||
The above 'find' line will set up permissions across a /usr/brlcad
|
||||
rooted installation such that 'user' and 'group' will have read-write
|
||||
access and 'other' will have read access consistently across all
|
||||
files. This is a common configuration used by BRL-CAD developers that
|
||||
allows shared management of installations amongst developers while
|
||||
having all users maintain read-only access.
|
||||
|
||||
|
||||
|
||||
TESTING FUNCTIONALITY
|
||||
---------------------
|
||||
|
||||
Testing a Compilation:
|
||||
|
||||
After BRL-CAD is compiled, you can test the build via:
|
||||
|
||||
make test
|
||||
|
||||
This will run a series of tests on the compiled sources to make sure
|
||||
that they behave as they should. If those tests succeed, another
|
||||
useful test is to ensure that the geometric library computations are
|
||||
correct by running the BRL-CAD Benchmark:
|
||||
|
||||
make benchmark
|
||||
|
||||
The benchmark will run for several minutes computing frames of
|
||||
well-known ray-trace images, and comparing the validity of the results
|
||||
as well as overall performance metrics. The benchmark should report
|
||||
CORRECT after each section of output and a overal VGR metric of
|
||||
performance.
|
||||
|
||||
|
||||
Testing an Installation:
|
||||
|
||||
After BRL-CAD is installed, simply running `rt' and/or `mged' are good
|
||||
tests of basic functionality. Running `rt' without any options should
|
||||
display version information and a usage message. Running `mged'
|
||||
without any options will start the GUI-based solid modeler
|
||||
application. Running "benchmark" should invoke the BRL-CAD Benchmark
|
||||
and test the performance of the binaries as installed on a given
|
||||
system.
|
||||
|
||||
|
||||
POST-INSTALLATION
|
||||
-----------------
|
||||
|
||||
|
||||
REPORTING PROBLEMS
|
||||
------------------
|
||||
|
||||
Please report any bugs encountered to the project bug tracker at
|
||||
http://sourceforge.net/tracker/?group_id=105292&atid=640802
|
||||
|
||||
Similarly, please post any request for feature enhancements or support
|
||||
to http://sourceforge.net/tracker/?group_id=105292&atid=640805 and
|
||||
http://sourceforge.net/tracker/?group_id=105292&atid=640803
|
||||
respectively.
|
||||
|
||||
|
||||
---
|
||||
$Revision$
|
||||
+493
@@ -0,0 +1,493 @@
|
||||
# M A K E F I L E . A M
|
||||
# BRL-CAD
|
||||
#
|
||||
# Copyright (c) 2005-2011 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.
|
||||
#
|
||||
###
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.6 dist-zip dist-bzip2
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
DISTCHECK_CONFIGURE_FLAGS = --enable-all
|
||||
|
||||
required_dirs = \
|
||||
include \
|
||||
src
|
||||
|
||||
bench_dirs = \
|
||||
bench \
|
||||
db \
|
||||
pix
|
||||
|
||||
other_dirs = \
|
||||
doc \
|
||||
m4 \
|
||||
misc \
|
||||
regress \
|
||||
sh
|
||||
|
||||
if ONLY_BENCHMARK
|
||||
SUBDIRS = \
|
||||
$(required_dirs) \
|
||||
$(bench_dirs)
|
||||
|
||||
else !ONLY_BENCHMARK
|
||||
|
||||
if ONLY_RTS
|
||||
SUBDIRS = \
|
||||
$(required_dirs)
|
||||
|
||||
else !ONLY_RTS
|
||||
SUBDIRS = \
|
||||
$(required_dirs) \
|
||||
$(bench_dirs) \
|
||||
$(other_dirs)
|
||||
|
||||
endif
|
||||
# ONLY_RTS
|
||||
|
||||
endif
|
||||
# ONLY_BENCHMARK
|
||||
|
||||
|
||||
DIST_SUBDIRS = \
|
||||
$(required_dirs) \
|
||||
$(bench_dirs) \
|
||||
$(other_dirs)
|
||||
|
||||
documentationdir = $(BRLCAD_DATA)
|
||||
|
||||
documentation_DATA = \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
HACKING \
|
||||
INSTALL \
|
||||
NEWS \
|
||||
README
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(documentation_DATA) \
|
||||
BUGS \
|
||||
ChangeLog \
|
||||
TODO \
|
||||
autogen.sh \
|
||||
libtool
|
||||
|
||||
DISTCLEANFILES = \
|
||||
$(CONFIG_CACHE) \
|
||||
aclocal.m4 \
|
||||
config.log \
|
||||
config.status \
|
||||
install.$(host_triplet).log \
|
||||
libtool \
|
||||
so_locations
|
||||
|
||||
|
||||
##########################
|
||||
# packaged distributions #
|
||||
##########################
|
||||
|
||||
$(PACKAGE)-$(BRLCAD_VERSION).tar.gz: dist
|
||||
|
||||
# Build a Mac OS X Installer .pkg -- make sure the package resources
|
||||
# reflect the correct version. we specifically do not use an autoconf
|
||||
# template so that the file may be edited without doing a configure
|
||||
# (which would also cause a need to regenerate the template to keep in
|
||||
# sync every time it's edited).
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).pkg:
|
||||
@if ! test -f "install.$(host_triplet).log" ; then \
|
||||
echo ; \
|
||||
echo "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" ; \
|
||||
echo " WARNING: It seems as though you might not have" ; \
|
||||
echo " installed BRL-CAD yet?" ; \
|
||||
echo ; \
|
||||
echo " You should run 'make install' before creating a" ; \
|
||||
echo " binary distribution package. Trying regardless." ; \
|
||||
echo "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" ; \
|
||||
echo ; \
|
||||
fi
|
||||
@echo "Building an Installer package for Mac OS X"
|
||||
@echo
|
||||
@echo "Warning: this package target presently assumes that the install directory"
|
||||
@echo " does not contain extra files and comprises a full clean install."
|
||||
@echo
|
||||
@if test -f "$(top_srcdir)/misc/macosx/Resources/ReadMe.rtfd/TXT.rtf" ; then \
|
||||
perl -pi -e "s/BRL-CAD [0-9]*\.[0-9]*\.[0-9]*/BRL-CAD $(BRLCAD_VERSION)/g" $(top_srcdir)/misc/macosx/Resources/ReadMe.rtfd/TXT.rtf ; \
|
||||
fi
|
||||
@if test -f "$(top_srcdir)/misc/macosx/Resources/Welcome.rtfd/TXT.rtf" ; then \
|
||||
perl -pi -e "s/BRL-CAD [0-9]*\.[0-9]*\.[0-9]*/BRL-CAD $(BRLCAD_VERSION)/g" $(top_srcdir)/misc/macosx/Resources/Welcome.rtfd/TXT.rtf ; \
|
||||
fi
|
||||
@${SH} $(top_srcdir)/sh/make_pkg.sh "$(PACKAGE_NAME)" "$(BRLCAD_VERSION)" "$(DESTDIR)$(prefix)" "$(top_srcdir)/misc/macosx/Resources"
|
||||
|
||||
openUp:
|
||||
cd misc/macosx && $(MAKE) openUp
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).dmg: $(PACKAGE_NAME)_$(BRLCAD_VERSION).pkg openUp
|
||||
@echo "Building a Disk Image for Mac OS X"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_dmg.sh "$(PACKAGE_NAME)" "$(BRLCAD_VERSION)" "$(top_srcdir)/misc/macosx/background.png"
|
||||
|
||||
# using home is probably not a great choice..
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).rpm: $(PACKAGE)-$(BRLCAD_VERSION).tar.gz
|
||||
@echo "Building binary RPM for RedHat Linux"
|
||||
@echo
|
||||
@CP@ $(PACKAGE)-$(BRLCAD_VERSION).tar.gz ${HOME}/rpm/SOURCES/
|
||||
rpmbuild -ba $(top_builddir)/misc/brlcad.spec
|
||||
@CP@ ${HOME}/rpm/RPMS/i386/$(PACKAGE_NAME)_$(BRLCAD_VERSION)_*.i386.rpm .
|
||||
@touch $(PACKAGE_NAME)_$(BRLCAD_VERSION).rpm
|
||||
@echo "WARNING: Fake make placeholder created as $(PACKAGE_NAME)_$(BRLCAD_VERSION).rpm"
|
||||
@echo
|
||||
|
||||
# using home is probably not a great choice..
|
||||
# use PACKAGE instead of PACKAGE_NAME because it's a source release
|
||||
$(PACKAGE)-$(BRLCAD_VERSION).src.rpm: $(PACKAGE)-$(BRLCAD_VERSION).tar.gz
|
||||
@echo "Building source RPM for RedHat Linux"
|
||||
@CP@ $(PACKAGE)-$(BRLCAD_VERSION).tar.gz ${HOME}/rpm/SOURCES/
|
||||
rpmbuild -ba $(top_builddir)/misc/brlcad.spec
|
||||
@CP@ ${HOME}/rpm/SRPMS/$(PACKAGE)-$(BRLCAD_VERSION)-*.src.rpm .
|
||||
@touch $(PACKAGE)-$(BRLCAD_VERSION).src.rpm
|
||||
@echo "WARNING: Fake make placeholder created as $(PACKAGE)-$(BRLCAD_VERSION).src.rpm"
|
||||
@echo
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).deb:
|
||||
@echo "Building a package for Debian Linux"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_deb.sh "$(PACKAGE_NAME)_$(BRLCAD_VERSION)"
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).zip:
|
||||
@if ! test -f "install.$(host_triplet).log" ; then \
|
||||
echo ; \
|
||||
echo "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" ; \
|
||||
echo " WARNING: It seems as though you might not have" ; \
|
||||
echo " installed BRL-CAD yet?" ; \
|
||||
echo ; \
|
||||
echo " You should run 'make install' before creating a" ; \
|
||||
echo " binary distribution package. Trying regardless." ; \
|
||||
echo "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" ; \
|
||||
echo ; \
|
||||
fi
|
||||
@echo "Building a zip-compressed file archive"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_zip.sh "$(PACKAGE_NAME)_$(BRLCAD_VERSION)"
|
||||
@echo
|
||||
@echo "Built $(PACKAGE_NAME)_$(BRLCAD_VERSION).zip for $(host_triplet)"
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.gz: $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar
|
||||
@echo "Building a gzip-compressed tape archive"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_tgz.sh "$(PACKAGE_NAME)_$(BRLCAD_VERSION)"
|
||||
@echo
|
||||
@echo "Built $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.gz for $(host_triplet)"
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.bz2: $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar
|
||||
@echo "Building a bzip2-compressed tape archive"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_bz2.sh "$(PACKAGE_NAME)_$(BRLCAD_VERSION)"
|
||||
@echo
|
||||
@echo "Built $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.bz2 for $(host_triplet)"
|
||||
|
||||
$(PACKAGE_NAME)_$(BRLCAD_VERSION).tar:
|
||||
@if ! test -f "install.$(host_triplet).log" ; then \
|
||||
echo ; \
|
||||
echo "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" ; \
|
||||
echo " WARNING: It seems as though you might not have" ; \
|
||||
echo " installed BRL-CAD yet?" ; \
|
||||
echo ; \
|
||||
echo " You should run 'make install' before creating a" ; \
|
||||
echo " binary distribution package. Trying regardless." ; \
|
||||
echo "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" ; \
|
||||
echo ; \
|
||||
fi
|
||||
@echo "Building an uncompressed tape archive"
|
||||
@echo
|
||||
@${SH} $(top_srcdir)/sh/make_tar.sh "$(PACKAGE_NAME)" "$(BRLCAD_VERSION)" "$(DESTDIR)$(prefix)"
|
||||
@echo
|
||||
@echo "Built $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar for $(host_triplet)"
|
||||
|
||||
|
||||
#############
|
||||
# the rules #
|
||||
#############
|
||||
|
||||
.PHONY : clobber benchmark bench regression regress test pkg dmg rpm deb zip tgz tbz
|
||||
|
||||
clobber:
|
||||
@cd bench && $(MAKE) clobber
|
||||
|
||||
benchmark: all
|
||||
@cd bench && $(MAKE) run
|
||||
|
||||
bench: benchmark
|
||||
|
||||
regression: all
|
||||
@cd regress && $(MAKE) regression
|
||||
|
||||
dox : misc/Doxyfile misc/doxygen_structure
|
||||
doxygen $(top_srcdir)/misc/Doxyfile
|
||||
|
||||
regress: regression
|
||||
|
||||
test: regression
|
||||
|
||||
check: regression
|
||||
@TIMEFRAME=1 $(MAKE) benchmark
|
||||
|
||||
pkg: $(PACKAGE_NAME)_$(BRLCAD_VERSION).pkg
|
||||
@echo "Done."
|
||||
|
||||
dmg: pkg $(PACKAGE_NAME)_$(BRLCAD_VERSION).dmg
|
||||
@echo "Done."
|
||||
|
||||
rpm: $(PACKAGE_NAME)_$(BRLCAD_VERSION).rpm $(PACKAGE)-$(BRLCAD_VERSION).src.rpm
|
||||
@echo "Done."
|
||||
|
||||
deb: $(PACKAGE_NAME)_$(BRLCAD_VERSION).deb
|
||||
@echo "Done."
|
||||
|
||||
zip: $(PACKAGE_NAME)_$(BRLCAD_VERSION).zip
|
||||
@echo "Done."
|
||||
|
||||
tgz: $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.gz
|
||||
@echo "Done."
|
||||
|
||||
bz2: $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar.bz2
|
||||
@echo "Done."
|
||||
|
||||
tar: $(PACKAGE_NAME)_$(BRLCAD_VERSION).tar
|
||||
@echo "Done."
|
||||
|
||||
package:
|
||||
@echo
|
||||
@echo "To build a BRL-CAD package for distribution, there are various make"
|
||||
@echo "targets available for various platforms:"
|
||||
@echo
|
||||
@echo " make pkg - Builds an Installer package for Mac OS X"
|
||||
@echo " make dmg - Builds a Disk Image for Mac OS X"
|
||||
@echo " make rpm - Builds source and binary RPM for RedHat Linux"
|
||||
@echo " make deb - Builds a package for Debian Linux"
|
||||
@echo " make zip - Builds a zip-compressed file archive"
|
||||
@echo " make tgz - Builds a gzip-compressed tape archive"
|
||||
@echo " make bz2 - Builds a bzip2-compressed tape archive"
|
||||
@echo " make tar - Builds a uncompressed tape archive"
|
||||
@echo
|
||||
|
||||
# make sure all files are in the repository are also in the dist.
|
||||
# make sure files that should not be in the distribution in fact are
|
||||
# not included.
|
||||
dist-hook:
|
||||
files="`find . -name entries -exec grep 'name=' {} /dev/null \; | sed 's/:[[:space:]]*name=\"\(.*\)\"/\1/g' | sed 's/\/\.svn\/entries/\//g' | grep -v 'brlcad-' | grep -v '\/$$'`" ; \
|
||||
missing=0 ; \
|
||||
for file in $$files ; do \
|
||||
if test ! -e $(distdir)/$$file ; then \
|
||||
missing=1 ; \
|
||||
echo "MISSING FROM DIST: $$file" ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
if test "x$$missing" = "x1" ; then \
|
||||
exit 1 ; \
|
||||
fi
|
||||
files="`find $(distdir)/src/tclscripts \( -name pkgIndex.tcl -o -name tclIndex \)`" ; \
|
||||
empty=`for file in $$files ; do found="\`grep -v '^#' $$file | perl -0777 -pi -e 's/^\n//g'\`" ; if test "x$$found" = "x" ; then echo $$file ; fi ; done | wc | awk '{print $$1}'` ; \
|
||||
if test $$empty -gt 9 ; then \
|
||||
echo "TOO MANY EMPTY PKGINDEX.TCL/TCLINDEX FILES" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
find $(distdir) -type f \( -name '.cvsignore' -or -name 'brlcad_config.h' \) -exec rm -f {} \;
|
||||
find $(distdir) -type d \( -name 'CVS' -or -name '.svn' \) -prune -exec rm -rf {} \;
|
||||
dir="`pwd`" ; cd $(top_srcdir) ; \
|
||||
${SH} sh/cmakecheck.sh ; \
|
||||
ret=$$? ; \
|
||||
if test "x$$ret" != "x0" ; then \
|
||||
echo "NEED TO SYNC CMAKELISTS.TXT" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
cd "$$dir"
|
||||
|
||||
# don't complain about the benchmark 'summary', we don't want to delete it
|
||||
distcleancheck_listfiles = \
|
||||
find . -type f -not -name summary -print
|
||||
|
||||
|
||||
|
||||
##########################
|
||||
# summaries and warnings #
|
||||
##########################
|
||||
|
||||
# make sure a dangerous umask will not prevent others from using an
|
||||
# installed version by checking to make sure the exec mode is set.
|
||||
# We minimally check only the binary and prefix directories.
|
||||
install-data-local:
|
||||
@warn_umask=no ; \
|
||||
case `ls -ld $(DESTDIR)$(prefix)` in \
|
||||
d????????-*) warn_umask=yes ;; \
|
||||
d?????-???*) warn_umask=yes ;; \
|
||||
d??-??????*) warn_umask=yes ;; \
|
||||
esac ; \
|
||||
if test "x$$warn_umask" = "xno" ; then \
|
||||
case `ls -ld $(DESTDIR)$(bindir)` in \
|
||||
d????????-*) warn_umask=yes ;; \
|
||||
d?????-???*) warn_umask=yes ;; \
|
||||
d??-??????*) warn_umask=yes ;; \
|
||||
esac ; \
|
||||
fi ; \
|
||||
files="`find $(top_builddir)/src/tclscripts \( -name pkgIndex.tcl -o -name tclIndex \)`" ; \
|
||||
empty=`for file in $$files ; do found="\`grep -v '^#' $$file | perl -0777 -pi -e 's/^\n//g'\`" ; if test "x$$found" = "x" ; then echo $$file ; fi ; done | wc | awk '{print $$1}'` ; \
|
||||
if test $$empty -gt 9 ; then \
|
||||
echo ; \
|
||||
echo "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" ; \
|
||||
echo " WARNING: Too many of the pkgIndex.tcl and" ; \
|
||||
echo " tclIndex files are empty." ; \
|
||||
echo ; \
|
||||
echo " It is likely that the indices are not being" ; \
|
||||
echo " generated properly which will affect run-time" ; \
|
||||
echo " functionality. VERIFY THE FILES." ; \
|
||||
echo "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" ; \
|
||||
echo ; \
|
||||
fi ; \
|
||||
if test "x$$warn_umask" = "xyes" ; then \
|
||||
echo ; \
|
||||
echo "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" ; \
|
||||
echo " WARNING: There is no execute permission on the" ; \
|
||||
echo " install directory." ; \
|
||||
echo ; \
|
||||
echo " Consider running \"umask 022\" before installing" ; \
|
||||
echo " next time. You should be able to repair this"; \
|
||||
echo " installation's directory permissions with: " ; \
|
||||
echo ; \
|
||||
echo " find $(DESTDIR)$(prefix)/. -type d -exec chmod go+x {} \;" ; \
|
||||
if test -d "$(DESTDIR)$(bindir)" ; then \
|
||||
if test "x$(DESTDIR)$(exec_prefix)/bin" != "x$(DESTDIR)$(bindir)" ; then \
|
||||
echo " find $(DESTDIR)$(bindir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(sbindir)" ; then \
|
||||
if test "x$(DESTDIR)$(exec_prefix)/sbin" != "x$(DESTDIR)$(sbindir)" ; then \
|
||||
echo " find $(DESTDIR)$(sbindir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(libexecdir)" ; then \
|
||||
if test "x$(DESTDIR)$(exec_prefix)/libexec" != "x$(DESTDIR)$(libexecdir)" ; then \
|
||||
echo " find $(DESTDIR)$(libexecdir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(datadir)" ; then \
|
||||
if test "x$(DESTDIR)$(prefix)/share" != "x$(DESTDIR)$(datadir)" ; then \
|
||||
echo " find $(DESTDIR)$(prefix)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(libdir)" ; then \
|
||||
if test "x$(DESTDIR)$(exec_prefix)/lib" != "x$(DESTDIR)$(libdir)" ; then \
|
||||
echo " find $(DESTDIR)$(libdir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(mandir)" ; then \
|
||||
if test "x$(DESTDIR)$(prefix)/man" != "x$(DESTDIR)$(mandir)" ; then \
|
||||
echo " find $(DESTDIR)$(mandir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
if test -d "$(DESTDIR)$(includedir)" ; then \
|
||||
if test "x$(DESTDIR)$(prefix)/include" != "x$(DESTDIR)$(includedir)" ; then \
|
||||
echo " find $(DESTDIR)$(includedir)/. -type d -exec chmod go+x {} \;" ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
echo ; \
|
||||
echo " Do not presume the find example is all that is" ; \
|
||||
echo " needed. VERIFY THE PERMISSIONS." ; \
|
||||
echo "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{" ; \
|
||||
echo ; \
|
||||
fi ; \
|
||||
touch install.$(host_triplet).log ; \
|
||||
if test -w install.$(host_triplet).log ; then \
|
||||
LC_ALL=C ; \
|
||||
if test "x$USER" = "x" ; then \
|
||||
USER="unknown" ; \
|
||||
fi ; \
|
||||
echo "Installed BRL-CAD Release ${BRLCAD_VERSION} Build ${CONFIG_DATE} by ${USER} to $(DESTDIR)$(prefix) on `date`" >> install.$(host_triplet).log ; \
|
||||
chmod ugo+rw install.$(host_triplet).log ; \
|
||||
fi
|
||||
|
||||
|
||||
# Print out an informative summary. As just about everything seems to
|
||||
# end up calling the all-am hook, which in turns calls the all-local
|
||||
# hook. The initial target goal is used to print out a custom summary
|
||||
# message. If the make being used doesn't set the MAKECMDGOALS
|
||||
# variable, something generic is printed still. For a make install,
|
||||
# print out rule lines according to the size of the installation path
|
||||
# to emphasize the achievement.
|
||||
#
|
||||
all-local:
|
||||
@echo "Done."
|
||||
@echo
|
||||
@echo "BRL-CAD Release ${BRLCAD_VERSION}, Build ${CONFIG_DATE}"
|
||||
@echo
|
||||
@if test "x$(MAKECMDGOALS)" = "xall-am" -o "x$(.TARGETS)" = "xall-am" -o "x$(MAKECMDGOALS)" = "xfast" -o "x$(.TARGETS)" = "xfast" ; then \
|
||||
echo $(ECHO_N) "Elapsed compilation time: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\
|
||||
echo $(ECHO_N) "Elapsed time since configuration: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\
|
||||
echo "---" ;\
|
||||
echo "Run 'make install' to begin installation into $(prefix)" ;\
|
||||
echo "Run 'make benchmark' to run the BRL-CAD Benchmark Suite" ;\
|
||||
elif test "x$(MAKECMDGOALS)" = "xinstall-am" -o "x$(.TARGETS)" = "xinstall-am" ; then \
|
||||
echo $(ECHO_N) "Elapsed installation time: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\
|
||||
echo $(ECHO_N) "Elapsed time since configuration: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\
|
||||
echo "---" ;\
|
||||
echo "Run 'make test' to run the BRL-CAD Test Suite" ;\
|
||||
echo "Run 'make benchmark' to run the BRL-CAD Benchmark Suite" ;\
|
||||
echo ;\
|
||||
line1=" BRL-CAD ${BRLCAD_VERSION} is now installed into $(prefix)" ;\
|
||||
line2=" Be sure to add $(prefix)/bin to your PATH" ;\
|
||||
separator="`echo $$line1 | tr '[[:print:]]' '*'`" ;\
|
||||
echo "$${separator}****" ;\
|
||||
echo "$$line1" ;\
|
||||
echo "$$line2" ;\
|
||||
echo "$${separator}****" ;\
|
||||
elif test "x$(MAKECMDGOALS)" = "x" -a "x$(.TARGETS)" = "x" ; then \
|
||||
echo $(ECHO_N) "Elapsed time: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh `cat $(top_builddir)/include/conf/TS` ;\
|
||||
echo $(ECHO_N) "Elapsed time since configuration: " ;\
|
||||
${SH} $(top_srcdir)/sh/elapsed.sh ${CONFIG_TS} ;\
|
||||
echo "---" ;\
|
||||
echo "Run 'make benchmark' to run the BRL-CAD Benchmark Suite" ;\
|
||||
fi
|
||||
@echo
|
||||
|
||||
|
||||
include $(top_srcdir)/misc/Makefile.defs
|
||||
|
||||
# Local Variables:
|
||||
# mode: Makefile
|
||||
# tab-width: 8
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=8 tabstop=8
|
||||
@@ -1,5 +1,5 @@
|
||||
BRL-CAD
|
||||
Release 7.32.0
|
||||
Release 7.18.6
|
||||
http://brlcad.org/
|
||||
|
||||
BRL-CAD is a powerful cross-platform open source combinatorial
|
||||
@@ -31,7 +31,7 @@ TABLE OF CONTENTS
|
||||
|
||||
|
||||
GETTING STARTED
|
||||
---------------
|
||||
----------------
|
||||
|
||||
This README file exists only to provide you a brief roadmap to the
|
||||
contents of the BRL-CAD distribution.
|
||||
@@ -39,12 +39,9 @@ contents of the BRL-CAD distribution.
|
||||
Some platforms have additional platform-specific documentation that
|
||||
should be consulted after reading this file:
|
||||
|
||||
doc/README.AIX -- IBM's Advanced Interactive eXecutive OS
|
||||
doc/README.BSD -- FreeBSD, NetBSD, OpenBSD, etc.
|
||||
doc/README.IRIX -- SGI IRIX and IRIX64
|
||||
doc/README.Linux -- Various Linux distributions
|
||||
doc/README.MacOSX -- Apple Mac OS X
|
||||
doc/README.Solaris -- Oracle Solaris, OpenIndiana (Illumos), etc.
|
||||
doc/README.MacOSX -- Apple Mac OS X
|
||||
doc/README.IRIX -- SGI IRIX and IRIX64
|
||||
doc/README.Linux -- Various Linux distributions
|
||||
doc/README.Windows -- Microsoft Windows
|
||||
|
||||
The information on how to install and operate the software, to become
|
||||
@@ -69,29 +66,39 @@ contact one of the BRL-CAD developers.
|
||||
COMPILE AND INSTALL
|
||||
-------------------
|
||||
|
||||
In order to compile and install BRL-CAD from a source distribution,
|
||||
the CMake ( http://www.cmake.org ) configuration tool is requird.
|
||||
See the INSTALL file for details on configuring, compiling, and
|
||||
installing BRL-CAD. In order to compile and install BRL-CAD from a
|
||||
source distribution, the following steps may be taken for a full
|
||||
default install:
|
||||
|
||||
The following steps should result in a successful install:
|
||||
|
||||
tar -xvzf brlcad-VERSION.tar.gz
|
||||
mkdir brlcad-VERSION/build
|
||||
cd brlcad-VERSION/build
|
||||
cmake .. -DBRLCAD_ENABLE_STRICT=OFF -DCMAKE_BUILD_TYPE=Release
|
||||
make -j4
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
See the INSTALL file for explanation of the various configuration
|
||||
options available when building BRL-CAD.
|
||||
If you do not have a configure script in your source tree (at the same
|
||||
level as this README file), you will need a relatively up-to-date
|
||||
version of the GNU Build System (autoconf, automake, & libtool)
|
||||
installed. The autogen.sh script will need to be run successfully in
|
||||
order to generate the configure script first:
|
||||
|
||||
sh autogen.sh
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
There are various options available to both configure and make. Run
|
||||
"./configure --help" for a list of available configuration options.
|
||||
Users on multiprocessor systems will be able to speed up their builds
|
||||
by passing the -j option to make (e.g. make -j4, assuming GNU make).
|
||||
|
||||
Once the build completes and assuming you have proper filesystem
|
||||
permissions, you should be able to begin the installation by running
|
||||
the "make install" . By default, the package is configured to install
|
||||
entirely into /usr/brlcad/.
|
||||
|
||||
You will need to add /usr/brlcad/bin to your path (or whatever path the
|
||||
variable CMAKE_INSTALL_PREFIX was set to during configure) in order for
|
||||
the BRL-CAD binaries to be in your path.
|
||||
You will need to add /usr/brlcad/bin to your path (or whatever was
|
||||
used as a --prefix during configure) in order for the BRL-CAD binaries
|
||||
to be in your path.
|
||||
|
||||
|
||||
BENCHMARK
|
||||
@@ -100,8 +107,7 @@ BENCHMARK
|
||||
After the build successfully completes, you will be able to verify
|
||||
basic functionality by running the BRL-CAD Benchmark. Running the
|
||||
benchmark suite is integrated into the build system such that any time
|
||||
after running CMake (in the cmake gui, configure and generate must both
|
||||
be performed) you may run:
|
||||
after configure, you may run:
|
||||
|
||||
make benchmark
|
||||
|
||||
@@ -236,7 +242,8 @@ common operating system environments including for BSD, IRIX, Linux,
|
||||
Solaris, Mac OS X, and Windows among others. The entire package is
|
||||
distributed in binary and source code form as free open source
|
||||
software (FOSS), provided under Open Source Initiative (OSI) approved
|
||||
license terms. BRL-CAD was released as open source in December 2004.
|
||||
license terms. BRL-CAD was released as open source in December 2004
|
||||
with portions licensed under the GPL, LGPL, GFDL, and BSD licenses.
|
||||
See the COPYING file for more details.
|
||||
|
||||
|
||||
@@ -249,7 +256,7 @@ distribution at the beginning of every month, usually being posted
|
||||
sometime within the first week of every month.
|
||||
|
||||
Depending on need, demand, and activity, additional releases may also
|
||||
be made. The additional releases will be heavily dependent upon the
|
||||
be made. The additional releases will be heavily dependant upon the
|
||||
level of user involvement and contributions in particular.
|
||||
Information about new releases will be routinely provided by
|
||||
electronic mail to recipients of this software as well as to the
|
||||
@@ -268,8 +275,8 @@ GETTING HELP
|
||||
------------
|
||||
|
||||
Feel free to direct any unanswered questions relating to BRL-CAD via
|
||||
e-mail or to any of the other contact means described above in the
|
||||
COMMUNICATIONS section of this document.
|
||||
e-mail to 'devs@brlcad.org' or to any of the other contact means
|
||||
described above in the COMMUNICATIONS section of this document.
|
||||
|
||||
Best Wishes,
|
||||
The BRL-CAD Development Team
|
||||
|
||||
+286
@@ -0,0 +1,286 @@
|
||||
BRL-CAD
|
||||
Release 7.18.4
|
||||
http://brlcad.org/
|
||||
|
||||
BRL-CAD is a powerful cross-platform open source combinatorial
|
||||
Constructive Solid Geometry (CSG) solid modeling system that includes
|
||||
an interactive 3D solid geometry editor, a network-distributed
|
||||
symmetric multiprocessing high-performance ray-tracer,
|
||||
network-distributed framebuffer support, image and signal-processing
|
||||
tools, ray-tracing support for rendering and geometric analysis,
|
||||
path-tracing and photon mapping support for realistic image synthesis,
|
||||
animation capabilities, ray-tracing and numerical processing
|
||||
libraries, a system performance analysis benchmark suite, an embedded
|
||||
scripting interface, and a robust high-performance geometric
|
||||
representation and analysis library.
|
||||
|
||||
|
||||
TABLE OF CONTENTS
|
||||
-----------------
|
||||
Introduction
|
||||
Table of Contents
|
||||
Getting Started
|
||||
Compile and Install
|
||||
Benchmark
|
||||
Communication
|
||||
Bug Reports/Feature Requests
|
||||
Distribution Details
|
||||
Background Information
|
||||
Future Events
|
||||
Getting Help
|
||||
|
||||
|
||||
GETTING STARTED
|
||||
----------------
|
||||
|
||||
This README file exists only to provide you a brief roadmap to the
|
||||
contents of the BRL-CAD distribution.
|
||||
|
||||
Some platforms have additional platform-specific documentation that
|
||||
should be consulted after reading this file:
|
||||
|
||||
doc/README.MacOSX -- Apple Mac OS X
|
||||
doc/README.IRIX -- SGI IRIX and IRIX64
|
||||
doc/README.Linux -- Various Linux distributions
|
||||
doc/README.Windows -- Microsoft Windows
|
||||
|
||||
The information on how to install and operate the software, to become
|
||||
involved with the development of the package, or to run the benchmark
|
||||
performance test suite have each become sufficiently large that their
|
||||
details are covered in more detail in standalone documents. For more
|
||||
details on what BRL-CAD provides, see the documentation provided on
|
||||
the website at http://brlcad.org/.
|
||||
|
||||
Information relevant to those interested in the source code is
|
||||
contained in the HACKING and COPYING files. See doc/benchmark.tr file
|
||||
for benchmark suite information. There is a variety of other
|
||||
documentation and information also available in the doc/ directory.
|
||||
|
||||
Please note that this distribution package does not include the
|
||||
various military-specific model analysis tools such as MUVES, GIFT,
|
||||
SAR, SLAVE, VAST, etc., nor does it include any military geometry
|
||||
databases. If you desire to have access to this material, please
|
||||
contact one of the BRL-CAD developers.
|
||||
|
||||
|
||||
COMPILE AND INSTALL
|
||||
-------------------
|
||||
|
||||
See the INSTALL file for details on configuring, compiling, and
|
||||
installing BRL-CAD. In order to compile and install BRL-CAD from a
|
||||
source distribution, the build tool CMake is required - see the
|
||||
website at http://www.cmake.org for source and binary installers.
|
||||
CMake is also available in many Linux and *BSD distributions.
|
||||
|
||||
Once CMake is installed, the following steps may be taken for a full
|
||||
default install (starting with a source tarball):
|
||||
|
||||
tar -xvzf brlcad-X.Y.Z.tar.gz
|
||||
mkdir brlcad-build
|
||||
cd brlcad-build
|
||||
cmake ../brlcad-X.Y.Z
|
||||
make
|
||||
make install
|
||||
|
||||
where "X.Y.Z" is the version number of BRL-CAD. If the graphical
|
||||
interface available from CMake is installed cmake-gui may be
|
||||
substituted for cmake above. This will bring up an interface
|
||||
displaying various configuration options available with CMake.
|
||||
These options may also be set directly via the command line, or
|
||||
a configure wrapper script may be substituted for cmake above to
|
||||
provide more autotools-line configuration options.
|
||||
|
||||
Users on multiprocessor systems will be able to speed up their builds
|
||||
by passing the -j option to make (e.g. make -j4, assuming GNU make).
|
||||
|
||||
Once the build completes and assuming you have proper filesystem
|
||||
permissions, you should be able to begin the installation by running
|
||||
the "make install" . By default, the package is configured to install
|
||||
entirely into /usr/brlcad/.
|
||||
|
||||
You will need to add /usr/brlcad/bin to your path (or whatever path the
|
||||
variable CMAKE_INSTALL_PREFIX was set to during configure) in order for
|
||||
the BRL-CAD binaries to be in your path.
|
||||
|
||||
|
||||
BENCHMARK
|
||||
---------
|
||||
|
||||
After the build successfully completes, you will be able to verify
|
||||
basic functionality by running the BRL-CAD Benchmark. Running the
|
||||
benchmark suite is integrated into the build system such that any time
|
||||
after running CMake (in the cmake gui, configure and generate must both
|
||||
be performed) you may run:
|
||||
|
||||
make benchmark
|
||||
|
||||
If the build is successful, you will see "CORRECT" numbers and a
|
||||
performance summary at the end. The "vgr" line effectively shows you
|
||||
approximately how much faster your machine is to a VAX 11/780. After
|
||||
installing BRL-CAD, you may run the 'benchmark' tool as well to run
|
||||
the BRL-CAD Benchmark.
|
||||
|
||||
See the paper in doc/benchmark.tr for information on analyzing and
|
||||
comparing the results of the benchmark tests in more detail.
|
||||
|
||||
|
||||
COMMUNICATION
|
||||
-------------
|
||||
|
||||
You are invited to participate in the InterNet (aka "ARPANET")
|
||||
electronic mailing list on the BRL-CAD software. There are various
|
||||
BRL-CAD mailing lists available on the project website at
|
||||
http://sourceforge.net/mail/?group_id=105292 including three
|
||||
developer-oriented lists, a user list, and a read-only news
|
||||
announcement list. See the posted archives to get a feel for the
|
||||
volume of list traffic for each list and to read/search past
|
||||
discussions.
|
||||
|
||||
On-line web forums are likewise available on the project site at
|
||||
http://sourceforge.net/forum/?group_id=105292
|
||||
|
||||
A variety of information on BRL-CAD is available via the
|
||||
World-Wide-Web. Papers, documentation, and the software repository
|
||||
may be found at:
|
||||
|
||||
http://brlcad.org
|
||||
|
||||
In addition to the above, there is an official BRL-CAD IRC channel on
|
||||
the Freenode network that may be reached by joining #brlcad on
|
||||
irc.freenode.net connecting via port 6667. For first-time users,
|
||||
there is a web-based IRC client available for certain browsers at:
|
||||
|
||||
http://irc.brlcad.org
|
||||
|
||||
IRC is the preferred method of communication to interact with the
|
||||
BRL-CAD developers, to get involved with the project, obtain support,
|
||||
or provide direct feedback.
|
||||
|
||||
|
||||
BUG REPORTS AND FEATURE REQUESTS
|
||||
--------------------------------
|
||||
|
||||
Please report any bugs encountered to the project bug tracker at
|
||||
http://sourceforge.net/tracker/?group_id=105292&atid=640802
|
||||
|
||||
Similarly, please post any request for feature enhancements or support
|
||||
request to http://sourceforge.net/tracker/?group_id=105292&atid=640805
|
||||
and http://sourceforge.net/tracker/?group_id=105292&atid=640803
|
||||
respectively.
|
||||
|
||||
|
||||
DISTRIBUTION DETAILS
|
||||
--------------------
|
||||
|
||||
BRL-CAD is freely available and distributed in both binary and source
|
||||
code form through the BRL-CAD project website on Sourceforge:
|
||||
|
||||
http://sf.net/projects/brlcad/
|
||||
|
||||
The package is similarly available via a Subversion repository. To
|
||||
obtain the latest, follow the directions for anonymous checkout at:
|
||||
|
||||
http://sourceforge.net/svn/?group_id=105292
|
||||
|
||||
There is also a paid-for full-service support distribution available
|
||||
for those interested through SURVICE Engineering, Inc., and the
|
||||
Survivability/Vulnerability Information Analysis Center (SURVIAC).
|
||||
|
||||
SURVICE provides their own BRL-CAD distribution that comes with
|
||||
commercial support, documentation, and installation media. Full
|
||||
technical assistance is provided to their commercial distributions by
|
||||
phone, FAX, postal mail, or e-mail. Agencies of the Federal
|
||||
Government may acquire the full service distribution with a MIPR or
|
||||
OGA funds transfer.
|
||||
|
||||
For further details, contact:
|
||||
|
||||
BRL-CAD Distribution
|
||||
SURVIAC Aberdeen Satellite Office
|
||||
4695 Millennium Drive
|
||||
Belcamp, MD 210017-1505 USA
|
||||
|
||||
|
||||
BACKGROUND INFORMATION
|
||||
----------------------
|
||||
|
||||
BRL-CAD is the primary tri-service solid modeling CAD system used by
|
||||
the U.S. military to model weapons systems for vulnerability and
|
||||
lethality analyses. The solid modeling system is frequently used in a
|
||||
wide range of military and industrial application including in the
|
||||
design and analysis of vehicles, mechanical parts, and architecture.
|
||||
The package has also been used in radiation dose planning, medical
|
||||
visualization, computer graphics education, CSG concepts and modeling
|
||||
education, and system performance benchmark testing among other
|
||||
purposes.
|
||||
|
||||
Actively developed since 1979, BRL-CAD is a collection of more than
|
||||
400 tools, utilities, and applications comprising more than a million
|
||||
lines of source code. BRL-CAD supports a great variety of geometric
|
||||
representations including an extensive set of traditional CSG
|
||||
primitive implicit solids such as boxes, ellipsoids, cones, and tori,
|
||||
as well as explicit solids made from closed collections of Uniform
|
||||
B-Spline Surfaces, Non-Uniform Rational B-Spline (NURBS) surfaces,
|
||||
n-Manifold Geometry (NMG), and purely faceted mesh geometry. All
|
||||
geometric objects may be combined using boolean set-theoretic CSG
|
||||
operations including union, intersection, and difference.
|
||||
|
||||
BRL-CAD has been under active development for more than 20 years with
|
||||
a portability heritage that includes systems such as a DEC VAX-11/780
|
||||
running 4.3 BSD; DECStations running ULTRIX; Silicon Graphics 3030, 4D
|
||||
"IRIS", O2, Onyx, and Origin systems running various versions of IRIX;
|
||||
Sun Microsystems Sun-3 and Sun-4 Sparcs running SunOS; the Cray 1,
|
||||
Cray X-MP, Cray Y-MP, and Cray 2 running UNICOS; DEC Alpha AXP running
|
||||
OSF/1; Apple Macintosh II running A/UX; iPSC/860 Hypercube running
|
||||
NX/2; the Alliant FX/8, FX/80, and FX/2800; Gould/Encore SEL PowerNode
|
||||
6000/9000 and NP1; NeXT workstations; IBM RS/6000; HPPA 9000/700
|
||||
running HPUX; Ardent/Stardent; Encore Multi-Max; and much much more.
|
||||
BRL-CAD's extensive portability of course also includes a plethora of
|
||||
common desktop and server versions of BSD, IRIX, Solaris, Mac OS X,
|
||||
Linux, and Windows.
|
||||
|
||||
The BRL-CAD package is intentionally designed to be extensively
|
||||
cross-platform and is actively developed on and maintained for many
|
||||
common operating system environments including for BSD, IRIX, Linux,
|
||||
Solaris, Mac OS X, and Windows among others. The entire package is
|
||||
distributed in binary and source code form as free open source
|
||||
software (FOSS), provided under Open Source Initiative (OSI) approved
|
||||
license terms. BRL-CAD was released as open source in December 2004
|
||||
with portions licensed under the GPL, LGPL, GFDL, and BSD licenses.
|
||||
See the COPYING file for more details.
|
||||
|
||||
|
||||
FUTURE EVENTS
|
||||
-------------
|
||||
|
||||
It is expected that new releases of BRL-CAD will be issued
|
||||
approximately once a month. A new release is scheduled for
|
||||
distribution at the beginning of every month, usually being posted
|
||||
sometime within the first week of every month.
|
||||
|
||||
Depending on need, demand, and activity, additional releases may also
|
||||
be made. The additional releases will be heavily dependant upon the
|
||||
level of user involvement and contributions in particular.
|
||||
Information about new releases will be routinely provided by
|
||||
electronic mail to recipients of this software as well as to the
|
||||
BRL-CAD NEWS mailing list:
|
||||
|
||||
http://sourceforge.net/mail/?group_id=105292
|
||||
|
||||
Periodically, training and user group meetings are provided with
|
||||
announcements similarly posted to the BRL-CAD NEWS mailing list.
|
||||
Several BRL-CAD developers also regularly attend the ACM Siggraph
|
||||
conference, the ACM Solid and Physical Modeling conference, and other
|
||||
similar conferences, conventions, and symposiums as well.
|
||||
|
||||
|
||||
GETTING HELP
|
||||
------------
|
||||
|
||||
Feel free to direct any unanswered questions relating to BRL-CAD via
|
||||
e-mail to 'devs@brlcad.org' or to any of the other contact means
|
||||
described above in the COMMUNICATIONS section of this document.
|
||||
|
||||
Best Wishes,
|
||||
The BRL-CAD Development Team
|
||||
devs@brlcad.org
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
Remaining items:
|
||||
|
||||
17. fix wish build on windows - current output exe doesn't run
|
||||
|
||||
18. 64 bit Windows build - will need a few flags, at least in tcl/tk
|
||||
|
||||
19. See if you can auto-generate documentation for configure options by pulling
|
||||
doc properties from options not marked as advanced and generating a formatted
|
||||
text file
|
||||
|
||||
20. Update README, INSTALL, doc/*, etc.
|
||||
21. Unbreak Xcode generation (at least Tcl and almost certainly Tk, possibly others)
|
||||
|
||||
Done (to first order, all this needs testing)
|
||||
|
||||
1. Detect OpenGL properly on Apple - choose X11 vs Aqua, and get the ogl code working
|
||||
|
||||
3. Our tcl autopath function for adding paths to the package search list needs fixing - CMake breaks
|
||||
assumptions it was using.
|
||||
|
||||
4. Scrub the third party logic and clean up/simplify - try to get away from using BRLCAD_ variables
|
||||
when they aren't needed.
|
||||
|
||||
5. Break logic out of the toplevel into src and src/other dirs - among other things, we want to
|
||||
be able to cd in to src and type make to avoid the doc subdirectory.
|
||||
|
||||
9. Multiplatform testing. Specifically, find a Windows box and conditionalize everything which
|
||||
doesn't work out-of-box (lex/yacc and sh based logic are obvious, other probables)
|
||||
|
||||
11. Find out why make package from CPack isn't including much of anything, fix it.
|
||||
|
||||
10. Convert -D options that need spaces in args (mostly pathnames) to config.h header files - mostly
|
||||
this is an issue for Tcl/Tk and packages, but CMake->Visual C++ solutions doesn't tolerate the
|
||||
spaces.
|
||||
|
||||
15. Try and get archer working in the build directory - this is going to involve carefully studying
|
||||
what bu_brlcad_data and friends are up to, and what we need to have in place. Right now mged
|
||||
will crash if either a share dir is created in the build toplevel (empty data dir) or there
|
||||
is an installed BRL-CAD in the target install directory (not sure what the issue is there) but
|
||||
will run in isolation. Even a full copy of the installed share dir in the toplevel build causes
|
||||
a crash, and Archer can't find its files even with the full share dir present (?)
|
||||
|
||||
2. Do a diff of all the generated scripts using configure_file - make sure what autotools produces
|
||||
is what is being produced by CMake, and make sure no variable definitions in support of scripts
|
||||
are nuking variables used by CMake - (checked this and defined a few variables, but CMake's
|
||||
habit of using full paths mixes oddly with pkgconfig's standard output of -lm, -lpng, etc. -
|
||||
need to study this more later. Not entirely convinced our autotools setup is fully correct
|
||||
either - does anyone use this?)
|
||||
|
||||
8. Review and test binaries - get regression testing working, check mged and archer, etc. - regression
|
||||
works, mged and archer seem to work fairly well
|
||||
|
||||
7. Build flags - we supply a lot via several options in autotools - express that in CMake
|
||||
|
||||
|
||||
13. Enable any remaining things present in autotools but not CMake - RTGL and libpc come to mind. (got rtgl and libpc)
|
||||
|
||||
15. get tcl/tk build fixed on opensolaris, continue build (got tcl/tk building, but there are other issues with Sun Studio. Other issues don't look to be specific to CMake, though there may be a few hiding behind other errors.)
|
||||
|
||||
16. make the src/other build logic use the version numbers where needed
|
||||
|
||||
14. Apply lessons learned to the SCL build logic
|
||||
|
||||
18. look into doxygen build
|
||||
|
||||
6. Review the dist logic in the toplevel Makefile.am. Gonna have to study up on CPack and CTest -
|
||||
figure out the process for checking permissions, install results, etc. in order to provide
|
||||
the same robustness for CMake generated tarballs that we have for autotools.
|
||||
|
||||
21. Test combinations of options, look more closely at what benchmark and rtserver only
|
||||
intend to accomplish.
|
||||
|
||||
12. Try enabling the Aqua compile logic - it still won't work, but get the build logic to the point
|
||||
where the autotools logic is. - ** Work on this later - fair amount of work here and the Aqua situation
|
||||
is in flux generally to begin with. Not a priority **
|
||||
|
||||
|
||||
Executable
+1598
File diff suppressed because it is too large
Load Diff
+42
-68
@@ -1,74 +1,48 @@
|
||||
add_subdirectory(ref)
|
||||
include_directories(
|
||||
${BRLCAD_BINARY_DIR}/include
|
||||
${BRLCAD_SOURCE_DIR}/include
|
||||
${TCL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
include_directories(${BU_INCLUDE_DIRS})
|
||||
add_definitions(
|
||||
-DHAVE_CONFIG_H
|
||||
-DBRLCADBUILD
|
||||
)
|
||||
|
||||
add_definitions(-DCONSOLE)
|
||||
IF(MSVC)
|
||||
add_definitions(
|
||||
-DCONSOLE
|
||||
-DBRLCAD_DLL
|
||||
)
|
||||
ENDIF(MSVC)
|
||||
|
||||
BRLCAD_ADDEXEC(pixcmp pixcmp.c libbu)
|
||||
set(BARK_SOURCES
|
||||
benchmark.c
|
||||
compute.c
|
||||
run.c
|
||||
clean.c
|
||||
|
||||
configure_file(run.sh ${CMAKE_BINARY_DIR}/bin/benchmark COPYONLY)
|
||||
INSTALL(PROGRAMS ${CMAKE_BINARY_DIR}/bin/benchmark DESTINATION ${${CMAKE_PROJECT_NAME}_INSTALL_BIN_DIR})
|
||||
|
||||
FILE(WRITE ${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake "MESSAGE(\"---\")\n")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake "MESSAGE(\"Run 'make benchmark-clean' in the bench directory to delete the logic\")\n")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake "MESSAGE(\"and image files generated during the benchmark analysis.\")\n")
|
||||
|
||||
SET(bench_MANS
|
||||
benchmark.1
|
||||
pixcmp.1
|
||||
)
|
||||
BRLCAD_ADDEXEC(bark "${BARK_SOURCES}" libbu NO_STRICT NO_INSTALL)
|
||||
ADD_MAN_PAGES(1 bench_MANS)
|
||||
CMAKEFILES(lgt.sh run.sh try.sh viewdiff.sh)
|
||||
|
||||
configure_file(run.sh "${CMAKE_CURRENT_BINARY_DIR}/benchmark" COPYONLY)
|
||||
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/benchmark" DESTINATION ${BIN_DIR})
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
||||
string(TOUPPER "${CFG_TYPE}" CFG_TYPE_UPPER)
|
||||
configure_file(run.sh ${CMAKE_BINARY_DIR_${CFG_TYPE_UPPER}}/bin/benchmark COPYONLY)
|
||||
endforeach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
||||
else(CMAKE_CONFIGURATION_TYPES)
|
||||
configure_file(run.sh ${CMAKE_BINARY_DIR}/bin/benchmark COPYONLY)
|
||||
endif(CMAKE_CONFIGURATION_TYPES)
|
||||
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake" "message(\"---\")\n")
|
||||
file(APPEND "${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake" "message(\"Run 'make benchmark-clean' in the bench directory to delete the logic\")\n")
|
||||
file(APPEND "${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake" "message(\"and image files generated during the benchmark analysis.\")\n")
|
||||
|
||||
CMAKEFILES(
|
||||
CMakeLists.txt
|
||||
lgt.sh
|
||||
run.sh
|
||||
try.sh
|
||||
viewdiff.sh
|
||||
)
|
||||
|
||||
if(SH_EXEC AND TARGET m35.g)
|
||||
# CTest enabled short run of the benchmark suite
|
||||
add_test(NAME benchmark COMMAND ${SH_EXEC} "${CMAKE_BINARY_DIR}/bin/benchmark" run TIMEFRAME=1)
|
||||
set_tests_properties(benchmark PROPERTIES LABELS "Benchmark")
|
||||
add_custom_target(benchmark-check
|
||||
COMMAND ${CMAKE_CTEST_COMMAND} -L Benchmark --output-on-failure
|
||||
DEPENDS rt pixcmp BENCHMARK_PIX_cp PIX_LOG_cp
|
||||
)
|
||||
add_dependencies(benchmark-check bldg391.g m35.g moss.g sphflake.g star.g world.g)
|
||||
if(TARGET check)
|
||||
add_dependencies(check benchmark-check)
|
||||
endif(TARGET check)
|
||||
|
||||
# Full run of the benchmark suite
|
||||
add_custom_target(benchmark
|
||||
COMMAND ${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark run
|
||||
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake"
|
||||
DEPENDS rt pixcmp BENCHMARK_PIX_cp PIX_LOG_cp
|
||||
)
|
||||
add_dependencies(benchmark bldg391.g m35.g moss.g sphflake.g star.g world.g)
|
||||
|
||||
# benchmark cleanup targets
|
||||
add_custom_target(benchmark-clean
|
||||
${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark clean
|
||||
)
|
||||
add_custom_target(benchmark-clobber
|
||||
${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark clobber
|
||||
)
|
||||
endif(SH_EXEC AND TARGET m35.g)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
IF(SH_EXEC)
|
||||
ADD_CUSTOM_TARGET(benchmark
|
||||
COMMAND ${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark run
|
||||
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/CMakeTmp/benchmsg.cmake
|
||||
DEPENDS rt pixcmp
|
||||
)
|
||||
ADD_DEPENDENCIES(benchmark bldg391.g m35.g moss.g sphflake.g star.g world.g)
|
||||
ADD_CUSTOM_TARGET(benchmark-clean
|
||||
${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark clean
|
||||
)
|
||||
ADD_CUSTOM_TARGET(benchmark-clobber
|
||||
${SH_EXEC} ${CMAKE_BINARY_DIR}/bin/benchmark clobber
|
||||
)
|
||||
ENDIF(SH_EXEC)
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
.PHONY : clean clobber run bench
|
||||
|
||||
bin_PROGRAMS = pixcmp
|
||||
pixcmp_SOURCES = pixcmp.c
|
||||
pixcmp_CFLAGS = ${TCL_CPPFLAGS}
|
||||
pixcmp_LDADD = ${BU}
|
||||
|
||||
dist_bin_SCRIPTS = \
|
||||
benchmark
|
||||
|
||||
man_MANS = \
|
||||
benchmark.1 \
|
||||
pixcmp.1
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(man_MANS) \
|
||||
${dist_bin_SCRIPTS} \
|
||||
lgt.sh \
|
||||
run.sh \
|
||||
try.sh \
|
||||
viewdiff.sh
|
||||
|
||||
benchmark: run.sh
|
||||
cp $(top_srcdir)/bench/run.sh benchmark
|
||||
|
||||
run: all
|
||||
@if test -r ${srcdir}/run.sh ; then \
|
||||
LD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_builddir)/src/other/tk/unix:$$LD_LIBRARY_PATH \
|
||||
DYLD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_buildir)/src/other/tk/unix:$$DYLD_LIBRARY_PATH \
|
||||
${SH} ${srcdir}/run.sh run ; \
|
||||
ret=$$? ; \
|
||||
if test "x$$ret" != "x0" ; then \
|
||||
echo "*** BENCHMARK TESTING FAILED ***" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
fi
|
||||
@echo "---"
|
||||
@echo "Run 'make clean' in the bench directory to delete the log"
|
||||
@echo "and image files generated during the benchmark analysis."
|
||||
@echo
|
||||
|
||||
bench: run
|
||||
|
||||
clean:
|
||||
@${SH} ${srcdir}/run.sh clean
|
||||
|
||||
clobber:
|
||||
@${SH} ${srcdir}/run.sh clobber
|
||||
|
||||
CLEANFILES = \
|
||||
benchmark
|
||||
|
||||
DISTCLEANFILES = \
|
||||
*.log \
|
||||
*.pix
|
||||
|
||||
DEPS=src/rt db
|
||||
|
||||
include $(top_srcdir)/misc/Makefile.defs
|
||||
@@ -0,0 +1,227 @@
|
||||
.TH BENCHMARK 1 BRL-CAD
|
||||
.\" B E N C H M A R K . 1
|
||||
.\" BRL-CAD
|
||||
.\"
|
||||
.\" Copyright (c) 2006-2011 United States Government as represented by
|
||||
.\" the U.S. Army Research Laboratory.
|
||||
.\"
|
||||
.\" Redistribution and use in source (Docbook format) and 'compiled'
|
||||
.\" forms (PDF, PostScript, HTML, RTF, etc), with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\"
|
||||
.\" 1. Redistributions of source code (Docbook format) must retain the
|
||||
.\" above copyright notice, this list of conditions and the following
|
||||
.\" disclaimer.
|
||||
.\"
|
||||
.\" 2. Redistributions in compiled form (transformed to other DTDs,
|
||||
.\" converted to PDF, PostScript, HTML, RTF, and other formats) 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 documentation without specific prior
|
||||
.\" written permission.
|
||||
.\"
|
||||
.\" THIS DOCUMENTATION 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 DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\".\".\"
|
||||
.SH NAME
|
||||
benchmark \- runs the BRL-CAD benchmark
|
||||
.SH SYNOPSIS
|
||||
.B [OPTION=value] benchmark [command] [OPTION=value] [RT_OPTIONS]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
The benchmark suite will test the performance of a given system by
|
||||
iteratively rendering several well-known datasets into 512x512 images
|
||||
where performance metrics are documented and fairly well understood.
|
||||
The local machine performance is compared to the base system (called
|
||||
VGR) and a numeric "VGR" mulitplier of performance is computed. This
|
||||
number is a simplified metric from which one may qualitatively compare
|
||||
cpu and cache performance, versions of BRL-CAD, and different compiler
|
||||
characteristics.
|
||||
.PP
|
||||
Run without any arguments or variables set, the benchmark suite will
|
||||
run a series of tests where it renders several image frames. By
|
||||
default, the benchmark suite will attempt to calibrate the intensity
|
||||
of the test frames with the performance characteristics of the machine
|
||||
running the tests.
|
||||
.PP
|
||||
There are several \fBOPTION\fR environment variables that will modify
|
||||
how the BRL-CAD benchmark behaves so that it may be run in a
|
||||
stand-alone environment:
|
||||
.PP
|
||||
\&
|
||||
.B RT
|
||||
\- the ray-trace binary (e.g. ../src/rt/rt or /usr/brlcad/bin/rt)
|
||||
.br
|
||||
\&
|
||||
.B DB
|
||||
\- the directory containing the reference geometry (e.g. ../db)
|
||||
.br
|
||||
\&
|
||||
.B PIX
|
||||
\- the directory containing the reference images (e.g. ../pix)
|
||||
.br
|
||||
\&
|
||||
.B LOG
|
||||
\- the directory containing the reference logs (e.g. ../pix)
|
||||
.br
|
||||
\&
|
||||
.B CMP
|
||||
\- the name of a pixel comparison tool (e.g. ./pixcmp or cmp)
|
||||
.br
|
||||
\&
|
||||
.B ELP
|
||||
\- the name of an elapsed time tool (e.g. ../sh/elapsed.sh)
|
||||
.br
|
||||
\&
|
||||
.B TIMEFRAME
|
||||
\- minimum number of seconds each ray-trace frame should take
|
||||
.br
|
||||
\&
|
||||
.B MAXTIME
|
||||
\- maximum number of seconds to spend on any test
|
||||
.br
|
||||
\&
|
||||
.B DEVIATION
|
||||
\- minimum sufficient % deviation from the average
|
||||
.br
|
||||
\&
|
||||
.B AVERAGE
|
||||
\- how many frames to average together
|
||||
.br
|
||||
\&
|
||||
.B VERBOSE
|
||||
\- turn on extra debug output (set to yes)
|
||||
.br
|
||||
\&
|
||||
.B QUIET
|
||||
\- turn off all output (set to yes)
|
||||
.PP
|
||||
The \fITIMEFRAME\fR, \fIMAXTIME\fR, \fIDEVIATION\fR, and \fIAVERAGE\fR options control how the
|
||||
benchmark will proceed including how long it should take. Each
|
||||
individual benchmark run will consume at least a minimum \fITIMEFRAME\fR of
|
||||
wallclock time so that the results can stabilize. After consuming at
|
||||
least the minimum \fITIMEFRAME\fR, additional frames may be computed until
|
||||
the standard deviation from the last \fIAVERAGE\fR count of frames is below
|
||||
the specified \fIDEVIATION\fR. When a test is run and it completes in less
|
||||
than \fITIMEFRAME\fR, the raytrace is restarted using double the number of
|
||||
rays from the previous run. If the machine is fast enough, the
|
||||
benchmark may accelerate the number or rays being fired. These
|
||||
additional rays are hypersampled but without any jitter, so it is
|
||||
effectively performing a multiplier amount of work over the initial
|
||||
frame.
|
||||
.PP
|
||||
There are various \fBcommand\fRs that may be give to the BRL-CAD
|
||||
benchmark that cause it to peform various actions such as invoking the
|
||||
computation tests or filesystem clean-up:
|
||||
.PP
|
||||
\&
|
||||
.B clean
|
||||
\- remove the test-specific pix and log files
|
||||
.br
|
||||
\&
|
||||
.B clobber
|
||||
\- same as clean, also benchmark.log files and user is prompted
|
||||
.br
|
||||
\&
|
||||
.B help
|
||||
\- displays a brief usage statement
|
||||
.br
|
||||
\&
|
||||
.B instructions
|
||||
\- displays more detailed usage instructions
|
||||
.br
|
||||
\&
|
||||
.B quiet
|
||||
\- quell printing output (still logs)
|
||||
.br
|
||||
\&
|
||||
.B verbose
|
||||
\- remove the test-specific pix and log files
|
||||
.br
|
||||
\&
|
||||
.B clean
|
||||
\- remove the test-specific pix and log files
|
||||
.br
|
||||
\&
|
||||
.B run
|
||||
\- initiate the benchmark analysis
|
||||
.br
|
||||
.PP
|
||||
When the benchmark completes, output should be saved to several log
|
||||
files including a 'summary' file containing tabulated results, a
|
||||
'\*benchmark.log' file containing the output from a given run, and
|
||||
multiple log files for each test frame. Use the \fIclean\fR and
|
||||
\fIclobber\fR commands during execution to remove the files generated
|
||||
during the benchmark.
|
||||
.PP
|
||||
The \fIclean\fR command removes the test pix and log files. The
|
||||
\fIclobber\fR command removes those same files as well as any
|
||||
*benchmark.log files encountered, and prompting the user beforehand.
|
||||
The generated tabular \fIsummary\fR file will not be removed
|
||||
automatically regardless of invocation command. The \fIsummary\fR
|
||||
file must always be manually deleted.
|
||||
.SH "REPORTING RESULTS"
|
||||
.PP
|
||||
Plese send your BRL-CAD Benchmark results to the developers along with
|
||||
detailed system information to <devs@brlcad.org>. Include at least:
|
||||
.PP
|
||||
0) Compiler name and version (e.g. gcc --version)
|
||||
1) CPU configuration (e.g. cat /proc/cpuinfo or hinv or sysctl -a)
|
||||
2) Cache (data and/or instruction) details for L1/L2/L3 and system
|
||||
(e.g. cat /proc/cpuinfo or hinv or sysctl -a)
|
||||
3) All generated log files (i.e. *.log* after benchmark completes)
|
||||
4) Anything else you think might be relevant to performance
|
||||
.SH EXAMPLES
|
||||
.PP
|
||||
.B benchmark run
|
||||
.br
|
||||
default run of the suite, taking approximately 10 minutes
|
||||
.PP
|
||||
.B benchmark run TIMEFRAME=1
|
||||
.br
|
||||
quick test run for testing functionality and performance ballpark
|
||||
.PP
|
||||
.B benchmark run DEVIATION=1 TIMEFRAME=60 MAXTIME=600
|
||||
.br
|
||||
excessive analysis, attempt to stabilize within 1 percent deviation
|
||||
with each frame taking at least 60 seconds but no more than 10 minutes
|
||||
per test (the entire analysis will probably take 30 to 60 minutes)
|
||||
.B benchmark run QUIET=1 -P1
|
||||
.br
|
||||
perform a benchmark analysis only using one CPU and only logging
|
||||
results to a file
|
||||
.PP
|
||||
.B benchmark clean
|
||||
.br
|
||||
delete all of the log and pix image files generated during a
|
||||
benchmark analysis, leaving only the summary file and any
|
||||
*benchmark.log files
|
||||
.SH "SEE ALSO"
|
||||
brlcad(1), rt(1), pix-fb(1), librt(3), pix(5).
|
||||
.SH AUTHOR
|
||||
Christopher Sean Morrison
|
||||
.br
|
||||
Michael John Muuss
|
||||
.br
|
||||
Susan Muuss
|
||||
.SH COPYRIGHT
|
||||
This software is Copyright (c) 1988-2011 United States Government as
|
||||
represented by the U.S. Army Research Laboratory. All rights reserved.
|
||||
.SH "BUG REPORTS"
|
||||
Reports of bugs or problems should be submitted via electronic
|
||||
mail to <devs@brlcad.org>.
|
||||
@@ -1,946 +0,0 @@
|
||||
/* B E N C H M A R K . C
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2011-2020 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.
|
||||
*/
|
||||
/** @file benchmark.c
|
||||
*
|
||||
* This is the BRL-CAD Benchmark.
|
||||
*
|
||||
* The benchmark suite will test the performance of a system by
|
||||
* iteratively rendering several well-known datasets into 512x512
|
||||
* images where performance metrics are documented and fairly well
|
||||
* understood. The local machine's performance is compared to the
|
||||
* base system (called VGR) and a numeric "VGR" multiplier of
|
||||
* performance is computed. This number is a simplified metric from
|
||||
* which one may qualitatively compare cpu and cache performance,
|
||||
* versions of BRL-CAD, and different compiler characteristics.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <sys/stat.h>
|
||||
/* TODO - fall back on https://github.com/sandsmark/winuname for Windows? */
|
||||
#ifdef HAVE_SYS_UTSNAME_H
|
||||
# include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#include "bio.h"
|
||||
|
||||
#include "bu.h"
|
||||
|
||||
|
||||
/* TODO: !!! probably will need variants of these */
|
||||
int bu_exec(const char *program, void *data, struct bu_vls *out, struct bu_vls *err) {if (!program || !out || !err || !data) return 1; return 0;}
|
||||
int bu_grep(const char *pattern, const char *input, int(*callback)(const char *line, void *data), void *data) {if (!pattern || !input || !data) return 1; if (!callback) bu_log("TODO: need default callback!!!\n"); return 0;}
|
||||
int bu_file_glob(const char *pattern, char **paths) {if (!pattern || !paths) return 1; return 0;}
|
||||
char *format_elapsed(double elapsed) {if (elapsed > 0) return "0 1 2"; return "-0 -1 -2";}
|
||||
int perf(const struct bu_vls *vp, const char *items, const char *args[]) {if (!vp || !items || !args) return -1; return 0;}
|
||||
double calculate_vgr(const struct bu_vls *summary) {if (!summary) return -0.0; return 0.0;}
|
||||
extern int bench(const char *cmd);
|
||||
|
||||
|
||||
/**
|
||||
* this routine writes the provided argument(s) to a log file as well
|
||||
* as echoing them to stdout if we're not in quiet mode.
|
||||
*/
|
||||
static void
|
||||
record(const char *fmt, ...)
|
||||
{
|
||||
struct bu_vls str = BU_VLS_INIT_ZERO;
|
||||
va_list ap;
|
||||
|
||||
const char *LOGFILE = getenv("LOGFILE");
|
||||
const char *QUIET = getenv("QUIET");
|
||||
|
||||
if (!fmt) {
|
||||
return;
|
||||
}
|
||||
|
||||
va_start(ap, fmt);
|
||||
bu_vls_vprintf(&str, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (!BU_STR_EQUAL(LOGFILE, "")) {
|
||||
FILE *fp = fopen(LOGFILE, "a");
|
||||
fprintf(fp, "%s", bu_vls_addr(&str));
|
||||
}
|
||||
if (bu_str_false(QUIET)) {
|
||||
bu_log("%s", bu_vls_addr(&str));
|
||||
}
|
||||
|
||||
bu_vls_free(&str);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
display(const char *fmt, ...)
|
||||
{
|
||||
struct bu_vls str = BU_VLS_INIT_ZERO;
|
||||
va_list ap;
|
||||
|
||||
if (!fmt) {
|
||||
return;
|
||||
}
|
||||
|
||||
va_start(ap, fmt);
|
||||
bu_vls_vprintf(&str, fmt, ap);
|
||||
va_end(ap);
|
||||
bu_log("%s", bu_vls_cstr(&str));
|
||||
|
||||
bu_vls_free(&str);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
sink(const char *fmt, ...)
|
||||
{
|
||||
if (!fmt) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/************************
|
||||
* search for resources *
|
||||
************************/
|
||||
typedef enum {
|
||||
executable=0x1,
|
||||
file=0x2,
|
||||
directory=0x4,
|
||||
script=0x8
|
||||
} look_for_type_t;
|
||||
|
||||
#define TYPE2STR(_t) \
|
||||
((_t) == executable) ? "executable" : \
|
||||
((_t) == file) ? "file" : \
|
||||
((_t) == directory) ? "directory" : \
|
||||
((_t) == script) ? "script" : \
|
||||
"unknown"
|
||||
|
||||
static void
|
||||
look_for(void (*verbose)(const char *, ...), look_for_type_t type, const char *label, const char *var, const char*paths[])
|
||||
{
|
||||
char *val;
|
||||
|
||||
/* utility function to search for a certain filesystem object in a
|
||||
* list of paths.
|
||||
*/
|
||||
|
||||
if (!var || !paths) {
|
||||
return;
|
||||
}
|
||||
if (!verbose) {
|
||||
verbose = sink;
|
||||
}
|
||||
|
||||
verbose("Looking for %s\n", label);
|
||||
|
||||
/* get the value of the variable */
|
||||
val = getenv(var);
|
||||
|
||||
if (val && (strlen(val) > 0)) {
|
||||
if (label) {
|
||||
verbose("...using %s from %s variable setting\n", val, var);
|
||||
}
|
||||
} else {
|
||||
while (paths && *paths) {
|
||||
int failed=0;
|
||||
|
||||
switch (type) {
|
||||
default:
|
||||
case directory:
|
||||
/* should work without read bit */
|
||||
if (!bu_file_directory(*paths)) {
|
||||
failed=1;
|
||||
}
|
||||
/* fall through */
|
||||
case executable:
|
||||
case script:
|
||||
if (!bu_file_executable(*paths)) {
|
||||
failed=1;
|
||||
}
|
||||
break;
|
||||
case file:
|
||||
if (!bu_file_exists(*paths, NULL)) {
|
||||
failed=1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (!failed) {
|
||||
verbose("...found %s %s\n", TYPE2STR(type), *paths);
|
||||
bu_setenv(var, *paths, 1);
|
||||
break;
|
||||
}
|
||||
|
||||
paths++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
set_if_unset(void (*echo)(const char *, ...), void (*verbose)(const char *, ...), const char *var, const char *val)
|
||||
{
|
||||
const char *setval = getenv(var);
|
||||
|
||||
if (!var || !val) {
|
||||
return;
|
||||
}
|
||||
if (!echo) {
|
||||
echo = sink;
|
||||
}
|
||||
if (!verbose) {
|
||||
verbose = sink;
|
||||
}
|
||||
|
||||
if (!setval || (strlen(setval) == 0)) {
|
||||
verbose("%s=\"%s\"\n", var, val);
|
||||
bu_setenv(var, val, 1);
|
||||
}
|
||||
|
||||
setval = getenv(var);
|
||||
echo("Using [%s] for %s\n", setval, var);
|
||||
}
|
||||
|
||||
|
||||
/* callback to bu_grep() */
|
||||
static int
|
||||
stashline(const char *line, void *data)
|
||||
{
|
||||
struct bu_vls *vls = (struct bu_vls *)data;
|
||||
|
||||
BU_CK_VLS(vls);
|
||||
|
||||
bu_vls_printf(vls, "%s\n", line);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main(int ac, char *av[])
|
||||
{
|
||||
int arg;
|
||||
struct bu_vls rtargs = BU_VLS_INIT_ZERO;
|
||||
struct bu_vls str = BU_VLS_INIT_ZERO;
|
||||
|
||||
const char *RT = NULL;
|
||||
const char *DB = NULL;
|
||||
const char *PIX = NULL;
|
||||
const char *LOG = NULL;
|
||||
const char *CMP = NULL;
|
||||
const char *ELP = NULL;
|
||||
|
||||
char root[MAXPATHLEN] = {0};
|
||||
char db[MAXPATHLEN] = {0};
|
||||
char pix[MAXPATHLEN] = {0};
|
||||
char thisp[MAXPATHLEN] = {0};
|
||||
char *argv[MAXPATHLEN] = {NULL};
|
||||
struct bu_vls vp = BU_VLS_INIT_ZERO;
|
||||
|
||||
long MAXTIME = 0;
|
||||
long TIMEFRAME = 0;
|
||||
|
||||
int64_t start = 0;
|
||||
int ret = 0;
|
||||
|
||||
void (*verbose_echo)(const char *, ...) = sink;
|
||||
void (*echo)(const char *, ...) = record;
|
||||
|
||||
bu_setprogname(av[0]);
|
||||
|
||||
/* process the argument list for commands */
|
||||
for (arg=1; arg<ac; arg++) {
|
||||
if (BU_STR_EQUAL(av[arg], "clean")) {
|
||||
bu_setenv("CLEAN", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "clobber")) {
|
||||
bu_setenv("CLEAN", "1", 1);
|
||||
bu_setenv("CLOBBER", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "h")) {
|
||||
bu_setenv("HELP", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "help")) {
|
||||
bu_setenv("HELP", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (bu_strncasecmp(av[arg], "instruct", 8)) {
|
||||
bu_setenv("INSTRUCTIONS", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "start")) {
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "quiet")) {
|
||||
bu_setenv("QUIET", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "verbose")) {
|
||||
bu_setenv("VERBOSE", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (BU_STR_EQUAL(av[arg], "run")) {
|
||||
bu_setenv("RUN", "1", 1);
|
||||
continue;
|
||||
}
|
||||
if (strchr(av[arg], '=')) {
|
||||
/* TODO: !!! make sure this still works */
|
||||
char *var = bu_strdup(av[arg]);
|
||||
char *val = strtok(var, "=");
|
||||
if (var && val) {
|
||||
bu_setenv(var, val, 1);
|
||||
}
|
||||
bu_free(var, "strdup av[arg]");
|
||||
continue;
|
||||
}
|
||||
bu_log("WARNING: Passing unknown option [%s] to RT\n", av[arg]);
|
||||
bu_vls_printf(&rtargs, " %s", av[arg]);
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* handle help before main processing
|
||||
***/
|
||||
if (bu_str_true(getenv("HELP"))) {
|
||||
bu_log("Usage: %s [command(s)] [OPTION=value] [RT_OPTIONS]\n", av[0]);
|
||||
bu_log("\n");
|
||||
bu_log("Available commands:\n");
|
||||
bu_log(" clean\n");
|
||||
bu_log(" clobber\n");
|
||||
bu_log(" help (this is what you are reading right now)\n");
|
||||
bu_log(" instructions\n");
|
||||
bu_log(" quiet\n");
|
||||
bu_log(" verbose\n");
|
||||
bu_log(" run (this is probably what you want)\n");
|
||||
bu_log("\n");
|
||||
bu_log("Available options:\n");
|
||||
bu_log(" RT=/path/to/rt_binary (e.g., rt)\n");
|
||||
bu_log(" DB=/path/to/reference/geometry (e.g. ../db)\n");
|
||||
bu_log(" PIX=/path/to/reference/images (e.g., ../pix)\n");
|
||||
bu_log(" LOG=/path/to/reference/logs (e.g., ../pix)\n");
|
||||
bu_log(" CMP=/path/to/pixcmp_tool (e.g., pixcmp)\n");
|
||||
bu_log(" ELP=/path/to/time_tool (e.g., elapsed.sh)\n");
|
||||
bu_log(" TIMEFRAME=#seconds (default 32)\n");
|
||||
bu_log(" MAXTIME=#seconds (default 300)\n");
|
||||
bu_log(" DEVIATION=%%deviation (default 3)\n");
|
||||
bu_log(" AVERAGE=#frames (default 3)\n");
|
||||
bu_log("\n");
|
||||
bu_log("Available RT options:\n");
|
||||
bu_log(" -P# (e.g., -P1 to force single CPU)\n");
|
||||
bu_log(" See the 'rt' manpage for additional options\n");
|
||||
bu_log("\n");
|
||||
bu_log("The BRL-CAD Benchmark tests the overall performance of a system\n");
|
||||
bu_log("compared to a stable well-known baseline. The Benchmark calculates a\n");
|
||||
bu_log("figure-of-merit for this system that may be directly compared to other\n");
|
||||
bu_log("Benchmark runs on other system configurations.\n");
|
||||
bu_log("\n");
|
||||
bu_log("BRL-CAD is a powerful cross-platform open source solid modeling system.\n");
|
||||
bu_log("For more information about BRL-CAD, see http://brlcad.org\n");
|
||||
bu_log("\n");
|
||||
bu_log("Run '%s instructions' or see the manpage for additional information.\n", av[0]);
|
||||
bu_exit(1, NULL);
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* handle instructions before main processing
|
||||
***/
|
||||
if (bu_str_true(getenv("INSTRUCTIONS"))) {
|
||||
bu_log("\n");
|
||||
bu_log("This program runs the BRL-CAD Benchmark. The benchmark suite will\n");
|
||||
bu_log("test the performance of a system by iteratively rendering several\n");
|
||||
bu_log("well-known datasets into 512x512 images where performance metrics are\n");
|
||||
bu_log("documented and fairly well understood. The local machine's\n");
|
||||
bu_log("performance is compared to the base system (called VGR) and a numeric\n");
|
||||
bu_log("\"VGR\" mulitplier of performance is computed. This number is a\n");
|
||||
bu_log("simplified metric from which one may qualitatively compare cpu and\n");
|
||||
bu_log("cache performance, versions of BRL-CAD, and different compiler\n");
|
||||
bu_log("characteristics.\n");
|
||||
bu_log("\n");
|
||||
bu_log("The suite is intended to be run from a source distribution of BRL-CAD\n");
|
||||
bu_log("after the package has been compiled either directly or via a make\n");
|
||||
bu_log("build system target. There are, however, several environment\n");
|
||||
bu_log("variables that will modify how the BRL-CAD benchmark behaves so that\n");
|
||||
bu_log("it may be run in a stand-alone environment:\n");
|
||||
bu_log("\n");
|
||||
bu_log(" RT - the rt binary (e.g. ../src/rt/rt or /usr/brlcad/bin/rt)\n");
|
||||
bu_log(" DB - the directory containing the reference geometry (e.g. ../db)\n");
|
||||
bu_log(" PIX - the directory containing the reference images (e.g. ../pix)\n");
|
||||
bu_log(" LOG - the directory containing the reference logs (e.g. ../pix)\n");
|
||||
bu_log(" CMP - the name of a pixcmp tool (e.g. ./pixcmp or cmp)\n");
|
||||
bu_log(" ELP - the name of an elapsed time tool (e.g. ../sh/elapsed.sh)\n");
|
||||
bu_log(" TIMEFRAME - the minimum number of seconds each trace needs to take\n");
|
||||
bu_log(" MAXTIME - the maximum number of seconds to spend on any test\n");
|
||||
bu_log(" DEVIATION - the minimum sufficient %% deviation from the average\n");
|
||||
bu_log(" AVERAGE - how many frames to average together\n");
|
||||
bu_log(" VERBOSE - turn on extra debug output for testing/development\n");
|
||||
bu_log(" QUIET - turn off all printing output (writes results to summary)\n");
|
||||
bu_log(" INSTRUCTIONS - display detailed instructions\n");
|
||||
bu_log(" RUN - start a benchmark analysis\n");
|
||||
bu_log("\n");
|
||||
bu_log("The TIMEFRAME, MAXTIME, DEVIATION, and AVERAGE options control how the\n");
|
||||
bu_log("benchmark will proceed including how long it should take. Each\n");
|
||||
bu_log("individual benchmark run will consume at least a minimum TIMEFRAME of\n");
|
||||
bu_log("wallclock time so that the results can stabilize. After consuming at\n");
|
||||
bu_log("least the minimum TIMEFRAME, additional frames may be computed until\n");
|
||||
bu_log("the standard deviation from the last AVERAGE count of frames is below\n");
|
||||
bu_log("the specified DEVIATION. When a test is run and it completes in less\n");
|
||||
bu_log("than TIMEFRAME, the raytrace is restarted using double the number of\n");
|
||||
bu_log("rays from the previous run. If the machine is fast enough, the\n");
|
||||
bu_log("benchmark may accelerate the number or rays being fired. These\n");
|
||||
bu_log("additional rays are hypersampled but without any jitter, so it's\n");
|
||||
bu_log("effectively performing a multiplier amount of work over the initial\n");
|
||||
bu_log("frame.\n");
|
||||
bu_log("\n");
|
||||
bu_log("Plese send your BRL-CAD Benchmark results to the developers along with\n");
|
||||
bu_log("detailed system information to <devs@brlcad.org>. Include at least:\n");
|
||||
bu_log("\n");
|
||||
bu_log(" 0) Compiler name and version (e.g. gcc --version)\n");
|
||||
bu_log(" 1) All generated log files (i.e. *.log* after benchmark completes)\n");
|
||||
bu_log(" 2) Anything else you think might be relevant to performance\n");
|
||||
bu_log("\n");
|
||||
bu_log("The manual page has even more information and specific usage examples.\n");
|
||||
bu_log("Run 'brlman benchmark'.\n");
|
||||
bu_log("\n");
|
||||
bu_exit(0, NULL);
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* handle clean/clobber before main processing
|
||||
***/
|
||||
if (bu_str_true(getenv("CLEAN"))) {
|
||||
size_t i;
|
||||
size_t cnt;
|
||||
size_t num;
|
||||
char cwd[MAXPATHLEN] = {0};
|
||||
const char *tests[] = {"moss", "world", "star", "bldg391", "m35", "sphflake", NULL};
|
||||
char **paths = NULL;
|
||||
int printed = 0;
|
||||
|
||||
bu_log("\n");
|
||||
if (bu_str_true(getenv("CLOBBER"))) {
|
||||
bu_log("About to wipe out all benchmark images and log files in %s\n", bu_getcwd(cwd, MAXPATHLEN));
|
||||
bu_log("Send SIGINT (type ^C) within 5 seconds to abort\n");
|
||||
sleep(5);
|
||||
} else {
|
||||
bu_log("Deleting most benchmark images and log files in %s\n", bu_getcwd(cwd, MAXPATHLEN));
|
||||
bu_log("Running '%s clobber' will remove run logs.\n", av[0]);
|
||||
}
|
||||
bu_log("\n");
|
||||
|
||||
for (i=0; tests[i]; i++) {
|
||||
struct bu_vls pattern_str = BU_VLS_INIT_ZERO;
|
||||
char *pattern[5] = {NULL, NULL, NULL, NULL, NULL};
|
||||
size_t j;
|
||||
|
||||
/* rm -f $i.log $i.pix $i-[0-9]*.log $i-[0-9]*.pix */
|
||||
bu_vls_printf(&pattern_str, "%s.log %s.pix %s-[0-9]*.log %s-[0-9]*.pix", tests[i], tests[i], tests[i], tests[i]);
|
||||
bu_log("rm -f %s\n", bu_vls_cstr(&pattern_str));
|
||||
|
||||
j = bu_argv_from_string(pattern, 4, bu_vls_addr(&pattern_str));
|
||||
while (j > 0) {
|
||||
num = bu_file_glob(pattern[j-1], paths);
|
||||
cnt = num;
|
||||
while (num > 0) {
|
||||
bu_file_delete(paths[num-1]);
|
||||
num--;
|
||||
}
|
||||
bu_argv_free(cnt, paths);
|
||||
paths = NULL;
|
||||
j--;
|
||||
}
|
||||
bu_vls_free(&pattern_str);
|
||||
}
|
||||
|
||||
if (bu_str_true(getenv("CLOBBER"))) {
|
||||
/* NEVER automatically delete the summary file, but go
|
||||
* ahead with the rest.
|
||||
*/
|
||||
|
||||
num = bu_file_glob("benchmark-[0-9]*-run.log", paths);
|
||||
cnt = num;
|
||||
while (num > 0) {
|
||||
bu_log("rm -f %s\n", paths[num-1]);
|
||||
bu_file_delete(paths[num-1]);
|
||||
num--;
|
||||
}
|
||||
bu_argv_free(cnt, paths);
|
||||
paths = NULL;
|
||||
}
|
||||
|
||||
if (bu_file_exists("summary", NULL)) {
|
||||
if (!printed) {
|
||||
bu_log("\nThe following files must be removed manually:\n");
|
||||
printed=1;
|
||||
}
|
||||
bu_log("summary ");
|
||||
}
|
||||
num = bu_file_glob("benchmark-[0-9]*-run.log", paths);
|
||||
cnt = num;
|
||||
while (num > 0) {
|
||||
if (!printed) {
|
||||
bu_log("\nThe following files must be removed manually:\n");
|
||||
printed=1;
|
||||
}
|
||||
bu_log("%s ", paths[num-1]);
|
||||
num--;
|
||||
}
|
||||
bu_argv_free(cnt, paths);
|
||||
paths = NULL;
|
||||
|
||||
if (printed) {
|
||||
bu_log("\n");
|
||||
}
|
||||
|
||||
if (bu_str_true(getenv("CLOBBER"))) {
|
||||
bu_log("\nBenchmark clobber complete.\n");
|
||||
} else {
|
||||
bu_log("\nBenchmark clean complete.\n");
|
||||
}
|
||||
bu_exit(0, NULL);
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* B E G I N
|
||||
***/
|
||||
|
||||
if (bu_str_false(getenv("RUN"))) {
|
||||
bu_exit(1, "Type '%s help' for usage.\n", av[0]);
|
||||
}
|
||||
|
||||
/* where to write results */
|
||||
{
|
||||
int fd;
|
||||
const char *logfile;
|
||||
bu_vls_printf(&str, "run-%d-benchmark.log", bu_process_id());
|
||||
logfile = bu_vls_addr(&str);
|
||||
bu_setenv("LOGFILE", logfile, 1);
|
||||
fd = open(logfile, O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR);
|
||||
if (fd < 0 || !bu_file_writable(logfile)) {
|
||||
if (!BU_STR_EQUAL(logfile, "/dev/null")) {
|
||||
bu_log("ERROR: Unable to log to %s\n", logfile);
|
||||
}
|
||||
/* FIXME: not valid logfile on windows, use 'nul' */
|
||||
bu_setenv("LOGFILE", "/dev/null", 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (bu_str_true(getenv("QUIET"))) {
|
||||
if (bu_str_true(getenv("VERBOSE"))) {
|
||||
bu_log("Verbose output quelled by quiet option. Further output disabled.\n");
|
||||
}
|
||||
} else {
|
||||
if (bu_str_true(getenv("VERBOSE"))) {
|
||||
verbose_echo=display;
|
||||
bu_log("Verbose output enabled\n");
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
struct bu_vls v = BU_VLS_INIT_ZERO;
|
||||
char rfc2822[1024] = {0};
|
||||
#ifdef HAVE_SYS_UTSNAME_H
|
||||
struct utsname n;
|
||||
time_t t = time(NULL);
|
||||
strftime(rfc2822, sizeof(rfc2822), "%a, %d %b %Y %H:%M:%S %Z", localtime(&t));
|
||||
|
||||
if (uname(&n) == 0) {
|
||||
bu_vls_printf(&v, "%s %s %s %s %s", n.sysname, n.nodename, n.release, n.version, n.machine);
|
||||
} else {
|
||||
bu_vls_strcat(&v, "unknown");
|
||||
}
|
||||
#endif
|
||||
|
||||
echo("B R L - C A D B E N C H M A R K\n");
|
||||
echo("=================================\n");
|
||||
echo("Running %s on %s\n", av[0], rfc2822);
|
||||
echo("Logging output to %s\n", getenv("LOGFILE"));
|
||||
echo("%s\n\n", bu_vls_addr(&v));
|
||||
}
|
||||
|
||||
|
||||
bu_dir(root, MAXPATHLEN, BU_DIR_BIN, NULL);
|
||||
bu_dir(db, MAXPATHLEN, BU_DIR_DATA, "db", NULL);
|
||||
bu_dir(pix, MAXPATHLEN, BU_DIR_DATA, "pix" , NULL);
|
||||
bu_dir(thisp, MAXPATHLEN, BU_DIR_CURR, NULL);
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s/rt "
|
||||
"%s/rt "
|
||||
"./rt",
|
||||
root, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, executable, "the BRL-CAD raytracer", "RT", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s/moss.g "
|
||||
"%s/db/moss.g "
|
||||
"%s/../db/moss.g "
|
||||
"./db/moss.g "
|
||||
"./moss.g",
|
||||
db, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, file, "a benchmark geometry directory", "DB", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
if (getenv("DB") && !bu_file_directory(getenv("DB"))) {
|
||||
bu_setenv("DB", bu_path_dirname(getenv("DB")), 1);
|
||||
}
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s/moss.pix "
|
||||
"%s/pix/moss.pix "
|
||||
"%s/../pix/moss.pix "
|
||||
"%s/../../pix/moss.pix "
|
||||
"%s/../../../pix/moss.pix "
|
||||
"./pix/moss.pix "
|
||||
"./moss.pix",
|
||||
pix, thisp, thisp, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, file, "a benchmark reference image directory", "PIX", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
if (getenv("PIX") && !bu_file_directory(getenv("PIX"))) {
|
||||
bu_setenv("PIX", bu_path_dirname(getenv("PIX")), 1);
|
||||
}
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s "
|
||||
"%s "
|
||||
"%s/pix "
|
||||
"%s/../pix "
|
||||
"%s/../../pix "
|
||||
"%s/../../../pix "
|
||||
"./pix",
|
||||
getenv("PIX"), pix, thisp, thisp, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, directory, "a benchmark reference log directory", "LOG", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s/pixcmp "
|
||||
"%s/pixcmp "
|
||||
"%s/bench/pixcmp "
|
||||
"%s/../bench/pixcmp "
|
||||
"./pixcmp",
|
||||
root, thisp, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, executable, "a pixel comparison utility", "CMP", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
|
||||
/* FIXME: elapsed is no more */
|
||||
bu_vls_printf(&vp,
|
||||
"%s/elapsed.sh "
|
||||
"%s/elapsed.sh "
|
||||
"%s/sh/elapsed.sh "
|
||||
"%s/../sh/elapsed.sh "
|
||||
"%s/../../sh/elapsed.sh "
|
||||
"%s/../../../sh/elapsed.sh "
|
||||
"./elapsed.sh",
|
||||
root, thisp, thisp, thisp, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
look_for(verbose_echo, script, "a time elapsed utility", "ELP", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
|
||||
bu_free(root, "strdup root");
|
||||
bu_free(db, "strdup db");
|
||||
bu_free(pix, "strdup pix");
|
||||
|
||||
|
||||
/*********************
|
||||
* output parameters *
|
||||
*********************/
|
||||
|
||||
/* sanity check, output all the final settings together */
|
||||
RT = getenv("RT");
|
||||
if (RT && strlen(RT) > 0) {
|
||||
echo("Using [%s] for RT\n", RT);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD raytracer\n");
|
||||
}
|
||||
|
||||
DB = getenv("DB");
|
||||
if (DB && strlen(DB) > 0) {
|
||||
echo("Using [%s] for DB\n", DB);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD database directory\n");
|
||||
}
|
||||
|
||||
PIX = getenv("PIX");
|
||||
if (PIX && strlen(PIX) > 0) {
|
||||
echo("Using [%s] for PIX\n", PIX);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD reference images\n");
|
||||
}
|
||||
|
||||
LOG = getenv("LOG");
|
||||
if (LOG && strlen(LOG) > 0) {
|
||||
echo("Using [%s] for LOG\n", LOG);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD reference logs\n");
|
||||
}
|
||||
|
||||
CMP = getenv("CMP");
|
||||
if (CMP && strlen(CMP) > 0) {
|
||||
echo("Using [%s] for CMP\n", CMP);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD pixel comparison utility\n");
|
||||
}
|
||||
|
||||
ELP = getenv("ELP");
|
||||
if (ELP && strlen(ELP) > 0) {
|
||||
echo("Using [%s] for ELP\n", ELP);
|
||||
} else {
|
||||
bu_exit(1, "ERROR: Could not find the BRL-CAD time elapsed script\n");
|
||||
}
|
||||
|
||||
/* determine the minimum time requirement in seconds for a single test run */
|
||||
set_if_unset(echo, verbose_echo, "TIMEFRAME", "32");
|
||||
|
||||
/* approximate maximum time in seconds that a given test is allowed to take */
|
||||
set_if_unset(echo, verbose_echo, "MAXTIME", "300");
|
||||
{
|
||||
MAXTIME = strtol(getenv("MAXTIME"), NULL, 0);
|
||||
TIMEFRAME = strtol(getenv("TIMEFRAME"), NULL, 0);
|
||||
if (MAXTIME < TIMEFRAME) {
|
||||
bu_exit(1, "ERROR: MAXTIME must be greater or equal to TIMEFRAME\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* maximum deviation percentage */
|
||||
set_if_unset(echo, verbose_echo, "DEVIATION", "3");
|
||||
|
||||
/* maximum number of iterations to average */
|
||||
set_if_unset(echo, verbose_echo, "AVERAGE", "3");
|
||||
|
||||
/* end of settings, separate the output */
|
||||
echo("\n");
|
||||
|
||||
|
||||
/**************************
|
||||
* output run-time status *
|
||||
**************************/
|
||||
|
||||
/* determine raytracer version */
|
||||
echo("RT reports the following version information:\n");
|
||||
{
|
||||
struct bu_vls rtout = BU_VLS_INIT_ZERO;
|
||||
struct bu_vls grep1 = BU_VLS_INIT_ZERO;
|
||||
struct bu_vls grep2 = BU_VLS_INIT_ZERO;
|
||||
|
||||
RT = getenv("RT");
|
||||
|
||||
bu_exec(RT, NULL, &rtout, &rtout);
|
||||
bu_grep("BRL-CAD", bu_vls_cstr(&rtout), stashline, (void *)&grep1);
|
||||
bu_grep("Release", bu_vls_cstr(&grep1), stashline, (void *)&grep2);
|
||||
if (bu_vls_strlen(&grep2) > 0) {
|
||||
echo("%s\n", bu_vls_addr(&grep2));
|
||||
} else {
|
||||
echo("Unknown\n\n");
|
||||
}
|
||||
|
||||
bu_vls_free(&grep2);
|
||||
bu_vls_free(&grep1);
|
||||
bu_vls_free(&rtout);
|
||||
}
|
||||
|
||||
/* let the user know about how long this might take */
|
||||
{
|
||||
struct bu_vls elapsed = BU_VLS_INIT_ZERO;
|
||||
double mintime = 6.0 * TIMEFRAME;
|
||||
double maxtime = 6.0 * MAXTIME;
|
||||
double estimate = 3.0 * mintime;
|
||||
|
||||
if (mintime < 1.0)
|
||||
mintime = 0; /* zero is okay */
|
||||
bu_vls_sprintf(&elapsed, "%s", format_elapsed(mintime));
|
||||
echo("Minimum run time is %s\n", bu_vls_cstr(&elapsed));
|
||||
|
||||
if (maxtime < 1.0)
|
||||
maxtime = 1.0; /* zero would be misleading */
|
||||
bu_vls_sprintf(&elapsed, "%s", format_elapsed(maxtime));
|
||||
echo("Maximum run time is %s\n", bu_vls_cstr(&elapsed));
|
||||
|
||||
if (estimate > maxtime)
|
||||
estimate = maxtime;
|
||||
|
||||
echo("Estimated time is %s\n", format_elapsed(estimate));
|
||||
}
|
||||
|
||||
/************************
|
||||
* Run the actual tests *
|
||||
************************/
|
||||
|
||||
start = bu_gettime();
|
||||
echo("Running the BRL-CAD Benchmark tests... please wait ...\n\n");
|
||||
|
||||
ret += bench("moss");
|
||||
ret += bench("world");
|
||||
ret += bench("star");
|
||||
ret += bench("bldg391");
|
||||
ret += bench("m35");
|
||||
ret += bench("sphflake");
|
||||
|
||||
echo("\n... Done.\n");
|
||||
echo("Total testing time elapsed: %.2lfs\n", format_elapsed(bu_gettime() - start));
|
||||
|
||||
if (ret != 0) {
|
||||
echo("\n");
|
||||
echo("THE BENCHMARK ANALYSIS DID NOT COMPLETE SUCCESSFULLY.\n");
|
||||
echo("\n");
|
||||
echo("A benchmark failure means this is not a viable install of BRL-CAD. This may be\n");
|
||||
echo("a new bug or (more likely) is a compilation configuration error. Ensure your\n");
|
||||
echo("compiler has strict aliasing disabled, compilation is optimized, and you have\n");
|
||||
echo("installed BRL-CAD (some platforms require this). If you still get a failure,\n");
|
||||
echo("please report your configuration information to benchmark@brlcad.org\n");
|
||||
echo("\n");
|
||||
echo("Output was saved to %s from %s\n", LOG, bu_dir(NULL, 0, BU_DIR_CURR, NULL));
|
||||
echo("Run '%s clean' to remove generated pix files.\n", av[0]);
|
||||
echo("Benchmark testing failed.\n");
|
||||
return 2;
|
||||
}
|
||||
|
||||
/******************************
|
||||
* compute and output results *
|
||||
******************************/
|
||||
{
|
||||
struct bu_vls performance = BU_VLS_INIT_ZERO;
|
||||
ret = perf(&performance, /*...!!!...*/"moss world star bldg391 m35 sphflake", (const char **)argv);
|
||||
|
||||
if (ret == 0) {
|
||||
/* !!! write performance to summary */
|
||||
}
|
||||
|
||||
echo("\n");
|
||||
echo("The following files have been generated and/or modified:\n");
|
||||
echo(" *.log ..... final log files for each individual raytrace test\n");
|
||||
echo(" *.pix ..... final pix image files for each individual raytrace test\n");
|
||||
echo(" *.log.* ... log files for previous frames and raytrace tests\n");
|
||||
echo(" *.pix.* ... pix image files for previous frames and raytrace tests\n");
|
||||
echo(" summary ... performance results summary, 2 lines per run\n");
|
||||
echo("\n");
|
||||
echo("Run '%s clean' to remove generated pix files.\n", av[0]);
|
||||
echo("\n");
|
||||
|
||||
echo("Summary:\n");
|
||||
echo("%s\n", bu_vls_cstr(&performance));
|
||||
|
||||
{
|
||||
double vgr = calculate_vgr(&performance);
|
||||
|
||||
if (vgr > 0.0) {
|
||||
echo("\n");
|
||||
echo("#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\n");
|
||||
echo("Benchmark results indicate an approximate VGR performance metric of %ld\n", (long int)vgr);
|
||||
echo("Logarithmic VGR metric is %.2lf (natural logarithm is %.2lf)\n", log10(vgr), log(vgr));
|
||||
echo("#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\n");
|
||||
echo("\n");
|
||||
echo("These numbers seem to indicate that this machine is approximately %ld times", (long int)vgr);
|
||||
echo("faster than the reference machine being used for comparison, a VAX 11/780\n");
|
||||
echo("running 4.3 BSD named VGR. These results are in fact approximately %.2lf", log10(vgr));
|
||||
echo("orders of magnitude faster than the reference.\n");
|
||||
echo("\n");
|
||||
|
||||
echo("Here are some other approximated VGR results for perspective:\n");
|
||||
echo(" 120 on a 200MHz R5000 running IRIX 6.5\n");
|
||||
echo(" 250 on a 500 MHz Pentium III running RedHat 7.1\n");
|
||||
echo(" 550 on a dual 450 MHz UltraSPARC II running SunOS 5.8\n");
|
||||
echo(" 1000 on a dual 500 MHz G4 PowerPC running Mac OS X 10.2\n");
|
||||
echo(" 1500 on a dual 1.66 GHz Athlon MP 2000+ running RedHat 7.3\n");
|
||||
echo(" 52000 on a 4x4 CPU 2.93 GHz Xeon running RHEL Server 5.4\n");
|
||||
echo(" 65000 on a 512 CPU 400 MHz R12000 Running IRIX 6.5\n");
|
||||
echo("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
/* TODO: !!! determine if this build is optimized or not */
|
||||
/* TODO: !!! determine if this build has run-time debugging */
|
||||
/* TODO: !!! determine if this build has compile-time debugging */
|
||||
}
|
||||
|
||||
/* if this was a valid benchmark run, encourage submission of results. */
|
||||
echo("You are encouraged to submit your benchmark results and system\n");
|
||||
echo("configuration information to benchmark@brlcad.org\n");
|
||||
echo(" ~~~~~~~~~~~~~~~~~~~~\n");
|
||||
|
||||
/* include information about the operating system and hardware in the log */
|
||||
echo("Including additional kernel and hardware information in the log.\n\n");
|
||||
|
||||
/* TODO: !!! print out system information via sysctl/prtdiag/prtconf/hinv/etc */
|
||||
bu_vls_free(&rtargs);
|
||||
|
||||
bu_vls_printf(&vp,
|
||||
"%s/../share/brlcad/*.*.*/doc/benchmark.tr "
|
||||
"%s/share/brlcad/*.*.*/doc/benchmark.tr "
|
||||
"%s/share/brlcad/doc/benchmark.tr "
|
||||
"%s/share/doc/benchmark.tr "
|
||||
"%s/doc/benchmark.tr "
|
||||
"%s/../doc/benchmark.tr "
|
||||
"./benchmark.tr",
|
||||
thisp, thisp, thisp, thisp, thisp, thisp);
|
||||
bu_argv_from_string(argv, 32, bu_vls_addr(&vp));
|
||||
|
||||
bu_free(thisp, "dirname this");
|
||||
|
||||
look_for(NULL, file, "BENCHMARK_TR", "benchmark", (const char **)argv);
|
||||
bu_vls_trunc(&vp, 0);
|
||||
|
||||
/* TODO: look for benchmark document here? */
|
||||
|
||||
echo("Output was saved to %s from %s\n", LOG, bu_dir(NULL, 0, BU_DIR_CURR, NULL));
|
||||
echo("Benchmark testing complete.\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* tab-width: 8
|
||||
* mode: C
|
||||
* indent-tabs-mode: t
|
||||
* c-file-style: "stroustrup"
|
||||
* End:
|
||||
* ex: shiftwidth=4 tabstop=8
|
||||
*/
|
||||
@@ -1,95 +0,0 @@
|
||||
/* C L E A N . C
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2011-2020 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.
|
||||
*/
|
||||
/** @file clean.c
|
||||
*
|
||||
* utility functions to clean output files
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include "bu/file.h"
|
||||
#include "bu/str.h"
|
||||
#include "bu/vls.h"
|
||||
|
||||
|
||||
/* TODO: !!! needed */
|
||||
int bu_file_move(const char *fn1, const char *fn2) {if (!fn1 || !fn2) return -1; return 0;}
|
||||
extern int bu_file_copy(const char *fn1, const char *fn2);
|
||||
|
||||
|
||||
/**
|
||||
* conditionally removes or saves any .pix or .log files output.
|
||||
*/
|
||||
void
|
||||
clean_obstacles(const char *base_filename, int id)
|
||||
{
|
||||
struct bu_vls vp = BU_VLS_INIT_ZERO;
|
||||
struct bu_vls vpid = BU_VLS_INIT_ZERO;
|
||||
|
||||
if (BU_STR_EMPTY(base_filename))
|
||||
return;
|
||||
|
||||
/* look for an image file */
|
||||
bu_vls_printf(&vp, "%s.pix", base_filename);
|
||||
if (bu_file_exists(bu_vls_cstr(&vp), NULL)) {
|
||||
bu_vls_printf(&vpid, "%s-%d.pix", base_filename, id);
|
||||
if (bu_file_exists(bu_vls_cstr(&vpid), NULL)) {
|
||||
bu_file_delete(bu_vls_cstr(&vp));
|
||||
}
|
||||
bu_file_move(bu_vls_cstr(&vp), bu_vls_cstr(&vpid));
|
||||
}
|
||||
|
||||
/* look for a log file */
|
||||
bu_vls_printf(&vp, "%s.log", base_filename);
|
||||
if (bu_file_exists(bu_vls_cstr(&vp), NULL)) {
|
||||
bu_vls_printf(&vpid, "%s-%d.log", base_filename, id);
|
||||
if (bu_file_exists(bu_vls_cstr(&vpid), NULL)) {
|
||||
bu_file_delete(bu_vls_cstr(&vp));
|
||||
}
|
||||
bu_file_move(bu_vls_cstr(&vp), bu_vls_cstr(&vpid));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* tab-width: 8
|
||||
* mode: C
|
||||
* indent-tabs-mode: t
|
||||
* c-file-style: "stroustrup"
|
||||
* End:
|
||||
* ex: shiftwidth=4 tabstop=8
|
||||
*/
|
||||
@@ -1,96 +0,0 @@
|
||||
/* C O M P U T E . C
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2011-2020 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.
|
||||
*/
|
||||
/** @file compute.c
|
||||
*
|
||||
* run and computation functions
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
||||
/**
|
||||
* average [..numbers..]
|
||||
*
|
||||
* computes the integer average for a set of given numbers
|
||||
*/
|
||||
double
|
||||
average(int ac, double av[])
|
||||
{
|
||||
double total = 0.0;
|
||||
|
||||
if (ac < 1)
|
||||
return -0.0;
|
||||
|
||||
while (ac-- > 0) {
|
||||
total += av[ac];
|
||||
}
|
||||
return total / ac;
|
||||
}
|
||||
|
||||
|
||||
double
|
||||
variance(int ac, double av[])
|
||||
{
|
||||
double avg;
|
||||
double err = 0.0;
|
||||
double num = ac;
|
||||
|
||||
if (ac < 1)
|
||||
return -0.0;
|
||||
else if (ac == 1)
|
||||
return 0.0;
|
||||
|
||||
avg = average(ac, av);
|
||||
|
||||
/* compute variance numerator for the population */
|
||||
while (ac-- > 0) {
|
||||
err += (av[ac] - avg) * (av[ac] - avg);
|
||||
}
|
||||
|
||||
/* return the sample variance */
|
||||
return err / (num - 1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* tab-width: 8
|
||||
* mode: C
|
||||
* indent-tabs-mode: t
|
||||
* c-file-style: "stroustrup"
|
||||
* End:
|
||||
* ex: shiftwidth=4 tabstop=8
|
||||
*/
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
# L G T . S H
|
||||
# BRL-CAD
|
||||
#
|
||||
# Copyright (c) 2004-2020 United States Government as represented by
|
||||
# Copyright (c) 2004-2011 United States Government as represented by
|
||||
# the U.S. Army Research Laboratory.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
.TH PIXCMP 1 BRL-CAD
|
||||
.\" P I X C M P . 1
|
||||
.\" BRL-CAD
|
||||
.\"
|
||||
.\" Copyright (c) 2005-2011 United States Government as represented by
|
||||
.\" the U.S. Army Research Laboratory.
|
||||
.\"
|
||||
.\" Redistribution and use in source (Docbook format) and 'compiled'
|
||||
.\" forms (PDF, PostScript, HTML, RTF, etc), with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\"
|
||||
.\" 1. Redistributions of source code (Docbook format) must retain the
|
||||
.\" above copyright notice, this list of conditions and the following
|
||||
.\" disclaimer.
|
||||
.\"
|
||||
.\" 2. Redistributions in compiled form (transformed to other DTDs,
|
||||
.\" converted to PDF, PostScript, HTML, RTF, and other formats) 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 documentation without specific prior
|
||||
.\" written permission.
|
||||
.\"
|
||||
.\" THIS DOCUMENTATION 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 DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\".\".\"
|
||||
.SH NAME
|
||||
pixcmp \- compare two pix image files pixel by pixel
|
||||
.SH SYNOPSIS
|
||||
.B pixcmp
|
||||
.RB [\fIOPTIONS\fR]
|
||||
\fIFILE1\fR [\fIFILE2\fR [\fISKIP1\fR [\fISKIP2\fR]]]
|
||||
.SH DESCRIPTION
|
||||
.I pixcmp
|
||||
is a program to compare two BRL-CAD pix image files pixel by pixel. The following \fIOPTIONS\fR are available:
|
||||
.TP
|
||||
\fB\-l\fR
|
||||
Output pixel numbers, counting from 1, and values for all pixels that differ.
|
||||
.TP
|
||||
\fB\-b\fR
|
||||
Use bytes instead of pixels for both processing and output. With this option, the \fB-i\fR SKIP values should be specified as bytes instead of pixels.
|
||||
.TP
|
||||
\fB\-i\fR \fISKIP\fR
|
||||
Skip the first SKIP pixels of input (for FILE1 and FILE2).
|
||||
.TP
|
||||
\fB\-i\fR \fISKIP1\fR:\fISKIP2\fR
|
||||
Skip the first SKIP1 pixels of FILE1 and the first SKIP2 pixels of FILE2.
|
||||
.TP
|
||||
\fB\-s\fR
|
||||
Silent output. Only return an exit status.
|
||||
.PP
|
||||
SKIP1 and SKIP2 are the number of pixels to skip in each file.
|
||||
.PP
|
||||
If FILE is \`\fB\-\fR\' or missing,
|
||||
.I pixcmp
|
||||
reads from the standard input.
|
||||
.SH RETURN VALUES
|
||||
.PP
|
||||
The
|
||||
.I pixcmp
|
||||
utility returns \fB0\fR if there are no differences, \fB1\fR if there are only off-by-one differences, \fB2\fR if there are off-by-many errors, \fB126\fR if there are file processing problems, and \fB127\fR if there are argument processing or usage errors.
|
||||
.SH EXAMPLES
|
||||
.TP
|
||||
\fBpixcmp -l file1 file2\fR
|
||||
.br
|
||||
The two files are compared pixel by pixel with each difference printed instead of just the summary.
|
||||
.TP
|
||||
\fBpixdiff file1.pix file2.pix | pixcmp - file3.pix\fR
|
||||
.br
|
||||
The
|
||||
.I pixdiff
|
||||
tool compares the pixels in file1.pix with those in file2.pix and then outputs a resulting \`diff\' image which is then processed by
|
||||
.I pixcmp
|
||||
as input and compared against file3.pix, reporting on the differences.
|
||||
.SH SEE ALSO
|
||||
brlcad(1), pixdiff(1), pix(5), bw(5)
|
||||
.SH AUTHOR
|
||||
Christopher Sean Morrison
|
||||
.br
|
||||
Charles M. Kennedy
|
||||
.br
|
||||
Michael John Muuss
|
||||
.SH "BUG REPORTS"
|
||||
Reports of bugs or problems should be submitted via electronic
|
||||
mail to <devs@brlcad.org>.
|
||||
+16
-28
@@ -1,7 +1,7 @@
|
||||
/* P I X C M P . C
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2004-2020 United States Government as represented by
|
||||
* Copyright (c) 2004-2011 United States Government as represented by
|
||||
* the U.S. Army Research Laboratory.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -31,16 +31,13 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include "bio.h"
|
||||
|
||||
#include "bu/app.h"
|
||||
#include "bu/getopt.h"
|
||||
#include "bu/log.h"
|
||||
#include "bu/file.h"
|
||||
#include "bu/str.h"
|
||||
#include "bu.h"
|
||||
|
||||
|
||||
/* exit codes for argument processing errors */
|
||||
#define OPTS_ERROR 127
|
||||
@@ -77,7 +74,7 @@ usage(const char *name)
|
||||
|
||||
|
||||
HIDDEN void
|
||||
handle_i_opt(const char *arg, size_t *skip1, size_t *skip2)
|
||||
handle_i_opt(const char *arg, long *skip1, long *skip2)
|
||||
{
|
||||
const char *endptr = arg;
|
||||
if ((arg == NULL) || ((skip1 == NULL) && (skip2 == NULL))) {
|
||||
@@ -98,7 +95,7 @@ handle_i_opt(const char *arg, size_t *skip1, size_t *skip2)
|
||||
if (skip2) {
|
||||
*skip2 = strtol(arg, NULL, 10);
|
||||
}
|
||||
if (skip1 && skip2) {
|
||||
if (skip1) {
|
||||
*skip1 = *skip2;
|
||||
}
|
||||
} else if (endptr[0] == ':') {
|
||||
@@ -121,21 +118,19 @@ main(int argc, char *argv[])
|
||||
{
|
||||
FILE *f1 = NULL;
|
||||
FILE *f2 = NULL;
|
||||
struct stat sf1, sf2;
|
||||
|
||||
size_t matching = 0;
|
||||
size_t off1 = 0;
|
||||
size_t offmany = 0;
|
||||
long matching = 0;
|
||||
long off1 = 0;
|
||||
long offmany = 0;
|
||||
|
||||
int c;
|
||||
int list_pixel_values = 0;
|
||||
int print_bytes = 0;
|
||||
int silent = 0;
|
||||
size_t f1_skip = 0;
|
||||
size_t f2_skip = 0;
|
||||
size_t bytes = 0;
|
||||
long f1_skip = 0;
|
||||
long f2_skip = 0;
|
||||
|
||||
bu_setprogname(argv[0]);
|
||||
long int bytes = 0;
|
||||
|
||||
/* process opts */
|
||||
while ((c = bu_getopt(argc, argv, "lbi:s")) != -1) {
|
||||
@@ -204,13 +199,6 @@ main(int argc, char *argv[])
|
||||
exit(FILE_ERROR);
|
||||
}
|
||||
|
||||
stat(argv[0], &sf1);
|
||||
stat(argv[1], &sf2);
|
||||
|
||||
if (sf1.st_size != sf2.st_size) {
|
||||
bu_exit(FILE_ERROR, "Different file sizes found: %s(%d) and %s(%d). Cannot perform pixcmp.\n", argv[0], (int)sf1.st_size, argv[1], (int)sf2.st_size);
|
||||
}
|
||||
|
||||
if (!print_bytes) {
|
||||
f1_skip *= 3;
|
||||
f2_skip *= 3;
|
||||
@@ -218,7 +206,7 @@ main(int argc, char *argv[])
|
||||
|
||||
/* skip requested pixels/bytes in FILE1 */
|
||||
if (f1_skip && fseek(f1, f1_skip, SEEK_SET)) {
|
||||
bu_log("ERROR: Unable to seek %zd %s%s in FILE1\n",
|
||||
bu_log("ERROR: Unable to seek %ld %s%s in FILE1\n",
|
||||
f1_skip,
|
||||
print_bytes?"byte":"pixel",
|
||||
f1_skip==1?"":"s");
|
||||
@@ -228,7 +216,7 @@ main(int argc, char *argv[])
|
||||
|
||||
/* skip requested pixels in FILE2 */
|
||||
if (f2_skip && fseek(f2, f2_skip, SEEK_SET)) {
|
||||
bu_log("ERROR: Unable to seek %zd %s%s in FILE2\n",
|
||||
bu_log("ERROR: Unable to seek %ld %s%s in FILE2\n",
|
||||
f1_skip,
|
||||
print_bytes?"byte":"pixel",
|
||||
f1_skip==1?"":"s");
|
||||
@@ -303,7 +291,7 @@ main(int argc, char *argv[])
|
||||
|
||||
/* print summary */
|
||||
if (!silent) {
|
||||
printf("pixcmp %s: %8zd matching, %8zd off by 1, %8zd off by many\n",
|
||||
printf("pixcmp %s: %8ld matching, %8ld off by 1, %8ld off by many\n",
|
||||
print_bytes?"bytes":"pixels",
|
||||
matching, off1, offmany);
|
||||
}
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
set(BENCHMARK_PIX
|
||||
bldg391.pix
|
||||
m35.pix
|
||||
moss.pix
|
||||
sphflake.pix
|
||||
star.pix
|
||||
world.pix
|
||||
)
|
||||
|
||||
|
||||
set(PIX_LOG
|
||||
bldg391.log
|
||||
m35.log
|
||||
moss.log
|
||||
sphflake.log
|
||||
star.log
|
||||
world.log
|
||||
)
|
||||
|
||||
BRLCAD_ADDDATA(BENCHMARK_PIX pix)
|
||||
BRLCAD_ADDDATA(PIX_LOG pix)
|
||||
|
||||
CMAKEFILES(${BENCHMARK_PIX})
|
||||
CMAKEFILES(${PIX_LOG})
|
||||
CMAKEFILES(CMakeLists.txt)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
-112
@@ -1,112 +0,0 @@
|
||||
/* R U N . C
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2011-2020 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.
|
||||
*/
|
||||
/** @file run.c
|
||||
*
|
||||
* run functions
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "bu.h"
|
||||
|
||||
|
||||
/* TODO: !!! obviously */
|
||||
struct bu_vls bu_argv_to_string(int ac, const char *av[]) {struct bu_vls v = BU_VLS_INIT_ZERO; if (ac) {bu_vls_printf(&v, "%s", av[0]);} return v;}
|
||||
int (*echo)(const char *, ...) = &bu_log;
|
||||
extern int bu_exec(const char *program, void *data, struct bu_vls *out, struct bu_vls *err);
|
||||
|
||||
|
||||
/**
|
||||
* run file_prefix geometry hypersample [..rt args..]
|
||||
* runs a single benchmark test assuming the following are preset:
|
||||
*
|
||||
* RT := path/name of the raytracer to use
|
||||
* DB := path to the geometry file
|
||||
*
|
||||
* it is assumed that stdin will be the view/frame input
|
||||
*/
|
||||
int
|
||||
run(int ac, char *av[])
|
||||
{
|
||||
int retval;
|
||||
const char *run_geomname = av[0];
|
||||
const char *run_geometry = av[1];
|
||||
long int hypersample = strtod(av[2], NULL);
|
||||
struct bu_vls args = BU_VLS_INIT_ZERO;
|
||||
av += 3;
|
||||
ac -= 3;
|
||||
|
||||
args = bu_argv_to_string(ac, (const char **)av);
|
||||
echo("DEBUG: Running %s -B -M -s512 -H%ld -J0 %s -o %s.pix %s/%s.g %s\n", av[0], hypersample, args, run_geomname, run_geomname, run_geometry);
|
||||
|
||||
/* pipe(stdin_for_bu_exec); */
|
||||
retval = bu_exec("program", NULL, NULL, NULL);
|
||||
echo("DEBUG: Running %s returned %d\n", av[0], retval);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* runs a series of benchmark tests assuming the following are preset:
|
||||
*
|
||||
* TIMEFRAME := maximum amount of wallclock time to spend per test
|
||||
*
|
||||
* is is assumed that stdin will be the view/frame input
|
||||
*/
|
||||
int
|
||||
bench(const char *test_name)
|
||||
{
|
||||
if (!test_name)
|
||||
return -1;
|
||||
|
||||
/* FIXME: !!! lots missing here */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* tab-width: 8
|
||||
* mode: C
|
||||
* indent-tabs-mode: t
|
||||
* c-file-style: "stroustrup"
|
||||
* End:
|
||||
* ex: shiftwidth=4 tabstop=8
|
||||
*/
|
||||
+136
-224
@@ -2,7 +2,7 @@
|
||||
# R U N . S H
|
||||
# BRL-CAD
|
||||
#
|
||||
# Copyright (c) 2004-2020 United States Government as represented by
|
||||
# Copyright (c) 2004-2011 United States Government as represented by
|
||||
# the U.S. Army Research Laboratory.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@@ -51,9 +51,9 @@
|
||||
export PATH || (echo "This isn't sh."; sh $0 $*; kill $$)
|
||||
|
||||
# save the precious args
|
||||
ARGS="$@"
|
||||
NAME_OF_THIS="`basename \"$0\"`"
|
||||
PATH_TO_THIS="`dirname \"$0\"`"
|
||||
ARGS="$*"
|
||||
NAME_OF_THIS=`basename $0`
|
||||
PATH_TO_THIS=`dirname $0`
|
||||
THIS="$PATH_TO_THIS/$NAME_OF_THIS"
|
||||
|
||||
# sanity check
|
||||
@@ -159,59 +159,66 @@ booleanize ( ) {
|
||||
}
|
||||
|
||||
|
||||
# any unrecognized args are assumed to be RT args (e.g., -P4)
|
||||
RTARGS=""
|
||||
|
||||
# process the argument list for commands
|
||||
while test $# -gt 0 ; do
|
||||
|
||||
arg="$1"
|
||||
shift
|
||||
|
||||
NEWARGS=""
|
||||
for arg in $ARGS ; do
|
||||
case "x$arg" in
|
||||
x*[cC][lL][eE][aA][nN])
|
||||
CLEAN=1
|
||||
shift
|
||||
;;
|
||||
x*[cC][lL][oO][bB][bB][eE][rR])
|
||||
CLEAN=1
|
||||
CLOBBER=1
|
||||
shift
|
||||
;;
|
||||
x*[hH])
|
||||
HELP=1
|
||||
shift
|
||||
;;
|
||||
x*[hH][eE][lL][pP])
|
||||
HELP=1
|
||||
shift
|
||||
;;
|
||||
x*[iI][nN][sS][tT][rR][uU][cC][tT]*)
|
||||
INSTRUCTIONS=1
|
||||
shift
|
||||
;;
|
||||
x*[sS][tT][aA][rR][tT])
|
||||
shift
|
||||
;;
|
||||
x*[qQ][uU][iI][eE][tT])
|
||||
QUIET=1
|
||||
shift
|
||||
;;
|
||||
x*[vV][eE][rR][bB][oO][sS][eE])
|
||||
VERBOSE=1
|
||||
shift
|
||||
;;
|
||||
x*[rR][uU][nN])
|
||||
RUN=1
|
||||
shift
|
||||
;;
|
||||
x*=*)
|
||||
VAR=`echo $arg | sed 's/=.*//g'`
|
||||
if test ! "x$VAR" = "x" ; then
|
||||
VAL=`echo $arg | sed 's/.*=//g'`
|
||||
CMD="$VAR=\"$VAL\""
|
||||
CMD="$VAR=$VAL"
|
||||
eval $CMD
|
||||
export $VAR
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
x*)
|
||||
echo "WARNING: Passing unknown option [$arg] to RT"
|
||||
RTARGS="$RTARGS $arg"
|
||||
echo "WARNING: Passing unknown option [$1] to RT"
|
||||
NEWARGS="$NEWARGS $arg"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# reload post-shifting
|
||||
ARGS="$NEWARGS"
|
||||
|
||||
# validate and clean up options (all default to 0)
|
||||
booleanize CLOBBER HELP INSTRUCTIONS QUIET VERBOSE RUN
|
||||
|
||||
@@ -234,14 +241,14 @@ if test "x$HELP" = "x1" ; then
|
||||
echo "Available options:"
|
||||
echo " RT=/path/to/rt_binary (e.g., rt)"
|
||||
echo " DB=/path/to/reference/geometry (e.g. ../db)"
|
||||
echo " PIX=/path/to/reference/images (e.g., ./ref)"
|
||||
echo " LOG=/path/to/reference/logs (e.g., ./ref)"
|
||||
echo " PIX=/path/to/reference/images (e.g., ../pix)"
|
||||
echo " LOG=/path/to/reference/logs (e.g., ../pix)"
|
||||
echo " CMP=/path/to/pixcmp_tool (e.g., pixcmp)"
|
||||
echo " ELP=/path/to/time_tool (e.g., elapsed.sh)"
|
||||
echo " TIMEFRAME=#seconds (default 32)"
|
||||
echo " MAXTIME=#seconds (default 300)"
|
||||
echo " DEVIATION=%deviation (default 2)"
|
||||
echo " AVERAGE=#frames (default 5)"
|
||||
echo " DEVIATION=%deviation (default 3)"
|
||||
echo " AVERAGE=#frames (default 3)"
|
||||
echo ""
|
||||
echo "Available RT options:"
|
||||
echo " -P# (e.g., -P1 to force single CPU)"
|
||||
@@ -271,7 +278,7 @@ test the performance of a system by iteratively rendering several
|
||||
well-known datasets into 512x512 images where performance metrics are
|
||||
documented and fairly well understood. The local machine's
|
||||
performance is compared to the base system (called VGR) and a numeric
|
||||
"VGR" multiplier of performance is computed. This number is a
|
||||
"VGR" mulitplier of performance is computed. This number is a
|
||||
simplified metric from which one may qualitatively compare cpu and
|
||||
cache performance, versions of BRL-CAD, and different compiler
|
||||
characteristics.
|
||||
@@ -284,8 +291,8 @@ it may be run in a stand-alone environment:
|
||||
|
||||
RT - the rt binary (e.g. ../src/rt/rt or /usr/brlcad/bin/rt)
|
||||
DB - the directory containing the reference geometry (e.g. ../db)
|
||||
PIX - the directory containing the reference images (e.g. ./ref)
|
||||
LOG - the directory containing the reference logs (e.g. ./ref)
|
||||
PIX - the directory containing the reference images (e.g. ../pix)
|
||||
LOG - the directory containing the reference logs (e.g. ../pix)
|
||||
CMP - the name of a pixcmp tool (e.g. ./pixcmp or cmp)
|
||||
ELP - the name of an elapsed time tool (e.g. ../sh/elapsed.sh)
|
||||
TIMEFRAME - the minimum number of seconds each trace needs to take
|
||||
@@ -311,7 +318,7 @@ additional rays are hypersampled but without any jitter, so it's
|
||||
effectively performing a multiplier amount of work over the initial
|
||||
frame.
|
||||
|
||||
Please send your BRL-CAD Benchmark results to the developers along with
|
||||
Plese send your BRL-CAD Benchmark results to the developers along with
|
||||
detailed system information to <devs@brlcad.org>. Include at least:
|
||||
|
||||
0) Compiler name and version (e.g. gcc --version)
|
||||
@@ -343,19 +350,19 @@ if test "x$CLEAN" = "x1" ; then
|
||||
$ECHO
|
||||
|
||||
for i in moss world star bldg391 m35 sphflake ; do
|
||||
$ECHO rm -f $i.log $i.pix $i-[0-9]*.log $i-[0-9]*.pix
|
||||
rm -f $i.log $i.pix $i-[0-9]*.log $i-[0-9]*.pix
|
||||
$ECHO rm -f $i.log $i.pix $i.log.[0-9]* $i.pix.[0-9]*
|
||||
rm -f $i.log $i.pix $i.log.[0-9]* $i.pix.[0-9]*
|
||||
done
|
||||
if test "x$CLOBBER" = "x1" ; then
|
||||
# NEVER automatically delete the summary file, but go ahead with the rest
|
||||
for i in run-[0-9]*-benchmark.log ; do
|
||||
for i in benchmark-[0-9]*-run.log ; do
|
||||
$ECHO rm -f $i
|
||||
rm -f $i
|
||||
done
|
||||
fi
|
||||
|
||||
printed=no
|
||||
for i in summary run-[0-9]*-benchmark.log ; do
|
||||
for i in summary benchmark-[0-9]*-run.log ; do
|
||||
if test -f "$i" ; then
|
||||
if test "x$printed" = "xno" ; then
|
||||
$ECHO
|
||||
@@ -424,13 +431,13 @@ $ECHO
|
||||
########################
|
||||
look_for ( ) {
|
||||
|
||||
|
||||
# utility function to search for a certain filesystem object in a
|
||||
# list of paths.
|
||||
|
||||
look_for_type="$1" ; shift
|
||||
look_for_label="$1" ; shift
|
||||
look_for_var="$1" ; shift
|
||||
look_for_dirs="$*"
|
||||
|
||||
if test "x$look_for_label" != "x" ; then
|
||||
$VERBOSE_ECHO "Looking for $look_for_label"
|
||||
@@ -438,11 +445,11 @@ look_for ( ) {
|
||||
|
||||
# get the value of the variable
|
||||
look_for_var_var="echo \"\$$look_for_var\""
|
||||
look_for_var_val="`eval \"${look_for_var_var}\"`"
|
||||
look_for_var_val="`eval ${look_for_var_var}`"
|
||||
|
||||
if test "x${look_for_var_val}" = "x" ; then
|
||||
for look_for_dir in "$@" ; do
|
||||
shift
|
||||
for look_for_dir in $look_for_dirs ; do
|
||||
|
||||
opts="-r"
|
||||
case "x$look_for_type" in
|
||||
xfile)
|
||||
@@ -453,10 +460,10 @@ look_for ( ) {
|
||||
opts="-d -x"
|
||||
;;
|
||||
xexe*)
|
||||
opts="$opts -f -x"
|
||||
opts="$opts -f -r -x"
|
||||
;;
|
||||
xscr*)
|
||||
opts="$opts -f -x"
|
||||
opts="$opts -f -r -x"
|
||||
;;
|
||||
esac
|
||||
look_for_failed=no
|
||||
@@ -484,61 +491,63 @@ look_for ( ) {
|
||||
}
|
||||
|
||||
look_for executable "the BRL-CAD raytracer" RT \
|
||||
"${PATH_TO_THIS}/rt" \
|
||||
"${PATH_TO_THIS}/../bin/rt" \
|
||||
"${PATH_TO_THIS}/../src/rt/rt" \
|
||||
"${PATH_TO_THIS}/src/rt/rt" \
|
||||
${PATH_TO_THIS}/rt \
|
||||
${PATH_TO_THIS}/../bin/rt \
|
||||
${PATH_TO_THIS}/../src/rt/rt \
|
||||
${PATH_TO_THIS}/src/rt/rt \
|
||||
./rt \
|
||||
../brlcadInstall/bin/rt.exe \
|
||||
../src/rt/rt
|
||||
|
||||
look_for file "a benchmark geometry directory" DB \
|
||||
"${PATH_TO_THIS}/../share/brlcad/*.*.*/db/moss.g" \
|
||||
"${PATH_TO_THIS}/share/brlcad/*.*.*/db/moss.g" \
|
||||
"${PATH_TO_THIS}/../share/brlcad/db/moss.g" \
|
||||
"${PATH_TO_THIS}/share/brlcad/db/moss.g" \
|
||||
"${PATH_TO_THIS}/../share/db/moss.g" \
|
||||
"${PATH_TO_THIS}/share/db/moss.g" \
|
||||
"${PATH_TO_THIS}/../db/moss.g" \
|
||||
"${PATH_TO_THIS}/db/moss.g" \
|
||||
${PATH_TO_THIS}/../share/brlcad/*.*.*/db/moss.g \
|
||||
${PATH_TO_THIS}/share/brlcad/*.*.*/db/moss.g \
|
||||
${PATH_TO_THIS}/../share/brlcad/db/moss.g \
|
||||
${PATH_TO_THIS}/share/brlcad/db/moss.g \
|
||||
${PATH_TO_THIS}/../share/db/moss.g \
|
||||
${PATH_TO_THIS}/share/db/moss.g \
|
||||
${PATH_TO_THIS}/../db/moss.g \
|
||||
${PATH_TO_THIS}/db/moss.g \
|
||||
./db/moss.g \
|
||||
../brlcadInstall/share/brlcad/*.*.*/db/moss.g \
|
||||
../db/moss.g
|
||||
DB="`echo $DB | sed 's,/moss.g$,,'`"
|
||||
DB=`echo $DB | sed 's,/moss.g$,,'`
|
||||
|
||||
look_for directory "a benchmark reference image directory" PIX \
|
||||
"${PATH_TO_THIS}/../share/brlcad/*.*.*/pix" \
|
||||
"${PATH_TO_THIS}/share/brlcad/*.*.*/pix" \
|
||||
"${PATH_TO_THIS}/../share/brlcad/pix" \
|
||||
"${PATH_TO_THIS}/share/brlcad/pix" \
|
||||
"${PATH_TO_THIS}/../share/pix" \
|
||||
"${PATH_TO_THIS}/share/pix" \
|
||||
"${PATH_TO_THIS}/ref" \
|
||||
./ref
|
||||
${PATH_TO_THIS}/../share/brlcad/*.*.*/pix \
|
||||
${PATH_TO_THIS}/share/brlcad/*.*.*/pix \
|
||||
${PATH_TO_THIS}/../share/brlcad/pix \
|
||||
${PATH_TO_THIS}/share/brlcad/pix \
|
||||
${PATH_TO_THIS}/../share/pix \
|
||||
${PATH_TO_THIS}/share/pix \
|
||||
${PATH_TO_THIS}/../pix \
|
||||
${PATH_TO_THIS}/pix \
|
||||
./pix
|
||||
|
||||
look_for directory "a benchmark reference log directory" LOG \
|
||||
"$PIX" \
|
||||
"${PATH_TO_THIS}/../share/brlcad/*.*.*/pix" \
|
||||
"${PATH_TO_THIS}/share/brlcad/*.*.*/pix" \
|
||||
"${PATH_TO_THIS}/../share/brlcad/pix" \
|
||||
"${PATH_TO_THIS}/share/brlcad/pix" \
|
||||
"${PATH_TO_THIS}/../share/pix" \
|
||||
"${PATH_TO_THIS}/share/pix" \
|
||||
"${PATH_TO_THIS}/ref" \
|
||||
./ref
|
||||
$PIX \
|
||||
${PATH_TO_THIS}/../share/brlcad/*.*.*/pix \
|
||||
${PATH_TO_THIS}/share/brlcad/*.*.*/pix \
|
||||
${PATH_TO_THIS}/../share/brlcad/pix \
|
||||
${PATH_TO_THIS}/share/brlcad/pix \
|
||||
${PATH_TO_THIS}/../share/pix \
|
||||
${PATH_TO_THIS}/share/pix \
|
||||
${PATH_TO_THIS}/../pix \
|
||||
${PATH_TO_THIS}/pix \
|
||||
./pix
|
||||
|
||||
look_for executable "a pixel comparison utility" CMP \
|
||||
"${PATH_TO_THIS}/pixcmp" \
|
||||
"${PATH_TO_THIS}/../bin/pixcmp" \
|
||||
"${PATH_TO_THIS}/../bench/pixcmp" \
|
||||
${PATH_TO_THIS}/pixcmp \
|
||||
${PATH_TO_THIS}/../bin/pixcmp \
|
||||
${PATH_TO_THIS}/../bench/pixcmp \
|
||||
../brlcadInstall/bin/pixcmp.exe \
|
||||
./pixcmp
|
||||
|
||||
look_for script "a time elapsed utility" ELP \
|
||||
"${PATH_TO_THIS}/elapsed.sh" \
|
||||
"${PATH_TO_THIS}/../bin/elapsed.sh" \
|
||||
"${PATH_TO_THIS}/sh/elapsed.sh" \
|
||||
"${PATH_TO_THIS}/../sh/elapsed.sh" \
|
||||
${PATH_TO_THIS}/elapsed.sh \
|
||||
${PATH_TO_THIS}/../bin/elapsed.sh \
|
||||
${PATH_TO_THIS}/sh/elapsed.sh \
|
||||
${PATH_TO_THIS}/../sh/elapsed.sh \
|
||||
./elapsed.sh
|
||||
|
||||
|
||||
@@ -585,12 +594,9 @@ else
|
||||
fi
|
||||
|
||||
# more sanity checks, make sure the binaries and scripts run
|
||||
eval \"$RT\" -s1 -F/dev/debug \"${DB}/moss.g\" LIGHT > /dev/null 2>&1
|
||||
$RT -s1 -F/dev/debug ${DB}/moss.g LIGHT > /dev/null 2>&1
|
||||
ret=$?
|
||||
if test ! "x${ret}" = "x0" ; then
|
||||
$ECHO
|
||||
$ECHO "Running \"$RT\":"
|
||||
"$RT"
|
||||
$ECHO
|
||||
$ECHO "ERROR: RT does not seem to work as expected"
|
||||
exit 2
|
||||
@@ -599,7 +605,7 @@ fi
|
||||
# create a temporary file named "null", fopen("/dev/null") does not work on
|
||||
# windows (using cygwin), so punt.
|
||||
> null
|
||||
eval \"$CMP\" null null >/dev/null 2>&1
|
||||
$CMP null null >/dev/null 2>&1
|
||||
rm -f null
|
||||
|
||||
ret=$?
|
||||
@@ -608,12 +614,12 @@ if test ! "x${ret}" = "x0" ; then
|
||||
$ECHO "ERROR: CMP does not seem to work as expected"
|
||||
exit 2
|
||||
fi
|
||||
eval \"$ELP\" 0 > /dev/null 2>&1
|
||||
$ELP 0 > /dev/null 2>&1
|
||||
if test ! "x${ret}" = "x0" ; then
|
||||
$ECHO
|
||||
$ECHO "ERROR: ELP does not seem to work as expected"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# utility function to set a variable if it's not already set to something
|
||||
@@ -646,10 +652,10 @@ if test $MAXTIME -lt $TIMEFRAME ; then
|
||||
fi
|
||||
|
||||
# maximum deviation percentage
|
||||
set_if_unset DEVIATION 2
|
||||
set_if_unset DEVIATION 3
|
||||
|
||||
# maximum number of iterations to average
|
||||
set_if_unset AVERAGE 5
|
||||
set_if_unset AVERAGE 3
|
||||
|
||||
# end of settings, separate the output
|
||||
$ECHO
|
||||
@@ -661,7 +667,7 @@ $ECHO
|
||||
|
||||
# determine raytracer version
|
||||
$ECHO "RT reports the following version information:"
|
||||
versions="`$RT 2>&1 | grep BRL-CAD | grep Release`"
|
||||
versions="`$RT 2>&1 | grep BRL-CAD`"
|
||||
if test "x$versions" = "x" ; then
|
||||
$ECHO "Unknown"
|
||||
else
|
||||
@@ -669,27 +675,17 @@ else
|
||||
fi
|
||||
$ECHO
|
||||
|
||||
|
||||
# if expr works, let the user know about how long this might take
|
||||
if test "x`expr 1 - 1 2>/dev/null`" = "x0" ; then
|
||||
mintime="`expr 6 \* $TIMEFRAME`"
|
||||
if test $mintime -lt 1 ; then
|
||||
mintime=0 # zero is okay
|
||||
fi
|
||||
$ECHO "Minimum run time is `\"$ELP\" $mintime`"
|
||||
maxtime="`expr 6 \* $MAXTIME`"
|
||||
if test $maxtime -lt 1 ; then
|
||||
maxtime=1 # zero would be misleading
|
||||
fi
|
||||
$ECHO "Maximum run time is `\"$ELP\" $maxtime`"
|
||||
estimate="`expr 3 \* $mintime`"
|
||||
if test $estimate -lt 1 ; then
|
||||
estimate=1 # zero would be misleading
|
||||
fi
|
||||
mintime="`expr $TIMEFRAME \* 6`"
|
||||
$ECHO "Minimum run time is `$ELP $mintime`"
|
||||
maxtime="`expr $MAXTIME \* 6`"
|
||||
$ECHO "Maximum run time is `$ELP $maxtime`"
|
||||
estimate="`expr $mintime \* 3`"
|
||||
if test $estimate -gt $maxtime ; then
|
||||
estimate="$maxtime"
|
||||
fi
|
||||
$ECHO "Estimated time is `eval \\\"$ELP\\\" $estimate`"
|
||||
$ECHO "Estimated time is `$ELP $estimate`"
|
||||
$ECHO
|
||||
else
|
||||
$ECHO "WARNING: expr is unavailable, unable to compute statistics"
|
||||
@@ -719,9 +715,9 @@ run ( ) {
|
||||
|
||||
$VERBOSE_ECHO "DEBUG: Running $RT -B -M -s512 -H${run_hypersample} -J0 ${run_args} -o ${run_geomname}.pix ${DB}/${run_geomname}.g ${run_geometry}"
|
||||
|
||||
eval \"$RT\" -B -M -s512 -H${run_hypersample} -J0 ${run_args} \
|
||||
$RT -B -M -s512 -H${run_hypersample} -J0 ${run_args} \
|
||||
-o ${run_geomname}.pix \
|
||||
\"${DB}/${run_geomname}.g\" ${run_geometry} 1>&2 <<EOF
|
||||
${DB}/${run_geomname}.g ${run_geometry} 1>&2 <<EOF
|
||||
$run_view
|
||||
EOF
|
||||
retval=$?
|
||||
@@ -893,43 +889,6 @@ sqrt ( ) {
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# clean_obstacles base_filename
|
||||
# conditionally removes or saves backup of any .pix or .log files
|
||||
# output during bench.
|
||||
#
|
||||
clean_obstacles ( ) {
|
||||
base="$1" ; shift
|
||||
|
||||
if test "x$base" = "x" ; then
|
||||
$ECHO "ERROR: argument mismatch, cleaner is missing base name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# look for an image file
|
||||
if test -f ${base}.pix ; then
|
||||
if test -f ${base}-$$.pix ; then
|
||||
# backup already exists, just delete obstacle
|
||||
rm -f ${base}.pix
|
||||
else
|
||||
# no backup exists yet, so keep it
|
||||
mv -f ${base}.pix ${base}-$$.pix
|
||||
fi
|
||||
fi
|
||||
|
||||
# look for a log file
|
||||
if test -f ${base}.log ; then
|
||||
if test -f ${base}-$$.log ; then
|
||||
# backup already exists, just delete obstacle
|
||||
rm -f ${base}.log
|
||||
else
|
||||
# no backup exists yet, so keep it
|
||||
mv -f ${base}.log ${base}-$$.log
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# bench test_name geometry [..rt args..]
|
||||
# runs a series of benchmark tests assuming the following are preset:
|
||||
@@ -961,20 +920,15 @@ bench ( ) {
|
||||
bench_rtfms=""
|
||||
bench_percent=100
|
||||
bench_start_time="`date '+%H %M %S'`"
|
||||
bench_overall_elapsed=-1
|
||||
bench_overall_elapsed=0
|
||||
|
||||
# clear out before we begin, only saving backup on first encounter
|
||||
clean_obstacles "$bench_testname"
|
||||
|
||||
# use -lt since -le makes causes a "floor(elapsed)" comparison and too many iterations
|
||||
while test $bench_overall_elapsed -lt $MAXTIME ; do
|
||||
|
||||
bench_elapsed=-1
|
||||
# use -lt since -le makes causes a "floor(elapsed)" comparison and too many iterations
|
||||
bench_elapsed=0
|
||||
while test $bench_elapsed -lt $TIMEFRAME ; do
|
||||
|
||||
# clear out any previous run, only saving backup on first encounter
|
||||
clean_obstacles "$bench_testname"
|
||||
if test -f ${bench_testname}.pix; then mv -f ${bench_testname}.pix ${bench_testname}.pix.$$; fi
|
||||
if test -f ${bench_testname}.log; then mv -f ${bench_testname}.log ${bench_testname}.log.$$; fi
|
||||
|
||||
bench_frame_start_time="`date '+%H %M %S'`"
|
||||
|
||||
@@ -985,17 +939,11 @@ end;
|
||||
EOF
|
||||
retval=$?
|
||||
|
||||
if test $bench_frame -ne 0 ; then
|
||||
if test -f ${bench_testname}.pix.$bench_frame ; then
|
||||
mv -f ${bench_testname}.pix.$bench_frame ${bench_testname}.pix
|
||||
else
|
||||
$ECHO "WARNING: ${bench_testname}.pix.$bench_frame does not exist"
|
||||
fi
|
||||
fi
|
||||
if test -f ${bench_testname}.pix.$bench_frame ; then mv -f ${bench_testname}.pix.$bench_frame ${bench_testname}.pix ; fi
|
||||
|
||||
# compute how long we took, rounding up to at least one
|
||||
# second to prevent division by zero.
|
||||
bench_elapsed="`eval \\\"$ELP\\\" --seconds $bench_frame_start_time`"
|
||||
bench_elapsed="`$ELP --seconds $bench_frame_start_time`"
|
||||
if test "x$bench_elapsed" = "x" ; then
|
||||
bench_elapsed=1
|
||||
fi
|
||||
@@ -1014,27 +962,19 @@ EOF
|
||||
|
||||
# increase the number of rays exponentially if we are
|
||||
# considerably faster than the TIMEFRAME required.
|
||||
if test `expr $bench_elapsed \* 128` -lt ${TIMEFRAME} ; then
|
||||
# 128x increase, skip six frames
|
||||
bench_hypersample="`expr $bench_hypersample \* 128 + 127`"
|
||||
bench_frame="`expr $bench_frame + 7`"
|
||||
elif test `expr $bench_elapsed \* 64` -lt ${TIMEFRAME} ; then
|
||||
# 64x increase, skip five frames
|
||||
bench_hypersample="`expr $bench_hypersample \* 64 + 63`"
|
||||
bench_frame="`expr $bench_frame + 6`"
|
||||
elif test `expr $bench_elapsed \* 32` -lt ${TIMEFRAME} ; then
|
||||
if test `expr $bench_elapsed \* 32` -le ${TIMEFRAME} ; then
|
||||
# 32x increase, skip four frames
|
||||
bench_hypersample="`expr $bench_hypersample \* 32 + 31`"
|
||||
bench_frame="`expr $bench_frame + 5`"
|
||||
elif test `expr $bench_elapsed \* 16` -lt ${TIMEFRAME} ; then
|
||||
elif test `expr $bench_elapsed \* 16` -le ${TIMEFRAME} ; then
|
||||
# 16x increase, skip three frames
|
||||
bench_hypersample="`expr $bench_hypersample \* 16 + 15`"
|
||||
bench_frame="`expr $bench_frame + 4`"
|
||||
elif test `expr $bench_elapsed \* 8` -lt ${TIMEFRAME} ; then
|
||||
elif test `expr $bench_elapsed \* 8` -le ${TIMEFRAME} ; then
|
||||
# 8x increase, skip two frames
|
||||
bench_hypersample="`expr $bench_hypersample \* 8 + 7`"
|
||||
bench_frame="`expr $bench_frame + 3`"
|
||||
elif test `expr $bench_elapsed \* 4` -lt ${TIMEFRAME} ; then
|
||||
elif test `expr $bench_elapsed \* 4` -le ${TIMEFRAME} ; then
|
||||
# 4x increase, skip a frame
|
||||
bench_hypersample="`expr $bench_hypersample \* 4 + 3`"
|
||||
bench_frame="`expr $bench_frame + 2`"
|
||||
@@ -1063,7 +1003,7 @@ EOF
|
||||
fi
|
||||
|
||||
# see if we need to break out early
|
||||
bench_overall_elapsed="`eval \\\"$ELP\\\" --seconds $bench_start_time`"
|
||||
bench_overall_elapsed="`$ELP --seconds $bench_start_time`"
|
||||
if test $bench_overall_elapsed -ge $MAXTIME ; then
|
||||
break;
|
||||
fi
|
||||
@@ -1101,32 +1041,17 @@ EOF
|
||||
break
|
||||
fi
|
||||
|
||||
bench_overall_elapsed="`eval \\\"$ELP\\\" --seconds $bench_start_time`"
|
||||
bench_overall_elapsed="`$ELP --seconds $bench_start_time`"
|
||||
|
||||
# undo the hypersample increase back one step
|
||||
bench_hypersample="`expr \( \( $bench_hypersample + 1 \) / 2 \) - 1`"
|
||||
done
|
||||
|
||||
# clear out any profile output files
|
||||
if test -f gmon.out ; then
|
||||
mv -f gmon.out gmon.${bench_testname}.out
|
||||
fi
|
||||
|
||||
# the last run should be a relatively stable representative of the performance
|
||||
|
||||
if ! test -f "${PIX}/${bench_testname}.pix" ; then
|
||||
$ECHO "ERROR: reference image ${PIX}/${bench_testname}.pix not found"
|
||||
fi
|
||||
if ! test -f "${bench_testname}.pix" ; then
|
||||
$ECHO "ERROR: computed image ${bench_testname}.pix disappeared?!"
|
||||
ls -la *.pix*
|
||||
fi
|
||||
$VERBOSE_ECHO "DEBUG: $CMP $PIX/${bench_testname}.pix ${bench_testname}.pix"
|
||||
cmp_result="`eval \\\"${CMP}\\\" \\\"${PIX}/${bench_testname}.pix\\\" ${bench_testname}.pix 2>&1`"
|
||||
if test -f gmon.out; then mv -f gmon.out gmon.${bench_testname}.out; fi
|
||||
${CMP} ${PIX}/${bench_testname}.pix ${bench_testname}.pix
|
||||
ret=$?
|
||||
|
||||
$ECHO "$cmp_result"
|
||||
|
||||
if test $ret = 0 ; then
|
||||
# perfect match
|
||||
$ECHO ${bench_testname}.pix: answers are RIGHT
|
||||
@@ -1177,8 +1102,8 @@ perf ( ) {
|
||||
perf_ref_files=""
|
||||
perf_cur_files=""
|
||||
for perf_test in $perf_tests ; do
|
||||
perf_ref_log="${LOG}/${perf_test}.log"
|
||||
perf_cur_log="${perf_test}.log"
|
||||
perf_ref_log=${LOG}/${perf_test}.log
|
||||
perf_cur_log=${perf_test}.log
|
||||
for perf_log in "$perf_cur_log" "$perf_ref_log" ; do
|
||||
if test ! "x$perf_log" = "x" ; then
|
||||
if test ! -f "$perf_log" ; then
|
||||
@@ -1186,18 +1111,18 @@ perf ( ) {
|
||||
fi
|
||||
fi
|
||||
done
|
||||
perf_ref_files="$perf_ref_files \"$perf_ref_log\""
|
||||
perf_ref_files="$perf_ref_files $perf_ref_log"
|
||||
perf_cur_files="$perf_cur_files $perf_cur_log"
|
||||
done
|
||||
|
||||
# extract the RTFM values from the log files, use TR to convert
|
||||
# newlines to tabs. the trailing tab is significant in case there
|
||||
# newlines to tabs. the trailing tab is signficant in case there
|
||||
# are not enough results.
|
||||
#
|
||||
# FIXME: should really iterate one file at a time so we don't
|
||||
# just zero-pad at the end
|
||||
perf_VGRREF="`eval grep RTFM $perf_ref_files | sed -n -e 's/^.*= *//' -e 's/ rays.*//p' | tr '\012' '\011' `"
|
||||
perf_CURVALS="`eval grep RTFM $perf_cur_files | sed -n -e 's/^.*= *//' -e 's/ rays.*//p' | tr '\012' '\011' `"
|
||||
perf_VGRREF=`grep RTFM $perf_ref_files | sed -n -e 's/^.*= *//' -e 's/ rays.*//p' | tr '\012' '\011' `
|
||||
perf_CURVALS=`grep RTFM $perf_cur_files | sed -n -e 's/^.*= *//' -e 's/ rays.*//p' | tr '\012' '\011' `
|
||||
|
||||
# if there were no reference values, we cannot compute timings
|
||||
if test "x$perf_VGRREF" = "x" ; then
|
||||
@@ -1212,7 +1137,7 @@ perf ( ) {
|
||||
|
||||
# Trick: Force args $1 through $6 to the numbers in $perf_CURVALS
|
||||
# This should be "set -- $perf_CURVALS", but 4.2BSD /bin/sh can't
|
||||
# handle it, and perf_CURVALS are all positive (i.e., no leading
|
||||
# handle it, and perf_CURVALS are all positive (ie, no leading
|
||||
# dashes), so this is safe.
|
||||
|
||||
set $perf_CURVALS
|
||||
@@ -1292,7 +1217,7 @@ $ECHO "Running the BRL-CAD Benchmark tests... please wait ..."
|
||||
$ECHO
|
||||
ret=0
|
||||
|
||||
bench moss all.g $RTARGS << EOF
|
||||
bench moss all.g $ARGS << EOF
|
||||
viewsize 1.572026215e+02;
|
||||
eye_pt 6.379990387e+01 3.271768951e+01 3.366661453e+01;
|
||||
viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
@@ -1302,7 +1227,7 @@ viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
EOF
|
||||
ret=`expr $ret + $?`
|
||||
|
||||
bench world all.g $RTARGS << EOF
|
||||
bench world all.g $ARGS << EOF
|
||||
viewsize 1.572026215e+02;
|
||||
eye_pt 6.379990387e+01 3.271768951e+01 3.366661453e+01;
|
||||
viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
@@ -1312,7 +1237,7 @@ viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
EOF
|
||||
ret=`expr $ret + $?`
|
||||
|
||||
bench star all $RTARGS << EOF
|
||||
bench star all $ARGS << EOF
|
||||
viewsize 2.500000000e+05;
|
||||
eye_pt 2.102677960e+05 8.455500000e+04 2.934714650e+04;
|
||||
viewrot -6.733560560e-01 6.130643360e-01 4.132114880e-01 0.000000000e+00
|
||||
@@ -1322,7 +1247,7 @@ viewrot -6.733560560e-01 6.130643360e-01 4.132114880e-01 0.000000000e+00
|
||||
EOF
|
||||
ret=`expr $ret + $?`
|
||||
|
||||
bench bldg391 all.g $RTARGS << EOF
|
||||
bench bldg391 all.g $ARGS << EOF
|
||||
viewsize 1.800000000e+03;
|
||||
eye_pt 6.345012207e+02 8.633251343e+02 8.310771484e+02;
|
||||
viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
@@ -1332,7 +1257,7 @@ viewrot -5.735764503e-01 8.191520572e-01 0.000000000e+00 0.000000000e+00
|
||||
EOF
|
||||
ret=`expr $ret + $?`
|
||||
|
||||
bench m35 all.g $RTARGS <<EOF
|
||||
bench m35 all.g $ARGS <<EOF
|
||||
viewsize 6.787387985e+03;
|
||||
eye_pt 3.974533127e+03 1.503320754e+03 2.874633221e+03;
|
||||
viewrot -5.527838919e-01 8.332423558e-01 1.171090926e-02 0.000000000e+00
|
||||
@@ -1342,7 +1267,7 @@ viewrot -5.527838919e-01 8.332423558e-01 1.171090926e-02 0.000000000e+00
|
||||
EOF
|
||||
ret=`expr $ret + $?`
|
||||
|
||||
bench sphflake scene.r $RTARGS <<EOF
|
||||
bench sphflake scene.r $ARGS <<EOF
|
||||
viewsize 2.556283261452611e+04;
|
||||
orientation 4.406810841785839e-01 4.005093234738861e-01 5.226451688385938e-01 6.101102288499644e-01;
|
||||
eye_pt 2.418500583758302e+04 -3.328563644344796e+03 8.489926952850350e+03;
|
||||
@@ -1352,16 +1277,16 @@ ret=`expr $ret + $?`
|
||||
$ECHO
|
||||
$ECHO "... Done."
|
||||
$ECHO
|
||||
$ECHO "Total testing time elapsed: `eval \\\"$ELP\\\" $start`"
|
||||
$ECHO "Total testing time elapsed: `$ELP $start`"
|
||||
|
||||
# see if we fail
|
||||
if test ! "x$ret" = "x0" ; then
|
||||
$ECHO
|
||||
$ECHO "THE BENCHMARK ANALYSIS DID NOT COMPLETE SUCCESSFULLY."
|
||||
$ECHO "THE BENCHARK ANALYSIS DID NOT COMPLETE SUCCESSFULLY."
|
||||
$ECHO
|
||||
$ECHO "A benchmark failure means this is not a viable install of BRL-CAD. This may be"
|
||||
$ECHO "a new bug or (more likely) is a compilation configuration error. Ensure your"
|
||||
$ECHO "compiler has strict aliasing disabled, compilation is optimized, and you have"
|
||||
$ECHO "compiler has strict aliasing disabled, compilation is unoptimized, and you have"
|
||||
$ECHO "installed BRL-CAD (some platforms require this). If you still get a failure,"
|
||||
$ECHO "please report your configuration information to benchmark@brlcad.org"
|
||||
$ECHO
|
||||
@@ -1376,8 +1301,8 @@ fi
|
||||
# compute and output results #
|
||||
##############################
|
||||
|
||||
performance="`perf 'moss world star bldg391 m35 sphflake' $RTARGS 2>&1`"
|
||||
|
||||
performance="`perf 'moss world star bldg391 m35 sphflake' $ARGS`"
|
||||
if test $? = 0 ; then
|
||||
cat >> summary <<EOF
|
||||
$performance
|
||||
@@ -1492,8 +1417,8 @@ else
|
||||
$ECHO
|
||||
blankit=no
|
||||
|
||||
# BSD+
|
||||
look_for executable "a sysctl command" SYSCTL_CMD `echo "$PATH" | tr ":" "\n" | tr " " "\ " | sed 's/$/\/sysctl/g'`
|
||||
# BSD
|
||||
look_for executable "a sysctl command" SYSCTL_CMD `echo "$PATH" | tr ":" "\n" | sed 's/$/\/sysctl/g'`
|
||||
if test ! "x$SYSCTL_CMD" = "x" ; then
|
||||
$ECHO "Collecting system state information (via $SYSCTL_CMD)"
|
||||
preQUIET="$QUIET"
|
||||
@@ -1508,7 +1433,7 @@ else
|
||||
fi
|
||||
|
||||
# Solaris
|
||||
look_for executable "a prtdiag command" PRTDIAG_CMD `echo "$PATH" | tr ":" "\n" | tr " " "\ " | sed 's/$/\/prtdiag/g'`
|
||||
look_for executable "a prtdiag command" PRTDIAG_CMD `echo "$PATH" | tr ":" "\n" | sed 's/$/\/prtdiag/g'`
|
||||
if test ! "x$PRTDIAG_CMD" = "x" ; then
|
||||
$ECHO "Collecting system diagnostics information (via $PRTDIAG_CMD)"
|
||||
preQUIET="$QUIET"
|
||||
@@ -1521,7 +1446,7 @@ else
|
||||
fi
|
||||
|
||||
# AIX
|
||||
look_for executable "a prtconf command" PRTCONF_CMD `echo "$PATH" | tr ":" "\n" | tr " " "\ " | sed 's/$/\/prtconf/g'`
|
||||
look_for executable "a prtconf command" PRTCONF_CMD `echo "$PATH" | tr ":" "\n" | sed 's/$/\/prtconf/g'`
|
||||
if test ! "x$PRTCONF_CMD" = "x" ; then
|
||||
$ECHO "Collecting system configuration information (via $PRTCONF_CMD)"
|
||||
preQUIET="$QUIET"
|
||||
@@ -1534,7 +1459,7 @@ else
|
||||
fi
|
||||
|
||||
# SGI
|
||||
look_for executable "an hinv command" HINV_CMD `echo "$PATH" | tr ":" "\n" | tr " " "\ " | sed 's/$/\/hinv/g'`
|
||||
look_for executable "an hinv command" HINV_CMD `echo "$PATH" | tr ":" "\n" | sed 's/$/\/hinv/g'`
|
||||
if test ! "x$HINV_CMD" = "x" ; then
|
||||
$ECHO "Collecting system configuration information (via $HINV_CMD)"
|
||||
preQUIET="$QUIET"
|
||||
@@ -1559,19 +1484,6 @@ else
|
||||
blankit=yes
|
||||
fi
|
||||
|
||||
# Linux+
|
||||
look_for executable "an lscpu command" LSCPU_CMD `echo "$PATH" | tr ":" "\n" | tr " " "\ " | sed 's/$/\/lscpu/g'`
|
||||
if test ! "x$LSCPU_CMD" = "x" ; then
|
||||
$ECHO "Collecting system CPU information (via $LSCPU_CMD)"
|
||||
preQUIET="$QUIET"
|
||||
QUIET=1
|
||||
$ECHO "==============================================================================="
|
||||
$ECHO "`$LSCPU_CMD 2>&1`"
|
||||
$ECHO
|
||||
QUIET="$preQUIET"
|
||||
blankit=yes
|
||||
fi
|
||||
|
||||
if test "x$blankit" = "xyes" ; then
|
||||
$ECHO
|
||||
fi
|
||||
@@ -1579,12 +1491,12 @@ fi
|
||||
|
||||
# tell about the benchmark document
|
||||
look_for file "" BENCHMARK_TR \
|
||||
"${PATH_TO_THIS}/../share/brlcad/*.*.*/doc/benchmark.tr" \
|
||||
"${PATH_TO_THIS}/share/brlcad/*.*.*/doc/benchmark.tr" \
|
||||
"${PATH_TO_THIS}/share/brlcad/doc/benchmark.tr" \
|
||||
"${PATH_TO_THIS}/share/doc/benchmark.tr" \
|
||||
"${PATH_TO_THIS}/doc/benchmark.tr" \
|
||||
"${PATH_TO_THIS}/../doc/benchmark.tr" \
|
||||
${PATH_TO_THIS}/../share/brlcad/*.*.*/doc/benchmark.tr \
|
||||
${PATH_TO_THIS}/share/brlcad/*.*.*/doc/benchmark.tr \
|
||||
${PATH_TO_THIS}/share/brlcad/doc/benchmark.tr \
|
||||
${PATH_TO_THIS}/share/doc/benchmark.tr \
|
||||
${PATH_TO_THIS}/doc/benchmark.tr \
|
||||
${PATH_TO_THIS}/../doc/benchmark.tr \
|
||||
./benchmark.tr
|
||||
|
||||
$ECHO "Read the benchmark.tr document for more details on the BRL-CAD Benchmark."
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
# T R Y . S H
|
||||
# BRL-CAD
|
||||
#
|
||||
# Copyright (c) 2004-2020 United States Government as represented by
|
||||
# Copyright (c) 2004-2011 United States Government as represented by
|
||||
# the U.S. Army Research Laboratory.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
# V I E W D I F F . S H
|
||||
# BRL-CAD
|
||||
#
|
||||
# Copyright (c) 2004-2020 United States Government as represented by
|
||||
# Copyright (c) 2004-2011 United States Government as represented by
|
||||
# the U.S. Army Research Laboratory.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -1,209 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This is a simple script to translate autotools style
|
||||
# configure options into CMake variables. The resulting
|
||||
# translation is then run as a CMake configure.
|
||||
|
||||
srcpath=$(dirname $0)
|
||||
options="$srcpath"
|
||||
while [ "$1" != "" ]
|
||||
do
|
||||
case $1
|
||||
in
|
||||
--enable-all) options="$options -DBRLCAD_BUNDLED_LIBS=BUNDLED";
|
||||
shift;;
|
||||
--disable-all) options="$options -DBRLCAD_BUNDLED_LIBS=SYSTEM";
|
||||
shift;;
|
||||
--enable-opengl) options="$options -DBRLCAD_ENABLE_OPENGL=ON";
|
||||
shift;;
|
||||
--disable-opengl) options="$options -DBRLCAD_ENABLE_OPENGL=OFF";
|
||||
shift;;
|
||||
--enable-runtime-debug) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-runtime-debug) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-run-time-debug) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-run-time-debug) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-runtime-debugging) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-runtime-debugging) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-run-time-debugging) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-run-time-debugging) options="$options -DBRLCAD_ENABLE_RUNTIME_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-debug) options="$options -DBRLCAD_FLAGS_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-debug) options="$options -DBRLCAD_FLAGS_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-flags-debug) options="$options -DBRLCAD_FLAGS_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-flags-debug) options="$options -DBRLCAD_FLAGS_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-debug-flags) options="$options -DBRLCAD_FLAGS_DEBUG=ON";
|
||||
shift;;
|
||||
--disable-debug-flags) options="$options -DBRLCAD_FLAGS_DEBUG=OFF";
|
||||
shift;;
|
||||
--enable-warnings) options="$options -DBRLCAD_ENABLE_COMPILER_WARNINGS=ON";
|
||||
shift;;
|
||||
--disable-warnings) options="$options -DBRLCAD_ENABLE_COMPILER_WARNINGS=OFF";
|
||||
shift;;
|
||||
--enable-compiler-warnings) options="$options -DBRLCAD_ENABLE_COMPILER_WARNINGS=ON";
|
||||
shift;;
|
||||
--disable-compiler-warnings) options="$options -DBRLCAD_ENABLE_COMPILER_WARNINGS=OFF";
|
||||
shift;;
|
||||
--enable-strict) options="$options -DBRLCAD_ENABLE_STRICT=ON";
|
||||
shift;;
|
||||
--disable-strict) options="$options -DBRLCAD_ENABLE_STRICT=OFF";
|
||||
shift;;
|
||||
--enable-strict-compile) options="$options -DBRLCAD_ENABLE_STRICT=ON";
|
||||
shift;;
|
||||
--disable-strict-compile) options="$options -DBRLCAD_ENABLE_STRICT=OFF";
|
||||
shift;;
|
||||
--enable-strict-compile-flags) options="$options -DBRLCAD_ENABLE_STRICT=ON";
|
||||
shift;;
|
||||
--disable-strict-compile-flags) options="$options -DBRLCAD_ENABLE_STRICT=OFF";
|
||||
shift;;
|
||||
--enable-all-cxx) options="$options -DENABLE_ALL_CXX_COMPILE=ON";
|
||||
shift;;
|
||||
--disable-all-cxx) options="$options -DENABLE_ALL_CXX_COMPILE=OFF";
|
||||
shift;;
|
||||
--enable-docs) options="$options -DBRLCAD_EXTRADOCS=ON";
|
||||
shift;;
|
||||
--disable-docs) options="$options -DBRLCAD_EXTRADOCS=OFF";
|
||||
shift;;
|
||||
--enable-extra-docs) options="$options -DBRLCAD_EXTRADOCS=ON";
|
||||
shift;;
|
||||
--disable-extra-docs) options="$options -DBRLCAD_EXTRADOCS=OFF";
|
||||
shift;;
|
||||
--enable-docbook) options="$options -DBRLCAD_EXTRADOCS=ON";
|
||||
shift;;
|
||||
--disable-docbook) options="$options -DBRLCAD_EXTRADOCS=OFF";
|
||||
shift;;
|
||||
--enable-lemon) options="$options -DBRLCAD_LEMON=BUNDLED";
|
||||
shift;;
|
||||
--disable-lemon) options="$options -DBRLCAD_LEMON=SYSTEM";
|
||||
shift;;
|
||||
--enable-re2c) options="$options -DBRLCAD_RE2C=BUNDLED";
|
||||
shift;;
|
||||
--disable-re2c) options="$options -DBRLCAD_RE2C=SYSTEM";
|
||||
shift;;
|
||||
--enable-perplex) options="$options -DBRLCAD_PERPLEX=BUNDLED";
|
||||
shift;;
|
||||
--disable-perplex) options="$options -DBRLCAD_PERPLEX=SYSTEM";
|
||||
shift;;
|
||||
--enable-astyle) options="$options -DBRLCAD_ASTYLE=BUNDLED";
|
||||
shift;;
|
||||
--disable-astyle) options="$options -DBRLCAD_ASTYLE=SYSTEM";
|
||||
shift;;
|
||||
--enable-xsltproc) options="$options -DBRLCAD_XSLTPROC=BUNDLED";
|
||||
shift;;
|
||||
--disable-xsltproc) options="$options -DBRLCAD_XSLTPROC=SYSTEM";
|
||||
shift;;
|
||||
--enable-xmllint) options="$options -DBRLCAD_XMLLINT=BUNDLED";
|
||||
shift;;
|
||||
--disable-xmllint) options="$options -DBRLCAD_XMLLINT=SYSTEM";
|
||||
shift;;
|
||||
--enable-regex) options="$options -DBRLCAD_REGEX=BUNDLED";
|
||||
shift;;
|
||||
--disable-regex) options="$options -DBRLCAD_REGEX=SYSTEM";
|
||||
shift;;
|
||||
--enable-zlib) options="$options -DBRLCAD_ZLIB=BUNDLED";
|
||||
shift;;
|
||||
--disable-zlib) options="$options -DBRLCAD_ZLIB=SYSTEM";
|
||||
shift;;
|
||||
--enable-libz) options="$options -DBRLCAD_ZLIB=BUNDLED";
|
||||
shift;;
|
||||
--disable-libz) options="$options -DBRLCAD_ZLIB=SYSTEM";
|
||||
shift;;
|
||||
--enable-png) options="$options -DBRLCAD_PNG=BUNDLED";
|
||||
shift;;
|
||||
--disable-png) options="$options -DBRLCAD_PNG=SYSTEM";
|
||||
shift;;
|
||||
--enable-netpbm) options="$options -DBRLCAD_NETPBM=BUNDLED";
|
||||
shift;;
|
||||
--disable-netpbm) options="$options -DBRLCAD_NETPBM=SYSTEM";
|
||||
shift;;
|
||||
--enable-utahrle) options="$options -DBRLCAD_UTAHRLE=BUNDLED";
|
||||
shift;;
|
||||
--disable-utahrle) options="$options -DBRLCAD_UTAHRLE=SYSTEM";
|
||||
shift;;
|
||||
--enable-tcl) options="$options -DBRLCAD_TCL=BUNDLED";
|
||||
shift;;
|
||||
--disable-tcl) options="$options -DBRLCAD_TCL=SYSTEM";
|
||||
shift;;
|
||||
--enable-tk) options="$options -DBRLCAD_TK=BUNDLED";
|
||||
shift;;
|
||||
--disable-tk) options="$options -DBRLCAD_TK=SYSTEM";
|
||||
shift;;
|
||||
--enable-itcl) options="$options -DBRLCAD_ITCL=BUNDLED";
|
||||
shift;;
|
||||
--disable-itcl) options="$options -DBRLCAD_ITCL=SYSTEM";
|
||||
shift;;
|
||||
--enable-itk) options="$options -DBRLCAD_ITK=BUNDLED";
|
||||
shift;;
|
||||
--disable-itk) options="$options -DBRLCAD_ITK=SYSTEM";
|
||||
shift;;
|
||||
--enable-iwidgets) options="$options -DBRLCAD_IWIDGETS=BUNDLED";
|
||||
shift;;
|
||||
--disable-iwidgets) options="$options -DBRLCAD_IWIDGETS=SYSTEM";
|
||||
shift;;
|
||||
--enable-tkhtml) options="$options -DBRLCAD_TKHTML=BUNDLED";
|
||||
shift;;
|
||||
--disable-tkhtml) options="$options -DBRLCAD_TKHTML=SYSTEM";
|
||||
shift;;
|
||||
--enable-tktable) options="$options -DBRLCAD_TKTABLE=BUNDLED";
|
||||
shift;;
|
||||
--disable-tktable) options="$options -DBRLCAD_TKTABLE=SYSTEM";
|
||||
shift;;
|
||||
--enable-opennurbs) options="$options -DBRLCAD_OPENNURBS=BUNDLED";
|
||||
shift;;
|
||||
--disable-opennurbs) options="$options -DBRLCAD_OPENNURBS=SYSTEM";
|
||||
shift;;
|
||||
--enable-spsr) options="$options -DBRLCAD_SPSR=BUNDLED";
|
||||
shift;;
|
||||
--disable-spsr) options="$options -DBRLCAD_SPSR=SYSTEM";
|
||||
shift;;
|
||||
--enable-scl) options="$options -DBRLCAD_SC=BUNDLED";
|
||||
shift;;
|
||||
--disable-scl) options="$options -DBRLCAD_SC=SYSTEM";
|
||||
shift;;
|
||||
--enable-step) options="$options -DBRLCAD_SC=BUNDLED";
|
||||
shift;;
|
||||
--disable-step) options="$options -DBRLCAD_SC=SYSTEM";
|
||||
shift;;
|
||||
--enable-step-class-libraries) options="$options -DBRLCAD_SC=BUNDLED";
|
||||
shift;;
|
||||
--disable-step-class-libraries) options="$options -DBRLCAD_SC=SYSTEM";
|
||||
shift;;
|
||||
--enable-vds) options="$options -DBRLCAD_VDS=BUNDLED";
|
||||
shift;;
|
||||
--disable-vds) options="$options -DBRLCAD_VDS=SYSTEM";
|
||||
shift;;
|
||||
--enable-openscenegraph) options="$options -DBRLCAD_OSG=BUNDLED";
|
||||
shift;;
|
||||
--disable-openscenegraph) options="$options -DBRLCAD_OSG=SYSTEM";
|
||||
shift;;
|
||||
--enable-gdiam) options="$options -DBRLCAD_GDIAM=BUNDLED";
|
||||
shift;;
|
||||
--disable-gdiam) options="$options -DBRLCAD_GDIAM=SYSTEM";
|
||||
shift;;
|
||||
--enable-proj4) options="$options -DBRLCAD_PROJ4=BUNDLED";
|
||||
shift;;
|
||||
--disable-proj4) options="$options -DBRLCAD_PROJ4=SYSTEM";
|
||||
shift;;
|
||||
--enable-gdal) options="$options -DBRLCAD_GDAL=BUNDLED";
|
||||
shift;;
|
||||
--disable-gdal) options="$options -DBRLCAD_GDAL=SYSTEM";
|
||||
shift;;
|
||||
--prefix=*) inputstr=$1;
|
||||
options="$options -DCMAKE_INSTALL_PREFIX=${inputstr#--prefix=}";
|
||||
shift;;
|
||||
*) echo "Warning: unknown option $1";
|
||||
shift;;
|
||||
esac
|
||||
done
|
||||
echo cmake $options
|
||||
cmake $options
|
||||
+4558
File diff suppressed because it is too large
Load Diff
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This is a simple script to translate autotools style
|
||||
# configure options into CMake variables. The resulting
|
||||
# translation is then run as a CMake configure.
|
||||
|
||||
srcpath=$(dirname $0)
|
||||
options="$srcpath"
|
||||
while [ "$1" != "" ]
|
||||
do
|
||||
case $1
|
||||
in
|
||||
--enable-all) options="$options -DBRLCAD-ENABLE_ALL_LOCAL_LIBS=ON";
|
||||
shift;;
|
||||
--enable-debug) options="$options -DCMAKE_BUILD_TYPE=Debug";
|
||||
shift;;
|
||||
--disable-docs) options="$options -DBRLCAD-BUILD_EXTRADOCS=OFF";
|
||||
shift;;
|
||||
--disable-opengl) options="$options -DBRLCAD-ENABLE_OPENGL=OFF";
|
||||
shift;;
|
||||
--disable-strict) options="$options -DBRLCAD-ENABLE_STRICT=OFF";
|
||||
shift;;
|
||||
--disable-warnings) options="$options -DBRLCAD-ENABLE_WARNINGS=OFF";
|
||||
shift;;
|
||||
--prefix=*) inputstr=$1;
|
||||
options="$options -DCMAKE_INSTALL_PREFIX=${inputstr#--prefix=}";
|
||||
shift;;
|
||||
*) echo "Warning: unknown option $1";
|
||||
shift;;
|
||||
esac
|
||||
done
|
||||
echo cmake $options
|
||||
cmake $options
|
||||
+52
-227
@@ -1,235 +1,60 @@
|
||||
# There is quite a bit of shared logic for the various converters when it comes
|
||||
# to building .g outputs, so we use a single function to manage the process and
|
||||
# handle format-specific bits internally. TODO - we probably need to add
|
||||
# optional argument support here later to support (say) specifying a specific
|
||||
# COMGEOM or STEP format version...
|
||||
|
||||
function(ADD_G_TARGET in_model folder)
|
||||
|
||||
# Initialize
|
||||
set(MODEL_TYPE "UNKNOWN")
|
||||
|
||||
# Get our root path
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
set(bin_root "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}")
|
||||
else(CMAKE_CONFIGURATION_TYPES)
|
||||
set(bin_root "${CMAKE_BINARY_DIR}")
|
||||
endif(CMAKE_CONFIGURATION_TYPES)
|
||||
|
||||
# Find our conversion type
|
||||
set(model_types "3dm;asc;comgeom;fg4;stp")
|
||||
foreach(mt ${model_types})
|
||||
if("${MODEL_TYPE}" STREQUAL "UNKNOWN")
|
||||
if("${in_model}" MATCHES ".${mt}$")
|
||||
set(MODEL_TYPE "${mt}")
|
||||
string(REGEX REPLACE "([0-9a-z]*).${mt}" "\\1" in_model_root "${in_model}")
|
||||
endif("${in_model}" MATCHES ".${mt}$")
|
||||
endif("${MODEL_TYPE}" STREQUAL "UNKNOWN")
|
||||
endforeach(mt ${model_types})
|
||||
if("${MODEL_TYPE}" STREQUAL "UNKNOWN")
|
||||
message(FATAL_ERROR "Unable to identify input model type for file ${in_model}")
|
||||
endif("${MODEL_TYPE}" STREQUAL "UNKNOWN")
|
||||
|
||||
# Find our output file and path
|
||||
string(REPLACE "${CMAKE_SOURCE_DIR}/" "" rel_dir "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
set(output_file ${DATA_DIR}/${rel_dir}/${in_model_root}.g)
|
||||
set(log_file ${CMAKE_CURRENT_BINARY_DIR}/${in_model_root}.log)
|
||||
|
||||
# Make sure the output db target directories are there
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
||||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/${CFG_TYPE}/${DATA_DIR}/${rel_dir}")
|
||||
endforeach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
|
||||
else(CMAKE_CONFIGURATION_TYPES)
|
||||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/${DATA_DIR}/${rel_dir}")
|
||||
endif(CMAKE_CONFIGURATION_TYPES)
|
||||
|
||||
#############################################################################
|
||||
# Build logic
|
||||
#############################################################################
|
||||
|
||||
# The 3DM conversion is rather different than the general pattern at the
|
||||
# moment (However, the 3dm approach is probably the "wave of the future" in
|
||||
# the sense that it uses libgcv...)
|
||||
if(${MODEL_TYPE} STREQUAL "3dm")
|
||||
|
||||
set(INPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${in_model}")
|
||||
set(OUTPUT_FILE "${output_file}")
|
||||
# Use the model name for the script, since the output file is specific to this input
|
||||
configure_file("${CMAKE_SOURCE_DIR}/db/conv_run.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/${in_model_root}.cmake" @ONLY)
|
||||
|
||||
# Define the target
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND ${CMAKE_COMMAND} -DEXEC=$<TARGET_FILE:3dm-g> -P "${CMAKE_CURRENT_BINARY_DIR}/${in_model_root}.cmake"
|
||||
DEPENDS 3dm-g ${CMAKE_CURRENT_SOURCE_DIR}/${in_model}
|
||||
)
|
||||
|
||||
endif(${MODEL_TYPE} STREQUAL "3dm")
|
||||
|
||||
# The rest of the conversions follow the simpler/older pattern:
|
||||
|
||||
if(${MODEL_TYPE} STREQUAL "asc")
|
||||
if (BRLCAD_ENABLE_TCL)
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND asc2g "${CMAKE_CURRENT_SOURCE_DIR}/${in_model}" ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
DEPENDS asc2g "${CMAKE_CURRENT_SOURCE_DIR}/${in_model}"
|
||||
)
|
||||
endif (BRLCAD_ENABLE_TCL)
|
||||
endif(${MODEL_TYPE} STREQUAL "asc")
|
||||
|
||||
if(${MODEL_TYPE} STREQUAL "comgeom")
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND comgeom-g -v 5 ${CMAKE_CURRENT_SOURCE_DIR}/${in_model} ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file} > ${log_file} 2>&1
|
||||
DEPENDS comgeom-g ${CMAKE_CURRENT_SOURCE_DIR}/${in_model}
|
||||
)
|
||||
endif(${MODEL_TYPE} STREQUAL "comgeom")
|
||||
|
||||
if(${MODEL_TYPE} STREQUAL "fg4")
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND fast4-g ${CMAKE_CURRENT_SOURCE_DIR}/${in_model} ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file} > ${log_file} 2>&1
|
||||
DEPENDS fast4-g ${CMAKE_CURRENT_SOURCE_DIR}/${in_model}
|
||||
)
|
||||
endif(${MODEL_TYPE} STREQUAL "fg4")
|
||||
|
||||
if(${MODEL_TYPE} STREQUAL "stp")
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file}
|
||||
COMMAND step-g -O ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file} ${CMAKE_CURRENT_SOURCE_DIR}/${in_model} > ${log_file} 2>&1
|
||||
DEPENDS step-g ${CMAKE_CURRENT_SOURCE_DIR}/${in_model}
|
||||
)
|
||||
endif(${MODEL_TYPE} STREQUAL "stp")
|
||||
|
||||
if(NOT ${MODEL_TYPE} STREQUAL "asc" OR BRLCAD_ENABLE_TCL)
|
||||
add_custom_target(${in_model_root}.g ALL DEPENDS ${CMAKE_CURRENT_BUILD_DIR_SCRIPT}/${output_file})
|
||||
set_target_properties(${in_model_root}.g PROPERTIES FOLDER "${folder}")
|
||||
|
||||
# Install logic
|
||||
if(BRLCAD_INSTALL_EXAMPLE_GEOMETRY)
|
||||
install(FILES ${CMAKE_CURRENT_BUILD_DIR_INSTALL}/${output_file} DESTINATION ${DATA_DIR}/${rel_dir})
|
||||
endif(BRLCAD_INSTALL_EXAMPLE_GEOMETRY)
|
||||
|
||||
# Clean-up
|
||||
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${log_file}")
|
||||
DISTCLEAN("${log_file}")
|
||||
endif(NOT ${MODEL_TYPE} STREQUAL "asc" OR BRLCAD_ENABLE_TCL)
|
||||
|
||||
endfunction(ADD_G_TARGET in_model folder)
|
||||
|
||||
set(G_BENCHMARK_MODELS
|
||||
bldg391.asc
|
||||
m35.asc
|
||||
moss.asc
|
||||
sphflake.asc
|
||||
star.asc
|
||||
SET(G_BENCHMARK_MODELS
|
||||
bldg391.asc
|
||||
m35.asc
|
||||
moss.asc
|
||||
sphflake.asc
|
||||
star.asc
|
||||
world.asc
|
||||
)
|
||||
|
||||
set(G_SAMPLE_MODELS
|
||||
aet.asc
|
||||
axis.asc
|
||||
bearing.asc
|
||||
boolean-ops.asc
|
||||
castle.asc
|
||||
cornell.asc
|
||||
cornell-kunigami.asc
|
||||
cray.asc
|
||||
crod.asc
|
||||
cube.asc
|
||||
demo.asc
|
||||
die.asc
|
||||
galileo.asc
|
||||
goliath.asc
|
||||
havoc.asc
|
||||
kman.asc
|
||||
ktank.asc
|
||||
lgt-test.asc
|
||||
operators.asc
|
||||
pic.asc
|
||||
pinewood.asc
|
||||
prim.asc
|
||||
rounds.asc
|
||||
tank_car.asc
|
||||
terra.asc
|
||||
toyjeep.asc
|
||||
truck.asc
|
||||
wave.asc
|
||||
woodsman.asc
|
||||
SET(G_SAMPLE_MODELS
|
||||
${G_BENCHMARK_MODELS}
|
||||
axis.asc
|
||||
boolean-ops.asc
|
||||
castle.asc
|
||||
cornell.asc
|
||||
cray.asc
|
||||
crod.asc
|
||||
cube.asc
|
||||
demo.asc
|
||||
galileo.asc
|
||||
goliath.asc
|
||||
havoc.asc
|
||||
kman.asc
|
||||
ktank.asc
|
||||
lgt-test.asc
|
||||
operators.asc
|
||||
pic.asc
|
||||
pinewood.asc
|
||||
prim.asc
|
||||
tank_car.asc
|
||||
terra.asc
|
||||
toyjeep.asc
|
||||
truck.asc
|
||||
wave.asc
|
||||
woodsman.asc
|
||||
xmp.asc
|
||||
)
|
||||
add_subdirectory(chess)
|
||||
add_subdirectory(comgeom)
|
||||
add_subdirectory(nist)
|
||||
add_subdirectory(faa)
|
||||
|
||||
foreach(g_input ${G_BENCHMARK_MODELS})
|
||||
ADD_G_TARGET(${g_input} "BRL-CAD Geometry Models/Benchmark")
|
||||
endforeach(g_input ${G_BENCHMARK_MODELS})
|
||||
FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${DATA_DIR}/db)
|
||||
FOREACH(g_model ${G_SAMPLE_MODELS})
|
||||
STRING(REGEX REPLACE "([0-9a-z]*).asc" "\\1" g_model_root "${g_model}")
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${g_model_root}.g
|
||||
COMMAND asc2g ${CMAKE_CURRENT_SOURCE_DIR}/${g_model} ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${g_model_root}.g
|
||||
DEPENDS asc2g ${CMAKE_CURRENT_SOURCE_DIR}/${g_model}
|
||||
)
|
||||
ADD_CUSTOM_TARGET(${g_model_root}.g ALL DEPENDS ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${g_model_root}.g)
|
||||
IF(BRLCAD-INSTALL_EXAMPLE_GEOMETRY)
|
||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${g_model_root}.g DESTINATION ${${CMAKE_PROJECT_NAME}_INSTALL_DATA_DIR}/db)
|
||||
ENDIF(BRLCAD-INSTALL_EXAMPLE_GEOMETRY)
|
||||
SET(BUILT_MODELS "${BUILT_MODELS};${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${g_model_root}.g")
|
||||
ENDFOREACH(g_model ${G_SAMPLE_MODELS})
|
||||
CMAKEFILES(${G_SAMPLE_MODELS})
|
||||
|
||||
foreach(g_input ${G_SAMPLE_MODELS})
|
||||
ADD_G_TARGET(${g_input} "BRL-CAD Geometry Models/Sample")
|
||||
endforeach(g_input ${G_SAMPLE_MODELS})
|
||||
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${BUILT_MODELS}")
|
||||
|
||||
if(BRLCAD_INSTALL_EXAMPLE_GEOMETRY)
|
||||
BRLCAD_ADDDATA(terra.dsp db)
|
||||
endif(BRLCAD_INSTALL_EXAMPLE_GEOMETRY)
|
||||
|
||||
if(SH_EXEC)
|
||||
set(conversion_g_files)
|
||||
set(conversion_g_files_fp)
|
||||
set(conversion_deps_list)
|
||||
|
||||
if (BRLCAD_ENABLE_TCL)
|
||||
macro(Sh_Conversion_Test gfile depends_list)
|
||||
add_custom_target(convert-${gfile} COMMAND ${SH_EXEC} ${CMAKE_SOURCE_DIR}/sh/conversion.sh GED=$<TARGET_FILE:mged> ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${gfile})
|
||||
set_target_properties(convert-${gfile} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
|
||||
set_target_properties(convert-${gfile} PROPERTIES FOLDER "BRL-CAD Conversion Tests")
|
||||
set(conversion_g_files ${conversion_g_files} ${gfile})
|
||||
if(NOT "${depends_list}" STREQUAL "")
|
||||
add_dependencies(convert-${gfile} ${depends_list})
|
||||
set(conversion_deps_list ${conversion_deps_list} ${depends_list})
|
||||
endif(NOT "${depends_list}" STREQUAL "")
|
||||
endmacro(Sh_Conversion_Test)
|
||||
|
||||
foreach(g_input ${G_BENCHMARK_MODELS})
|
||||
get_filename_component(GROOT "${g_input}" NAME_WE)
|
||||
Sh_Conversion_Test(${GROOT}.g "mged")
|
||||
endforeach(g_input ${G_BENCHMARK_MODELS})
|
||||
foreach(g_input ${G_SAMPLE_MODELS})
|
||||
get_filename_component(GROOT "${g_input}" NAME_WE)
|
||||
Sh_Conversion_Test(${GROOT}.g "mged")
|
||||
endforeach(g_input ${G_SAMPLE_MODELS})
|
||||
|
||||
list(REMOVE_DUPLICATES conversion_deps_list)
|
||||
foreach(gfile ${conversion_g_files})
|
||||
set(conversion_g_files_fp ${conversion_g_files_fp} "${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${gfile}")
|
||||
endforeach(gfile ${conversion_g_files})
|
||||
add_custom_target(convert COMMAND ${SH_EXEC} ${CMAKE_SOURCE_DIR}/sh/conversion.sh GED=$<TARGET_FILE:mged> ${conversion_g_files_fp})
|
||||
set_target_properties(convert PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
|
||||
set_target_properties(convert PROPERTIES FOLDER "BRL-CAD Conversion Tests")
|
||||
add_dependencies(convert ${conversion_deps_list})
|
||||
endif (BRLCAD_ENABLE_TCL)
|
||||
endif(SH_EXEC)
|
||||
|
||||
CMAKEFILES(
|
||||
${G_BENCHMARK_MODELS}
|
||||
${G_SAMPLE_MODELS}
|
||||
CMakeLists.txt
|
||||
aet.rt
|
||||
cornell.rt
|
||||
cube.rt
|
||||
db.php
|
||||
include/ctype.inc
|
||||
include/debug.inc
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
IF(BRLCAD-INSTALL_EXAMPLE_GEOMETRY)
|
||||
BRLCAD_ADDFILE(terra.dsp db)
|
||||
ENDIF(BRLCAD-INSTALL_EXAMPLE_GEOMETRY)
|
||||
CMAKEFILES(db.php include)
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
|
||||
SUBDIRS = include
|
||||
|
||||
A2G=$(top_builddir)/src/conv/asc2g
|
||||
G2A=$(top_builddir)/src/conv/g2asc
|
||||
|
||||
|
||||
# gmake seems to prefix the source .asc with the appropriate srcdir
|
||||
# automagically... the library path is set for Tcl/Tk since libtool
|
||||
# won't do it for us for non libtool libs. make them all depend on a
|
||||
# single file so that asc2g runs at least once to completion so the
|
||||
# wrapper script doesn't fail when compiling in parallel.
|
||||
.asc.g: operators.asc2g
|
||||
@i=0 ; while [ ! -f lockfile ] && [ $$i -lt 10 ] ; do sleep 1 ; i=`expr $$i + 1` ; done
|
||||
@echo $(A2G) $< $@ ; \
|
||||
LD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_builddir)/src/other/tk/unix:$$LD_LIBRARY_PATH \
|
||||
DYLD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_buildir)/src/other/tk/unix:$$DYLD_LIBRARY_PATH \
|
||||
$(A2G) `if test -e $< ; then echo $< ; else echo $(top_srcdir)/db/$< ; fi` $@
|
||||
|
||||
# cause asc2g to kick off so that it compiles lt-asc2g and avoids
|
||||
# parallel build failures. use a simple file locking mechanism.
|
||||
operators.asc2g: operators.asc $(top_builddir)/src/conv/asc2g
|
||||
@rm -f lockfile
|
||||
@if test -x $(A2G) ; then \
|
||||
echo $(A2G) operators.asc $@ ; \
|
||||
LD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_builddir)/src/other/tk/unix:$$LD_LIBRARY_PATH \
|
||||
DYLD_LIBRARY_PATH=$(top_builddir)/src/other/tcl/unix:$(top_buildir)/src/other/tk/unix:$$DYLD_LIBRARY_PATH \
|
||||
$(A2G) `if test -e operators.asc ; then echo operators.asc ; else echo $(top_srcdir)/db/operators.asc ; fi` $@ ; \
|
||||
else \
|
||||
echo "ls -lad $(A2G)" ; \
|
||||
echo "`ls -lad $(A2G)`" ; \
|
||||
echo "$(A2G) does not exist" ; \
|
||||
fi
|
||||
@touch lockfile
|
||||
|
||||
BENCHMARK_MODELS = \
|
||||
bldg391.asc \
|
||||
m35.asc \
|
||||
moss.asc \
|
||||
sphflake.asc \
|
||||
star.asc \
|
||||
world.asc
|
||||
|
||||
MODELS = \
|
||||
$(BENCHMARK_MODELS) \
|
||||
axis.asc \
|
||||
boolean-ops.asc \
|
||||
castle.asc \
|
||||
cornell.asc \
|
||||
cray.asc \
|
||||
crod.asc \
|
||||
cube.asc \
|
||||
demo.asc \
|
||||
galileo.asc \
|
||||
goliath.asc \
|
||||
havoc.asc \
|
||||
kman.asc \
|
||||
ktank.asc \
|
||||
lgt-test.asc \
|
||||
operators.asc \
|
||||
pic.asc \
|
||||
pinewood.asc \
|
||||
prim.asc \
|
||||
tank_car.asc \
|
||||
terra.asc \
|
||||
toyjeep.asc \
|
||||
truck.asc \
|
||||
wave.asc \
|
||||
woodsman.asc \
|
||||
xmp.asc
|
||||
|
||||
EXTRA_DIST = \
|
||||
${MODELS} \
|
||||
db.php \
|
||||
terra.dsp
|
||||
|
||||
dbdir = $(BRLCAD_DATA)/db
|
||||
|
||||
if INSTALL_MODELS
|
||||
BUILT_SOURCES = \
|
||||
operators.asc2g \
|
||||
${MODELS:asc=g}
|
||||
db_DATA = \
|
||||
$(BUILT_SOURCES) \
|
||||
terra.dsp
|
||||
|
||||
else !INSTALL_MODELS
|
||||
BUILT_SOURCES = \
|
||||
operators.asc2g \
|
||||
${BENCHMARK_MODELS:asc=g}
|
||||
db_DATA = $(BUILT_SOURCES)
|
||||
|
||||
endif
|
||||
# end INSTALL_MODELS
|
||||
|
||||
|
||||
MOSTLYCLEANFILES = \
|
||||
${BUILT_SOURCES} \
|
||||
lockfile
|
||||
|
||||
DEPS=src/conv
|
||||
|
||||
include $(top_srcdir)/misc/Makefile.defs
|
||||
-68
@@ -1,68 +0,0 @@
|
||||
title {Untitled BRL-CAD Database}
|
||||
units mm
|
||||
put {xyzringtrc.s} tgc V {0.31168735027313232421875 0.31356084346771240234375 0.2343517243862152099609375} H {-0.02296111360192298889160156 -0.02476786263287067413330078 0.03948847576975822448730469} A {-0.003937630914151668548583984 -0.02411045134067535400390625 -0.01741208322346210479736328} B {0.02662250958383083343505859 -0.01068659685552120208740234 0.008777192793786525726318359} C {-3.937628207495436072349548E-05 -0.0002411044843029230833053589 -0.0001741207961458712816238403} D {0.0002662249607965350151062012 -0.0001068659257725812494754791 8.77717902767471969127655E-05}
|
||||
put {viewdirtrc.s} tgc V {0.08660250157117843627929688 0.08660250157117843627929688 0.08660250157117843627929688} H {-0.07794228941202163696289062 -0.07794228941202163696289062 -0.07794228941202163696289062} A {0 0.02828427031636238098144531 -0.02828427031636238098144531} B {0.03265986219048500061035156 -0.01632993109524250030517578 -0.01632993109524250030517578} C {0 0.000212132028536871075630188 -0.000212132028536871075630188} D {0.0002449489838909357786178589 -0.0001224744919454678893089294 -0.0001224744919454678893089294}
|
||||
put {twistpanel.r} comb region yes tree {l twistpanel.c}
|
||||
attr set {twistpanel.r} {color} {232/198/232} {shader} {glass {tr 0.6}} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {xyzringcut.c} comb region no tree {- {- {- {- {- {- {- {- {- {- {l ringxyztor.s} {l cut0.s}} {l cut1.s}} {l cut2.s}} {l cut4.s}} {l xrcc.s}} {l yrcc.s}} {l zrcc.s}} {l viewdirrcc.s}} {l xyzcutrcc.s}} {l xyzringtrc.s}}
|
||||
put {viewdirrcc.s} tgc V {0.779421329498291015625 0.779421329498291015625 0.779421329498291015625} H {-0.6928203105926513671875 -0.6928203105926513671875 -0.6928203105926513671875} A {0 0.007071067579090595245361328 -0.007071067579090595245361328} B {0.008164965547621250152587891 -0.004082482773810625076293945 -0.004082482773810625076293945} C {0 0.007071067579090595245361328 -0.007071067579090595245361328} D {0.008164965547621250152587891 -0.004082482773810625076293945 -0.004082482773810625076293945}
|
||||
put {twistpanel.c} comb region no tree {- {- {- {l twistrcc.s} {l twisttor.s}} {l twisttrc.s}} {l viewdirrcc.s}}
|
||||
put {ringxytor.s} tor V {0 0 0} H {0 0 1} r_a 0.5 r_h 0.009999999776482582092285156
|
||||
put {twistring.r} comb region yes tree {l twistring.c}
|
||||
attr set {twistring.r} {color} {232/198/232} {shader} {mirror {tr .1 re 0.4}} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {xyringtrc.s} tgc V {0.3913685381412506103515625 0.3006020486354827880859375 -0.0009004921885207295417785645} H {-0.03143119439482688903808594 0.04401883110404014587402344 -0.0006720747915096580982208252} A {0.02089671231806278228759766 0.01464617997407913208007812 -0.01800444535911083221435547} B {-0.01446941774338483810424805 -0.01072130445390939712524414 -0.02551533468067646026611328} C {0.0002089670742861926555633545 0.0001464617671445012092590332 -0.0001800443860702216625213623} D {-0.0001446941751055419445037842 -0.0001072130180546082556247711 -0.0002551533398218452930450439}
|
||||
put {xyzcutrcc.s} arb8 V1 {0.285196959972381591796875 0.223926544189453125 0.2792418301105499267578125} V2 {0.3270788453519344329833984 0.2655878327786922454833984 0.2198253460228443145751953} V3 {0.3691307827830314636230469 0.3075636327266693115234375 0.2788994473521597683429718} V4 {0.3272488489747047424316406 0.2659022919833660125732422 0.3383159413933753967285156} V5 {0.2260562554001808166503906 0.2832767628133296966552734 0.2791691728780278936028481} V6 {0.2679381202906370162963867 0.3249380290508270263671875 0.2197526805102825164794922} V7 {0.3099901042878627777099609 0.366913974285125732421875 0.2788267984578851610422134} V8 {0.2681080885231494903564453 0.3252525255084037780761719 0.3382433503866195678710938}
|
||||
put {xyringcut.c} comb region no tree {- {- {- {- {- {- {- {- {- {l ringxytor.s} {l cut0.s}} {l cut1.s}} {l cut3.s}} {l xrcc.s}} {l yrcc.s}} {l zrcc.s}} {l ringxyztor.s}} {l xycutrcc.s}} {l xyringtrc.s}}
|
||||
put {testdisks.c} comb region no tree {u {- {- {- {l xyzrcc.s} {l cut0.s}} {l cut1.s}} {l cut2.s}} {- {- {- {- {- {l xyrcc.s} {l cut0.s}} {l cut1.s}} {l cut2.s}} {l cut3.s}} {l cut0.s}}}
|
||||
put {twistring.c} comb region no tree {u {- {- {l twisttor.s} {l twistcut.s}} {l twisttrc.s}} {l twisttrc.s}}
|
||||
put {halfplane.s} half N {0 0 1} d -0.536277353763580322265625
|
||||
put {halfplane.r} comb region yes tree {l halfplane.s}
|
||||
attr set {halfplane.r} {color} {255/255/255} {shader} {stack {{phong {sp 0.05 di 0.95}} }} {region} {R} {region_id} {1002} {material_id} {1} {los} {100}
|
||||
put {twisttor.s} tor V {0.449999988079071044921875 0.449999988079071044921875 0.449999988079071044921875} H {-0.577350269189625731058868 -0.577350269189625731058868 -0.577350269189625731058868} r_a 0.1500000016475442066177237 r_h 0.01000000030444709100962974
|
||||
put {twistcut.s} part V {0.3950000000000000177635684 0.3850000000000000088817842 0.5649999999999999467092948} H {0.0003640000000000000114804 -0.0003699999999999999946917462 -0.0005000000000000000104083409} r_v 0.02800000000000000058286709 r_h 0.02800000000000000058286709
|
||||
put {twisttrc.s} tgc V {0.37255561351776123046875 0.40711653232574462890625 0.57051956653594970703125} H {0.03641721233725547790527344 -0.03706122934818267822265625 -0.0005011741304770112037658691} A {0.01779515855014324188232422 0.01750466972589492797851562 -0.001385415205731987953186035} B {0.001156966434791684150695801 0.0007993413601070642471313477 0.02496042102575302124023438} C {0.0001779512967914342880249023 0.0001750463998178020119667053 -1.385413543175673112273216E-05} D {1.156978123617591336369514E-05 7.993325198185630142688751E-06 0.0002496042288839817047119141}
|
||||
put {xyzpanel.r} comb region yes tree {l xyzcut.c}
|
||||
attr set {xyzpanel.r} {color} {205/253/172} {shader} {glass {tr 0.6}} {region} {R} {region_id} {1003} {material_id} {1} {los} {100}
|
||||
put {twistrcc.s} tgc V {0.4472982883453369140625 0.4472982883453369140625 0.4472982883453369140625} H {0.005773502867668867111206055 0.005773502867668867111206055 0.005773502867668867111206055} A {0 -0.1060660183429718017578125 0.1060660183429718017578125} B {0.1224744841456413269042969 -0.06123724207282066345214844 -0.06123724207282066345214844} C {0 -0.1060660183429718017578125 0.1060660183429718017578125} D {0.1224744841456413269042969 -0.06123724207282066345214844 -0.06123724207282066345214844}
|
||||
put {xycutrcc.s} arb8 V1 {0.4098457992076873779296875 0.330240428447723388671875 -0.03679068386554718017578125} V2 {0.3675903864204883575439453 0.3863152638077735900878906 -0.03679068386160150305741467} V3 {0.3675903864204883575439453 0.3863152638077735900878906 0.03342260420322418212890625} V4 {0.4098457992100617008901509 0.3302404284445723536833839 0.03342260420322418212890625} V5 {0.3537709638476371765136719 0.2879850156605243682861328 -0.03679068386554718017578125} V6 {0.3115155547857284545898438 0.3440598426386713981628418 -0.03679068386160150305741467} V7 {0.3115155547857284545898438 0.3440598426386713981628418 0.03342260420322418212890625} V8 {0.3537709638476371765136719 0.2879850156605243682861328 0.03342260420322418212890625}
|
||||
put {cutdisks.c} comb region no tree {- {- {- {- {- {l disks.c} {l cut0.s}} {l cut1.s}} {l cut2.s}} {l cut3.s}} {l cut4.s}}
|
||||
put {twistcut.s.backu} ell V {0.3945335447788238525390625 0.383843958377838134765625 0.5655720233917236328125} A {0.03095294535160064697265625 -0.0002858481311704963445663452 -0.0002035317302215844392776489} B {0.0002871743054129183292388916 0.03095294535160064697265625 0.0002016565413214266300201416} C {0.0002016565558733418583869934 -0.0002035317156696692109107971 0.03095364384353160858154297}
|
||||
put {xyzring.r} comb region yes tree {u {l xyzringcut.c} {l xyzringtrc.s}}
|
||||
attr set {xyzring.r} {color} {230/253/215} {shader} {mirror {tr .1 re 0.4}} {region} {R} {region_id} {1005} {material_id} {1} {los} {100}
|
||||
put {viewdir.r} comb region yes tree {l viewdir.c}
|
||||
attr set {viewdir.r} {color} {253/227/198} {shader} {phong {tr .1 ri 1.5 sh 2}} {region} {R} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {xypanel.r} comb region yes tree {l xycut.c}
|
||||
attr set {xypanel.r} {color} {178/221/243} {shader} {glass {tr 0.6}} {region} {R} {region_id} {1002} {material_id} {1} {los} {100}
|
||||
put {diagram.r} comb region no tree {u {u {u {l arrows.r} {l twistpanel.r}} {u {l twistring.r} {l xypanel.r}}} {u {u {l xyring.r} {l xyzpanel.r}} {u {l xyzring.r} {l viewdir.r}}}}
|
||||
put {viewdir.c} comb region no tree {u {l viewdirrcc.s} {- {- {- {l viewdirtrc.s} {l xrcc.s}} {l yrcc.s}} {l zrcc.s}}}
|
||||
put {arrows.r} comb region yes tree {l coordinates.c}
|
||||
attr set {arrows.r} {color} {217/217/254} {shader} {mirror {tr .1 re 0.4}} {region} {R} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {xyring.r} comb region yes tree {u {l xyringcut.c} {l xyringtrc.s}}
|
||||
attr set {xyring.r} {color} {206/230/242} {shader} {mirror {tr .1 re 0.4}} {region} {R} {region_id} {1004} {material_id} {1} {los} {100}
|
||||
put {ground.s} ell V {0 0 -10000.08984375} A {10000 0 0} B {0 6.12303176911188629105709E-13 10000} C {0 -10000 6.12303176911188629105709E-13}
|
||||
put {xyzcut.c} comb region no tree {- {- {- {- {- {- {- {- {- {- {- {l xyzrcc.s} {l cut0.s}} {l cut1.s}} {l cut2.s}} {l cut4.s}} {l xrcc.s}} {l yrcc.s}} {l zrcc.s}} {l viewdirtrc.s}} {l viewdirrcc.s}} {l ringxyztor.s}} {l xyzringtrc.s}}
|
||||
put {ground.r} comb region yes tree {l ground.c}
|
||||
attr set {ground.r} {color} {255/255/255} {shader} {stack {{checker {b {192 192 192} s 8192.0}} {phong {sp 0.8 sh 4 em .5}} }} {region} {R} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {xyzrcc.s} tgc V {0.005014000460505485534667969 -0.004998999647796154022216797 7.123547086408665851564592E-19} H {-0.009999999776482582092285156 0.009999999776482582092285156 0} A {-0.356000006198883056640625 -0.356000006198883056640625 0} B {0 0 0.5} C {-0.356000006198883056640625 -0.356000006198883056640625 0} D {0 0 0.5}
|
||||
put {ground.c} comb region no tree {l ground.s}
|
||||
put {disks2.c} comb region no tree {u {- {- {- {- {l xyzrcc.s} {l cut0.s}} {l cut1.s}} {l cut2.s}} {l xyrcc.s}} {- {- {- {l xyrcc.s} {l cut0.s}} {l cut1.s}} {l cut2.s}}}
|
||||
put {light.s} ell V {-98.451141357421875 103.03456878662109375 200.0417633056640625} A {14 0 0} B {0 14 0} C {0 0 14}
|
||||
put {light.r} comb region yes tree {l light.s}
|
||||
attr set {light.r} {color} {255/255/255} {shader} {light {a 270 d {1 0 0} s 16 v 0}} {region} {R} {region_id} {1002} {material_id} {1} {los} {100}
|
||||
put {xyrcc.s} tgc V {0 0 -0.004999999888241291046142578} H {0 0 0.009999999776482582092285156} A {0 -0.5 0} B {0.5 0 0} C {0 -0.5 0} D {0.5 0 0}
|
||||
put {xycut.c} comb region no tree {- {- {- {- {- {- {- {- {- {- {- {l xyrcc.s} {l cut0.s}} {l cut1.s}} {l cut3.s}} {l xrcc.s}} {l yrcc.s}} {l zrcc.s}} {l xyzrcc.s}} {l ringxytor.s}} {l viewdirtrc.s}} {l xyringtrc.s}} {l viewdirrcc.s}}
|
||||
put {disks.c} comb region no tree {u {- {l xyzrcc.s} {l xyrcc.s}} {l xyrcc.s}}
|
||||
put {rings.c} comb region no tree {u {l ringxytor.s} {l ringxyztor.s}}
|
||||
put {ztec.s} tgc V {0 0 1} H {0 0 0.1000000014901161193847656} A {0.02999999932944774627685547 0 0} B {0 0.02999999932944774627685547 0} C {0.0003000000142492353916168213 0 0} D {0 0.0003000000142492353916168213 0}
|
||||
put {ytec.s} tgc V {0 1 0} H {0 0.1000000014901161193847656 0} A {0.02999999932944774627685547 0 0} B {0 0 0.02999999932944774627685547} C {0.0003000000142492353916168213 0 0} D {0 0 0.0003000000142492353916168213}
|
||||
put {xtec.s} tgc V {1 0 0} H {0.1000000014901161193847656 0 0} A {0 0.02999999932944774627685547 0} B {0 0 0.02999999932944774627685547} C {0 0.0003000000142492353916168213 0} D {0 0 0.0003000000142492353916168213}
|
||||
put {zrcc.s} tgc V {0 0 0} H {0 0 1} A {0 -0.009999999776482582092285156 0} B {0.009999999776482582092285156 0 0} C {0 -0.009999999776482582092285156 0} D {0.009999999776482582092285156 0 0}
|
||||
put {yrcc.s} tgc V {0 0 0} H {0 1 0} A {0 0 0.009999999776482582092285156} B {0.009999999776482582092285156 0 0} C {0 0 0.009999999776482582092285156} D {0.009999999776482582092285156 0 0}
|
||||
put {xrcc.s} tgc V {0 0 0} H {1 0 0} A {0 0 -0.009999999776482582092285156} B {0 0.009999999776482582092285156 0} C {0 0 -0.009999999776482582092285156} D {0 0.009999999776482582092285156 0}
|
||||
put {cut4.s} arb8 V1 {1 1 1} V2 {1 -1 1} V3 {-1 -1 1} V4 {-1 1 1} V5 {-1 -1 -1} V6 {-1 -1 -1} V7 {-1 -1 -1} V8 {-1 -1 -1}
|
||||
put {cut3.s} arb8 V1 {1.010072231292724609375 1.0000178813934326171875 1.010089874267578125} V2 {1.010072231292724831419605 1.0000178813934326171875 -1.0000002384185791015625} V3 {-1.0000178813934326171875 -1.010072231292724609375 -1.0000002384185791015625} V4 {-1.0000178813934326171875 -1.010072231292724609375 1.01008987426757901317842} V5 {-1.0000178813934326171875 1.0000178813934326171875 -1.0000002384185791015625} V6 {-1.0000178813934326171875 1.0000178813934326171875 -1.0000002384185791015625} V7 {-1.0000178813934326171875 1.0000178813934326171875 -1.0000002384185791015625} V8 {-1.0000178813934326171875 1.0000178813934326171875 -1.0000002384185791015625}
|
||||
put {cut2.s} arb8 V1 {1 -1 -1.0051000118255615234375} V2 {1 1 -1.0051000118255615234375} V3 {1 1 -0.0051000118255615234375} V4 {1 -1 -0.0051000118255615234375} V5 {-1 -1 -1.0051000118255615234375} V6 {-1 1 -1.0051000118255615234375} V7 {-1 1 -0.0051000118255615234375} V8 {-1 -1 -0.0051000118255615234375}
|
||||
put {cut1.s} arb8 V1 {0 -1 -1} V2 {0 1 -1} V3 {0 1 1} V4 {0 -1 1} V5 {-1 -1 -1} V6 {-1 1 -1} V7 {-1 1 1} V8 {-1 -1 1}
|
||||
put {cut0.s} arb8 V1 {1 -1 -1} V2 {1 0 -1} V3 {1 0 1} V4 {1 -1 1} V5 {-1 -1 -1} V6 {-1 0 -1} V7 {-1 0 1} V8 {-1 -1 1}
|
||||
put {coordinates.c} comb region no tree {u {u {u {u {u {- {- {l xrcc.s} {l yrcc.s}} {l zrcc.s}} {- {- {l yrcc.s} {l xrcc.s}} {l zrcc.s}}} {- {- {l zrcc.s} {l xrcc.s}} {l yrcc.s}}} {l xtec.s}} {l ytec.s}} {l ztec.s}}
|
||||
put {ringxyztor.s} tor V {0 0 0} H {-0.7071067811865475727373109 0.7071067811865475727373109 0} r_a 0.4999999914428644998132256 r_h 0.009999999670806607177109271
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
rt -M -p50 -W \
|
||||
$*\
|
||||
aet.g\
|
||||
'diagram.r' \
|
||||
<<EOF
|
||||
viewsize 3.58095758486442e+00;
|
||||
orientation 4.58468551319667e-01 5.46381543126676e-01 5.36927647047512e-01 4.50535790606452e-01;
|
||||
eye_pt 2.16300884070308e+00 6.60866025843505e-01 3.68751836397137e-01;
|
||||
start 0; clean;
|
||||
end;
|
||||
|
||||
EOF
|
||||
@@ -1,43 +0,0 @@
|
||||
title {Single Row 7-ball Deep Groove 608Z Ball Bearing, 8mm ID x 22mm OD x 7mm}
|
||||
units mm
|
||||
put {ballgroove.s} tor V {0 0 0} H {0 1 0} r_a 7.5 r_h 2
|
||||
put {innerringrightround.s} tor V {0 3.399999999999999911182158 0} H {0 1 0} r_a 4.099999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {outerringmainin.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 9.599999999999999644728632} B {9.599999999999999644728632 0 0} C {0 0 9.599999999999999644728632} D {9.599999999999999644728632 0 0}
|
||||
put {outerringmaincenter.s} tgc V {0 -3.399999999999999911182158 0} H {0 6.799999999999999822364316 0} A {0 0 11} B {11 0 0} C {0 0 11} D {11 0 0}
|
||||
put {innerring2.s} tgc V {0 -3.399999999999999911182158 0} H {0 6.799999999999999822364316 0} A {0 0 5.400000000000000355271368} B {5.400000000000000355271368 0 0} C {0 0 5.400000000000000355271368} D {5.400000000000000355271368 0 0}
|
||||
put {innerring2leftround.s} tor V {0 -3.399999999999999911182158 0} H {0 1 0} r_a 5.299999999999999822364316 r_h 0.1000000000000000055511151
|
||||
put {outerringmaininrightround.s} tor V {0 3.399999999999999911182158 0} H {0 0.9999999999999998889776975 0} r_a 9.599999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {outerringinner2.s} tgc V {0 -2.200000000000000177635684 0} H {0 4.400000000000000355271368 0} A {0 0 9.5} B {9.5 0 0} C {0 0 9.5} D {9.5 0 0}
|
||||
put {outerringmainleftround.s} tor V {0 -3.399999999999999911182158 0} H {0 0.9999999999999998889776975 0} r_a 10.90000000000000035527137 r_h 0.1000000000000000055511151
|
||||
put {outerring.r} comb region yes tree {u {u {u {u {u {u {u {u {u {- {- {l outerringmaincenter.s} {l outerringmainfullcut.s}} {l ballgroove.s}} {- {- {l outerringmainout.s} {l outerringmainin.s}} {l ballgroove.s}}} {- {- {l outerringinner.s} {l outerringinnercut.s}} {l ballgroove.s}}} {- {- {l outerringinner2.s} {l outerringinnercut2.s}} {l ballgroove.s}}} {l outerringmainleftround.s}} {l outerringmainrightround.s}} {l outerringmaininleftround.s}} {l outerringmaininrightround.s}} {l outerringinnerrightround.s}} {l outerringinnerleftround.s}}
|
||||
attr set {outerring.r} {region} {R} {region_id} {1010} {material_id} {1} {los} {100}
|
||||
put {innerring.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 5.299999999999999822364316} B {5.299999999999999822364316 0 0} C {0 0 5.299999999999999822364316} D {5.299999999999999822364316 0 0}
|
||||
put {innerring.r} comb region yes tree {u {u {u {u {u {u {u {u {- {- {l innneroutercenter.s} {l ballgroove.s}} {l shaftcut1.s}} {- {- {l innerring.s} {l ballgroove.s}} {l shaftcut2.s}}} {- {- {l innerring2.s} {l ballgroove.s}} {l shaftcut1.s}}} {- {l innerlefttrc.s} {l shaftcut1.s}}} {- {l innerrighttrc.s} {l shaftcut1.s}}} {l innerring2leftround.s}} {l innerring2rightround.s}} {l innerringleftround.s}} {l innerringrightround.s}}
|
||||
attr set {innerring.r} {region} {R} {region_id} {1004} {material_id} {1} {los} {100}
|
||||
put {shaftcut2.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 4.099999999999999644728632} B {4.099999999999999644728632 0 0} C {0 0 4.099999999999999644728632} D {4.099999999999999644728632 0 0}
|
||||
put {shaftcut1.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 4} B {4 0 0} C {0 0 4} D {4 0 0}
|
||||
put {outerringinner.s} tgc V {0 -2.299999999999999822364316 0} H {0 4.599999999999999644728632 0} A {0 0 9.5} B {9.5 0 0} C {0 0 9.5} D {9.5 0 0}
|
||||
put {innerringleftround.s} tor V {0 -3.399999999999999911182158 0} H {0 1 0} r_a 4.099999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {outerringinnercut2.s} tgc V {0 -2.299999999999999822364316 0} H {0 4.599999999999999644728632 0} A {0 0 9} B {9 0 0} C {0 0 9} D {9 0 0}
|
||||
put {outerringinnerrightround.s} tor V {0 2.200000000000000177635684 0} H {0 0.9999999999999998889776975 0} r_a 9.099999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {innerrighttrc.s} tgc V {0 2.5 0} H {0 0.2000000000000000111022302 0} A {0 0 6.200000000000000177635684} B {6.200000000000000177635684 0 0} C {0 0 5.400000000000000355271368} D {5.400000000000000355271368 0 0}
|
||||
put {outerringmaininleftround.s} tor V {0 -3.399999999999999911182158 0} H {0 0.9999999999999998889776975 0} r_a 9.599999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {outerringinnercut.s} tgc V {0 -2.299999999999999822364316 0} H {0 4.599999999999999644728632 0} A {0 0 9.099999999999999644728632} B {9.099999999999999644728632 0 0} C {0 0 9.099999999999999644728632} D {9.099999999999999644728632 0 0}
|
||||
put {innneroutercenter.s} tgc V {0 -2.5 0} H {0 5 0} A {0 0 6.200000000000000177635684} B {6.200000000000000177635684 0 0} C {0 0 6.200000000000000177635684} D {6.200000000000000177635684 0 0}
|
||||
put {bearing} comb region no tree {u {u {l outerring.r} {l innerring.r}} {l balls.r}}
|
||||
attr set {bearing} {shader} {glass}
|
||||
put {balls.r} comb region yes tree {u {u {u {l ball101} {l ball201}} {u {l ball301} {l ball401}}} {u {u {l ball501} {l ball601}} {l ball701}}}
|
||||
attr set {balls.r} {region} {R} {region_id} {1011} {material_id} {1} {los} {100}
|
||||
put {innerlefttrc.s} tgc V {0 -2.5 0} H {0 -0.2000000000000000111022302 0} A {0 0 -6.200000000000000177635684} B {6.200000000000000177635684 0 0} C {0 0 -5.400000000000000355271368} D {5.400000000000000355271368 0 0}
|
||||
put {ball701} ell V {1.836909530733565887317127E-15 0 -7.5} A {2 0 4.898425415289509032845672E-16} B {0 2 0} C {-4.898425415289509032845672E-16 0 2}
|
||||
put {ball601} ell V {5.57358619108045960643949 0 -5.018479547691433673151096} A {1.338261212717715586961731 0 1.486289650954789154368996} B {0 2 0} C {-1.486289650954789154368996 0 1.338261212717715586961731}
|
||||
put {ball501} ell V {7.386058147591560540945466 0 1.302361332501977386755243} A {-0.3472963553338606623732687 0 1.969615506024416040631309} B {0 2 0} C {-1.969615506024416040631309 0 -0.3472963553338606623732687}
|
||||
put {ball401} ell V {3.521036720894181293317615 0 6.622106946441951969006823} A {-1.765895185717853754781004 0 0.9389431255717817226269517} B {0 2 0} C {-0.9389431255717817226269517 0 -1.765895185717853754781004}
|
||||
put {ball301} ell V {-3.050524823068503366130244 0 6.851590932319505888870026} A {-1.827090915285201511153446 0 -0.8134732861516008606272976} B {0 2 0} C {0.8134732861516008606272976 0 -1.827090915285201511153446}
|
||||
put {ball201} ell V {-7.277217947069973824625322 0 1.814414216997508377815507} A {-0.4838437911993355711182119 0 -1.940591452551992945885218} B {0 2 0} C {1.940591452551992945885218 0 -0.4838437911993355711182119}
|
||||
put {ball101} ell V {-5.910080652050415217502177 0 -4.617461064942436799185543} A {1.231322950651316583403627 0 -1.576021507213444028394633} B {0 2 0} C {1.576021507213444028394633 0 1.231322950651316583403627}
|
||||
put {outerringmainfullcut.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 9.5} B {9.5 0 0} C {0 0 9.5} D {9.5 0 0}
|
||||
put {outerringmainout.s} tgc V {0 -3.5 0} H {0 7 0} A {0 0 10.90000000000000035527137} B {10.90000000000000035527137 0 0} C {0 0 10.90000000000000035527137} D {10.90000000000000035527137 0 0}
|
||||
put {innerring2rightround.s} tor V {0 3.399999999999999911182158 0} H {0 1 0} r_a 5.299999999999999822364316 r_h 0.1000000000000000055511151
|
||||
put {outerringinnerleftround.s} tor V {0 -2.200000000000000177635684 0} H {0 0.9999999999999998889776975 0} r_a 9.099999999999999644728632 r_h 0.1000000000000000055511151
|
||||
put {outerringmainrightround.s} tor V {0 3.399999999999999911182158 0} H {0 0.9999999999999998889776975 0} r_a 10.90000000000000035527137 r_h 0.1000000000000000055511151
|
||||
@@ -1,25 +0,0 @@
|
||||
set(CHESS_PARTS
|
||||
bishop.asc
|
||||
chessboard.asc
|
||||
king.asc
|
||||
knight.asc
|
||||
pawn.asc
|
||||
queen.asc
|
||||
rook.asc
|
||||
)
|
||||
|
||||
foreach(piece ${CHESS_PARTS})
|
||||
ADD_G_TARGET(${piece} "BRL-CAD Geometry Models/Sample/Chess")
|
||||
endforeach(piece ${CHESS_PARTS})
|
||||
|
||||
CMAKEFILES(
|
||||
${CHESS_PARTS}
|
||||
CMakeLists.txt
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
@@ -1,27 +0,0 @@
|
||||
title {Bishop by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.06032399549610674427402301} C {2.864077970686895735497046 1.71612229850775266370988 1.889299368274914403542653} r 7.634087276719064618646371 r_d 1.673109642593672896637713
|
||||
put {head_fill.s} tgc V {0 0 58.80223912679091569088996} H {0 0 22.65963591768163354345234} A {5.387125525462328923254063 0 0} B {0 5.387125525462328923254063 0} C {5.200376920059111007788033 0 0} D {0 5.200376920059111007788033 0}
|
||||
put {head_bulb.c} comb region no tree {u {u {u {l head_tip.s} {l headeto1.s}} {u {l headeto2.s} {l headeto3.s}}} {u {l headtor.s} {l head_fill.s}}}
|
||||
put {head_tip.s} ell V {0 0 87.04042899999969051805238} A {4.122892005997910835901621 0 0} B {0 4.122892005997910835901621 0} C {0 0 1.842941974166217855568561}
|
||||
put {headeto3.s} eto V {4.688718984760804335454747E-15 0 59.13440800000000763247954} N {-7.947115565380555332745523E-18 0 -0.06489312323286719474957351} C {-4.236592184243099801221888 2.53851689495714083477651 -2.794683321910145679112247} r 6.747558139033351665148075 r_d 2.154325975943817361724086
|
||||
put {headeto2.s} eto V {0 0 69.75203000000003328295861} N {1.448859083826348923311558E-17 0 0.05915416121754862865955715} C {3.216284115722051861752107 0.07864296900740583295963404 7.027901354553716117834483} r 5.71636407530149437405953 r_d 5.245951427846474501848206
|
||||
put {headeto1.s} eto V {0 0 78.93410500000000240561349} N {-6.702751448643837023482541E-18 0 -0.05473211911638976162608472} C {-4.89647969165551177894713 -1.380861880325698898275277 -7.149314636959307023289512} r 5.669699999999999739941359 r_d 2.770284953476933154092876
|
||||
put {bodytor.s} tor V {0 0 25} H {6.12323399573676603586882E-17 0 1} r_a 8.61686192136895989790446 r_h 0.9710977822416242410952236
|
||||
put {bodycut.s} tor V {0 0 44.99824699999995658572516} H {6.12323399573676603586882E-17 0 1} r_a 84.47809976324354863663757 r_h 78.38786126059979153524182
|
||||
put {headtor.s} tor V {0 0 61.97812700000005747824616} H {3.061616997868383634231992E-16 0 1} r_a 8.239894264539179502548905 r_h 0.9722303169289367996697138
|
||||
put {baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 10.59850529883725656077331 r_d 4.265499428605880716247611
|
||||
put {headcut.s} rpc V {12.21216100000001958392204 7.476746999999903664502199 83.68170200000177771926246} H {-23.87939453125 2.601874869850522123907568E-16 1.438855652391413561129983E-15} B {-6.645126338810317127466624E-16 -8.09669190546901518246159 -9.5641987525274494430505} r 1.903339211850920698054779
|
||||
put {bishop.r} comb region yes tree {l bishop.c {1 0 0 0 0 1 0 0 0 0 1 0.960356 0 0 0 1}}
|
||||
attr set {bishop.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
|
||||
put {bishop.c} comb region no tree {u {u {l head.c} {l body.c}} {l bottom.c}}
|
||||
put {scene.g} comb region no tree {u {l bishop.r} {l tile.r}}
|
||||
put {body.s} tgc V {0 0 5.912562917080187219198706} H {0 0 56.83007219556699851636949} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {oshader} {plastic {sh 1}} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body.c} comb region no tree {u {- {l body.s} {l bodycut.s}} {l bodytor.s}}
|
||||
put {head.c} comb region no tree {- {l head_bulb.c} {l headcut.s}}
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
@@ -1,83 +0,0 @@
|
||||
title {Chessboard by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {board_cuts.c} comb region no tree {u {u {l boardcut1.s} {l boardcut2.s}} {u {l boardcut3.s} {l boardcut4.s}}}
|
||||
put {tiles_dark.r} comb region yes tree {l tiles_dark.c}
|
||||
attr set {tiles_dark.r} {oshader} {plastic} {region} {R} {shader} {plastic {re 0.1 sp 0.8 di 0.2}} {region_id} {1000} {material_id} {1} {los} {100} {color} {75/45/47}
|
||||
put {wood_plane.s} arb8 V1 {313.5 -313.5 -15} V2 {313.5 313.5 -15} V3 {313.5 313.5 5} V4 {313.5 -313.5 5} V5 {-313.5 -313.5 -15} V6 {-313.5 313.5 -15} V7 {-313.5 313.5 5} V8 {-313.5 -313.5 5}
|
||||
put {tiles_dark.c} comb region no tree {u {u {u {u {u {l a1.s} {l c1.s}} {u {l e1.s} {l g1.s}}} {u {u {l b2.s} {l d2.s}} {u {l f2.s} {l h2.s}}}} {u {u {u {l a3.s} {l c3.s}} {u {l e3.s} {l g3.s}}} {u {u {l b4.s} {l d4.s}} {u {l f4.s} {l h4.s}}}}} {u {u {u {u {l a5.s} {l c5.s}} {u {l e5.s} {l g5.s}}} {u {u {l b6.s} {l d6.s}} {u {l f6.s} {l h6.s}}}} {u {u {u {l a7.s} {l c7.s}} {u {l e7.s} {l g7.s}}} {u {u {l b8.s} {l d8.s}} {u {l f8.s} {l h8.s}}}}}}
|
||||
put {boardcut4.s} tgc V {-313.5 -313.5 5} H {-3.839267715326952574428091E-14 627 3.839267715326952574428091E-14} A {3.749399456654646756500121E-32 -6.123233995736770226692379E-16 10} B {42.75 2.617682533177467341666965E-15 0} C {3.74939945665464456697127E-32 -6.123233995736766282387853E-16 10} D {42.75 2.617682533177467341666965E-15 0}
|
||||
put {boardcut3.s} tgc V {313.5 -313.5 5} H {-627 0 3.839267715326952574428091E-14} A {6.123233995736770226692379E-16 0 10} B {0 42.75 0} C {6.123233995736766282387853E-16 0 10} D {0 42.75 0}
|
||||
put {boardcut2.s} tgc V {313.5 -313.5 5} H {-3.839267715326952574428091E-14 627 3.839267715326952574428091E-14} A {3.749399456654646756500121E-32 -6.123233995736770226692379E-16 10} B {42.75 2.617682533177467341666965E-15 0} C {3.74939945665464456697127E-32 -6.123233995736766282387853E-16 10} D {42.75 2.617682533177467341666965E-15 0}
|
||||
put {boardcut1.s} tgc V {313.5 313.5 5} H {-627 0 3.839267715326952574428091E-14} A {6.123233995736770226692379E-16 0 10} B {0 42.75 0} C {6.123233995736766282387853E-16 0 10} D {0 42.75 0}
|
||||
put {border.r} comb region yes tree {- {- {l wood_plane.s} {l tiles.c}} {l board_cuts.c}}
|
||||
attr set {border.r} {oshader} {plastic} {region} {R} {shader} {plastic {re 0.1 sp 0.8 di 0.2}} {region_id} {1002} {material_id} {1} {los} {100} {color} {245/227/174}
|
||||
put {tiles.c} comb region no tree {u {l tiles_light.r} {l tiles_dark.r}}
|
||||
put {board.g} comb region no tree {u {l tiles.c} {l border.r}}
|
||||
put {tiles_light.r} comb region yes tree {l tiles_light.c}
|
||||
attr set {tiles_light.r} {oshader} {plastic} {region} {R} {shader} {plastic {re 0.1 sp 0.8 di 0.2}} {region_id} {1001} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {h8.s} arb8 V1 {228 171 0} V2 {228 228 0} V3 {228 228 5} V4 {228 171 5} V5 {171 171 0} V6 {171 228 0} V7 {171 228 5} V8 {171 171 5}
|
||||
put {g8.s} arb8 V1 {171 171 0} V2 {171 228 0} V3 {171 228 5} V4 {171 171 5} V5 {114 171 0} V6 {114 228 0} V7 {114 228 5} V8 {114 171 5}
|
||||
put {f8.s} arb8 V1 {114 171 0} V2 {114 228 0} V3 {114 228 5} V4 {114 171 5} V5 {57 171 0} V6 {57 228 0} V7 {57 228 5} V8 {57 171 5}
|
||||
put {h7.s} arb8 V1 {228 114 0} V2 {228 171 0} V3 {228 171 5} V4 {228 114 5} V5 {171 114 0} V6 {171 171 0} V7 {171 171 5} V8 {171 114 5}
|
||||
put {e8.s} arb8 V1 {57 171 0} V2 {57 228 0} V3 {57 228 5} V4 {57 171 5} V5 {0 171 0} V6 {0 228 0} V7 {0 228 5} V8 {0 171 5}
|
||||
put {g7.s} arb8 V1 {171 114 0} V2 {171 171 0} V3 {171 171 5} V4 {171 114 5} V5 {114 114 0} V6 {114 171 0} V7 {114 171 5} V8 {114 114 5}
|
||||
put {d8.s} arb8 V1 {0 171 0} V2 {0 228 0} V3 {0 228 5} V4 {0 171 5} V5 {-57 171 0} V6 {-57 228 0} V7 {-57 228 5} V8 {-57 171 5}
|
||||
put {f7.s} arb8 V1 {114 114 0} V2 {114 171 0} V3 {114 171 5} V4 {114 114 5} V5 {57 114 0} V6 {57 171 0} V7 {57 171 5} V8 {57 114 5}
|
||||
put {h6.s} arb8 V1 {228 57 0} V2 {228 114 0} V3 {228 114 5} V4 {228 57 5} V5 {171 57 0} V6 {171 114 0} V7 {171 114 5} V8 {171 57 5}
|
||||
put {c8.s} arb8 V1 {-57 171 0} V2 {-57 228 0} V3 {-57 228 5} V4 {-57 171 5} V5 {-114 171 0} V6 {-114 228 0} V7 {-114 228 5} V8 {-114 171 5}
|
||||
put {e7.s} arb8 V1 {57 114 0} V2 {57 171 0} V3 {57 171 5} V4 {57 114 5} V5 {0 114 0} V6 {0 171 0} V7 {0 171 5} V8 {0 114 5}
|
||||
put {g6.s} arb8 V1 {171 57 0} V2 {171 114 0} V3 {171 114 5} V4 {171 57 5} V5 {114 57 0} V6 {114 114 0} V7 {114 114 5} V8 {114 57 5}
|
||||
put {b8.s} arb8 V1 {-114 171 0} V2 {-114 228 0} V3 {-114 228 5} V4 {-114 171 5} V5 {-171 171 0} V6 {-171 228 0} V7 {-171 228 5} V8 {-171 171 5}
|
||||
put {d7.s} arb8 V1 {0 114 0} V2 {0 171 0} V3 {0 171 5} V4 {0 114 5} V5 {-57 114 0} V6 {-57 171 0} V7 {-57 171 5} V8 {-57 114 5}
|
||||
put {f6.s} arb8 V1 {114 57 0} V2 {114 114 0} V3 {114 114 5} V4 {114 57 5} V5 {57 57 0} V6 {57 114 0} V7 {57 114 5} V8 {57 57 5}
|
||||
put {h5.s} arb8 V1 {228 0 0} V2 {228 57 0} V3 {228 57 5} V4 {228 0 5} V5 {171 0 0} V6 {171 57 0} V7 {171 57 5} V8 {171 0 5}
|
||||
put {a8.s} arb8 V1 {-171 171 0} V2 {-171 228 0} V3 {-171 228 5} V4 {-171 171 5} V5 {-228 171 0} V6 {-228 228 0} V7 {-228 228 5} V8 {-228 171 5}
|
||||
put {c7.s} arb8 V1 {-57 114 0} V2 {-57 171 0} V3 {-57 171 5} V4 {-57 114 5} V5 {-114 114 0} V6 {-114 171 0} V7 {-114 171 5} V8 {-114 114 5}
|
||||
put {e6.s} arb8 V1 {57 57 0} V2 {57 114 0} V3 {57 114 5} V4 {57 57 5} V5 {0 57 0} V6 {0 114 0} V7 {0 114 5} V8 {0 57 5}
|
||||
put {g5.s} arb8 V1 {171 0 0} V2 {171 57 0} V3 {171 57 5} V4 {171 0 5} V5 {114 0 0} V6 {114 57 0} V7 {114 57 5} V8 {114 0 5}
|
||||
put {b7.s} arb8 V1 {-114 114 0} V2 {-114 171 0} V3 {-114 171 5} V4 {-114 114 5} V5 {-171 114 0} V6 {-171 171 0} V7 {-171 171 5} V8 {-171 114 5}
|
||||
put {d6.s} arb8 V1 {0 57 0} V2 {0 114 0} V3 {0 114 5} V4 {0 57 5} V5 {-57 57 0} V6 {-57 114 0} V7 {-57 114 5} V8 {-57 57 5}
|
||||
put {f5.s} arb8 V1 {114 0 0} V2 {114 57 0} V3 {114 57 5} V4 {114 0 5} V5 {57 0 0} V6 {57 57 0} V7 {57 57 5} V8 {57 0 5}
|
||||
put {h4.s} arb8 V1 {228 -57 0} V2 {228 0 0} V3 {228 0 5} V4 {228 -57 5} V5 {171 -57 0} V6 {171 0 0} V7 {171 0 5} V8 {171 -57 5}
|
||||
put {a7.s} arb8 V1 {-171 114 0} V2 {-171 171 0} V3 {-171 171 5} V4 {-171 114 5} V5 {-228 114 0} V6 {-228 171 0} V7 {-228 171 5} V8 {-228 114 5}
|
||||
put {c6.s} arb8 V1 {-57 57 0} V2 {-57 114 0} V3 {-57 114 5} V4 {-57 57 5} V5 {-114 57 0} V6 {-114 114 0} V7 {-114 114 5} V8 {-114 57 5}
|
||||
put {e5.s} arb8 V1 {57 0 0} V2 {57 57 0} V3 {57 57 5} V4 {57 0 5} V5 {0 0 0} V6 {0 57 0} V7 {0 57 5} V8 {0 0 5}
|
||||
put {g4.s} arb8 V1 {171 -57 0} V2 {171 0 0} V3 {171 0 5} V4 {171 -57 5} V5 {114 -57 0} V6 {114 0 0} V7 {114 0 5} V8 {114 -57 5}
|
||||
put {b6.s} arb8 V1 {-114 57 0} V2 {-114 114 0} V3 {-114 114 5} V4 {-114 57 5} V5 {-171 57 0} V6 {-171 114 0} V7 {-171 114 5} V8 {-171 57 5}
|
||||
put {d5.s} arb8 V1 {0 0 0} V2 {0 57 0} V3 {0 57 5} V4 {0 0 5} V5 {-57 0 0} V6 {-57 57 0} V7 {-57 57 5} V8 {-57 0 5}
|
||||
put {f4.s} arb8 V1 {114 -57 0} V2 {114 0 0} V3 {114 0 5} V4 {114 -57 5} V5 {57 -57 0} V6 {57 0 0} V7 {57 0 5} V8 {57 -57 5}
|
||||
put {h3.s} arb8 V1 {228 -114 0} V2 {228 -57 0} V3 {228 -57 5} V4 {228 -114 5} V5 {171 -114 0} V6 {171 -57 0} V7 {171 -57 5} V8 {171 -114 5}
|
||||
put {a6.s} arb8 V1 {-171 57 0} V2 {-171 114 0} V3 {-171 114 5} V4 {-171 57 5} V5 {-228 57 0} V6 {-228 114 0} V7 {-228 114 5} V8 {-228 57 5}
|
||||
put {c5.s} arb8 V1 {-57 0 0} V2 {-57 57 0} V3 {-57 57 5} V4 {-57 0 5} V5 {-114 0 0} V6 {-114 57 0} V7 {-114 57 5} V8 {-114 0 5}
|
||||
put {e4.s} arb8 V1 {57 -57 0} V2 {57 0 0} V3 {57 0 5} V4 {57 -57 5} V5 {0 -57 0} V6 {0 0 0} V7 {0 0 5} V8 {0 -57 5}
|
||||
put {g3.s} arb8 V1 {171 -114 0} V2 {171 -57 0} V3 {171 -57 5} V4 {171 -114 5} V5 {114 -114 0} V6 {114 -57 0} V7 {114 -57 5} V8 {114 -114 5}
|
||||
put {b5.s} arb8 V1 {-114 0 0} V2 {-114 57 0} V3 {-114 57 5} V4 {-114 0 5} V5 {-171 0 0} V6 {-171 57 0} V7 {-171 57 5} V8 {-171 0 5}
|
||||
put {d4.s} arb8 V1 {0 -57 0} V2 {0 0 0} V3 {0 0 5} V4 {0 -57 5} V5 {-57 -57 0} V6 {-57 0 0} V7 {-57 0 5} V8 {-57 -57 5}
|
||||
put {f3.s} arb8 V1 {114 -114 0} V2 {114 -57 0} V3 {114 -57 5} V4 {114 -114 5} V5 {57 -114 0} V6 {57 -57 0} V7 {57 -57 5} V8 {57 -114 5}
|
||||
put {h2.s} arb8 V1 {228 -171 0} V2 {228 -114 0} V3 {228 -114 5} V4 {228 -171 5} V5 {171 -171 0} V6 {171 -114 0} V7 {171 -114 5} V8 {171 -171 5}
|
||||
put {a5.s} arb8 V1 {-171 0 0} V2 {-171 57 0} V3 {-171 57 5} V4 {-171 0 5} V5 {-228 0 0} V6 {-228 57 0} V7 {-228 57 5} V8 {-228 0 5}
|
||||
put {c4.s} arb8 V1 {-57 -57 0} V2 {-57 0 0} V3 {-57 0 5} V4 {-57 -57 5} V5 {-114 -57 0} V6 {-114 0 0} V7 {-114 0 5} V8 {-114 -57 5}
|
||||
put {e3.s} arb8 V1 {57 -114 0} V2 {57 -57 0} V3 {57 -57 5} V4 {57 -114 5} V5 {0 -114 0} V6 {0 -57 0} V7 {0 -57 5} V8 {0 -114 5}
|
||||
put {g2.s} arb8 V1 {171 -171 0} V2 {171 -114 0} V3 {171 -114 5} V4 {171 -171 5} V5 {114 -171 0} V6 {114 -114 0} V7 {114 -114 5} V8 {114 -171 5}
|
||||
put {b4.s} arb8 V1 {-114 -57 0} V2 {-114 0 0} V3 {-114 0 5} V4 {-114 -57 5} V5 {-171 -57 0} V6 {-171 0 0} V7 {-171 0 5} V8 {-171 -57 5}
|
||||
put {d3.s} arb8 V1 {0 -114 0} V2 {0 -57 0} V3 {0 -57 5} V4 {0 -114 5} V5 {-57 -114 0} V6 {-57 -57 0} V7 {-57 -57 5} V8 {-57 -114 5}
|
||||
put {f2.s} arb8 V1 {114 -171 0} V2 {114 -114 0} V3 {114 -114 5} V4 {114 -171 5} V5 {57 -171 0} V6 {57 -114 0} V7 {57 -114 5} V8 {57 -171 5}
|
||||
put {h1.s} arb8 V1 {228 -228 0} V2 {228 -171 0} V3 {228 -171 5} V4 {228 -228 5} V5 {171 -228 0} V6 {171 -171 0} V7 {171 -171 5} V8 {171 -228 5}
|
||||
put {a4.s} arb8 V1 {-171 -57 0} V2 {-171 0 0} V3 {-171 0 5} V4 {-171 -57 5} V5 {-228 -57 0} V6 {-228 0 0} V7 {-228 0 5} V8 {-228 -57 5}
|
||||
put {c3.s} arb8 V1 {-57 -114 0} V2 {-57 -57 0} V3 {-57 -57 5} V4 {-57 -114 5} V5 {-114 -114 0} V6 {-114 -57 0} V7 {-114 -57 5} V8 {-114 -114 5}
|
||||
put {e2.s} arb8 V1 {57 -171 0} V2 {57 -114 0} V3 {57 -114 5} V4 {57 -171 5} V5 {0 -171 0} V6 {0 -114 0} V7 {0 -114 5} V8 {0 -171 5}
|
||||
put {g1.s} arb8 V1 {171 -228 0} V2 {171 -171 0} V3 {171 -171 5} V4 {171 -228 5} V5 {114 -228 0} V6 {114 -171 0} V7 {114 -171 5} V8 {114 -228 5}
|
||||
put {b3.s} arb8 V1 {-114 -114 0} V2 {-114 -57 0} V3 {-114 -57 5} V4 {-114 -114 5} V5 {-171 -114 0} V6 {-171 -57 0} V7 {-171 -57 5} V8 {-171 -114 5}
|
||||
put {d2.s} arb8 V1 {0 -171 0} V2 {0 -114 0} V3 {0 -114 5} V4 {0 -171 5} V5 {-57 -171 0} V6 {-57 -114 0} V7 {-57 -114 5} V8 {-57 -171 5}
|
||||
put {f1.s} arb8 V1 {114 -228 0} V2 {114 -171 0} V3 {114 -171 5} V4 {114 -228 5} V5 {57 -228 0} V6 {57 -171 0} V7 {57 -171 5} V8 {57 -228 5}
|
||||
put {a3.s} arb8 V1 {-171 -114 0} V2 {-171 -57 0} V3 {-171 -57 5} V4 {-171 -114 5} V5 {-228 -114 0} V6 {-228 -57 0} V7 {-228 -57 5} V8 {-228 -114 5}
|
||||
put {c2.s} arb8 V1 {-57 -171 0} V2 {-57 -114 0} V3 {-57 -114 5} V4 {-57 -171 5} V5 {-114 -171 0} V6 {-114 -114 0} V7 {-114 -114 5} V8 {-114 -171 5}
|
||||
put {e1.s} arb8 V1 {57 -228 0} V2 {57 -171 0} V3 {57 -171 5} V4 {57 -228 5} V5 {0 -228 0} V6 {0 -171 0} V7 {0 -171 5} V8 {0 -228 5}
|
||||
put {b2.s} arb8 V1 {-114 -171 0} V2 {-114 -114 0} V3 {-114 -114 5} V4 {-114 -171 5} V5 {-171 -171 0} V6 {-171 -114 0} V7 {-171 -114 5} V8 {-171 -171 5}
|
||||
put {d1.s} arb8 V1 {0 -228 0} V2 {0 -171 0} V3 {0 -171 5} V4 {0 -228 5} V5 {-57 -228 0} V6 {-57 -171 0} V7 {-57 -171 5} V8 {-57 -228 5}
|
||||
put {a2.s} arb8 V1 {-171 -171 0} V2 {-171 -114 0} V3 {-171 -114 5} V4 {-171 -171 5} V5 {-228 -171 0} V6 {-228 -114 0} V7 {-228 -114 5} V8 {-228 -171 5}
|
||||
put {c1.s} arb8 V1 {-57 -228 0} V2 {-57 -171 0} V3 {-57 -171 5} V4 {-57 -228 5} V5 {-114 -228 0} V6 {-114 -171 0} V7 {-114 -171 5} V8 {-114 -228 5}
|
||||
put {b1.s} arb8 V1 {-114 -228 0} V2 {-114 -171 0} V3 {-114 -171 5} V4 {-114 -228 5} V5 {-171 -228 0} V6 {-171 -171 0} V7 {-171 -171 5} V8 {-171 -228 5}
|
||||
put {a1.s} arb8 V1 {-171 -228 0} V2 {-171 -171 0} V3 {-171 -171 5} V4 {-171 -228 5} V5 {-228 -228 0} V6 {-228 -171 0} V7 {-228 -171 5} V8 {-228 -228 5}
|
||||
put {tiles_light.c} comb region no tree {u {u {u {u {u {l b1.s} {l d1.s}} {u {l f1.s} {l h1.s}}} {u {u {l a2.s} {l c2.s}} {u {l e2.s} {l g2.s}}}} {u {u {u {l b3.s} {l d3.s}} {u {l f3.s} {l h3.s}}} {u {u {l a4.s} {l c4.s}} {u {l e4.s} {l g4.s}}}}} {u {u {u {u {l b5.s} {l d5.s}} {u {l f5.s} {l h5.s}}} {u {u {l a6.s} {l c6.s}} {u {l e6.s} {l g6.s}}}} {u {u {u {l b7.s} {l d7.s}} {u {l f7.s} {l h7.s}}} {u {u {l a8.s} {l c8.s}} {u {l e8.s} {l g8.s}}}}}}
|
||||
put {b} comb region no tree {l board.g}
|
||||
@@ -1,35 +0,0 @@
|
||||
title {King by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.06032399549610674427402301} C {2.864077970686895735497046 1.71612229850775266370988 1.889299368274914403542653} r 8.344052226122400384156208 r_d 1.673109642593672896637713
|
||||
put {crossbase.s} arb8 V1 {-1.399999999999999911182158 -2.100000000000000088817842 98.5} V2 {-1.399999999999999911182158 2.100000000000000088817842 98.5} V3 {1.399999999999999911182158 2.100000000000000088817842 98.5} V4 {1.399999999999999911182158 -2.100000000000000088817842 98.5} V5 {-1.399999999999999911182158 -3 94} V6 {-1.399999999999999911182158 3 94} V7 {1.399999999999999911182158 3 94} V8 {1.399999999999999911182158 -3 94}
|
||||
put {crossrpp2.s} arb8 V1 {1.399999999999999911182158 -5.5 97.84354270490985072683543} V2 {1.399999999999999911182158 5.5 97.84354270490985072683543} V3 {1.399999999999999911182158 5.5 102.5708639999999007841325} V4 {1.399999999999999911182158 -5.5 102.5708639999999007841325} V5 {-1.399999999999999911182158 -5.5 97.84354270490985072683543} V6 {-1.399999999999999911182158 5.5 97.84354270490985072683543} V7 {-1.399999999999999911182158 5.5 102.5708639999999007841325} V8 {-1.399999999999999911182158 -5.5 102.5708639999999007841325}
|
||||
put {crossrpp1.s} arb8 V1 {1.399999999999999911182158 -2 93.79999999999999715782906} V2 {1.399999999999999911182158 2 93.79999999999999715782906} V3 {1.399999999999999911182158 2 104.7999999999999971578291} V4 {1.399999999999999911182158 -2 104.7999999999999971578291} V5 {-1.399999999999999911182158 -2 93.79999999999999715782906} V6 {-1.399999999999999911182158 2 93.79999999999999715782906} V7 {-1.399999999999999911182158 2 104.7999999999999971578291} V8 {-1.399999999999999911182158 -2 104.7999999999999971578291}
|
||||
put {crowncut1.s} eto V {0 0 81.72700899999993850997271} N {0 0 0.6853489141366997383642001} C {7.936978064717960634766314 0.7583105325216803471732874 14.21238543732845016620558} r 19.09763828673395735791019 r_d 8.357084880198749843316364
|
||||
put {crossrcc2.s} tgc V {0 0 90.50940899999976352319209} H {0 0 3.460360060764851031223088} A {5.74552092081112419919009 0 0} B {0 5.74552092081112419919009 0} C {5.74552092081112419919009 0 0} D {0 5.74552092081112419919009 0}
|
||||
put {crosscap1.s} arb8 V1 {1.399999999999999911182158 -2 104.7999999999999971578291} V2 {1.399999999999999911182158 2 104.7999999999999971578291} V3 {-1.399999999999999911182158 2 104.7999999999999971578291} V4 {-1.399999999999999911182158 -2 104.7999999999999971578291} V5 {1.399999999999999911182158 0 106.7999999999999971578291} V6 {1.399999999999999911182158 0 106.7999999999999971578291} V7 {-1.399999999999999911182158 0 106.7999999999999971578291} V8 {-1.399999999999999911182158 0 106.7999999999999971578291}
|
||||
put {crossrcc1.s} tgc V {0 0 92.2746839999997803261067} H {0 0 2.791740440327786565433144} A {4.517371551035873622481631 0 0} B {0 4.517371551035873622481631 0} C {4.517371551035873622481631 0 0} D {0 4.517371551035873622481631 0}
|
||||
put {crowntop.s} ell V {0 0 89.56678299999987302726367} A {14.0447366829880344596404 0 0} B {0 14.44069976610209771195059 0} C {0 0 3.638257540532901401775234}
|
||||
put {crownrcc.s} tgc V {0 0 74.52245129853007199471904} H {0 0 15.07198012589280011752635} A {14.92710113237911251360401 0 0} B {0 14.92710113237911251360401 0} C {14.92710113237911251360401 0 0} D {0 14.92710113237911251360401 0}
|
||||
put {bodytor.s} tor V {0 0 25} H {6.12323399573676603586882E-17 0 1} r_a 9.461224391138355116481762 r_h 0.9710977822416242410952236
|
||||
put {bodyjut.s} ell V {0 0 63.05140500000015180148694} A {13.30005660511547738167337 0 0} B {0 13.30005660511547738167337 0} C {0 0 3.569547284150617283415841}
|
||||
put {bodycut.s} tor V {0 0 52.17296999999997808572516} H {6.12323399573676603586882E-17 0 1} r_a 107.7000000000000028421709 r_h 101.8122462061219977158544
|
||||
put {necktor.s} tor V {0 0 75.48642500000005384208634} H {3.061616997868383634231992E-16 0 1} r_a 8.239894264539179502548905 r_h 0.9722303169289367996697138
|
||||
put {baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 10.59850529883725656077331 r_d 4.265499428605880716247611
|
||||
put {necketo.s} eto V {4.688718984760806702037463E-15 0 73.78394899999960898639983} N {-6.414480946927261832397496E-18 0 -0.05237821183539019542774184} C {-3.419547585807252154666003 2.04895324878489937248105 -2.255716904279041923331306} r 6.983691090436433768218194 r_d 1.738855162288100331124951
|
||||
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
|
||||
put {cross.c} comb region no tree {u {u {u {l crossbase.s} {l crosscap1.s}} {u {l crossrpp1.s} {l crossrpp2.s}}} {u {l crossrcc1.s} {l crossrcc2.s}}}
|
||||
put {crown.c} comb region no tree {u {- {l crownrcc.s} {l crowncut1.s}} {- {l crowntop.s} {l crownrcc.s}}}
|
||||
attr set {crown.c} {inherit} {1}
|
||||
put {scene.g} comb region no tree {u {l king.r} {l tile.r}}
|
||||
put {body.s} tgc V {0 0 5.912562917080187219198706} H {0 0 69.67849364592308347710059} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {king.r} comb region yes tree {l king.c {1 0 0 0 0 1 0 0 0 0 1 0.960356 0 0 0 1}}
|
||||
attr set {king.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body.c} comb region no tree {u {u {- {l body.s} {l bodycut.s}} {l bodytor.s}} {l bodyjut.s}}
|
||||
put {king.c} comb region no tree {u {u {u {l cross.c} {l neck.c}} {u {l crown.c} {l body.c}}} {l bottom.c}}
|
||||
put {neck.c} comb region no tree {u {u {l necketo.s} {l necktor.s}} {l neck_filler.s}}
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
put {neck_filler.s} tgc V {0 0 72.44353981907315187527274} H {0 0 8.98374965637291111875129} A {7.656920043513968821002891 0 0} B {0 7.656920043513968821002891 0} C {7.142477262139500737703202 0 0} D {0 7.142477262139500737703202 0}
|
||||
@@ -1,37 +0,0 @@
|
||||
title {Knight by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {nosebridge.s} tgc V {9.352709000000004380126484 -3.525789999999890511617195 80.78344850000023313896236} H {-19.14158212483127030623109 -1.101398557933205700619376E-15 -4.008762911514063843746032E-16} A {3.673940397442060361078391E-16 -5.638155724715451455608672 -2.052120859954011056203171} B {0 -1.636701665453711651565527 4.496800868217849078689596} C {3.673940397442060361078391E-16 -5.638155724715451455608672 -2.052120859954010612113962} D {0 -1.636701665453711651565527 4.496800868217849078689596}
|
||||
put {bottomtor2.s} tor V {0 0 9.596580000000059840203903} H {6.12323399573676603586882E-17 0 1} r_a 13.70450855072022378067231 r_h 3.825815710827906279689614
|
||||
put {bottomtor1.s} tor V {0 0 28.10273999999994032350514} H {6.12323399573676603586882E-17 0 1} r_a 12.58196306773280248592073 r_h 1.732851834446541783307794
|
||||
put {bodysidecutleft.s} tgc V {53.6557214677912170941454 -33.67507614822139316856919 95.69336050000360671674571} H {-20.22449106457484546695014 143.9047313715058749039599 6.169122640972837335375385E-15} A {41.33529643904953587707496 5.809297064214792527536702 -2.55302085840457415599758} B {-6.045441934467547184794967 -0.8496314556149066055112939 -99.81347984218669466827123} C {41.33529643904953587707496 5.809297064214792527536702 -2.55302085840457415599758} D {-6.045441934467546296616547 -0.8496314556149064944889915 -99.81347984218669466827123}
|
||||
put {headsidecutleft.s} tgc V {22.4313670000000300319698 -28.39713199999998138878254 66.36153450000099951466837} H {6.936023102199139422907592 58.60216329849748717606417 21.47832101088326695048636} A {20.34482858059398324712674 -2.407969144867709410107182 0} B {0.8235739520514423483987798 6.958341187070909761303028 -19.25132668795071921863382} C {20.34482858059398324712674 -2.407969144867709410107182 0} D {0.8235739520514423483987798 6.958341187070909761303028 -19.25132668795071921863382}
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.06032399549610674427402301} C {2.864077970686895735497046 1.71612229850775266370988 1.889299368274914403542653} r 12.40790665756528099450406 r_d 1.673109642593672896637713
|
||||
put {bodyrcc2.s} tgc V {1.17739012233862844939333E-14 11.10387200000011453937532 69.77637950000288924456981} H {0 -6.924928138629929286196329 19.02608369223165496464389} A {13.69742765710896037489874 0 0} B {0 12.87137169313410289817057 4.684796170477387278197057} C {13.69742765710896037489874 0 0} D {0 12.87137169313410289817057 4.684796170477387278197057}
|
||||
put {bodycut.s} tor V {0 0 44.16302899999998743396645} H {6.12323399573676603586882E-17 0 1} r_a 107.6761975244730109579905 r_h 97.57911721751440836669644
|
||||
put {baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 12.99673099698723177652937 r_d 4.265499428605880716247611
|
||||
put {bodyrcc.s} tgc V {1.177390122338628764937692E-14 -5.261487999999998166344994 23.35826750000251195160672} H {0 28.82813499219855302158066 49.9317944939421209937791} A {18.70346099816892859735162 0 0} B {0 16.19767236310574887170333 -9.351730499084462522318972} C {18.70346099816892859735162 0 0} D {0 16.19767236310574887170333 -9.351730499084462522318972}
|
||||
put {headrcc.s} tgc V {2.364945229490083123615446E-14 -22.43134200000001854391485 70.83590250000071364411269} H {0 21.66504172617712953297087 7.885430312463741486794788} A {8.668888204531146612907833 0 0} B {0 2.96493438618794336036899 -8.146090276215920411573279} C {8.668888204531146612907833 0 0} D {0 2.96493438618794336036899 -8.146090276215920411573279}
|
||||
put {bodybottomsph.s} ell V {0 0 60.84612300000016915646484} A {33.54831727294207155409822 0 0} B {0 33.54831727294207155409822 0} C {0 0 33.54831727294207155409822}
|
||||
put {toptor.s} tor V {-1.290968171125081238436545E-14 26.0108720000002442418463 8.970701999999491249582206} H {1 0 0} r_a 65.14638440000000230156729 r_h 16.28659610000000057539182
|
||||
put {earcut.s} tgc V {6.942508314766508912183652E-14 -13.66162200000000304100922 85.5714520000014005063349} H {0 30.34242292565693688288775 11.04373878045554668858586} A {5 0 0} B {0 2.052120859954011500292381 -5.638155724715449679251833} C {5 0 0} D {0 2.052120859954011500292381 -5.638155724715449679251833}
|
||||
put {knight.r} comb region yes tree {l knight.c {1 0 0 0 0 1 0 0 0 0 1 0.960356 0 0 0 1}}
|
||||
attr set {knight.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {bottom.c} comb region no tree {u {u {u {l bottometo.s} {l bottomtor1.s}} {u {l bottomtor2.s} {l baseeto.s}}} {l base_filler.s}}
|
||||
put {bodyfrontcutright.s} tgc V {-13.74871600000018645459932 -33.1595789999997947461452 63.90854050000422859056926} H {-41.4843562340515603636959 49.43913057838897628926134 -5.652944372718708048669131E-15} A {-20.4576653316778021007849 -17.16601943455906820190648 -3.9911764866229089143701} B {4.529143121461073562272759 3.800402322767091778388249 -39.56063453447669076012971} C {-20.4576653316778021007849 -17.16601943455906820190648 -3.9911764866229089143701} D {4.529143121461073562272759 3.800402322767091778388249 -39.56063453447669076012971}
|
||||
put {eararb.s} arb8 V1 {-26.90565549999994132690517 -0.4176225000000420295442893 84.91516750000046442892199} V2 {-26.90565549999994132690517 7.334443121211129401615381 86.28206582524249768084701} V3 {26.30018901632412564595143 7.334443121211129401615381 86.28206582524249768084701} V4 {26.30018901632412564595143 -0.4176225000000420295442893 84.91516750000046442892199} V5 {-26.90565549999994132690517 2.091511985363494030565334 93.35068228383262578518043} V6 {-26.90565549999994132690517 2.091511985363494030565334 93.35068228383262578518043} V7 {26.300189016324097224242 2.091511985363494030565334 93.35068228383262578518043} V8 {26.300189016324097224242 2.091511985363494030565334 93.35068228383262578518043}
|
||||
put {knight.c} comb region no tree {u {u {l head.c} {l body.c}} {u {l base.c} {l bottom.c}}}
|
||||
put {mouth.s} arb8 V1 {-14.69511850000539787686193 -22.33384350000072160469244 67.49057449999915547778073} V2 {-14.69511850000507457991716 -22.33384350000071805197877 65.1856549462537060435352} V3 {14.5501529284419532928041 -22.33384350000074292097452 65.18565494625448764054454} V4 {14.55015292844173302455602 -22.3338435000007464736882 67.49057449999935442974675} V5 {-14.69511850000531438809048 -12.88574518707542360118623 69.9097041027158496717675} V6 {-14.69511850000531438809048 -12.88574518707542360118623 69.9097041027158496717675} V7 {14.55015292844241514558234 -12.88574518707783234106046 69.90970410271543755698076} V8 {14.55015292844241514558234 -12.88574518707783234106046 69.90970410271543755698076}
|
||||
put {bodyfrontcut.s} tgc V {-30.07391999999968135171002 -30.49249499999977786046657 57.49796150000538830227015} H {64.53820143527930497384659 5.398293464965921771651639E-15 1.446468374443825363721499E-15} A {1.653406732298293568477734E-15 -23.38457478442728287859609 13.50109054667402830318679} B {2.449293598294706907385594E-15 -20 -34.64101615137754208717524} C {1.653406732298293568477734E-15 -23.38457478442728287859609 13.50109054667402830318679} D {2.449293598294706907385594E-15 -20 -34.64101615137754208717524}
|
||||
put {scene.g} comb region no tree {u {l knight.r} {l tile.r}}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {base.s} tgc V {0 0 5.912562917080187219198706} H {0 0 23.32946212598685420402944} A {20.43520228184366160917307 0 0} B {0 20.43520228184366160917307 0} C {20.43520228184366160917307 0 0} D {0 20.43520228184366160917307 0}
|
||||
put {body.c} comb region no tree {u {- {- {- {- {- {n {n {l bodyrcc.s} {l bodybottomsph.s}} {l bodysidesph.s}} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l bodyfrontcutleft.s}} {l bodyfrontcutright.s}} {l bodyfrontcut.s}} {- {- {- {- {- {- {- {- {n {n {l bodyrcc2.s} {l bodysidesph.s}} {l toptor.s}} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l bodyfrontcutleft.s}} {l bodyfrontcutright.s}} {l bodyfrontcut.s}} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l bodyfrontcut.s}}}
|
||||
put {base.c} comb region no tree {u {u {u {u {l bottomtor1.s} {l bottomtor1.s}} {- {- {l base.s} {l bodycut.s}} {l bottomtor1.s}}} {l bottomtor1.s}} {l bottomtor1.s}}
|
||||
put {head.c} comb region no tree {u {u {- {- {- {- {- {n {l headrcc.s} {l toptor.s}} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l headsidecutleft.s}} {l headsidecutright.s}} {l mouth.s}} {- {- {- {- {l nosebridge.s} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l headsidecutleft.s}} {l headsidecutright.s}}} {- {- {- {- {- {l eararb.s} {l bodysidecutleft.s}} {l bodysidecutright.s}} {l headsidecutleft.s}} {l headsidecutright.s}} {l earcut.s}}}
|
||||
put {bodyfrontcutleft.s} tgc V {13.74871600000018645459932 -33.1595789999997947461452 63.90854050000422859056926} H {41.48435623405157457455061 49.43913057838896918383398 -5.65294437271870647094732E-15} A {20.45766533167779854807122 -17.16601943455906820190648 -3.99117648662290935845931} B {-4.529143121461062904131722 3.800402322767092222477459 -39.56063453447669076012971} C {20.45766533167779854807122 -17.16601943455906820190648 -3.99117648662290935845931} D {-4.529143121461062904131722 3.800402322767092222477459 -39.56063453447669076012971}
|
||||
put {bodysidecutright.s} tgc V {-53.6557214677912170941454 -33.67507614822139316856919 95.69336050000360671674571} H {20.22449106457484901966382 143.9047313715058749039599 6.169122640972837335375385E-15} A {-41.33529643904954298250232 5.809297064214777428503567 -2.553020858404567494659432} B {6.045441934467558731114423 -0.8496314556149066055112939 -99.81347984218669466827123} C {-41.33529643904954298250232 5.809297064214777428503567 -2.553020858404567494659432} D {6.045441934467559619292842 -0.8496314556149064944889915 -99.81347984218669466827123}
|
||||
put {headsidecutright.s} tgc V {-22.4313670000000300319698 -28.39713199999998138878254 66.36153450000099951466837} H {-6.936023102199119882982359 58.60216329849748717606417 21.47832101088326695048636} A {-20.34482858059398324712674 -2.407969144867712074642441 0} B {-0.8235739520514422373764774 6.958341187070909761303028 -19.2513266879507227713475} C {-20.34482858059398324712674 -2.407969144867712074642441 0} D {-0.8235739520514422373764774 6.958341187070909761303028 -19.2513266879507227713475}
|
||||
put {bodysidesph.s} ell V {1.591615728102624416351318E-12 -17.12677000000023497250368 59.51325500000131540900838} A {40 0 0} B {0 40 0} C {0 0 57.67733156681060791015625}
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
@@ -1,51 +0,0 @@
|
||||
title {Pawn by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {crowninset.s} tgc V {0 0 58} H {0 0 0.5999999999999999777955395} A {16.89118510350817103926602 0 0} B {0 16.89118510350817103926602 0} C {16.89118510350817103926602 0 0} D {0 16.89118510350817103926602 0}
|
||||
put {crowninner.s} tgc V {0 0 4} H {0 0 6} A {10.16165733953459060501245 0 0} B {0 10.16165733953459060501245 0} C {11.34243115837037585436065 0 0} D {0 11.34243115837037585436065 0}
|
||||
put {crowninsetsolid.s} tgc V {0 0 58} H {0 0 0.5999999999999999777955395} A {12.45527182860042714196425 0 0} B {0 12.45527182860042714196425 0} C {12.45527182860042714196425 0 0} D {0 12.45527182860042714196425 0}
|
||||
put {bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 9.486078136436923102792207 r_h 3.825815710827906279689614
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.05994492135330928977987597} C {2.846080192311732925958268 1.705338238468419920224051 1.877427068825471501156699} r 5.027862554501921543703702 r_d 1.662595872768639404526425
|
||||
put {1_bodytor.s} tor V {0 0 25} H {6.12323399573676603586882E-17 0 1} r_a 10.44723380101833853927928 r_h 0.9710977822416242410952236
|
||||
put {1_bodycut.s} tor V {0 0 41} H {6.12323399573676603586882E-17 0 1} r_a 86.63076947877770805916953 r_h 78.38786126059979153524182
|
||||
put {1_bodyeto.s} eto V {-0.2528320000000000011830537 0 53} N {0 0 0.03930267507158188844407221} C {11.02968444236560330296015 0 11.02968444236560330296015} r 16.28367943394245997978942 r_d 4.327199580192768735287245
|
||||
put {1_baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 10.59850529883725656077331 r_d 4.265499428605880716247611
|
||||
put {1_bodytop.c} comb region no tree {- {l bodytop.s} {l 1_bodyeto.s}}
|
||||
put {crowncut3.s} arb8 V1 {-13.99038105676657828269072 5.767949192431094829203175 4} V2 {11.9903810567665729536202 -9.232050807568883854514752 4.000000000000001776356839} V3 {11.9903810567665729536202 -9.232050807568883854514752 10.00000000000000355271368} V4 {-13.99038105676657828269072 5.767949192431094829203175 10} V5 {-11.99038105676654808462445 9.232050807568848327377964 4} V6 {13.99038105676657472997704 -5.767949192431118810020507 4.000000000000001776356839} V7 {13.99038105676657472997704 -5.767949192431118810020507 10.00000000000000355271368} V8 {-11.99038105676654808462445 9.232050807568848327377964 10}
|
||||
put {crowncut2.s} arb8 V1 {-11.99038105676656940090652 -9.232050807568908723510503 3.999999999999998223643161} V2 {13.99038105676658183540439 5.767949192431108151879471 3.99999999999999866773237} V3 {13.99038105676658538811807 5.767949192431077065634781 10.00000000000000355271368} V4 {-11.99038105676654453191077 -9.232050807568926487078897 10} V5 {-13.99038105676658716447491 -5.767949192431157889870974 3.99999999999999866773237} V6 {11.99038105676657472997704 9.232050807568862538232679 3.99999999999999911182158} V7 {11.990381056766564071836 9.232050807568855432805321 10.00000000000000355271368} V8 {-13.99038105676657472997704 -5.767949192431152560800456 10}
|
||||
put {crowncut1.s} arb8 V1 {1.999999999999999777955395 -14.99999999999999822364316 4} V2 {1.999999999999999777955395 14.99999999999999822364316 4} V3 {1.999999999999999777955395 14.99999999999999822364316 10} V4 {1.999999999999999777955395 -14.99999999999999822364316 10} V5 {-1.999999999999999777955395 -14.99999999999999822364316 4} V6 {-1.999999999999999777955395 14.99999999999999822364316 4} V7 {-1.999999999999999777955395 14.99999999999999822364316 10} V8 {-1.999999999999999777955395 -14.99999999999999822364316 10}
|
||||
put {crownrcc.s} tgc V {0 0 -2.292185375575158445826673} H {0 0 12.29218537557515844582667} A {14.16165733953459238136929 0 0} B {0 14.16165733953459238136929 0} C {14.16165733953459238136929 0 0} D {0 14.16165733953459238136929 0}
|
||||
put {1_bottom.c} comb region no tree {u {u {l 1_bottometo.s} {l 1_bottomtor.s}} {u {l 1_baseeto.s} {l 1_base_filler.s}}}
|
||||
put {bodyjut.s} tgc V {0 0 42} H {0 0 2.264716425774114583191476} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {bodytor.s} tor V {0 0 25.00000000000000355271368} H {6.12323399573676603586882E-17 0 1} r_a 6.146768722816724483948292 r_h 0.8241116028491989320414746
|
||||
put {bodytop.s} tgc V {0 0 45.57436401080622090375982} H {0 0 10.23282399021384136972301} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {bodycut.s} tor V {0 0 37.96582364986083035773845} H {6.12323399573676603586882E-17 0 1} r_a 67.81451175298326461415854 r_h 63.43019393270687800168162
|
||||
put {bodyeto.s} eto V {-0.2528320000000000011830537 0 53} N {0 0 0.03930267507158188844407221} C {11.02968444236560330296015 0 11.02968444236560330296015} r 16.28367943394245997978942 r_d 4.327199580192768735287245
|
||||
put {baseeto.s} eto V {0 0 4.281399000000007504240784} N {-4.792704526346514451144025E-18 0 -0.03913540238445389202182056} C {8.160812227361974535710942 -1.196165406603733272206114 -3.847323061096424634541791} r 9.284537665853610732824563 r_d 3.736676917349199378293179
|
||||
put {necketo.s} eto V {0 0 40.72638399999996039468897} N {-3.291837815534646033062117E-18 0 -0.02687989563869803977258499} C {4.168219486530275297297976 -0.6109538876782616423355421 -1.965060156692675530365477} r 5.706605353654313539379928 r_d 2.566512146398107763189955
|
||||
put {bodytop.c} comb region no tree {u {l head.s} {l necketo.s}}
|
||||
put {1_scene.g} comb region no tree {u {l rook.r {1 0 0 -58 0 1 0 0 0 0 1 0 0 0 0 1}} {l 1_tile.r {1 0 0 -58 0 1 0 0 0 0 1 0 0 0 0 1}}}
|
||||
put {1_base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
|
||||
put {1_body.s} tgc V {0 0 5.912562917080187219198706} H {0 0 49.90908570176724623479458} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {1_tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {1_tile.r} comb region yes tree {l 1_tile.s}
|
||||
attr set {1_tile.r} {region} {R} {color} {255/255/255} {los} {100} {material_id} {1} {region_id} {1000} {shader} {plastic {re 0.5 sh 1}}
|
||||
put {1_body.c} comb region no tree {u {u {- {l 1_body.s} {l 1_bodycut.s}} {l 1_bodytor.s}} {l bodyjut.s}}
|
||||
put {crown.c} comb region no tree {u {- {- {- {- {- {l crownrcc.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}} {l crowninner.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut1.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut2.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut3.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowninset.s}} {l crowninsetsolid.s}}
|
||||
put {scene.g} comb region no tree {u {l pawn.r} {l tile.r}}
|
||||
put {body.s} tgc V {0 0 -0.6898679999999998146975599} H {0 0 42.85638383046779154028627} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {pawn.r} comb region yes tree {l pawn.c {1 0 0 0 0 1 0 0 0 0 1 0.991685000000004 0 0 0 1}}
|
||||
attr set {pawn.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {rook.r} comb region yes tree {l rook.c {1 0 0 0 0 1 0 0 0 0 1 1.090422 0 0 0 1}}
|
||||
attr set {rook.r} {region} {R} {color} {255/255/217} {los} {100} {material_id} {1} {region_id} {1000} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {oshader} {plastic {sh 1}} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body.c} comb region no tree {u {- {l body.s} {l bodycut.s}} {l bodytor.s}}
|
||||
put {pawn.c} comb region no tree {u {u {l top.c} {l body.c}} {u {l bottom.c} {l bodytop.c}}}
|
||||
put {rook.c} comb region no tree {u {u {l crown.c} {l 1_body.c}} {u {l 1_bottom.c} {l 1_bodytop.c}}}
|
||||
put {head.s} ell V {0 0 52.26777799999997853319655} A {10.18854239405582262634198 0 0} B {0 10.18854239405582262634198 0} C {0 0 10.18854239405582262634198}
|
||||
put {top.c} comb region no tree {u {l head.s} {l necketo.s}}
|
||||
put {1_bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
|
||||
put {1_bottometo.s} eto V {0 0 20} N {0 0 0.07140720069529053748436098} C {3.390289200472452524337541 2.031421963671408370544214 2.236416504815224470803514} r 9.036682630367613100474955 r_d 1.980506679827312765951319
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {14.57675099872487578522851 0 0} B {0 14.57675099872487578522851 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
@@ -1,44 +0,0 @@
|
||||
title {Queen by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {crown_fill.s} tgc V {0 0 85.4996148325125346900677} H {0 0 3.961725628291488110477303} A {13.92497241322581302824801 0 0} B {0 13.92497241322581302824801 0} C {10.3643310870127276501762 0 0} D {0 10.3643310870127276501762 0}
|
||||
put {crown_main.c} comb region no tree {u {u {- {- {l crownrcc.s} {l crowncut1.s}} {l crowncut2.s}} {- {- {l crown_fill.s} {l crowncut2.s}} {l crownrcc.s}}} {- {- {- {l crowneto1.s} {l crownrcc.s}} {l crowncut2.s}} {l crown_fill.s}}}
|
||||
put {bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.06032399549610674427402301} C {2.864077970686895735497046 1.71612229850775266370988 1.889299368274914403542653} r 7.93389995193779462567818 r_d 1.673109642593672896637713
|
||||
put {head_fill.s} tgc V {0 0 67.65223912679090290112072} H {0 0 22.65963591768163354345234} A {5.387125525462328923254063 0 0} B {0 5.387125525462328923254063 0} C {5.200376920059111007788033 0 0} D {0 5.200376920059111007788033 0}
|
||||
put {crowncut2.s} tgc V {0 0 86.89911600000084490602603} H {0 0 6.858375356511876574927555} A {9.438877285833902064382528 0 0} B {0 9.438877285833902064382528 0} C {15.49844917074207906182437 0 0} D {0 15.49844917074207906182437 0}
|
||||
put {crowncut1.s} eto V {0 0 77.72700899999993850997271} N {0 0 0.6853489141366997383642001} C {7.936978064717960634766314 0.7583105325216803471732874 14.21238543732845016620558} r 19.09763828673395735791019 r_d 8.357084880198749843316364
|
||||
put {crowneto1.s} eto V {1.577721810442023610823457E-30 0 87.39109400000032223942981} N {-1.573547818886363209483057E-17 0 -0.04282997677321952190165888} C {-1.665828485074095866025345 -1.27132480626570165682665 -1.898428097677101966667124} r 12.13000000000000078159701 r_d 1.123246664863733368378007
|
||||
put {crownell8.s} ell V {-13.73660800000212844906855 2.220446049250313080847263E-14 87.68836799997369269021874} A {0 -2.442952198710223399302777 1.005777905178345307186806E-16} B {3.658968546871206317661063 0 3.323573023963026340510396} C {-0.7091037075487675034324297 0 0.7806623003868651267112}
|
||||
put {crownell7.s} ell V {-9.713248667302867289663482 9.713248667302899264086591 87.68836799997369269021874} A {-1.727428065822585123711974 -1.727428065822585123711974 1.005777905178345307186806E-16} B {2.587281471640917818177741 -2.587281471640917818177741 3.323573023963026340510396} C {-0.5014120401722559350332631 0.5014120401722559350332631 0.7806623003868651267112}
|
||||
put {crownell6.s} ell V {2.220446049250313080847263E-14 13.73660800000212844906855 87.68836799997369269021874} A {-2.442952198710223399302777 0 1.005777905178345307186806E-16} B {0 -3.658968546871206317661063 3.323573023963026340510396} C {0 0.7091037075487675034324297 0.7806623003868651267112}
|
||||
put {crownell5.s} ell V {9.713248667302899264086591 9.713248667302867289663482 87.68836799997369269021874} A {-1.727428065822585123711974 1.727428065822585123711974 1.005777905178345307186806E-16} B {-2.587281471640917818177741 -2.587281471640917818177741 3.323573023963026340510396} C {0.5014120401722559350332631 0.5014120401722559350332631 0.7806623003868651267112}
|
||||
put {crownell4.s} ell V {13.73660800000212844906855 -2.220446049250313080847263E-14 87.68836799997369269021874} A {0 2.442952198710223399302777 1.005777905178345307186806E-16} B {-3.658968546871206317661063 0 3.323573023963026340510396} C {0.7091037075487675034324297 0 0.7806623003868651267112}
|
||||
put {crownell3.s} ell V {9.713248667302867289663482 -9.713248667302899264086591 87.68836799997369269021874} A {1.727428065822584901667369 1.727428065822584901667369 1.005777905178345307186806E-16} B {-2.587281471640917818177741 2.587281471640917818177741 3.323573023963026340510396} C {0.5014120401722559350332631 -0.5014120401722559350332631 0.7806623003868651267112}
|
||||
put {crownell2.s} ell V {-2.220446049250313080847263E-14 -13.73660800000212844906855 87.68836799997369269021874} A {2.442952198710222955213567 0 1.005777905178345307186806E-16} B {0 3.658968546871206317661063 3.323573023963026340510396} C {0 -0.7091037075487675034324297 0.7806623003868651267112}
|
||||
put {crownell1.s} ell V {-9.713248667302899264086591 -9.713248667302867289663482 87.68836799997369269021874} A {1.727428065822584679622764 -1.727428065822584679622764 1.005777905178345307186806E-16} B {2.587281471640917818177741 2.587281471640917818177741 3.323573023963026340510396} C {-0.5014120401722559350332631 -0.5014120401722559350332631 0.7806623003868651267112}
|
||||
put {crownrcc.s} tgc V {0 0 70.52245129853007199471904} H {0 0 15.07198012589280011752635} A {14.92710113237911251360401 0 0} B {0 14.92710113237911251360401 0} C {14.92710113237911251360401 0 0} D {0 14.92710113237911251360401 0}
|
||||
put {head_tip.s} ell V {0 0 94.91151499999973850663082} A {3.119016812725599496758377 0 0} B {0 3.119016812725599496758377 0} C {0 0 1.345488882629591875783603}
|
||||
put {crownell.c} comb region no tree {u {u {u {l crownell1.s} {l crownell2.s}} {u {l crownell3.s} {l crownell4.s}}} {u {u {l crownell5.s} {l crownell6.s}} {u {l crownell7.s} {l crownell8.s}}}}
|
||||
put {headeto1.s} eto V {0 0 89.57779000000000735326466} N {-5.519803738384860362821316E-18 0 -0.04507261801711288928817822} C {-4.376792271273803436315575 -1.09418866449798435347418 -4.1289869793813673837235} r 4.82069915201276888438997 r_d 2.281365997196153738713065
|
||||
put {bodytor.s} tor V {0 0 25} H {6.12323399573676603586882E-17 0 1} r_a 9.140689709069368618088447 r_h 0.9710977822416242410952236
|
||||
put {bodyjut.s} ell V {0 0 57.95812100000001976241037} A {13.30005660511547738167337 0 0} B {0 13.30005660511547738167337 0} C {0 0 3.569547284150617283415841}
|
||||
put {bodycut.s} tor V {0 0 46.43319499999997646000338} H {6.12323399573676603586882E-17 0 1} r_a 84.47809976324354863663757 r_h 78.38786126059979153524182
|
||||
put {necktor.s} tor V {0 0 70.41021300000004146113497} H {3.061616997868383634231992E-16 0 1} r_a 8.239894264539179502548905 r_h 0.9722303169289367996697138
|
||||
put {baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 10.59850529883725656077331 r_d 4.265499428605880716247611
|
||||
put {necketo.s} eto V {4.688718984760804335454747E-15 0 67.98440800000000194813765} N {-7.947115565380555332745523E-18 0 -0.06489312323286719474957351} C {-4.236592184243099801221888 2.53851689495714083477651 -2.794683321910145679112247} r 6.747558139033351665148075 r_d 2.154325975943817361724086
|
||||
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
|
||||
put {queen.r} comb region yes tree {l queen.c {1 0 0 0 0 1 0 0 0 0 1 0.960356 0 0 0 1}}
|
||||
attr set {queen.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {crown.c} comb region no tree {- {l crown_main.c} {l crownell.c}}
|
||||
attr set {crown.c} {inherit} {1}
|
||||
put {queen.c} comb region no tree {u {u {u {l head.c} {l neck.c}} {u {l crown.c} {l body.c}}} {l bottom.c}}
|
||||
put {scene.g} comb region no tree {u {l queen.r} {l tile.r}}
|
||||
put {body.s} tgc V {0 0 5.912562917080187219198706} H {0 0 59.45235824170033822611003} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body.c} comb region no tree {u {u {- {l body.s} {l bodycut.s}} {l bodytor.s}} {l bodyjut.s}}
|
||||
put {neck.c} comb region no tree {u {u {l necketo.s} {l necktor.s}} {l neck_filler.s}}
|
||||
put {head.c} comb region no tree {u {u {l head_tip.s} {l headeto1.s}} {l head_fill.s}}
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
put {neck_filler.s} tgc V {5.044847376139677212870351E-16 0.11939600000000516466514 64.39600271525775099235034} H {0 0 13.56002315446382588959295} A {7.491481711620123995487575 0 0} B {0 7.491481711620123995487575 0} C {7.491481711620123995487575 0 0} D {0 7.491481711620123995487575 0}
|
||||
@@ -1,30 +0,0 @@
|
||||
title {Rook by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {crowninset.s} tgc V {0 0 58} H {0 0 0.5999999999999999777955395} A {16.89118510350817103926602 0 0} B {0 16.89118510350817103926602 0} C {16.89118510350817103926602 0 0} D {0 16.89118510350817103926602 0}
|
||||
put {crowninner.s} tgc V {0 0 4} H {0 0 6} A {10.16165733953459060501245 0 0} B {0 10.16165733953459060501245 0} C {11.34243115837037585436065 0 0} D {0 11.34243115837037585436065 0}
|
||||
put {crowninsetsolid.s} tgc V {0 0 58} H {0 0 0.5999999999999999777955395} A {12.45527182860042714196425 0 0} B {0 12.45527182860042714196425 0} C {12.45527182860042714196425 0 0} D {0 12.45527182860042714196425 0}
|
||||
put {bottomtor.s} tor V {0 0 9} H {6.12323399573676603586882E-17 0 1} r_a 11.78466675885103676080234 r_h 3.825815710827906279689614
|
||||
put {bottometo.s} eto V {0 0 20} N {0 0 0.07140720069529053748436098} C {3.390289200472452524337541 2.031421963671408370544214 2.236416504815224470803514} r 9.036682630367613100474955 r_d 1.980506679827312765951319
|
||||
put {crowncut3.s} arb8 V1 {-13.99038105676657828269072 5.767949192431094829203175 4} V2 {11.9903810567665729536202 -9.232050807568883854514752 4.000000000000001776356839} V3 {11.9903810567665729536202 -9.232050807568883854514752 10.00000000000000355271368} V4 {-13.99038105676657828269072 5.767949192431094829203175 10} V5 {-11.99038105676654808462445 9.232050807568848327377964 4} V6 {13.99038105676657472997704 -5.767949192431118810020507 4.000000000000001776356839} V7 {13.99038105676657472997704 -5.767949192431118810020507 10.00000000000000355271368} V8 {-11.99038105676654808462445 9.232050807568848327377964 10}
|
||||
put {crowncut2.s} arb8 V1 {-11.99038105676656940090652 -9.232050807568908723510503 3.999999999999998223643161} V2 {13.99038105676658183540439 5.767949192431108151879471 3.99999999999999866773237} V3 {13.99038105676658538811807 5.767949192431077065634781 10.00000000000000355271368} V4 {-11.99038105676654453191077 -9.232050807568926487078897 10} V5 {-13.99038105676658716447491 -5.767949192431157889870974 3.99999999999999866773237} V6 {11.99038105676657472997704 9.232050807568862538232679 3.99999999999999911182158} V7 {11.990381056766564071836 9.232050807568855432805321 10.00000000000000355271368} V8 {-13.99038105676657472997704 -5.767949192431152560800456 10}
|
||||
put {crowncut1.s} arb8 V1 {1.999999999999999777955395 -14.99999999999999822364316 4} V2 {1.999999999999999777955395 14.99999999999999822364316 4} V3 {1.999999999999999777955395 14.99999999999999822364316 10} V4 {1.999999999999999777955395 -14.99999999999999822364316 10} V5 {-1.999999999999999777955395 -14.99999999999999822364316 4} V6 {-1.999999999999999777955395 14.99999999999999822364316 4} V7 {-1.999999999999999777955395 14.99999999999999822364316 10} V8 {-1.999999999999999777955395 -14.99999999999999822364316 10}
|
||||
put {crownrcc.s} tgc V {0 0 -2.292185375575158445826673} H {0 0 12.29218537557515844582667} A {14.16165733953459238136929 0 0} B {0 14.16165733953459238136929 0} C {14.16165733953459238136929 0 0} D {0 14.16165733953459238136929 0}
|
||||
put {bodyjut.s} tgc V {0 0 42} H {0 0 2.264716425774114583191476} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {bodytor.s} tor V {0 0 25} H {6.12323399573676603586882E-17 0 1} r_a 10.44723380101833853927928 r_h 0.9710977822416242410952236
|
||||
put {bodytop.s} tgc V {0 0 45.57436401080622090375982} H {0 0 10.23282399021384136972301} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {bodycut.s} tor V {0 0 41} H {6.12323399573676603586882E-17 0 1} r_a 86.63076947877770805916953 r_h 78.38786126059979153524182
|
||||
put {bodyeto.s} eto V {-0.2528320000000000011830537 0 53} N {0 0 0.03930267507158188844407221} C {11.02968444236560330296015 0 11.02968444236560330296015} r 16.28367943394245997978942 r_d 4.327199580192768735287245
|
||||
put {baseeto.s} eto V {0 0 5} N {-5.470978323999804257192075E-18 0 -0.04467392825269222295103688} C {9.315747832292275987242647 -1.365449293915910411456593 -4.391804451322707691929281} r 10.59850529883725656077331 r_d 4.265499428605880716247611
|
||||
put {bodytop.c} comb region no tree {- {l bodytop.s} {l bodyeto.s}}
|
||||
put {bottom.c} comb region no tree {u {u {l bottometo.s} {l bottomtor.s}} {u {l baseeto.s} {l base_filler.s}}}
|
||||
put {crown.c} comb region no tree {u {- {- {- {- {- {l crownrcc.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}} {l crowninner.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut1.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut2.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowncut3.s {1 0 0 0 0 1 0 0 0 0 1 58 0 0 0 1}}} {l crowninset.s}} {l crowninsetsolid.s}}
|
||||
put {scene.g} comb region no tree {u {l rook.r} {l tile.r}}
|
||||
put {body.s} tgc V {0 0 5.912562917080187219198706} H {0 0 49.90908570176724623479458} A {14.1579783735264754795935 0 0} B {0 14.1579783735264754795935 0} C {14.1579783735264754795935 0 0} D {0 14.1579783735264754795935 0}
|
||||
put {rook.r} comb region yes tree {l rook.c {1 0 0 0 0 1 0 0 0 0 1 1.090422 0 0 0 1}}
|
||||
attr set {rook.r} {region} {R} {shader} {plastic {re 0.1 sp 0.9 di 0.1 sh 50 ex 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/217}
|
||||
put {tile.s} arb8 V1 {28.5 -28.5 0} V2 {28.5 28.5 0} V3 {28.5 28.5 -1} V4 {28.5 -28.5 -1} V5 {-28.5 -28.5 0} V6 {-28.5 28.5 0} V7 {-28.5 28.5 -1} V8 {-28.5 -28.5 -1}
|
||||
put {tile.r} comb region yes tree {l tile.s}
|
||||
attr set {tile.r} {oshader} {plastic {sh 1}} {region} {R} {shader} {plastic {re 0.5 sh 1}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body.c} comb region no tree {u {u {- {l body.s} {l bodycut.s}} {l bodytor.s}} {l bodyjut.s}}
|
||||
put {rook.c} comb region no tree {u {u {l crown.c} {l body.c}} {u {l bottom.c} {l bodytop.c}}}
|
||||
put {base_filler.s} tgc V {0 0 -0.8138631382182293094729175} H {0 0 12.74035922868059600432389} A {16.38855503646686528895771 0 0} B {0 16.38855503646686528895771 0} C {9.863417071382475143082047 0 0} D {0 4.931708535691237571541023 0}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
set(COMGEOM_V5_MODELS
|
||||
ADA073408.comgeom
|
||||
)
|
||||
|
||||
foreach(comgeom_input ${COMGEOM_V5_MODELS})
|
||||
ADD_G_TARGET(${comgeom_input} "BRL-CAD Geometry Models/Sample")
|
||||
endforeach(comgeom_input ${COMGEOM_V5_MODELS})
|
||||
|
||||
CMAKEFILES(
|
||||
${COMGEOM_V5_MODELS}
|
||||
CMakeLists.txt
|
||||
README_ADA073408
|
||||
ADA073408_inputs.tar.gz
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
@@ -1,17 +0,0 @@
|
||||
Model ADA073408.comgeom is a transcription of the model documented in
|
||||
the 1979 public release report:
|
||||
|
||||
A Combinatorial Geometry Computer Description of the MEP-021A Generator Set
|
||||
http://www.dtic.mil/docs/citations/ADA073408
|
||||
|
||||
A series of Google GCI tasks worked to transcribe the ASCII COMGEOM
|
||||
description from the original report to text, and post-processed it
|
||||
into a form that the comgeom-g importer can handle:
|
||||
|
||||
http://www.google-melange.com/gci/task/view/google/gci2013/5597236545191936
|
||||
http://www.google-melange.com/gci/task/view/google/gci2014/5293529710460928
|
||||
http://www.google-melange.com/gci/task/view/google/gci2014/5792678377684992
|
||||
|
||||
The file ADA073408_inputs.tar.gz contains the original transcribed
|
||||
files and the script used to create the comgeom file.
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
string(REPLACE "\\" "" GCV_EXEC "${EXEC}")
|
||||
set(INPUT_FILE "@INPUT_FILE@")
|
||||
set(OUTPUT_FILE "@OUTPUT_FILE@")
|
||||
set(BIN_DIR "@BIN_DIR@")
|
||||
|
||||
# NOTE: OUTPUT_FILE needs to be defined in terms of a path relative to the root
|
||||
# of the build diretory, not as an absolute path. Since that root may change
|
||||
# at runtime in multiconfig builds, the full output path cannot be encoded
|
||||
# directly into the generated script.
|
||||
get_filename_component(OF_ABS "${OUTPUT_FILE}" ABSOLUTE)
|
||||
if ("${OF_ABS}" STREQUAL "${OUTPUT_FILE}")
|
||||
message(FATAL_ERROR "Absoute output file path \"${OUTPUT_FILE}\" supplied for conversion of \"${INPUT_FILE}\" - path must be relative.")
|
||||
endif ("${OF_ABS}" STREQUAL "${OUTPUT_FILE}")
|
||||
|
||||
# Because the build directory changes at runtime in multiconfig builds, we
|
||||
# need to deduce its current value from GCV_EXEC.
|
||||
get_filename_component(CBDIR "${GCV_EXEC}" DIRECTORY)
|
||||
string(REGEX REPLACE "${BIN_DIR}$" "" CROOT "${CBDIR}")
|
||||
|
||||
# BRLCAD_ROOT is the hammer that makes certain we are running
|
||||
# things found in the build directory.
|
||||
set(ENV{BRLCAD_ROOT} "${CROOT}")
|
||||
|
||||
# Now that we know the root, finalize the full path output file location
|
||||
set(OUTPUT_FILE "${CROOT}/${OUTPUT_FILE}")
|
||||
|
||||
execute_process(
|
||||
COMMAND "${GCV_EXEC}" -o "${OUTPUT_FILE}" "${INPUT_FILE}"
|
||||
RESULT_VARIABLE conv_result OUTPUT_VARIABLE conv_log ERROR_VARIABLE conv_log
|
||||
)
|
||||
|
||||
if(conv_result)
|
||||
message(FATAL_ERROR "[geometry conversion] Failure: ${conv_result}\n${GCV_EXEC} -o \"${OUTPUT_FILE}\" \"${INPUT_FILE}\"\n\n${conv_log}")
|
||||
endif(conv_result)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
@@ -1,28 +0,0 @@
|
||||
title {Parts of: Untitled v4 BRL-CAD Database}
|
||||
units mm
|
||||
put {ceiling2.s} arb8 V1 {213 548.7000122069999861196266 227} V2 {343 548.7000122069999861196266 227} V3 {343 548.9013314395830320790992 227} V4 {213 548.9013314395830320790992 227} V5 {213 548.7000122069999861196266 332} V6 {343 548.7000122069999861196266 332} V7 {343 548.9013314395830320790992 332} V8 {213 548.9013314395830320790992 332}
|
||||
put {floor.s} arb8 V1 {0 -10 0} V2 {556 -10 0} V3 {556 0 0} V4 {0 0 0} V5 {0 -10 559.2000122069999861196266} V6 {556 -10 559.2000122069999861196266} V7 {556 0 559.2000122069999861196266} V8 {0 0 559.2000122069999861196266}
|
||||
put {floor.r} comb region yes tree {l floor.s}
|
||||
attr set {floor.r} {region} {R} {shader} {osl {shadername red}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/0/0}
|
||||
put {light.s} arb8 V1 {213 548.7999877930000138803734 227} V2 {343 548.7999877930000138803734 227} V3 {343 548.8999877944901299997582 227} V4 {213 548.8999877944901299997582 227} V5 {213 548.7999877930000138803734 332} V6 {343 548.7999877930000138803734 332} V7 {343 548.8999877944901299997582 332} V8 {213 548.8999877944901299997582 332}
|
||||
put {light.r} comb region yes tree {l light.s}
|
||||
attr set {light.r} {region} {R} {shader} {osl {shadername emitter#power#float#75.0}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {right_wall.s} arb8 V1 {-10 -10 0} V2 {0 -10 0} V3 {0 558.7999877930000138803734 0} V4 {-10 558.7999877930000138803734 0} V5 {-10 -10 569.2000122069999861196266} V6 {0 -10 569.2000122069999861196266} V7 {0 558.7999877930000138803734 569.2000122069999861196266} V8 {-10 558.7999877930000138803734 569.2000122069999861196266}
|
||||
put {right_wall.r} comb region yes tree {l right_wall.s}
|
||||
attr set {right_wall.r} {region} {R} {shader} {osl {shadername blue}} {region_id} {1003} {material_id} {1} {los} {100} {color} {0/0/255}
|
||||
put {short_box.s} arb8 V1 {130 0 65} V2 {82 0 225} V3 {240 0 272} V4 {290 0 114} V5 {130 165 65} V6 {82 165 225} V7 {240 165 272} V8 {290 165 114}
|
||||
put {short_box.r} comb region yes tree {l short_box.s}
|
||||
attr set {short_box.r} {region} {R} {shader} {osl {shadername gen_color#layername#c1#base#color#1.0#0.0#1.0, shadername gen_color#layername#c2#base#color#0.0#1.0#0.0, shadername checker#layername#chk#K#float#4.0, join c1#Cout#chk#Cw join c2#Cout#chk#Cb}} {region_id} {1006} {material_id} {1} {los} {100} {color} {255/255/0}
|
||||
put {left_wall.s} arb8 V1 {556 -10 0} V2 {566 -10 0} V3 {566 558.7999877930000138803734 0} V4 {556 558.7999877930000138803734 0} V5 {556 -10 569.2000122069999861196266} V6 {566 -10 569.2000122069999861196266} V7 {566 558.7999877930000138803734 569.2000122069999861196266} V8 {556 558.7999877930000138803734 569.2000122069999861196266}
|
||||
put {left_wall.r} comb region yes tree {l left_wall.s}
|
||||
attr set {left_wall.r} {region} {R} {shader} {osl {shadername blue}} {region_id} {1004} {material_id} {1} {los} {100} {color} {0/0/255}
|
||||
put {all.g} comb region no tree {u {u {u {l light.r} {l back_wall.r}} {u {l tall_box.r} {l floor.r}}} {u {u {l right_wall.r} {l left_wall.r}} {u {l short_box.r} {l ceiling.r}}}}
|
||||
put {tall_box.s} arb8 V1 {423 330 247} V2 {265 330 296} V3 {314 330 456} V4 {472 330 406} V5 {423 0 247} V6 {265 0 296} V7 {314 0 456} V8 {472 0 406}
|
||||
put {back_wall.s} arb8 V1 {0 -10 559.2000122069999861196266} V2 {556 -10 559.2000122069999861196266} V3 {556 558.7999877930000138803734 559.2000122069999861196266} V4 {0 558.7999877930000138803734 559.2000122069999861196266} V5 {0 -10 569.2000122069999861196266} V6 {556 -10 569.2000122069999861196266} V7 {556 558.7999877930000138803734 569.2000122069999861196266} V8 {0 558.7999877930000138803734 569.2000122069999861196266}
|
||||
put {tall_box.r} comb region yes tree {l tall_box.s}
|
||||
attr set {tall_box.r} {region} {R} {shader} {osl {shadername mirror}} {region_id} {1007} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {back_wall.r} comb region yes tree {l back_wall.s}
|
||||
attr set {back_wall.r} {region} {R} {shader} {osl {shadername blue}} {region_id} {1002} {material_id} {1} {los} {100} {color} {0/0/255}
|
||||
put {ceiling.s} arb8 V1 {0 548.7999877930000138803734 0} V2 {556 548.7999877930000138803734 0} V3 {556 558.7999877930000138803734 0} V4 {0 558.7999877930000138803734 0} V5 {0 548.7999877930000138803734 559.2000122069999861196266} V6 {556 548.7999877930000138803734 559.2000122069999861196266} V7 {556 558.7999877930000138803734 559.2000122069999861196266} V8 {0 558.7999877930000138803734 559.2000122069999861196266}
|
||||
put {ceiling.r} comb region yes tree {- {l ceiling.s} {l ceiling2.s}}
|
||||
attr set {ceiling.r} {region} {R} {shader} {osl {shadername blue}} {region_id} {1001} {material_id} {1} {los} {100} {color} {0/0/255}
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Example render script that sets up a prototypical view for the
|
||||
# Cornell box. Alas, rt view scripts loaded into MGED only restore
|
||||
# orientation and not view positioning so an extra repositioning step
|
||||
# is required.
|
||||
###
|
||||
|
||||
echo "************************ NOTICE ******************************"
|
||||
echo "To restore the originally intended view in MGED, run loadview"
|
||||
echo "on this script followed by: view center 278 -150 2500"
|
||||
echo "************************ NOTICE ******************************"
|
||||
|
||||
rt -M -p55 \
|
||||
$*\
|
||||
cornell.g\
|
||||
'all.g' \
|
||||
<<EOF
|
||||
viewsize 6.000000000000000e+03;
|
||||
orientation 0.000000000000000e+00 9.961946980917455e-01 8.715574274765824e-02 0.000000000000000e+00;
|
||||
eye_pt 2.780000000000000e+02 3.709445330007912e+02 -4.544232590366239e+02;
|
||||
start 0; clean;
|
||||
end;
|
||||
|
||||
EOF
|
||||
@@ -2,7 +2,7 @@
|
||||
/* D B . P H P
|
||||
* BRL-CAD
|
||||
*
|
||||
* Copyright (c) 2004-2020 United States Government as represented by
|
||||
* Copyright (c) 2004-2011 United States Government as represented by
|
||||
* the U.S. Army Research Laboratory.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@@ -275,14 +275,12 @@ if ($physicalFile) {
|
||||
|
||||
debug("END http request");
|
||||
|
||||
?>
|
||||
|
||||
<!--
|
||||
Local Variables:
|
||||
tab-width: 8
|
||||
mode: php
|
||||
c-basic-offset: 4
|
||||
indent-tabs-mode: t
|
||||
End:
|
||||
ex: shiftwidth=4 tabstop=8
|
||||
-->
|
||||
# Local Variables: ***
|
||||
# mode: C ***
|
||||
# tab-width: 8 ***
|
||||
# c-basic-offset: 2 ***
|
||||
# indent-tabs-mode: t ***
|
||||
# End: ***
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
?>
|
||||
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
title {A Die by Jeff Sieu. Made for Google Code-in 2017}
|
||||
units mm
|
||||
put {body_outer.r} comb region yes tree {l body_outer.c}
|
||||
attr set {body_outer.r} {oshader} {plastic} {region} {R} {shader} {plastic {re 0.1 ri 1.4 sh 12}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
|
||||
put {body_inner.r} comb region yes tree {l body_inner.c}
|
||||
attr set {body_inner.r} {oshader} {plastic} {region} {R} {shader} {plastic {sp 0.9 di 0.1}} {region_id} {1001} {material_id} {1} {los} {100} {color} {0/0/0}
|
||||
put {body_outer.c} comb region no tree {- {- {n {l body_rpp.s} {l body_sphere.s}} {l dots.c}} {l body_inner.c}}
|
||||
put {body_inner.c} comb region no tree {- {n {l body_rpp_inner.s} {l body_sphere_inner.s}} {l dots.c}}
|
||||
put {cube_edges.c} comb region no tree {u {u {l cube_rcc1.s} {l cube_rcc2.s}} {l cube_rcc3.s}}
|
||||
put {cube_rcc3.s} tgc V {8 10 8} H {0 -20 0} A {0 0 -2} B {2 0 0} C {0 0 -2} D {2 0 0}
|
||||
put {cube_rcc2.s} tgc V {8 8 10} H {0 0 -20} A {0 2 0} B {2 0 0} C {0 2 0} D {2 0 0}
|
||||
put {cube_rcc1.s} tgc V {10 8 8} H {-20 0 0} A {0 0 2} B {0 2 0} C {0 0 2} D {0 2 0}
|
||||
put {body_rpp_inner.s} arb8 V1 {9.900000000000000355271368 -9.900000000000000355271368 -9.900000000000000355271368} V2 {9.900000000000000355271368 9.899999999999986144416653 -9.900000000000000355271368} V3 {9.900000000000000355271368 9.899999999999986144416653 9.900000000000000355271368} V4 {9.900000000000000355271368 -9.900000000000000355271368 9.900000000000000355271368} V5 {-9.899999999999922195570434 -9.900000000000000355271368 -9.900000000000000355271368} V6 {-9.899999999999922195570434 9.899999999999986144416653 -9.900000000000000355271368} V7 {-9.899999999999922195570434 9.899999999999986144416653 9.900000000000000355271368} V8 {-9.899999999999922195570434 -9.900000000000000355271368 9.900000000000000355271368}
|
||||
put {body_rpp.s} arb8 V1 {10 -10 -10} V2 {10 9.999999999999985789145285 -10} V3 {10 9.999999999999985789145285 10} V4 {10 -10 10} V5 {-9.999999999999921840299066 -10 -10} V6 {-9.999999999999921840299066 9.999999999999985789145285 -10} V7 {-9.999999999999921840299066 9.999999999999985789145285 10} V8 {-9.999999999999921840299066 -10 10}
|
||||
put {body_sphere_inner.s} ell V {0 0 0} A {13.4143020316096475141876 0 0} B {0 13.4143020316096475141876 0} C {0 0 13.4143020316096475141876}
|
||||
put {dots6.c} comb region no tree {u {u {u {l sph61.s} {l sph62.s}} {u {l sph63.s} {l sph64.s}}} {u {l sph65.s} {l sph66.s}}}
|
||||
put {dots5.c} comb region no tree {u {u {u {l sph51.s} {l sph52.s}} {u {l sph53.s} {l sph54.s}}} {l sph55.s}}
|
||||
put {dots4.c} comb region no tree {u {u {l sph41.s} {l sph42.s}} {u {l sph43.s} {l sph44.s}}}
|
||||
put {dots3.c} comb region no tree {u {u {l sph31.s} {l sph32.s}} {l sph33.s}}
|
||||
put {dots2.c} comb region no tree {u {l sph21.s} {l sph22.s}}
|
||||
put {dots1.c} comb region no tree {l sph11.s}
|
||||
put {sph66.s} ell V {5.5 -12 -3.5} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph65.s} ell V {-5.5 -12 -3.49999999999999955591079} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph55.s} ell V {12 4.5 4.5} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph64.s} ell V {-5.5 -12 3.5} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph54.s} ell V {12 -4.5 4.5} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph63.s} ell V {5.5 -12 3.5} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph44.s} ell V {-3.5 -3.5 12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph53.s} ell V {12 -4.5 -4.5} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph62.s} ell V {0 -12 -3.5} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph43.s} ell V {-3.5 3.5 12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph52.s} ell V {12 4.5 -4.5} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph61.s} ell V {0 -12 3.50000000000000044408921} A {2.751840000000000063806738 0 0} B {0 2.751840000000000063806738 0} C {0 0 2.751840000000000063806738}
|
||||
put {sph33.s} ell V {-4.5 -4.5 -12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph42.s} ell V {3.5 -3.5 12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph51.s} ell V {12 0 0} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph32.s} ell V {0 0 -12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph41.s} ell V {3.5 3.5 12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph22.s} ell V {-11.99999999999999822364316 3.49999999999999911182158 3.49999999999999911182158} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph31.s} ell V {4.5 4.5 -12} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph21.s} ell V {-11.99999999999998934185896 -3.50000000000000088817842 -3.50000000000000088817842} A {2.86650000000000027000624 0 0} B {0 2.86650000000000027000624 0} C {0 0 2.86650000000000027000624}
|
||||
put {sph11.s} ell V {0 12.5 0} A {2.211859722021807250769143 1.981446994437259911947535 1.852442813782255726096082} B {-1.916905671313780867848209 2.832975207637170811381111 -0.7414338272552269959447813} C {-1.919153255314234307604693 -0.5460030047066275482592346 2.875540210372395932836298}
|
||||
put {dots.c} comb region no tree {u {u {u {l dots1.c} {l dots2.c}} {u {l dots3.c} {l dots4.c}}} {u {l dots5.c} {l dots6.c}}}
|
||||
put {die.g} comb region no tree {u {l body_outer.r} {l body_inner.r}}
|
||||
put {body_sphere.s} ell V {0 0 0} A {13.51430203160964715891623 0 0} B {0 13.51430203160964715891623 0} C {0 0 13.51430203160964715891623}
|
||||
@@ -1,856 +0,0 @@
|
||||
$COMMENT Generic Business Jet Rotor Burst Model
|
||||
$COMMENT Todd Horelica
|
||||
$COMMENT 28 Jan 2000
|
||||
$COMMENT
|
||||
$COMMENT The generic aircraft models were developed in support of the Federal
|
||||
$COMMENT Aviation Administration's Aircraft Catastrophic Failure Prevention
|
||||
$COMMENT Program. The models are used to demonstrate the Uncontained Engine
|
||||
$COMMENT Debris Damage Assessment Model (UEDDAM) tool which evaluates the risk
|
||||
$COMMENT to the aircraft from uncontained engine failures. This analysis
|
||||
$COMMENT supports certification to Title 14 Code of Federal Regulations,
|
||||
$COMMENT Part 25.903. The models are for demonstration purposes and do not
|
||||
$COMMENT depict actual aircraft and /or Aircraft systems in service. The models
|
||||
$COMMENT are available for public release.
|
||||
$COMMENT
|
||||
$COMMENT Note: Right and left are with respect to looking forward from the tail;
|
||||
$COMMENT i.e. the pilot's perspective
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT
|
||||
$NAME 0 1 Right Engine Nacelle
|
||||
SECTION 0 1 1 1
|
||||
GRID 1 -375.96 -64.08 145.47
|
||||
GRID 2 -491.31 -64.08 145.47
|
||||
CCONE1 1 8 1 2 0.04 19.010000001
|
||||
10000001 19.0 1 1
|
||||
$NAME 0 11 Left Engine Nacelle
|
||||
SECTION 0 11 1 1
|
||||
GRID 3 -375.96 64.08 145.47
|
||||
GRID 4 -491.31 64.08 145.47
|
||||
CCONE1 2 8 3 4 0.04 19.010000002
|
||||
10000002 19.0 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Pylons
|
||||
$NAME 0 2 Left Pylon
|
||||
SECTION 0 2 1 5
|
||||
GRID 5 -392.28 45.24 142.98
|
||||
GRID 6 -392.17 32.83 139.44
|
||||
GRID 7 -494.47 45.24 142.98
|
||||
GRID 8 -505.76 25.48 137.36
|
||||
GRID 9 -392.28 46.75 137.69
|
||||
GRID 10 -392.17 34.33 134.15
|
||||
GRID 11 -494.47 46.75 137.69
|
||||
GRID 12 -505.76 26.99 132.07
|
||||
CQUAD 51 8 5 9 11 7 0.032 1
|
||||
CQUAD 52 8 5 6 10 9 0.032 1
|
||||
CQUAD 53 8 6 8 12 10 0.032 1
|
||||
CQUAD 54 8 7 8 12 11 0.032 1
|
||||
CQUAD 55 8 5 6 8 7 0.032 1
|
||||
CQUAD 56 8 9 10 12 11 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 0 3 Right Pylon
|
||||
SECTION 0 3 1 5
|
||||
GRID 13 -392.28 -45.24 142.98
|
||||
GRID 14 -392.17 -32.83 139.44
|
||||
GRID 15 -494.47 -45.24 142.98
|
||||
GRID 16 -505.76 -25.48 137.36
|
||||
GRID 17 -392.28 -46.75 137.69
|
||||
GRID 18 -392.17 -34.33 134.15
|
||||
GRID 19 -494.47 -46.75 137.69
|
||||
GRID 20 -505.76 -26.99 132.07
|
||||
CQUAD 61 8 13 17 19 15 0.032 1
|
||||
CQUAD 62 8 13 14 18 17 0.032 1
|
||||
CQUAD 63 8 14 16 20 18 0.032 1
|
||||
CQUAD 64 8 15 16 20 19 0.032 1
|
||||
CQUAD 65 8 13 14 16 15 0.032 1
|
||||
CQUAD 66 8 17 18 20 19 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 0 4 Aft Fuselage
|
||||
SECTION 0 4 1 1
|
||||
GRID 21 -373.75 -0.00 127.25
|
||||
GRID 22 -512.50 -0.00 127.25
|
||||
CCONE1 3 8 21 22 0.032 36.2510000003
|
||||
10000003 26.96 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 0 101 Fairing
|
||||
SECTION 0 101 1 1
|
||||
GRID 223 -512.50 -0.00 100.27
|
||||
GRID 224 -373.75 33.49 75.73
|
||||
GRID 225 -373.75 -33.49 75.73
|
||||
GRID 226 -373.75 33.49 127.25
|
||||
GRID 227 -373.75 -33.49 127.25
|
||||
CQUAD 87 8 224 225 227 226 0.032 1
|
||||
CTRI 88 8 223 224 226 0.032 1
|
||||
CTRI 89 8 223 224 225 0.032 1
|
||||
CTRI 90 8 223 225 227 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Rotors
|
||||
$NAME 1 1 Right Engine Fan
|
||||
SECTION 1 1 2
|
||||
GRID 294 -408.33 -64.08 145.47
|
||||
GRID 295 -411.58 -64.08 145.47
|
||||
CCONE2 1 7 294 295 13.609C90
|
||||
C90 13.609 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 2 Right LPC1
|
||||
SECTION 1 2 2
|
||||
GRID 296 -416.62 -64.08 145.47
|
||||
GRID 297 -418.62 -64.08 145.47
|
||||
CCONE2 2 4 296 297 8.543C905
|
||||
C905 8.543 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 3 Right HPC1
|
||||
SECTION 1 3 2
|
||||
GRID 298 -427.25 -64.08 145.47
|
||||
GRID 299 -429.00 -64.08 145.47
|
||||
CCONE2 3 4 298 299 5.09C91
|
||||
C91 5.09 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 4 Right HPC2
|
||||
SECTION 1 4 2
|
||||
GRID 300 -431.36 -64.08 145.47
|
||||
GRID 301 -432.61 -64.08 145.47
|
||||
CCONE2 4 4 300 301 4.898C92
|
||||
C92 4.898 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 5 Right HPC3
|
||||
SECTION 1 5 2
|
||||
GRID 302 -436.69 -64.08 145.47
|
||||
GRID 303 -439.69 -64.08 145.47
|
||||
CCONE2 5 4 302 303 6.644C93
|
||||
C93 6.644 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 6 Right HPT1
|
||||
SECTION 1 6 2
|
||||
GRID 304 -443.53 -64.08 145.47
|
||||
GRID 305 -445.28 -64.08 145.47
|
||||
CCONE2 6 4 304 305 5.784C94
|
||||
C94 5.784 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 7 Right LPT1
|
||||
SECTION 1 7 2
|
||||
GRID 306 -447.46 -64.08 145.47
|
||||
GRID 307 -448.21 -64.08 145.47
|
||||
CCONE2 7 4 306 307 7.286C95
|
||||
C95 7.286 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 8 Right LPT2
|
||||
SECTION 1 8 2
|
||||
GRID 308 -450.10 -64.08 145.47
|
||||
GRID 309 -450.98 -64.08 145.47
|
||||
CCONE2 8 4 308 309 8.63C96
|
||||
C96 8.63 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 9 Right LPT3
|
||||
SECTION 1 9 2
|
||||
GRID 310 -453.05 -64.08 145.47
|
||||
GRID 311 -454.05 -64.08 145.47
|
||||
CCONE2 9 4 310 311 8.985C97
|
||||
C97 8.985 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 21 Right Engine Case
|
||||
SECTION 1 21 1
|
||||
GRID 332 -407.83 -64.08 145.47
|
||||
GRID 333 -454.55 -64.08 145.47
|
||||
CCONE1 21 4 332 333 0.1 14.109C332
|
||||
C332 14.109 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 11 Left Engine Fan
|
||||
SECTION 1 11 2
|
||||
GRID 312 -408.33 64.08 145.47
|
||||
GRID 313 -411.58 64.08 145.47
|
||||
CCONE2 10 7 312 313 13.609C98
|
||||
C98 13.609 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 12 Left LPC2
|
||||
SECTION 1 12 2
|
||||
GRID 314 -416.62 64.08 145.47
|
||||
GRID 315 -418.62 64.08 145.47
|
||||
CCONE2 19 4 314 315 8.543C985
|
||||
C985 8.543 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 13 Left HPC1
|
||||
SECTION 1 13 2
|
||||
GRID 316 -427.25 64.08 145.47
|
||||
GRID 317 -429.00 64.08 145.47
|
||||
CCONE2 11 4 316 317 5.09C99
|
||||
C99 5.09 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 14 Left HPC2
|
||||
SECTION 1 14 2
|
||||
GRID 318 -431.36 64.08 145.47
|
||||
GRID 319 -432.61 64.08 145.47
|
||||
CCONE2 12 4 318 319 4.898C100
|
||||
C100 4.898 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 15 Left HPC3
|
||||
SECTION 1 15 2
|
||||
GRID 320 -436.69 64.08 145.47
|
||||
GRID 321 -439.69 64.08 145.47
|
||||
CCONE2 13 4 320 321 6.644C101
|
||||
C101 6.644 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 16 Left HPT1
|
||||
SECTION 1 16 2
|
||||
GRID 322 -443.53 64.08 145.47
|
||||
GRID 323 -445.28 64.08 145.47
|
||||
CCONE2 14 4 322 323 5.784C102
|
||||
C102 5.784 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 17 Left LPT1
|
||||
SECTION 1 17 2
|
||||
GRID 324 -447.46 64.08 145.47
|
||||
GRID 325 -448.21 64.08 145.47
|
||||
CCONE2 15 4 324 325 7.286C103
|
||||
C103 7.286 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 18 Left LPT2
|
||||
SECTION 1 18 2
|
||||
GRID 326 -450.10 64.08 145.47
|
||||
GRID 327 -450.98 64.08 145.47
|
||||
CCONE2 16 4 326 327 8.63C104
|
||||
C104 8.63 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 19 Left LPT3
|
||||
SECTION 1 19 2
|
||||
GRID 328 -453.05 64.08 145.47
|
||||
GRID 329 -454.05 64.08 145.47
|
||||
CCONE2 17 4 328 329 8.985C105
|
||||
C105 8.985 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 1 22 Left Engine Case
|
||||
SECTION 1 22 1
|
||||
GRID 334 -407.83 64.08 145.47
|
||||
GRID 335 -454.55 64.08 145.47
|
||||
CCONE1 22 4 334 335 0.1 14.109C333
|
||||
C333 14.109 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Control Cables
|
||||
$NAME 3 1 Elevator Control Cables
|
||||
SECTION 3 1 1
|
||||
GRID 256 -373.75 13.97 90.17
|
||||
GRID 257 -446.98 -2.25 95.25
|
||||
GRID 258 -512.50 -1.03 104.95
|
||||
GRID 259 -373.75 6.07 88.65
|
||||
GRID 260 -446.96 -2.70 95.40
|
||||
GRID 261 -512.50 -1.63 105.02
|
||||
CLINE 1 4 256 257 0.063 0.063
|
||||
CLINE 2 4 257 258 0.063 0.063
|
||||
CLINE 3 4 259 260 0.063 0.063
|
||||
CLINE 4 4 260 261 0.063 0.063
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 3 2 Elevator Trim Cables
|
||||
SECTION 3 2 1
|
||||
GRID 262 -373.75 -26.11 99.49
|
||||
GRID 263 -388.77 -26.11 99.49
|
||||
GRID 264 -385.59 -5.80 160.33
|
||||
GRID 265 -512.50 -5.80 150.95
|
||||
GRID 266 -375.75 -25.70 99.35
|
||||
GRID 267 -388.78 -25.70 99.35
|
||||
GRID 268 -385.59 -5.80 159.88
|
||||
GRID 269 -512.50 -5.80 150.50
|
||||
CLINE 5 4 262 263 0.063 0.063
|
||||
CLINE 6 4 263 264 0.063 0.063
|
||||
CLINE 7 4 264 265 0.063 0.063
|
||||
CLINE 8 4 266 267 0.063 0.063
|
||||
CLINE 9 4 267 268 0.063 0.063
|
||||
CLINE 10 4 268 269 0.063 0.063
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 3 101 Rudder-Upper
|
||||
SECTION 3 101 1
|
||||
GRID 270 -373.75 -3.72 90.59
|
||||
GRID 271 -384.74 -3.78 90.59
|
||||
GRID 272 -391.84 -5.80 158.00
|
||||
GRID 273 -512.50 -5.80 149.08
|
||||
GRID 274 -373.75 -9.62 91.68
|
||||
GRID 275 -383.88 -9.54 91.68
|
||||
GRID 276 -392.62 -7.04 157.94
|
||||
GRID 277 -512.50 -7.04 149.08
|
||||
CLINE 11 4 270 271 0.063 0.063
|
||||
CLINE 12 4 271 272 0.063 0.063
|
||||
CLINE 13 4 272 273 0.063 0.063
|
||||
CLINE 14 4 274 275 0.063 0.063
|
||||
CLINE 15 4 275 276 0.063 0.063
|
||||
CLINE 16 4 276 277 0.063 0.063
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 3 102 Rudder-Lower
|
||||
SECTION 3 102 1
|
||||
GRID 278 -373.75 -3.85 89.54
|
||||
GRID 279 -448.81 -3.15 95.48
|
||||
GRID 280 -512.50 -5.55 106.78
|
||||
GRID 281 -373.75 -11.73 90.18
|
||||
GRID 282 -448.78 -3.68 95.40
|
||||
GRID 283 -512.50 -6.18 107.18
|
||||
CLINE 17 4 278 279 0.063 0.063
|
||||
CLINE 18 4 279 280 0.063 0.063
|
||||
CLINE 19 4 281 282 0.063 0.063
|
||||
CLINE 20 4 282 283 0.063 0.063
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 3 103 Rudder Trim
|
||||
SECTION 3 103 1
|
||||
GRID 284 -375.75 25.28 99.20
|
||||
GRID 285 -388.78 25.28 99.20
|
||||
GRID 286 -385.54 5.55 159.17
|
||||
GRID 287 -406.34 -5.80 157.47
|
||||
GRID 288 -512.50 -5.80 149.62
|
||||
GRID 289 -373.75 26.53 99.63
|
||||
GRID 290 -388.76 26.53 99.63
|
||||
GRID 291 -385.75 5.95 159.27
|
||||
GRID 292 -406.37 -5.80 157.91
|
||||
GRID 293 -512.50 -5.80 150.06
|
||||
CLINE 21 4 284 285 0.063 0.063
|
||||
CLINE 22 4 285 286 0.063 0.063
|
||||
CLINE 23 4 286 287 0.063 0.063
|
||||
CLINE 24 4 287 288 0.063 0.063
|
||||
CLINE 25 4 289 290 0.063 0.063
|
||||
CLINE 26 4 290 291 0.063 0.063
|
||||
CLINE 27 4 291 292 0.063 0.063
|
||||
CLINE 28 4 292 293 0.063 0.063
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Fuel Lines
|
||||
$NAME 4 1 Fuel Supply Line (Right Side)
|
||||
SECTION 4 1 1 1
|
||||
GRID 23 -378.88 -23.20 99.85
|
||||
GRID 24 -380.84 -28.57 144.05
|
||||
GRID 25 -428.13 -21.15 144.62
|
||||
GRID 26 -428.85 -24.92 136.29
|
||||
GRID 27 -427.79 -45.94 140.51
|
||||
CLINE 1 12 23 24 0.035 0.5
|
||||
CLINE 2 12 24 25 0.035 0.5
|
||||
CLINE 3 12 25 26 0.035 0.5
|
||||
CLINE 4 12 26 27 0.035 0.5
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 4 2 Fuel Supply Line (Left Side)
|
||||
SECTION 4 2 1 1
|
||||
GRID 28 -378.88 23.20 99.85
|
||||
GRID 29 -380.84 28.57 144.05
|
||||
GRID 30 -428.13 21.15 144.62
|
||||
GRID 31 -428.85 24.92 136.29
|
||||
GRID 32 -427.79 45.94 140.51
|
||||
CLINE 5 12 28 29 0.035 0.5
|
||||
CLINE 6 12 29 30 0.035 0.5
|
||||
CLINE 7 12 30 31 0.035 0.5
|
||||
CLINE 8 12 31 32 0.035 0.5
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 4 3 Fuel Motive Flow Line (Right Side)
|
||||
SECTION 4 3 1 1
|
||||
GRID 33 -378.82 -21.40 98.41
|
||||
GRID 34 -380.84 -26.92 143.90
|
||||
GRID 35 -428.20 -19.50 144.48
|
||||
GRID 36 -428.89 -24.34 133.86
|
||||
GRID 37 -427.77 -46.57 138.33
|
||||
CLINE 9 12 33 34 0.035 0.25
|
||||
CLINE 10 12 34 35 0.035 0.25
|
||||
CLINE 11 12 35 36 0.035 0.25
|
||||
CLINE 12 12 36 37 0.035 0.25
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 4 4 Fuel Motive Flow Line (Left Side)
|
||||
SECTION 4 4 1 1
|
||||
GRID 38 -378.82 21.40 98.41
|
||||
GRID 39 -380.84 26.92 143.90
|
||||
GRID 40 -428.20 19.50 144.48
|
||||
GRID 41 -428.89 24.34 133.86
|
||||
GRID 42 -427.77 46.57 138.33
|
||||
CLINE 13 12 38 39 0.035 0.25
|
||||
CLINE 14 12 39 40 0.035 0.25
|
||||
CLINE 15 12 40 41 0.035 0.25
|
||||
CLINE 16 12 41 42 0.035 0.25
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Structure
|
||||
$NAME 7 1 Left Forward Engine Beam (1st 2 outboard; 2nd 2 inboard)
|
||||
SECTION 7 1 1 1
|
||||
GRID 43 -421.50 45.35 142.87
|
||||
GRID 44 -421.50 46.64 137.80
|
||||
GRID 45 -421.50 31.04 138.79
|
||||
GRID 46 -421.50 32.33 133.72
|
||||
$COMMENT Forward Engine Beam, Back Side (1st 2 outboard; 2nd 2 inboard)
|
||||
GRID 47 -424.50 45.35 142.87
|
||||
GRID 48 -424.50 46.64 137.80
|
||||
GRID 49 -424.50 30.85 138.74
|
||||
GRID 50 -424.50 32.13 133.67
|
||||
CQUAD 1 8 49 45 43 47 0.190 1
|
||||
CQUAD 2 8 49 47 48 50 0.100 1
|
||||
CQUAD 3 8 44 46 50 48 0.190 1
|
||||
CQUAD 4 8 44 46 45 43 0.100 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 2 Forward Beam through fuselage
|
||||
SECTION 7 2 1 1
|
||||
GRID 45 -421.50 31.04 138.79
|
||||
GRID 46 -421.50 32.33 133.72
|
||||
GRID 61 -421.50 -31.04 138.79
|
||||
GRID 62 -421.50 -32.33 133.72
|
||||
GRID 49 -424.50 30.85 138.74
|
||||
GRID 50 -424.50 32.13 133.67
|
||||
GRID 65 -424.50 -30.85 138.74
|
||||
GRID 66 -424.50 -32.13 133.67
|
||||
CQUAD 17 8 45 46 62 61 0.100 1
|
||||
CQUAD 18 8 49 50 66 65 0.100 1
|
||||
CQUAD 19 8 45 49 65 61 0.190 1
|
||||
CQUAD 20 8 46 50 66 62 0.190 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 3 Right Forward Engine Beam (1st 2 outboard; 2nd 2 inboard)
|
||||
SECTION 7 3 1 1
|
||||
GRID 59 -421.50 -45.35 142.87
|
||||
GRID 60 -421.50 -46.64 137.80
|
||||
GRID 61 -421.50 -31.04 138.79
|
||||
GRID 62 -421.50 -32.33 133.72
|
||||
$COMMENT Forward Engine Beam, Back Side (1st 2 outboard; 2nd 2 inboard)
|
||||
GRID 63 -424.50 -45.35 142.87
|
||||
GRID 64 -424.50 -46.64 137.80
|
||||
GRID 65 -424.50 -30.85 138.74
|
||||
GRID 66 -424.50 -32.13 133.67
|
||||
CQUAD 9 8 65 61 59 63 0.190 1
|
||||
CQUAD 10 8 65 63 64 66 0.100 1
|
||||
CQUAD 11 8 60 62 66 64 0.190 1
|
||||
CQUAD 12 8 60 62 61 59 0.100 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 11 Left Aft Engine Beam (1st 2 outboard; 2nd 2 inboard)
|
||||
SECTION 7 11 1 1
|
||||
GRID 51 -460.50 45.14 142.88
|
||||
GRID 52 -460.50 46.68 137.76
|
||||
GRID 53 -460.50 28.51 138.09
|
||||
GRID 54 -460.50 29.85 132.97
|
||||
$COMMENT Left Aft Engine Beam Back Side (1st 2 outboard; 2nd 2 inboard)
|
||||
GRID 55 -462.50 45.14 142.88
|
||||
GRID 56 -462.50 46.68 137.76
|
||||
GRID 57 -462.50 28.38 138.05
|
||||
GRID 58 -462.50 29.72 132.93
|
||||
CQUAD 5 8 57 53 51 55 0.160 1
|
||||
CQUAD 6 8 57 55 56 58 0.064 1
|
||||
CQUAD 7 8 52 54 58 56 0.100 1
|
||||
CQUAD 8 8 52 54 53 51 0.064 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 12 Aft Engine Beam through fuselage
|
||||
SECTION 7 12 1 1
|
||||
GRID 53 -460.50 28.51 138.09
|
||||
GRID 54 -460.50 29.85 132.97
|
||||
GRID 57 -462.50 28.38 138.05
|
||||
GRID 58 -462.50 29.72 132.93
|
||||
GRID 69 -460.50 -28.51 138.09
|
||||
GRID 70 -460.50 -29.85 132.97
|
||||
GRID 73 -462.50 -28.38 138.05
|
||||
GRID 74 -462.50 -29.72 132.93
|
||||
CQUAD 21 8 53 54 70 69 0.064 1
|
||||
CQUAD 22 8 57 58 74 73 0.064 1
|
||||
CQUAD 23 8 53 57 73 69 0.160 1
|
||||
CQUAD 24 8 54 58 74 70 0.100 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 13 Right Aft Engine Beam (1st 2 outboard; 2nd 2 inboard)
|
||||
SECTION 7 13 1 1
|
||||
GRID 67 -460.50 -45.14 142.88
|
||||
GRID 68 -460.50 -46.68 137.76
|
||||
GRID 69 -460.50 -28.51 138.09
|
||||
GRID 70 -460.50 -29.85 132.97
|
||||
$COMMENT Aft Engine Beam Back Side (1st 2 outboard; 2nd 2 inboard)
|
||||
GRID 71 -462.50 -45.14 142.88
|
||||
GRID 72 -462.50 -46.68 137.76
|
||||
GRID 73 -462.50 -28.38 138.05
|
||||
GRID 74 -462.50 -29.72 132.93
|
||||
CQUAD 13 8 73 69 67 71 0.160 1
|
||||
CQUAD 16 8 68 70 69 67 0.064 1
|
||||
CQUAD 14 8 73 71 72 74 0.064 1
|
||||
CQUAD 15 8 68 70 74 72 0.100 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$Frames
|
||||
$COMMENT The number in parenthesis () is the actual location relative to the origin.
|
||||
$COMMENT The other numbers are the numbers provided by the original source.
|
||||
$NAME 7 51 Frame at FS 389.5
|
||||
SECTION 7 51 1 1
|
||||
GRID 75 -389.50 -0.00 127.25
|
||||
GRID 76 -390.25 -0.00 127.25
|
||||
CCONE1 5 8 75 76 0.032 35.163C1
|
||||
C1 35.113 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 52 Frame at FS 405.5
|
||||
SECTION 7 52 1 1
|
||||
GRID 77 -405.50 -0.00 127.25
|
||||
GRID 78 -406.25 -0.00 127.25
|
||||
CCONE1 6 8 77 78 0.032 34.092C2
|
||||
C2 34.042 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 53 Frame at FS 479.5
|
||||
SECTION 7 53 1 1
|
||||
GRID 79 -479.50 -0.00 127.25
|
||||
GRID 80 -480.25 -0.00 127.25
|
||||
CCONE1 7 8 79 80 0.032 29.138C3
|
||||
C3 29.087 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 54 Frame at FS 496.5
|
||||
SECTION 7 54 1 1
|
||||
GRID 81 -496.50 -0.00 127.25
|
||||
GRID 82 -497.25 -0.00 127.25
|
||||
CCONE1 8 8 81 82 0.032 28.00C4
|
||||
C4 27.95 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 55 Frame at FS 512.5
|
||||
SECTION 7 55 1 1
|
||||
GRID 83 -512.50 -0.00 127.25
|
||||
GRID 84 -513.25 -0.00 127.25
|
||||
CCONE1 9 8 83 84 0.032 26.928C5
|
||||
C5 26.846 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Engine Beam Frames
|
||||
$NAME 7 61 Frame at FS 420.75
|
||||
SECTION 7 61 1 1
|
||||
GRID 85 -420.75 -0.00 127.25
|
||||
GRID 86 -421.50 -0.00 127.25
|
||||
CCONE1 10 8 85 86 0.032 33.07C6
|
||||
C6 33.021 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 62 Frame at FS 424.5
|
||||
SECTION 7 62 1 1
|
||||
GRID 87 -424.50 -0.00 127.25
|
||||
GRID 88 -425.25 -0.00 127.25
|
||||
CCONE1 11 8 87 88 0.032 32.82C7
|
||||
C7 32.77 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 63 Frame at FS 459.75
|
||||
SECTION 7 63 1 1
|
||||
GRID 89 -459.75 -0.00 127.25
|
||||
GRID 90 -460.50 -0.00 127.25
|
||||
CCONE1 12 8 89 90 0.032 30.46C8
|
||||
C8 30.41 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 64 Frame at FS 462.5
|
||||
SECTION 7 64 1 1
|
||||
GRID 91 -462.50 -0.00 127.25
|
||||
GRID 92 -463.25 -0.00 127.25
|
||||
CCONE1 13 8 91 92 0.032 30.28C9
|
||||
C9 30.23 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 65 Frame at FS 442.5
|
||||
$COMMENT (Missing frame--goes between the two engine beam frames)
|
||||
SECTION 7 65 1 1
|
||||
GRID 93 -442.50 -0.00 127.25
|
||||
GRID 94 -443.25 -0.00 127.25
|
||||
CCONE1 14 8 93 94 0.032 31.615C10
|
||||
C10 31.565 1 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$COMMENT Stringers
|
||||
$NAME 7 101 Stringer 1
|
||||
SECTION 7 101 1 1
|
||||
GRID 95 -373.75 0.75 91.13
|
||||
GRID 96 -373.75 -0.75 91.13
|
||||
GRID 97 -512.50 0.75 100.42
|
||||
GRID 98 -512.50 -0.75 100.42
|
||||
CQUAD 15 13 95 96 98 97 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 102 Stringer 2
|
||||
SECTION 7 102 1 1
|
||||
GRID 99 -373.75 0.75 163.38
|
||||
GRID 100 -373.75 -0.75 163.38
|
||||
GRID 101 -512.50 0.75 154.09
|
||||
GRID 102 -512.50 -0.75 154.09
|
||||
CQUAD 16 13 99 100 102 101 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 103 Stringer 3
|
||||
SECTION 7 103 1 1
|
||||
GRID 103 -373.75 6.00 162.51
|
||||
GRID 104 -373.75 7.49 162.24
|
||||
GRID 105 -512.50 4.25 153.47
|
||||
GRID 106 -512.50 5.72 153.17
|
||||
CQUAD 17 13 103 104 106 105 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 104 Stringer 4
|
||||
SECTION 7 104 1 1
|
||||
GRID 107 -373.75 -6.00 162.51
|
||||
GRID 108 -373.75 -7.49 162.24
|
||||
GRID 109 -512.50 -4.25 153.47
|
||||
GRID 110 -512.50 -5.72 153.17
|
||||
CQUAD 18 13 107 108 110 109 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 105 Stringer 5
|
||||
SECTION 7 105 1 1
|
||||
GRID 111 -373.75 12.78 160.63
|
||||
GRID 112 -373.75 14.11 160.05
|
||||
GRID 113 -512.50 9.22 152.04
|
||||
GRID 114 -512.50 10.61 151.47
|
||||
CQUAD 19 13 111 112 114 113 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 106 Stringer 6
|
||||
SECTION 7 106 1 1
|
||||
GRID 115 -373.75 -12.78 160.63
|
||||
GRID 116 -373.75 -14.11 160.05
|
||||
GRID 117 -512.50 -9.22 152.04
|
||||
GRID 118 -512.50 -10.61 151.47
|
||||
CQUAD 20 13 115 116 118 117 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 107 Stringer 7
|
||||
SECTION 7 107 1 1
|
||||
GRID 119 -373.75 19.11 157.41
|
||||
GRID 120 -373.75 20.36 156.57
|
||||
GRID 121 -512.50 13.95 149.68
|
||||
GRID 122 -512.50 15.20 148.85
|
||||
CQUAD 21 13 119 120 122 121 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 108 Stringer 8
|
||||
SECTION 7 108 1 1
|
||||
GRID 123 -373.75 -19.12 157.41
|
||||
GRID 124 -373.75 -20.36 156.57
|
||||
GRID 125 -512.50 -13.95 149.68
|
||||
GRID 126 -512.50 -15.20 148.85
|
||||
CQUAD 22 13 123 124 126 125 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 109 Stringer 9
|
||||
SECTION 7 109 1 1
|
||||
GRID 127 -373.75 24.70 153.01
|
||||
GRID 128 -373.75 25.76 151.95
|
||||
GRID 129 -512.50 18.13 146.44
|
||||
GRID 130 -512.50 19.19 145.38
|
||||
CQUAD 23 13 127 128 130 129 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 110 Stringer 10
|
||||
SECTION 7 110 1 1
|
||||
GRID 131 -373.75 -24.70 153.01
|
||||
GRID 132 -373.75 -25.76 151.95
|
||||
GRID 133 -512.75 -18.13 146.44
|
||||
GRID 134 -512.75 -19.19 145.38
|
||||
CQUAD 24 13 131 132 134 133 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 111 Stringer 11
|
||||
SECTION 7 111 1 1
|
||||
GRID 135 -373.75 29.32 147.61
|
||||
GRID 136 -373.75 30.16 146.37
|
||||
GRID 137 -512.50 21.60 142.45
|
||||
GRID 138 -512.50 22.43 141.20
|
||||
CQUAD 25 13 135 136 138 137 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 112 Stringer 12
|
||||
SECTION 7 112 1 1
|
||||
GRID 139 -373.75 -29.32 147.61
|
||||
GRID 140 -373.75 -30.16 146.37
|
||||
GRID 141 -512.50 -21.60 142.45
|
||||
GRID 142 -512.50 -22.43 141.20
|
||||
CQUAD 26 13 139 140 142 141 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 113 Stringer 13
|
||||
SECTION 7 113 1 1
|
||||
GRID 143 -373.75 32.80 141.41
|
||||
GRID 144 -373.75 33.38 140.03
|
||||
GRID 145 -512.50 24.22 137.86
|
||||
GRID 146 -512.50 24.79 136.47
|
||||
CQUAD 27 13 143 144 146 145 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 114 Stringer 14
|
||||
SECTION 7 114 1 1
|
||||
GRID 147 -373.75 -32.80 141.41
|
||||
GRID 148 -373.75 -33.38 140.03
|
||||
GRID 149 -512.50 -24.22 137.86
|
||||
GRID 150 -512.50 -24.80 136.47
|
||||
CQUAD 28 13 147 148 150 149 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 115 Stringer 15
|
||||
SECTION 7 115 1 1
|
||||
GRID 151 -373.75 35.01 134.66
|
||||
GRID 152 -373.75 35.30 133.19
|
||||
GRID 153 -512.50 25.90 132.85
|
||||
GRID 154 -512.50 26.19 131.37
|
||||
CQUAD 29 13 151 152 154 153 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 116 Stringer 16
|
||||
SECTION 7 116 1 1
|
||||
GRID 155 -373.75 -35.01 134.66
|
||||
GRID 156 -373.75 -35.30 133.19
|
||||
GRID 157 -512.50 -25.90 132.85
|
||||
GRID 158 -512.50 -26.19 131.37
|
||||
CQUAD 30 13 155 156 158 157 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 117 Stringer 17
|
||||
SECTION 7 117 1 1
|
||||
GRID 159 -373.75 35.85 127.60
|
||||
GRID 160 -373.75 35.85 126.10
|
||||
GRID 161 -512.50 26.56 127.60
|
||||
GRID 162 -512.50 26.56 126.10
|
||||
CQUAD 31 13 159 160 162 161 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 118 Stringer 18
|
||||
SECTION 7 118 1 1
|
||||
GRID 163 -373.75 -35.85 127.60
|
||||
GRID 164 -373.75 -35.85 126.10
|
||||
GRID 165 -512.50 -26.56 127.60
|
||||
GRID 166 -512.50 -26.56 126.10
|
||||
CQUAD 32 13 163 164 166 165 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 119 Stringer 19
|
||||
SECTION 7 119 1 1
|
||||
GRID 167 -373.75 35.30 121.31
|
||||
GRID 168 -373.75 35.01 119.84
|
||||
GRID 169 -512.50 26.19 123.13
|
||||
GRID 170 -512.50 25.90 121.65
|
||||
CQUAD 33 13 167 168 170 169 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 120 Stringer 20
|
||||
SECTION 7 120 1 1
|
||||
GRID 171 -373.75 -35.30 121.31
|
||||
GRID 172 -373.75 -35.01 119.84
|
||||
GRID 173 -512.50 -26.19 123.13
|
||||
GRID 174 -512.50 -25.90 121.65
|
||||
CQUAD 34 13 171 172 174 173 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 121 Stringer 21
|
||||
SECTION 7 121 1 1
|
||||
GRID 171 -373.75 -35.30 121.31
|
||||
GRID 172 -373.75 -35.01 119.84
|
||||
GRID 173 -512.50 -26.19 123.13
|
||||
GRID 174 -512.50 -25.90 121.65
|
||||
CQUAD 34 13 171 172 174 173 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 122 Stringer 22
|
||||
SECTION 7 122 1 1
|
||||
GRID 175 -373.75 33.38 114.47
|
||||
GRID 176 -373.75 32.80 113.08
|
||||
GRID 177 -512.50 24.79 118.03
|
||||
GRID 178 -512.50 24.22 116.64
|
||||
CQUAD 35 13 175 176 178 177 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 123 Stringer 23
|
||||
SECTION 7 123 1 1
|
||||
GRID 179 -373.75 -33.38 114.47
|
||||
GRID 180 -373.75 -32.80 113.08
|
||||
GRID 181 -512.50 -24.80 118.03
|
||||
GRID 182 -512.50 -24.22 116.64
|
||||
CQUAD 36 13 179 180 182 181 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 124 Stringer 24
|
||||
SECTION 7 124 1 1
|
||||
GRID 183 -373.75 30.16 108.14
|
||||
GRID 184 -373.75 29.32 106.89
|
||||
GRID 185 -512.50 22.43 113.30
|
||||
GRID 186 -512.50 21.60 112.05
|
||||
CQUAD 37 13 183 184 186 185 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 125 Stringer 25
|
||||
SECTION 7 125 1 1
|
||||
GRID 187 -373.75 -30.16 108.14
|
||||
GRID 188 -373.75 -29.32 106.89
|
||||
GRID 189 -512.50 -22.43 113.30
|
||||
GRID 190 -512.50 -21.60 112.05
|
||||
CQUAD 38 13 187 188 190 189 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 126 Stringer 26
|
||||
SECTION 7 126 1 1
|
||||
GRID 191 -373.75 25.76 102.55
|
||||
GRID 192 -373.75 24.70 101.49
|
||||
GRID 193 -512.50 19.19 109.12
|
||||
GRID 194 -512.50 18.13 108.06
|
||||
CQUAD 39 13 191 192 194 193 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 127 Stringer 27
|
||||
SECTION 7 127 1 1
|
||||
GRID 195 -373.75 -25.76 102.55
|
||||
GRID 196 -373.75 -24.70 101.49
|
||||
GRID 197 -512.50 -19.19 109.12
|
||||
GRID 198 -512.50 -18.13 108.06
|
||||
CQUAD 40 13 195 196 198 197 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 128 Stringer 28
|
||||
SECTION 7 128 1 1
|
||||
GRID 199 -373.75 20.36 97.93
|
||||
GRID 200 -373.75 19.11 97.09
|
||||
GRID 201 -512.50 15.20 105.65
|
||||
GRID 202 -512.50 13.95 104.82
|
||||
CQUAD 41 13 199 200 202 201 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 129 Stringer 29
|
||||
SECTION 7 129 1 1
|
||||
GRID 203 -373.75 -20.36 97.93
|
||||
GRID 204 -373.75 -19.12 97.09
|
||||
GRID 205 -512.50 -15.20 105.65
|
||||
GRID 206 -512.50 -13.95 104.82
|
||||
CQUAD 42 13 203 204 206 205 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 130 Stringer 30
|
||||
SECTION 7 130 1 1
|
||||
GRID 207 -373.75 14.16 94.45
|
||||
GRID 208 -373.75 12.78 93.87
|
||||
GRID 209 -512.50 10.61 103.03
|
||||
GRID 210 -512.50 9.22 102.46
|
||||
CQUAD 43 13 207 208 210 209 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 131 Stringer 31
|
||||
SECTION 7 131 1 1
|
||||
GRID 211 -373.75 -14.17 94.45
|
||||
GRID 212 -373.75 -12.78 93.87
|
||||
GRID 213 -512.50 -10.61 103.03
|
||||
GRID 214 -512.50 -9.22 102.46
|
||||
CQUAD 44 13 211 212 214 213 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 132 Stringer 32
|
||||
SECTION 7 132 1 1
|
||||
GRID 215 -373.75 7.41 92.24
|
||||
GRID 216 -373.75 5.94 91.95
|
||||
GRID 217 -512.50 5.59 101.35
|
||||
GRID 218 -512.50 4.13 101.06
|
||||
CQUAD 45 13 215 216 218 217 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 133 Stringer 33
|
||||
SECTION 7 133 1 1
|
||||
GRID 219 -373.75 -7.41 92.24
|
||||
GRID 220 -373.75 -5.94 91.95
|
||||
GRID 221 -512.50 -5.59 101.35
|
||||
GRID 222 -512.50 -4.13 101.06
|
||||
CQUAD 46 13 219 220 222 221 0.045 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 201 Fairing Structure 1
|
||||
SECTION 7 201 1 1
|
||||
GRID 228 -389.50 29.69 78.52
|
||||
GRID 229 -389.50 -29.69 78.52
|
||||
GRID 230 -389.50 29.69 108.35
|
||||
GRID 231 -389.50 -29.69 108.35
|
||||
CQUAD 11 8 228 229 231 230 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 202 Fairing Structure 2
|
||||
SECTION 7 202 1 1
|
||||
GRID 232 -405.50 25.83 81.35
|
||||
GRID 233 -405.50 -25.83 81.35
|
||||
GRID 234 -405.50 25.83 104.95
|
||||
GRID 235 -405.50 -25.83 104.95
|
||||
CQUAD 12 8 232 233 235 234 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 203 Fairing Structure 3
|
||||
SECTION 7 203 1 1
|
||||
GRID 236 -423.00 21.61 84.44
|
||||
GRID 237 -423.00 -21.61 84.44
|
||||
GRID 238 -423.00 21.61 102.37
|
||||
GRID 239 -423.00 -21.61 102.37
|
||||
CQUAD 13 8 236 237 239 238 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 204 Fairing Structure 4
|
||||
SECTION 7 204 1 1
|
||||
GRID 240 -442.50 16.90 87.89
|
||||
GRID 241 -442.50 -16.90 87.89
|
||||
GRID 242 -442.50 16.90 100.49
|
||||
GRID 243 -442.50 -16.90 100.49
|
||||
CQUAD 14 8 240 241 243 242 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 205 Fairing Structure 5
|
||||
SECTION 7 205 1 1
|
||||
GRID 244 -461.50 12.31 91.25
|
||||
GRID 245 -461.50 -12.31 91.25
|
||||
GRID 246 -461.50 12.31 99.48
|
||||
GRID 247 -461.50 -12.31 99.48
|
||||
CQUAD 15 8 244 245 247 246 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 206 Fairing Structure 6
|
||||
SECTION 7 206 1 1
|
||||
GRID 248 -479.50 7.97 94.43
|
||||
GRID 249 -479.50 -7.97 94.43
|
||||
GRID 250 -479.50 7.97 99.19
|
||||
GRID 251 -479.50 -7.97 99.19
|
||||
CQUAD 16 8 248 249 251 250 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 207 Fairing Structure 7
|
||||
SECTION 7 207 1 1
|
||||
GRID 252 -496.50 3.86 97.44
|
||||
GRID 253 -496.50 -3.86 97.44
|
||||
GRID 254 -496.50 3.86 99.49
|
||||
GRID 255 -496.50 -3.86 99.49
|
||||
CQUAD 17 8 252 253 255 254 0.032 1
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
$NAME 7 501 Pressure Bulkhead
|
||||
SECTION 7 501 2
|
||||
GRID 330 -373.25 -0.00 127.25
|
||||
GRID 331 -373.75 -0.00 127.25
|
||||
CCONE2 18 8 330 331 36.25C106
|
||||
C106 36.25 0 0
|
||||
$COMMENT123456781234567812345678123456781234567812345678123456781234567812345678
|
||||
ENDDATA
|
||||
@@ -1,21 +0,0 @@
|
||||
set(FAA_SAMPLE_MODELS
|
||||
Business_Jet.fg4
|
||||
Generic_Twin.fg4
|
||||
)
|
||||
|
||||
foreach(faa_input ${FAA_SAMPLE_MODELS})
|
||||
ADD_G_TARGET(${faa_input} "BRL-CAD Geometry Models/Sample")
|
||||
endforeach(faa_input ${FAA_SAMPLE_MODELS})
|
||||
|
||||
CMAKEFILES(
|
||||
${FAA_SAMPLE_MODELS}
|
||||
CMakeLists.txt
|
||||
README
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
-209836
File diff suppressed because it is too large
Load Diff
@@ -1,13 +0,0 @@
|
||||
For example images of these models, see the report:
|
||||
|
||||
Uncontained Engine Debris Analysis Using the Uncontained
|
||||
Engine Debris Damage Assessment Model
|
||||
DOT/FAA/AR-04/16
|
||||
Office of Aviation Research
|
||||
Washington, D.C. 20591
|
||||
http://www.tc.faa.gov/its/worldpac/techrpt/AR04-16.pdf
|
||||
|
||||
(Note: the Generic Twin images in that report show the model
|
||||
prior to its most recent updates, which are reflected in the
|
||||
version included in BRL-CAD.)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
EXTRA_DIST = \
|
||||
ctype.inc \
|
||||
debug.inc
|
||||
|
||||
include $(top_srcdir)/misc/Makefile.defs
|
||||
@@ -1,39 +0,0 @@
|
||||
set(NIST_SAMPLE_MODELS
|
||||
NIST_MBE_PMI_1.stp
|
||||
NIST_MBE_PMI_2.stp
|
||||
NIST_MBE_PMI_3.stp
|
||||
NIST_MBE_PMI_4.stp
|
||||
NIST_MBE_PMI_5.stp
|
||||
NIST_MBE_PMI_6.stp
|
||||
NIST_MBE_PMI_7-10.3dm
|
||||
NIST_MBE_PMI_11.stp
|
||||
)
|
||||
|
||||
foreach(im ${NIST_SAMPLE_MODELS})
|
||||
ADD_G_TARGET(${im} "BRL-CAD Geometry Models/Sample")
|
||||
endforeach(im ${NIST_SAMPLE_MODELS})
|
||||
|
||||
CMAKEFILES(
|
||||
${NIST_SAMPLE_MODELS}
|
||||
CMakeLists.txt
|
||||
README
|
||||
pdf/1.pdf
|
||||
pdf/2.pdf
|
||||
pdf/3.pdf
|
||||
pdf/4.pdf
|
||||
pdf/5.pdf
|
||||
pdf/6.pdf
|
||||
pdf/7-10_assem.pdf
|
||||
pdf/7.pdf
|
||||
pdf/8.pdf
|
||||
pdf/9.pdf
|
||||
pdf/10.pdf
|
||||
pdf/11.pdf
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,37 +0,0 @@
|
||||
December 2014:
|
||||
|
||||
The files in this directory are conversions of the NIST MBE PMI test models
|
||||
into the AP203 file format. These conversions are also in the public domain.
|
||||
|
||||
Originals are from http://www.nist.gov/el/msid/infotest/mbe-pmi-validation.cfm
|
||||
|
||||
Models 7 through 10 have been assembled into a single file, guided by the example
|
||||
PDF provided with the original NIST data set.
|
||||
|
||||
MBE PMI Validation and Conformance Testing Models
|
||||
|
||||
NIST has created a Test System to measure conformance of Computer-Aided Design
|
||||
(CAD) to American Society of Mechanical Engineers (ASME) standards for Product
|
||||
and Manufacturing Information (PMI), specifically geometric dimensioning and
|
||||
tolerancing (GD&T) information.
|
||||
|
||||
As part of this Test System, CAD Models were prepared.
|
||||
|
||||
For problems or questions about the MBE PMI CAD Models, contact: Robert Lipman
|
||||
|
||||
Dataset 1 First Release: December 2013
|
||||
Dataset 1 Update Release: December 2014 (Note: Dataset 1 files currently in
|
||||
BRL-CAD repo are based off of the
|
||||
2013 version.)
|
||||
Dataset 2 First Release: June 2015
|
||||
|
||||
These files were developed at the National Institute of Standards and
|
||||
Technology by employees of the Federal Government in the course of their
|
||||
official duties. Pursuant to Title 17 Section 105 of the United States Code
|
||||
these files are not subject to copyright protection and are in the public
|
||||
domain. These files are an experimental system. NIST assumes no responsibility
|
||||
whatsoever for their use by other parties, and makes no guarantees, expressed
|
||||
or implied, about their quality, reliability, or any other characteristic.
|
||||
|
||||
Any mention of commercial products is for information only; it does not imply
|
||||
recommendation or endorsement by NIST.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+59
-58
@@ -1,64 +1,65 @@
|
||||
title {Pinewood Derby Car Model}
|
||||
units mm
|
||||
put {outer-tire-upper-hollow.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
put {inner-cyl-2.s} tgc V {0 0 0} H {0 0 0.5999999999999999777955395} A {0 -0.800000000000000044408921 0} B {0.800000000000000044408921 0 0} C {0 -0.800000000000000044408921 0} D {0.800000000000000044408921 0 0}
|
||||
put {center-cyl.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5} A {0 -0.4000000000000000222044605 0} B {0.4000000000000000222044605 0 0} C {0 -0.4000000000000000222044605 0} D {0.4000000000000000222044605 0 0}
|
||||
put {outer-tire.c} comb region no tree {u {- {- {l outer-cyl.s} {l outer-hollow-cyl.s}} {l outer-tire-upper-hollow.s}} {- {- {l wheel-outer-bump.s} {l outer-hollow-cyl.s}} {l outer-tire-upper-hollow.s}}}
|
||||
put {center-cyl.c} comb region no tree {u {- {l center-cyl.s} {l center-cyl-hollow.s}} {- {l center-cyl-bump.s} {l center-cyl-hollow.s}}}
|
||||
put {right-front-cut.s} arb8 V1 {-0.8518329999999998403126256 23.80319999999999680539986 150.5082181818181936705514} V2 {-0.8518329999999998403126256 10.9999999999999911182158 154.0000000000000284217094} V3 {-0.8518329999999998403126256 5.999999999999991118215803 177.9999999999998863131623} V4 {-0.851832999999999951334928 23.80320000000000035811354 177.9999999999999715782906} V5 {7.999999999999998223643161 23.80319999999999680539986 150.5082181818181936705514} V6 {7.999999999999998223643161 10.9999999999999911182158 154.0000000000000284217094} V7 {7.999999999999995559107901 5.999999999999991118215803 177.9999999999998863131623} V8 {7.999999999999996447286321 23.80320000000000035811354 177.9999999999999715782906}
|
||||
put {center-cyl-bump.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5999999999999999777955395} A {0 -0.2000000000000000111022302 0} B {0.2000000000000000111022302 0 0} C {0 -0.2000000000000000111022302 0} D {0.2000000000000000111022302 0 0}
|
||||
put {outer-cyl.s} tgc V {0 0 0} H {0 0 0.800000000000000044408921} A {0 -1.5 0} B {1.5 0 0} C {0 -1.5 0} D {1.5 0 0}
|
||||
put {inner-cyl.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
put {axel-cut-2.c} comb region no tree {- {l axel-cutout-2a.s} {l axel-cutout-2.s}}
|
||||
put {axel-cut-1.c} comb region no tree {- {l axel-cutout-1a.s} {l axel-cutout-1.s}}
|
||||
put {cuttest1.s} tgc V {21 -12.5 67} H {9.009813205160669449917104E-15 23.5329866686764859196046 3.449487102286835224083511E-30} A {-1.722865014715246889664968E-14 0 45} B {9 -3.445730029430494568190841E-15 3.445730029430493384899483E-15} C {-1.722865014715246889664968E-14 0 45} D {9 -3.445730029430494568190841E-15 3.445730029430493384899483E-15}
|
||||
attr set {_GLOBAL} {regionid_colortable} {}
|
||||
put {axel.s} tgc V {0 0 0} H {0 63 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {inner-cyl.c} comb region no tree {u {- {l inner-cyl.s} {l inner-hollow.cyl.s}} {- {l inner-cyl-2.s} {l inner-cyl-2-hollow.s}}}
|
||||
put {detail-sphere.s400} ell V {0.1123819780247738431278037 -0.2781551563700361273667738 0.4000000000000000222044605} A {0.01873032967079563820833599 -0.04635919272833936150002287 0} B {0.04635919272833936150002287 0.01873032967079563820833599 0} C {0 0 0.05000000000000000277555756}
|
||||
put {wheel-well-back.s} arb8 V1 {2 -22 25} V2 {2 22 25} V3 {2 22 27} V4 {2 -22 27} V5 {0 -22 25} V6 {0 22 25} V7 {0 22 27} V8 {0 -22 27}
|
||||
put {detail-sphere.s300} ell V {-0.2331437884370911595155462 -0.1887961173149513838254165 0.4000000000000000222044605} A {-0.03885729807284853121185364 -0.03146601955249189730423609 0} B {0.03146601955249189730423609 -0.03885729807284853121185364 0} C {0 0 0.05000000000000000277555756}
|
||||
put {detail-sphere.s200} ell V {-0.2487112717665125871668863 0.1677578710412239437754778 0.4000000000000000222044605} A {-0.04145187862775209786114772 0.0279596451735373285885089 0} B {-0.0279596451735373285885089 -0.04145187862775209786114772 0} C {0 0 0.05000000000000000277555756}
|
||||
put {detail-sphere.s100} ell V {0.08771151141682095864204882 0.2868914267889106639586316 0.4000000000000000222044605} A {0.0146185852361368287533061 0.04781523779815177732643861 0} B {-0.04781523779815177732643861 0.0146185852361368287533061 0} C {0 0 0.05000000000000000277555756}
|
||||
put {inner-detail-401.s} tgc V {-0.2996852747327302113333758 0.741747083653429784000366 0.4000000000000000222044605} H {0.2247639560495476862556075 -0.5563103127400722547335477 0} A {0 0 -0.1499999999999999944488849} B {0.1390775781850180636833869 0.05619098901238692156390186 0} C {0 0 -0.01000000000000000020816682} D {0.009271838545667871259170489 0.003746065934159127901875719 0}
|
||||
put {inner-detail-301.s} tgc V {0.6217167691655764993896582 0.5034563128398703568677774 0.4000000000000000222044605} H {-0.4662875768741823190310924 -0.3775922346299027676508331 0} A {0 0 -0.1499999999999999944488849} B {0.09439805865747569191270827 -0.1165718942185455797577731 0} C {0 0 -0.01000000000000000020816682} D {0.006293203910498379634319566 -0.007771459614569705548481338 0}
|
||||
put {inner-detail-201.s} tgc V {0.6632300580440335657783635 -0.4473543227765972574161424 0.4000000000000000222044605} H {-0.4974225435330251743337726 0.3355157420824478875509556 0} A {0 0 -0.1499999999999999944488849} B {-0.08387893552061197188773889 -0.1243556358832562935834432 0} C {0 0 -0.01000000000000000020816682} D {-0.005591929034707465023812389 -0.008290375725550419225284848 0}
|
||||
put {inner-detail-101.s} tgc V {-0.2338973637781892600528977 -0.7650438047704284372230177 0.4000000000000000222044605} H {0.1754230228336419172840976 0.5737828535778213279172633 0} A {0 0 -0.1499999999999999944488849} B {-0.1434457133944553319793158 0.04385575570841047932102441 0} C {0 0 -0.01000000000000000020816682} D {-0.009563047559630355812232416 0.002923717047227365403716526 0}
|
||||
put {cuttest1.s} tgc V {21 -12.5 67} H {9.009813205160669449917104E-15 23.5329866686764859196046 3.449487102286835224083511E-30} A {-1.722865014715246889664968E-14 0 45} B {9 -3.445730029430494568190841E-15 3.445730029430493384899483E-15} C {-1.722865014715246889664968E-14 0 45} D {9 -3.445730029430494568190841E-15 3.445730029430493384899483E-15}
|
||||
put {axel-cutout-2a.s} tgc V {0 61 0} H {0 1 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {axel-cutout-1a.s} tgc V {0 1 0} H {0 1 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {detail-spheres.c} comb region no tree {u {u {u {l detail-sphere.s} {l detail-sphere.s100}} {u {l detail-sphere.s200} {l detail-sphere.s300}}} {l detail-sphere.s400}}
|
||||
put {left-front-cut.s} arb8 V1 {-0.6130360000000001363673618 -23.96719999999999117790139 150.4634909090908365669748} V2 {-0.6130360000000000253450594 -10.99999999999998934185896 154.0000000000000852651283} V3 {-0.6130360000000000253450594 -6.000000000000002664535259 177.9999999999999431565811} V4 {-0.6130360000000000253450594 -23.96719999999999117790139 177.9999999999999431565811} V5 {8.000000000000001776356839 -23.96719999999999117790139 150.4634909090908365669748} V6 {7.99999999999999911182158 -10.99999999999998934185896 154.0000000000000852651283} V7 {7.999999999999998223643161 -6.000000000000002664535259 177.9999999999999431565811} V8 {8.000000000000003552713679 -23.96719999999999117790139 177.9999999999999431565811}
|
||||
put {side-cut-right.s} arb8 V1 {9.151327272727264983132045 23.55590000000000827640179 75.30265454545443049028108} V2 {9.886814599336834788138377E-15 23.55590000000001893454282 75.30265454545450154455466} V3 {9.886814599336837943581998E-15 23.55590000000000472368811 131.1315636363635803718353} V4 {9.151327272727243666849972 23.55589999999998696011971 131.1315636363635519501258} V5 {15.99999999999997690736109 10.99999999999999822364316 88.99999999999984368059813} V6 {1.776356839400245337081927E-15 11.00000000000001243449788 88.99999999999995736743585} V7 {1.776356839400252042399621E-15 11.00000000000000355271368 121.9999999999999715782906} V8 {15.99999999999996624922005 10.9999999999999911182158 121.9999999999999573674359}
|
||||
put {axel-cutout-2a.s} tgc V {0 61 0} H {0 1 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {axel-cutout-1a.s} tgc V {0 1 0} H {0 1 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {detail-sphere.s400} ell V {0.1123819780247738431278037 -0.2781551563700361273667738 0.4000000000000000222044605} A {0.01873032967079563820833599 -0.04635919272833936150002287 0} B {0.04635919272833936150002287 0.01873032967079563820833599 0} C {0 0 0.05000000000000000277555756}
|
||||
put {detail-sphere.s300} ell V {-0.2331437884370911595155462 -0.1887961173149513838254165 0.4000000000000000222044605} A {-0.03885729807284853121185364 -0.03146601955249189730423609 0} B {0.03146601955249189730423609 -0.03885729807284853121185364 0} C {0 0 0.05000000000000000277555756}
|
||||
put {wheel-well-back.s} arb8 V1 {2 -22 25} V2 {2 22 25} V3 {2 22 27} V4 {2 -22 27} V5 {0 -22 25} V6 {0 22 25} V7 {0 22 27} V8 {0 -22 27}
|
||||
put {detail-sphere.s200} ell V {-0.2487112717665125871668863 0.1677578710412239437754778 0.4000000000000000222044605} A {-0.04145187862775209786114772 0.0279596451735373285885089 0} B {-0.0279596451735373285885089 -0.04145187862775209786114772 0} C {0 0 0.05000000000000000277555756}
|
||||
put {left-front-cut.s} arb8 V1 {0 -22 151} V2 {0 -11 154} V3 {0 -6 178} V4 {0 -22 178} V5 {8 -22 151} V6 {8 -11 154} V7 {8 -6 178} V8 {8 -22 178}
|
||||
put {pinewood} comb region no tree {u {u {u {l pinewood_car_body.r} {l tire1.r}} {u {l tire2.r} {l tire3.r}}} {u {u {l tire4.r} {l axel1.r}} {l axel2.r}}}
|
||||
put {inner-detail-1.s} tgc V {-0.800000000000000044408921 0 0.4000000000000000222044605} H {0.5999999999999999777955395 0 0} A {0 0 -0.1499999999999999944488849} B {0 0.1499999999999999944488849 0} C {0 0 -0.01000000000000000020816682} D {0 0.01000000000000000020816682 0}
|
||||
put {detail-sphere.s} ell V {0.2999999999999999888977698 0 0.4000000000000000222044605} A {0.05000000000000000277555756 0 0} B {0 0.05000000000000000277555756 0} C {0 0 0.05000000000000000277555756}
|
||||
put {inner-cyl-2-hollow.s} tgc V {0 0 0} H {0 0 0.800000000000000044408921} A {0 -0.7499999999999998889776975 0} B {0.7499999999999998889776975 0 0} C {0 -0.7499999999999998889776975 0} D {0.7499999999999998889776975 0 0}
|
||||
put {block6.s} arb8 V1 {18 -12.5 102} V2 {18 10.5 102} V3 {18 10.5 177} V4 {18 -12.5 177} V5 {23.23583984375 -12.5 102} V6 {23.23583984375 10.5 102} V7 {23.23583984375 10.5 177} V8 {23.23583984375 -12.5 177}
|
||||
put {block5.s} arb8 V1 {2.5 -22 177} V2 {18 -22 102} V3 {18 22 102} V4 {2.5 22 177} V5 {18 -22 177} V6 {18 -22 177} V7 {18 22 177} V8 {18 22 177}
|
||||
put {block4.s} arb8 V1 {10 -12.5 67} V2 {10 10.5 67} V3 {10 10.5 177} V4 {10 -12.5 177} V5 {21 -5.5 67} V6 {21 2.5 67} V7 {21 2.5 177} V8 {21 -5.5 177}
|
||||
put {block3.s} arb8 V1 {10 -12.5 0} V2 {10 10.5 0} V3 {10.00000000000000177635684 10.5 67} V4 {10.00000000000000177635684 -12.49999999999999822364316 67.00000000000001421085472} V5 {21 -5.5 0} V6 {21 2.5 0} V7 {21 2.500000000000007105427358 67.00000000000001421085472} V8 {21 -5.5 67}
|
||||
put {block2.s} arb8 V1 {12.75558857142857327460206 -12.38815357142856932171071 -1.069299999999999695177166} V2 {21.83899999999998797761691 -5.575595000000001633111424 38.67062500000000113686838} V3 {21.83899999999999508304427 2.455820000000009883933672 38.67062499999998692601366} V4 {12.75558857142860702538201 10.40380499999997354620973 -1.069299999999999917221771} V5 {21.83899999999999153033059 -5.575594999999994527684066 -1.069299999999999917221771} V6 {21.83899999999999153033059 -5.575594999999994527684066 -1.069299999999999917221771} V7 {21.83899999999999863575795 2.45582000000001521300419 -1.069299999999999695177166} V8 {21.83899999999999863575795 2.45582000000001521300419 -1.069299999999999695177166}
|
||||
put {block1.s} arb8 V1 {0 -22 0} V2 {0 22 0} V3 {0 22 177} V4 {0 -22 177} V5 {10 -22 0} V6 {10 22 0} V7 {10 22 177} V8 {10 -22 177}
|
||||
put {side-cut-left.s} arb8 V1 {0 -23.55600000000000093791641 77.94399999999994577137841} V2 {8.726909090909078514641806 -23.55600000000000093791641 77.94399999999995998223312} V3 {8.726909090909080290998645 -23.55600000000000093791641 130.348727272727245463102} V4 {0 -23.55600000000000093791641 130.3487272727272738848114} V5 {0 -11 90.49999999999994315658114} V6 {18.99999999999998934185896 -11 90.49999999999994315658114} V7 {18.99999999999998934185896 -11 123.4999999999999857891453} V8 {0 -11 123.5000000000000568434189}
|
||||
put {pinewood_car_body.r} comb region yes tree {u {u {- {- {- {- {- {- {- {l block1.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}} {l block5.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l side-cut-left.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l side-cut-right.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l left-front-cut.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l right-front-cut.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l wheel-well-back.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l wheel-well-front.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {- {l block3.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}} {l block2.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}}} {- {- {- {l block4.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}} {l cuttest1.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l block5.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}} {l block6.s {0 0 1 0 0 -1 0 0 1 0 0 0 0 0 0 1}}}}
|
||||
attr set {pinewood_car_body.r} {region} {R} {los} {100} {material_id} {1} {region_id} {1000} {shader} {plastic} {color} {255/255/118}
|
||||
put {axel-cutout-2.s} tgc V {0 61 0} H {0 1 0} A {0 0 0.5999999999999999777955395} B {0.5999999999999999777955395 0 0} C {0 0 0.5999999999999999777955395} D {0.5999999999999999777955395 0 0}
|
||||
put {axel-cutout-1.s} tgc V {0 1 0} H {0 1 0} A {0 0 0.5999999999999999777955395} B {0.5999999999999999777955395 0 0} C {0 0 0.5999999999999999777955395} D {0.5999999999999999777955395 0 0}
|
||||
put {tire4.r} comb region yes tree {u {u {u {u {l outer-tire.c {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {- {l inner-cyl.c {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}} {l detail-spheres.c {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}} {l center-cyl.c {-1 0 0 14 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}
|
||||
attr set {tire4.r} {region} {R} {shader} {plastic} {region_id} {1001} {material_id} {1} {los} {100} {color} {40/40/40}
|
||||
put {tire3.r} comb region yes tree {u {u {u {u {l outer-tire.c {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {- {l inner-cyl.c {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}} {l detail-spheres.c {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}} {l center-cyl.c {1 0 0 14 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}
|
||||
attr set {tire3.r} {region} {R} {shader} {plastic} {region_id} {1001} {material_id} {1} {los} {100} {color} {40/40/40}
|
||||
put {tire2.r} comb region yes tree {u {u {u {u {l outer-tire.c {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {- {l inner-cyl.c {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}} {l detail-spheres.c {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}} {l center-cyl.c {-1 0 0 2.6 0 0 -1 -2.3 0 -1 0 0.1 0 0 0 0.1}}}
|
||||
attr set {tire2.r} {region} {R} {shader} {plastic} {region_id} {1001} {material_id} {1} {los} {100} {color} {40/40/40}
|
||||
put {axel2.r} comb region yes tree {- {- {l axel.s {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}} {l axel-cut-1.c {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}}} {l axel-cut-2.c {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}}}
|
||||
attr set {axel2.r} {region} {R} {los} {100} {material_id} {1} {region_id} {1000}
|
||||
put {tire1.r} comb region yes tree {u {u {u {u {l outer-tire.c {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {- {l inner-cyl.c {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}} {l detail-spheres.c {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}} {l center-cyl.c {1 0 0 2.6 0 0 1 2.3 0 -1 0 0.1 0 0 0 0.1}}}
|
||||
attr set {tire1.r} {region} {R} {shader} {plastic} {region_id} {1001} {material_id} {1} {los} {100} {color} {40/40/40}
|
||||
put {axel1.r} comb region yes tree {- {- {l axel.s {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}} {l axel-cut-1.c {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}}} {l axel-cut-2.c {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}}}
|
||||
attr set {axel1.r} {region} {R} {los} {100} {material_id} {1} {region_id} {1000}
|
||||
put {center-cyl-hollow.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5999999999999999777955395} A {0 -0.1000000000000000055511151 0} B {0.1000000000000000055511151 0 0} C {0 -0.1000000000000000055511151 0} D {0.1000000000000000055511151 0 0}
|
||||
put {axel.s} tgc V {0 0 0} H {0 63 0} A {0 0 1} B {1 0 0} C {0 0 1} D {1 0 0}
|
||||
put {detail-sphere.s100} ell V {0.08771151141682095864204882 0.2868914267889106639586316 0.4000000000000000222044605} A {0.0146185852361368287533061 0.04781523779815177732643861 0} B {-0.04781523779815177732643861 0.0146185852361368287533061 0} C {0 0 0.05000000000000000277555756}
|
||||
put {side-cut-right.s} arb8 V1 {10.0000000000000088817842 22 77} V2 {8.881784197001252323389053E-15 22.00000000000000710542736 77} V3 {8.881784197001252323389053E-15 22.00000000000000710542736 130} V4 {10.00000000000000710542736 21.99999999999999644728632 130.0000000000000284217094} V5 {16 11 89} V6 {1.776356839400250464677811E-15 11.00000000000000710542736 89} V7 {1.776356839400252436830074E-15 11.00000000000000710542736 122.0000000000000284217094} V8 {16 11 122.0000000000000710542736}
|
||||
put {pinewood_car_body.r} comb region yes tree {u {u {- {- {- {- {- {- {- {l block1.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}} {l block5.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l side-cut-left.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l side-cut-right.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l left-front-cut.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l right-front-cut.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l wheel-well-back.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l wheel-well-front.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {- {l block3.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}} {l block2.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}}} {- {- {- {l block4.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}} {l cuttest1.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l block5.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}} {l block6.s {3.82859e-16 -7.65718e-16 1 -1.68458e-14 -2.93162e-31 -1 -7.65718e-16 0 1 0 -3.82859e-16 0 0 0 0 1}}}}
|
||||
attr set {pinewood_car_body.r} {region} {R} {rgb} {255/255/118} {oshader} {plastic} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {outer-tire-upper-hollow.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
put {right-front-cut.s} arb8 V1 {0 22 151} V2 {0 11 154} V3 {0 6 178} V4 {0 22 178} V5 {8 22 151} V6 {8 11 154} V7 {8 6 178} V8 {8 22 178}
|
||||
put {inner-cyl-2.s} tgc V {0 0 0} H {0 0 0.5999999999999999777955395} A {0 -0.800000000000000044408921 0} B {0.800000000000000044408921 0 0} C {0 -0.800000000000000044408921 0} D {0.800000000000000044408921 0 0}
|
||||
put {inner-detail-1.s} tgc V {-0.800000000000000044408921 0 0.4000000000000000222044605} H {0.5999999999999999777955395 0 0} A {0 0 -0.1499999999999999944488849} B {0 0.1499999999999999944488849 0} C {0 0 -0.01000000000000000020816682} D {0 0.01000000000000000020816682 0}
|
||||
put {axel-cutout-2.s} tgc V {0 61 0} H {0 1 0} A {0 0 0.5999999999999999777955395} B {0.5999999999999999777955395 0 0} C {0 0 0.5999999999999999777955395} D {0.5999999999999999777955395 0 0}
|
||||
put {inner-cones.c} comb region no tree {u {u {u {l inner-detail-1.s} {l inner-detail-101.s}} {u {l inner-detail-201.s} {l inner-detail-301.s}}} {l inner-detail-401.s}}
|
||||
put {wheel-well-front.s} arb8 V1 {2 -22 139} V2 {2 22 139} V3 {2 22 141} V4 {2 -22 141} V5 {0 -22 139} V6 {0 22 139} V7 {0 22 141} V8 {0 -22 141}
|
||||
put {outer-hollow-cyl.s} tgc V {0 0 0} H {0 0 0.5} A {0 -1.199999999999999955591079 0} B {1.199999999999999955591079 0 0} C {0 -1.199999999999999955591079 0} D {1.199999999999999955591079 0 0}
|
||||
put {wheel-outer-bump.s} eto V {0 0 0.800000000000000044408921} N {0 -8.34544256767107268166427E-16 -1.089884907806513147932037} C {0.281492275734594732394811 0.02689961599649578691262342 0.0008719051763263864019207205} r 1.175024957792653701460495 r_d 0.09511428095492888146189614
|
||||
put {inner-hollow.cyl.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.800000000000000044408921 0} B {0.800000000000000044408921 0 0} C {0 -0.800000000000000044408921 0} D {0.800000000000000044408921 0 0}
|
||||
put {inner-cyl-lower-trim.s} tgc V {0 0 0} H {0 0 0.4000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
put {detail-sphere.s} ell V {0.2999999999999999888977698 0 0.4000000000000000222044605} A {0.05000000000000000277555756 0 0} B {0 0.05000000000000000277555756 0} C {0 0 0.05000000000000000277555756}
|
||||
put {axel-cutout-1.s} tgc V {0 1 0} H {0 1 0} A {0 0 0.5999999999999999777955395} B {0.5999999999999999777955395 0 0} C {0 0 0.5999999999999999777955395} D {0.5999999999999999777955395 0 0}
|
||||
put {tire4.r} comb region yes tree {u {u {u {u {l outer-tire.c {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {- {l inner-cyl.c {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {l detail-spheres.c {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}} {l center-cyl.c {-1 2.93162e-31 -7.65718e-16 14 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}
|
||||
attr set {tire4.r} {region} {R} {rgb} {0/0/0} {oshader} {plastic} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {tire3.r} comb region yes tree {u {u {u {u {l outer-tire.c {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {- {l inner-cyl.c {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {l detail-spheres.c {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}} {l center-cyl.c {1 0 0 14 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}
|
||||
attr set {tire3.r} {region} {R} {rgb} {0/0/0} {oshader} {plastic} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {tire2.r} comb region yes tree {u {u {u {u {l outer-tire.c {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {- {l inner-cyl.c {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {l detail-spheres.c {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}} {l center-cyl.c {-1 2.93162e-31 -7.65718e-16 2.6 7.65718e-16 3.82859e-16 -1 -2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}
|
||||
attr set {tire2.r} {region} {R} {rgb} {0/0/0} {oshader} {plastic} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {axel2.r} comb region yes tree {- {- {l axel.s {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}} {l axel-cut-1.c {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}}} {l axel-cut-2.c {1 0 0 140 0 1 0 -31.5 0 0 1 1 0 0 0 1}}}
|
||||
attr set {axel2.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {tire1.r} comb region yes tree {u {u {u {u {l outer-tire.c {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {- {l inner-cyl.c {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {- {l inner-cones.c {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}} {l inner-cyl-lower-trim.s {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}} {l detail-spheres.c {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}} {l center-cyl.c {1 0 0 2.6 0 -3.82859e-16 1 2.3 0 -1 -3.82859e-16 0.1 0 0 0 0.1}}}
|
||||
attr set {tire1.r} {region} {R} {rgb} {0/0/0} {oshader} {plastic} {region_id} {1001} {material_id} {1} {los} {100}
|
||||
put {axel1.r} comb region yes tree {- {- {l axel.s {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}} {l axel-cut-1.c {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}}} {l axel-cut-2.c {1 0 0 26 0 1 0 -31.5 0 0 1 1 0 0 0 1}}}
|
||||
attr set {axel1.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {center-cyl-bump.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5999999999999999777955395} A {0 -0.2000000000000000111022302 0} B {0.2000000000000000111022302 0 0} C {0 -0.2000000000000000111022302 0} D {0.2000000000000000111022302 0 0}
|
||||
put {center-cyl.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5} A {0 -0.4000000000000000222044605 0} B {0.4000000000000000222044605 0 0} C {0 -0.4000000000000000222044605 0} D {0.4000000000000000222044605 0 0}
|
||||
put {wheel-well-front.s} arb8 V1 {2 -22 139} V2 {2 22 139} V3 {2 22 141} V4 {2 -22 141} V5 {0 -22 139} V6 {0 22 139} V7 {0 22 141} V8 {0 -22 141}
|
||||
put {center-cyl-hollow.s} tgc V {0 0 -0.1000000000000000055511151} H {0 0 0.5999999999999999777955395} A {0 -0.1000000000000000055511151 0} B {0.1000000000000000055511151 0 0} C {0 -0.1000000000000000055511151 0} D {0.1000000000000000055511151 0 0}
|
||||
put {outer-hollow-cyl.s} tgc V {0 0 0} H {0 0 0.5} A {0 -1.199999999999999955591079 0} B {1.199999999999999955591079 0 0} C {0 -1.199999999999999955591079 0} D {1.199999999999999955591079 0 0}
|
||||
put {inner-detail-401.s} tgc V {-0.2996852747327302113333758 0.741747083653429784000366 0.4000000000000000222044605} H {0.2247639560495476862556075 -0.5563103127400722547335477 0} A {0 0 -0.1499999999999999944488849} B {0.1390775781850180636833869 0.05619098901238692156390186 0} C {0 0 -0.01000000000000000020816682} D {0.009271838545667871259170489 0.003746065934159127901875719 0}
|
||||
put {inner-detail-301.s} tgc V {0.6217167691655764993896582 0.5034563128398703568677774 0.4000000000000000222044605} H {-0.4662875768741823190310924 -0.3775922346299027676508331 0} A {0 0 -0.1499999999999999944488849} B {0.09439805865747569191270827 -0.1165718942185455797577731 0} C {0 0 -0.01000000000000000020816682} D {0.006293203910498379634319566 -0.007771459614569705548481338 0}
|
||||
put {wheel-outer-bump.s} eto V {0 0 0.800000000000000044408921} N {0 -8.34544256767107268166427E-16 -1.089884907806513147932037} C {0.281492275734594732394811 0.02689961599649578691262342 0.0008719051763263864019207205} r 1.175024957792653701460495 r_d 0.09511428095492888146189614
|
||||
put {inner-hollow.cyl.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.800000000000000044408921 0} B {0.800000000000000044408921 0 0} C {0 -0.800000000000000044408921 0} D {0.800000000000000044408921 0 0}
|
||||
put {inner-detail-201.s} tgc V {0.6632300580440335657783635 -0.4473543227765972574161424 0.4000000000000000222044605} H {-0.4974225435330251743337726 0.3355157420824478875509556 0} A {0 0 -0.1499999999999999944488849} B {-0.08387893552061197188773889 -0.1243556358832562935834432 0} C {0 0 -0.01000000000000000020816682} D {-0.005591929034707465023812389 -0.008290375725550419225284848 0}
|
||||
put {inner-detail-101.s} tgc V {-0.2338973637781892600528977 -0.7650438047704284372230177 0.4000000000000000222044605} H {0.1754230228336419172840976 0.5737828535778213279172633 0} A {0 0 -0.1499999999999999944488849} B {-0.1434457133944553319793158 0.04385575570841047932102441 0} C {0 0 -0.01000000000000000020816682} D {-0.009563047559630355812232416 0.002923717047227365403716526 0}
|
||||
put {outer-tire.c} comb region no tree {u {- {- {l outer-cyl.s} {l outer-hollow-cyl.s}} {l outer-tire-upper-hollow.s}} {- {- {l wheel-outer-bump.s} {l outer-hollow-cyl.s}} {l outer-tire-upper-hollow.s}}}
|
||||
put {outer-cyl.s} tgc V {0 0 0} H {0 0 0.800000000000000044408921} A {0 -1.5 0} B {1.5 0 0} C {0 -1.5 0} D {1.5 0 0}
|
||||
put {inner-cyl.s} tgc V {0 0 0} H {0 0 0.9000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
put {axel-cut-2.c} comb region no tree {- {l axel-cutout-2a.s} {l axel-cutout-2.s}}
|
||||
put {center-cyl.c} comb region no tree {u {- {l center-cyl.s} {l center-cyl-hollow.s}} {- {l center-cyl-bump.s} {l center-cyl-hollow.s}}}
|
||||
put {axel-cut-1.c} comb region no tree {- {l axel-cutout-1a.s} {l axel-cutout-1.s}}
|
||||
put {inner-cyl-2-hollow.s} tgc V {0 0 0} H {0 0 0.800000000000000044408921} A {0 -0.7499999999999998889776975 0} B {0.7499999999999998889776975 0 0} C {0 -0.7499999999999998889776975 0} D {0.7499999999999998889776975 0 0}
|
||||
put {block6.s} arb8 V1 {18 -12.5 102} V2 {18 10.5 102} V3 {18 10.5 177} V4 {18 -12.5 177} V5 {23.23583984375 -12.5 102} V6 {23.23583984375 10.5 102} V7 {23.23583984375 10.5 177} V8 {23.23583984375 -12.5 177}
|
||||
put {block5.s} arb8 V1 {2.5 -22 177} V2 {18 -22 102} V3 {18 22 102} V4 {2.5 22 177} V5 {18 -22 177} V6 {18 -22 177} V7 {18 22 177} V8 {18 22 177}
|
||||
put {block4.s} arb8 V1 {10 -12.5 67} V2 {10 10.5 67} V3 {10 10.5 177} V4 {10 -12.5 177} V5 {21 -5.5 67} V6 {21 2.5 67} V7 {21 2.5 177} V8 {21 -5.5 177}
|
||||
put {block3.s} arb8 V1 {10 -12.5 0} V2 {10 10.5 0} V3 {10.00000000000000177635684 10.5 67} V4 {10.00000000000000177635684 -12.49999999999999822364316 67.00000000000001421085472} V5 {21 -5.5 0} V6 {21 2.5 0} V7 {21 2.500000000000007105427358 67.00000000000001421085472} V8 {21 -5.5 67}
|
||||
put {block2.s} arb8 V1 {13 -11.5 0} V2 {21 -5.5 35} V3 {21 2.5 35} V4 {13 9.5 0} V5 {21 -5.5 0} V6 {21 -5.5 0} V7 {21 2.5 0} V8 {21 2.5 0}
|
||||
put {block1.s} arb8 V1 {0 -22 0} V2 {0 22 0} V3 {0 22 177} V4 {0 -22 177} V5 {10 -22 0} V6 {10 22 0} V7 {10 22 177} V8 {10 -22 177}
|
||||
put {side-cut-left.s} arb8 V1 {0 -22 79.5} V2 {10 -22 79.5} V3 {9.999999999999996447286321 -22 129.5} V4 {0 -22 129.5} V5 {0 -11 90.5} V6 {19 -11 90.49999999999998578914528} V7 {19 -11 123.5} V8 {0 -11.00000000000000177635684 123.5000000000000142108547}
|
||||
put {inner-cyl-lower-trim.s} tgc V {0 0 0} H {0 0 0.4000000000000000222044605} A {0 -0.9000000000000000222044605 0} B {0.9000000000000000222044605 0 0} C {0 -0.9000000000000000222044605 0} D {0.9000000000000000222044605 0 0}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
title {Example rounding methods}
|
||||
units mm
|
||||
put {m2cuttop.tor} tor V {0 0 500} H {0 0 1} r_a 250 r_h 50
|
||||
put {m2bottom.tor} tor V {0 0 -450} H {0 0 1} r_a 200 r_h 50
|
||||
put {cylinder.rcc} tgc V {0 0 -500} H {0 0 1000} A {250 0 0} B {0 250 0} C {250 0 0} D {0 250 0}
|
||||
put {fillends.rcc} tgc V {0 0 -550} H {0 0 1100} A {0 -200 0} B {200 0 0} C {0 -200 0} D {200 0 0}
|
||||
put {filltop.rcc} tgc V {0 0 500} H {0 0 50} A {0 -200 0} B {200 0 0} C {0 -200 0} D {200 0 0}
|
||||
put {bottom.tor} tor V {0 0 -500} H {0 0 -1} r_a 200 r_h 50
|
||||
put {cylinder.r} comb region yes tree {l cylinder.rcc}
|
||||
attr set {cylinder.r} {region} {R} {region_id} {1003} {material_id} {1} {los} {100}
|
||||
put {m2top.tor} tor V {0 0 450} H {0 0 1} r_a 200 r_h 50
|
||||
put {m2cutbottom.tor} tor V {0 0 -500} H {0 0 1} r_a 250 r_h 50
|
||||
put {method3.r} comb region yes tree {l method3}
|
||||
attr set {method3.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {method2.r} comb region yes tree {l method2}
|
||||
attr set {method2.r} {region} {R} {region_id} {1002} {material_id} {1} {los} {100}
|
||||
put {method1.r} comb region yes tree {l method1}
|
||||
attr set {method1.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
|
||||
put {top.tor} tor V {0 0 500} H {0 0 1} r_a 200 r_h 50
|
||||
put {method3} comb region no tree {u {u {u {l cylinder.rcc} {l top.tor}} {u {l bottom.tor} {l filltop.rcc}}} {l fillbottom.rcc}}
|
||||
put {method2} comb region no tree {u {u {- {- {l cylinder.rcc} {l m2cuttop.tor}} {l m2cutbottom.tor}} {l m2top.tor}} {l m2bottom.tor}}
|
||||
put {method1} comb region no tree {u {u {l cylinder.rcc} {l fillends.rcc}} {u {l top.tor} {l bottom.tor}}}
|
||||
put {fillbottom.rcc} tgc V {0 0 -550} H {0 0 50} A {0 -200 0} B {200 0 0} C {0 -200 0} D {200 0 0}
|
||||
put {all.g} comb region no tree {u {u {l method1.r {1 0 0 1000 0 1 0 -1000 0 0 1 0 0 0 0 1}} {l method2.r {1 0 0 1000 0 1 0 0 0 0 1 0 0 0 0 1}}} {u {l method3.r {1 0 0 1000 0 1 0 1000 0 0 1 0 0 0 0 1}} {l cylinder.r}}}
|
||||
+1472
-1878
File diff suppressed because it is too large
Load Diff
+216
-263
@@ -1,269 +1,222 @@
|
||||
verbose_add_subdirectory(doc docbook)
|
||||
verbose_add_subdirectory(doc html)
|
||||
verbose_add_subdirectory(doc legal)
|
||||
|
||||
set(documentation_DATA
|
||||
BRL-CAD.bib
|
||||
IDEAS
|
||||
PROJECTS
|
||||
README.Linux
|
||||
README.MacOSX
|
||||
README.Windows
|
||||
README.other/README.AIX
|
||||
README.other/README.BSD
|
||||
README.other/README.IRIX
|
||||
README.other/README.Solaris
|
||||
README.other/README.VAX
|
||||
checklist.txt
|
||||
description.txt
|
||||
notes/TODO.BREP
|
||||
notes/TODO.shaded_displays
|
||||
notes/brep.txt
|
||||
notes/bu_opt_design_notes.txt
|
||||
notes/cvs.txt
|
||||
notes/editors.txt
|
||||
notes/history.txt
|
||||
notes/hypot.txt
|
||||
notes/mater.txt
|
||||
notes/matrix.txt
|
||||
pre_BRL-CAD.bib
|
||||
)
|
||||
ADD_DOC(documentation_DATA ".")
|
||||
IF(BRLCAD-BUILD_EXTRADOCS)
|
||||
ADD_SUBDIRECTORY(docbook)
|
||||
ENDIF(BRLCAD-BUILD_EXTRADOCS)
|
||||
|
||||
set(documentation_mged_old_DATA
|
||||
mged/a.tex
|
||||
mged/adc.ps
|
||||
mged/all.tex
|
||||
mged/axis-3525.ps
|
||||
mged/b.tex
|
||||
mged/buttonmenu.ps
|
||||
mged/c.tex
|
||||
mged/coord-axes.ps
|
||||
mged/crod-close.ps
|
||||
mged/crod.ps
|
||||
mged/d.tex
|
||||
mged/doit
|
||||
mged/e.tex
|
||||
mged/eo-arbrot.ps
|
||||
mged/eo-bgrp.ps
|
||||
mged/eo-bgrp311.ps
|
||||
mged/eo-cgrp.ps
|
||||
mged/eo-cgrp321.ps
|
||||
mged/eo-ellg.ps
|
||||
mged/eo-ellg2x.ps
|
||||
mged/eo-ellgxyz.ps
|
||||
mged/eo-gredit.ps
|
||||
mged/eo-grpath.ps
|
||||
mged/eo-scale.ps
|
||||
mged/eo-spread.ps
|
||||
mged/eo-stacked.ps
|
||||
mged/eo-start.ps
|
||||
mged/eo-tor111.ps
|
||||
mged/eo-xymove.ps
|
||||
mged/eo-xyzmove.ps
|
||||
mged/es5-edge1.ps
|
||||
mged/es5-edge2.ps
|
||||
mged/es5-edge3.ps
|
||||
mged/es5-edge4.ps
|
||||
mged/es5-rot.ps
|
||||
mged/es5-scale.ps
|
||||
mged/es5-sed.ps
|
||||
mged/es5-top.ps
|
||||
mged/es5-tr.ps
|
||||
mged/es5-xrot.ps
|
||||
mged/es8-edge1.ps
|
||||
mged/es8-edge2.ps
|
||||
mged/es8-edge3.ps
|
||||
mged/es8-ex1.ps
|
||||
mged/es8-ex2.ps
|
||||
mged/es8-rot.ps
|
||||
mged/es8-scale.ps
|
||||
mged/es8-sed.ps
|
||||
mged/es8-top.ps
|
||||
mged/es8-tr0.ps
|
||||
mged/es8-xrot.ps
|
||||
mged/es8-yrot.ps
|
||||
mged/es8-zrot.ps
|
||||
mged/esc-mh.ps
|
||||
mged/esc-mhrt.ps
|
||||
mged/esc-rot.ps
|
||||
mged/esc-sa.ps
|
||||
mged/esc-sb.ps
|
||||
mged/esc-sc.ps
|
||||
mged/esc-scale.ps
|
||||
mged/esc-sd.ps
|
||||
mged/esc-sed.ps
|
||||
mged/esc-sh.ps
|
||||
mged/esc-top.ps
|
||||
mged/esc-tr.ps
|
||||
mged/esc-xrot.ps
|
||||
mged/esc-yrot.ps
|
||||
mged/esc-zrot.ps
|
||||
mged/ese-sa.ps
|
||||
mged/ese-sb.ps
|
||||
mged/ese-sc.ps
|
||||
mged/ese-scale.ps
|
||||
mged/ese-sed.ps
|
||||
mged/ese-top.ps
|
||||
mged/ese-tr.ps
|
||||
mged/ese-xrot.ps
|
||||
mged/ese-yrot.ps
|
||||
mged/ese-zrot.ps
|
||||
mged/est-scale.ps
|
||||
mged/est-sed.ps
|
||||
mged/est-sr1.ps
|
||||
mged/est-sr2.ps
|
||||
mged/est-top.ps
|
||||
mged/est-tr.ps
|
||||
mged/est-xrot.ps
|
||||
mged/est-yrot.ps
|
||||
mged/est-zrot.ps
|
||||
mged/ex.arb4.ps
|
||||
mged/ex.arb8.ps
|
||||
mged/ex.box.ps
|
||||
mged/ex.ellg.ps
|
||||
mged/ex.raw.ps
|
||||
mged/ex.rcc.ps
|
||||
mged/ex.rpp.ps
|
||||
mged/ex.sph.ps
|
||||
mged/ex.tor.ps
|
||||
mged/ex.trc.ps
|
||||
mged/f.tex
|
||||
mged/faceplate.ps
|
||||
mged/faceplate1.ps
|
||||
mged/fig-sgi-buttons.ps
|
||||
mged/fig-sgi-knobs.ps
|
||||
mged/fig-sgi.ps
|
||||
mged/fig-vg-buttons.ps
|
||||
mged/fig-vg-knobs.ps
|
||||
mged/g.tex
|
||||
mged/h.tex
|
||||
mged/j.tex
|
||||
mged/k.tex
|
||||
mged/l.tex
|
||||
mged/m.tex
|
||||
mged/menu-arb-ctl.ps
|
||||
mged/menu-arb4-edge.ps
|
||||
mged/menu-arb4-face.ps
|
||||
mged/menu-arb4-rot.ps
|
||||
mged/menu-arb8-edge.ps
|
||||
mged/menu-arb8-face.ps
|
||||
mged/menu-arb8-rot.ps
|
||||
mged/obj-edit.ps
|
||||
mged/obj-path.ps
|
||||
mged/obj-pick.ps
|
||||
mged/ped-ell.ps
|
||||
mged/ped-tgc.ps
|
||||
mged/ped-tor.ps
|
||||
mged/plane-35a.ps
|
||||
mged/plane-35b.ps
|
||||
mged/plane-bot1.ps
|
||||
mged/plane-bot2.ps
|
||||
mged/plane-front1.ps
|
||||
mged/plane-front2.ps
|
||||
mged/plane-right1.ps
|
||||
mged/plane-right2.ps
|
||||
mged/plane-top1.ps
|
||||
mged/plane-top2.ps
|
||||
mged/rmit-3525.ps
|
||||
mged/robot.ps
|
||||
mged/sol-2pick.ps
|
||||
mged/sol-ed.ps
|
||||
mged/sol-pick.ps
|
||||
mged/t1-2s-pk.ps
|
||||
mged/t1-obj-ed.ps
|
||||
mged/t1-obj-ph.ps
|
||||
mged/t1-obj-pk.ps
|
||||
mged/t1-rot-vw.ps
|
||||
mged/t1-sol-ed.ps
|
||||
mged/t1-sol-pk.ps
|
||||
mged/t1-top-vw.ps
|
||||
mged/t1.tex
|
||||
mged/test.tex
|
||||
mged/v-arb8-side.ps
|
||||
mged/v-arb8-top.ps
|
||||
mged/wm-arm1.ps
|
||||
mged/wm-arm2.ps
|
||||
mged/wm-body.ps
|
||||
mged/wm-collar.ps
|
||||
mged/wm-final1.ps
|
||||
mged/wm-hat-E.ps
|
||||
mged/wm-hat1.ps
|
||||
mged/wm-hat2.ps
|
||||
mged/wm-hat3.ps
|
||||
mged/wm-head.ps
|
||||
mged/wm-leg1.ps
|
||||
mged/wm-prims.ps
|
||||
mged/wm-tube.ps
|
||||
notes/ecosystem.dot
|
||||
notes/regions.txt
|
||||
notes/rounding.txt
|
||||
notes/tool_categories.txt
|
||||
old-mged.tr
|
||||
)
|
||||
ADD_DOC(documentation_mged_old_DATA mged_old)
|
||||
ADD_SUBDIRECTORY(html)
|
||||
ADD_SUBDIRECTORY(legal)
|
||||
|
||||
configure_file(pad_file.xml.in "${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml" @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml" DESTINATION ${DOC_DIR})
|
||||
SET(documentation_DATA
|
||||
IDEAS
|
||||
PROJECTS
|
||||
README.AIX
|
||||
README.BSD
|
||||
README.IRIX
|
||||
README.Linux
|
||||
README.MacOSX
|
||||
README.Solaris
|
||||
README.VAX
|
||||
README.Windows
|
||||
TODO.BREP
|
||||
anim.txt
|
||||
archer_ack.txt
|
||||
benchmark.tr
|
||||
brep.txt
|
||||
BRL-CAD.bib
|
||||
cvs.txt
|
||||
description.txt
|
||||
deprecation.txt
|
||||
ged.tr
|
||||
history.txt
|
||||
hypot.txt
|
||||
irprep.tr
|
||||
mater.txt
|
||||
matrix.txt
|
||||
mged/a.tex
|
||||
mged/adc.ps
|
||||
mged/all.tex
|
||||
mged/axis-3525.ps
|
||||
mged/b.tex
|
||||
mged/buttonmenu.ps
|
||||
mged/c.tex
|
||||
mged/coord-axes.ps
|
||||
mged/crod-close.ps
|
||||
mged/crod.ps
|
||||
mged/d.tex
|
||||
mged/doit
|
||||
mged/e.tex
|
||||
mged/eo-arbrot.ps
|
||||
mged/eo-bgrp.ps
|
||||
mged/eo-bgrp311.ps
|
||||
mged/eo-cgrp.ps
|
||||
mged/eo-cgrp321.ps
|
||||
mged/eo-ellg.ps
|
||||
mged/eo-ellg2x.ps
|
||||
mged/eo-ellgxyz.ps
|
||||
mged/eo-gredit.ps
|
||||
mged/eo-grpath.ps
|
||||
mged/eo-scale.ps
|
||||
mged/eo-spread.ps
|
||||
mged/eo-stacked.ps
|
||||
mged/eo-start.ps
|
||||
mged/eo-tor111.ps
|
||||
mged/eo-xymove.ps
|
||||
mged/eo-xyzmove.ps
|
||||
mged/es5-edge1.ps
|
||||
mged/es5-edge2.ps
|
||||
mged/es5-edge3.ps
|
||||
mged/es5-edge4.ps
|
||||
mged/es5-rot.ps
|
||||
mged/es5-scale.ps
|
||||
mged/es5-sed.ps
|
||||
mged/es5-top.ps
|
||||
mged/es5-tr.ps
|
||||
mged/es5-xrot.ps
|
||||
mged/es8-edge1.ps
|
||||
mged/es8-edge2.ps
|
||||
mged/es8-edge3.ps
|
||||
mged/es8-ex1.ps
|
||||
mged/es8-ex2.ps
|
||||
mged/es8-rot.ps
|
||||
mged/es8-scale.ps
|
||||
mged/es8-sed.ps
|
||||
mged/es8-top.ps
|
||||
mged/es8-tr0.ps
|
||||
mged/es8-xrot.ps
|
||||
mged/es8-yrot.ps
|
||||
mged/es8-zrot.ps
|
||||
mged/esc-mh.ps
|
||||
mged/esc-mhrt.ps
|
||||
mged/esc-rot.ps
|
||||
mged/esc-sa.ps
|
||||
mged/esc-sb.ps
|
||||
mged/esc-sc.ps
|
||||
mged/esc-scale.ps
|
||||
mged/esc-sd.ps
|
||||
mged/esc-sed.ps
|
||||
mged/esc-sh.ps
|
||||
mged/esc-top.ps
|
||||
mged/esc-tr.ps
|
||||
mged/esc-xrot.ps
|
||||
mged/esc-yrot.ps
|
||||
mged/esc-zrot.ps
|
||||
mged/ese-sa.ps
|
||||
mged/ese-sb.ps
|
||||
mged/ese-sc.ps
|
||||
mged/ese-scale.ps
|
||||
mged/ese-sed.ps
|
||||
mged/ese-top.ps
|
||||
mged/ese-tr.ps
|
||||
mged/ese-xrot.ps
|
||||
mged/ese-yrot.ps
|
||||
mged/ese-zrot.ps
|
||||
mged/est-scale.ps
|
||||
mged/est-sed.ps
|
||||
mged/est-sr1.ps
|
||||
mged/est-sr2.ps
|
||||
mged/est-top.ps
|
||||
mged/est-tr.ps
|
||||
mged/est-xrot.ps
|
||||
mged/est-yrot.ps
|
||||
mged/est-zrot.ps
|
||||
mged/ex.arb4.ps
|
||||
mged/ex.arb8.ps
|
||||
mged/ex.box.ps
|
||||
mged/ex.ellg.ps
|
||||
mged/ex.raw.ps
|
||||
mged/ex.rcc.ps
|
||||
mged/ex.rpp.ps
|
||||
mged/ex.sph.ps
|
||||
mged/ex.tor.ps
|
||||
mged/ex.trc.ps
|
||||
mged/f.tex
|
||||
mged/faceplate.ps
|
||||
mged/faceplate1.ps
|
||||
mged/fig-sgi-buttons.ps
|
||||
mged/fig-sgi-knobs.ps
|
||||
mged/fig-sgi.ps
|
||||
mged/fig-vg-buttons.ps
|
||||
mged/fig-vg-knobs.ps
|
||||
mged/g.tex
|
||||
mged/h.tex
|
||||
mged/j.tex
|
||||
mged/k.tex
|
||||
mged/l.tex
|
||||
mged/m.tex
|
||||
mged/menu-arb-ctl.ps
|
||||
mged/menu-arb4-edge.ps
|
||||
mged/menu-arb4-face.ps
|
||||
mged/menu-arb4-rot.ps
|
||||
mged/menu-arb8-edge.ps
|
||||
mged/menu-arb8-face.ps
|
||||
mged/menu-arb8-rot.ps
|
||||
mged/obj-edit.ps
|
||||
mged/obj-path.ps
|
||||
mged/obj-pick.ps
|
||||
mged/ped-ell.ps
|
||||
mged/ped-tgc.ps
|
||||
mged/ped-tor.ps
|
||||
mged/plane-35a.ps
|
||||
mged/plane-35b.ps
|
||||
mged/plane-bot1.ps
|
||||
mged/plane-bot2.ps
|
||||
mged/plane-front1.ps
|
||||
mged/plane-front2.ps
|
||||
mged/plane-right1.ps
|
||||
mged/plane-right2.ps
|
||||
mged/plane-top1.ps
|
||||
mged/plane-top2.ps
|
||||
mged/rmit-3525.ps
|
||||
mged/robot.ps
|
||||
mged/sol-2pick.ps
|
||||
mged/sol-ed.ps
|
||||
mged/sol-pick.ps
|
||||
mged/t1-2s-pk.ps
|
||||
mged/t1-obj-ed.ps
|
||||
mged/t1-obj-ph.ps
|
||||
mged/t1-obj-pk.ps
|
||||
mged/t1-rot-vw.ps
|
||||
mged/t1-sol-ed.ps
|
||||
mged/t1-sol-pk.ps
|
||||
mged/t1-top-vw.ps
|
||||
mged/t1.tex
|
||||
mged/test.tex
|
||||
mged/v-arb8-side.ps
|
||||
mged/v-arb8-top.ps
|
||||
mged/wm-arm1.ps
|
||||
mged/wm-arm2.ps
|
||||
mged/wm-body.ps
|
||||
mged/wm-collar.ps
|
||||
mged/wm-final1.ps
|
||||
mged/wm-hat-E.ps
|
||||
mged/wm-hat1.ps
|
||||
mged/wm-hat2.ps
|
||||
mged/wm-hat3.ps
|
||||
mged/wm-head.ps
|
||||
mged/wm-leg1.ps
|
||||
mged/wm-prims.ps
|
||||
mged/wm-tube.ps
|
||||
mk.tr
|
||||
movie.txt
|
||||
old-mged.tr
|
||||
pkg.tr
|
||||
regions.txt
|
||||
rounding.txt
|
||||
sun.txt
|
||||
tube.txt
|
||||
tool_categories.txt
|
||||
)
|
||||
BRLCAD_ADDDATA(documentation_DATA doc)
|
||||
|
||||
CMAKEFILES(
|
||||
CMakeLists.txt
|
||||
README.other/README.OSCON-2014
|
||||
STARTERS
|
||||
STRATEGY
|
||||
notes/bsd_semaphore_bug.txt
|
||||
notes/cmake_paths/CMakeLists.txt
|
||||
notes/cmake_paths/README.txt
|
||||
notes/cmake_paths/dir_info.c
|
||||
notes/cmake_paths/test.cmake.in
|
||||
notes/cmake_vars.txt
|
||||
notes/csv_to_comgeom.txt
|
||||
notes/implicit_constraints.txt
|
||||
notes/lcov.txt
|
||||
pad_file.xml.in
|
||||
)
|
||||
SET(doc_MANS
|
||||
bw.5
|
||||
cmap.5
|
||||
pix.5
|
||||
plot3.5
|
||||
)
|
||||
ADD_MAN_PAGES(5 doc_MANS)
|
||||
|
||||
# Generic C/C++ examples
|
||||
CMAKEFILES(
|
||||
notes/c_cxx_patterns/01_basic_C/CMakeLists.txt
|
||||
notes/c_cxx_patterns/01_basic_C/main.c
|
||||
notes/c_cxx_patterns/01_basic_C/nlib.c
|
||||
notes/c_cxx_patterns/01_basic_C/nlib.h
|
||||
notes/c_cxx_patterns/02_hidden_C/CMakeLists.txt
|
||||
notes/c_cxx_patterns/02_hidden_C/main.c
|
||||
notes/c_cxx_patterns/02_hidden_C/nlib.c
|
||||
notes/c_cxx_patterns/02_hidden_C/nlib.h
|
||||
notes/c_cxx_patterns/03_PImpl_C/CMakeLists.txt
|
||||
notes/c_cxx_patterns/03_PImpl_C/main.c
|
||||
notes/c_cxx_patterns/03_PImpl_C/nlib.c
|
||||
notes/c_cxx_patterns/03_PImpl_C/nlib.h
|
||||
notes/c_cxx_patterns/04_hidden_CXX/CMakeLists.txt
|
||||
notes/c_cxx_patterns/04_hidden_CXX/main.c
|
||||
notes/c_cxx_patterns/04_hidden_CXX/nlib.cxx
|
||||
notes/c_cxx_patterns/04_hidden_CXX/nlib.h
|
||||
notes/c_cxx_patterns/05_PImpl_CXX/CMakeLists.txt
|
||||
notes/c_cxx_patterns/05_PImpl_CXX/main.c
|
||||
notes/c_cxx_patterns/05_PImpl_CXX/nlib.cxx
|
||||
notes/c_cxx_patterns/05_PImpl_CXX/nlib.h
|
||||
notes/c_cxx_patterns/CMakeLists.txt
|
||||
notes/c_cxx_patterns/README
|
||||
)
|
||||
CONFIGURE_FILE(pad_file.xml.in ${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml @ONLY)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pad_file.xml DESTINATION ${${CMAKE_PROJECT_NAME}_INSTALL_DATA_DIR}/doc)
|
||||
|
||||
# Notes about parser generators
|
||||
CMAKEFILES(
|
||||
notes/parsers/bison_to_lemon.txt
|
||||
notes/parsers/flex_to_re2c.txt
|
||||
notes/parsers/templates/CMakeLists.txt
|
||||
notes/parsers/templates/main.c
|
||||
notes/parsers/templates/main.h
|
||||
notes/parsers/templates/parser.lemon
|
||||
notes/parsers/templates/scanner.perplex
|
||||
notes/parsers/writing_perplex_lemon_parsers.txt
|
||||
)
|
||||
|
||||
# Local Variables:
|
||||
# tab-width: 8
|
||||
# mode: cmake
|
||||
# indent-tabs-mode: t
|
||||
# End:
|
||||
# ex: shiftwidth=2 tabstop=8
|
||||
CMAKEFILES(pad_file.xml.in STARTERS)
|
||||
|
||||
@@ -15,7 +15,7 @@ familiar with the project.
|
||||
|
||||
* Render some pictures using rt and rtedge
|
||||
|
||||
* Perform basic geometric analysis using rtarea, rtweight, and gqa
|
||||
* Perform basic geometric analysis using rtarea, rtweight, and g_qa
|
||||
|
||||
* Write a procedural geometry tool (see examples in src/proc-db)
|
||||
|
||||
@@ -29,17 +29,6 @@ familiar with the project.
|
||||
|
||||
* Implement one of the items listed on the request for enhancements tracker
|
||||
|
||||
--
|
||||
There are lots of possible non-coding tasks:
|
||||
|
||||
* Write documentation
|
||||
* Improve the website
|
||||
* Offer to help with art and design
|
||||
* Engage in discussions
|
||||
* Write design docs
|
||||
* Update roadmap
|
||||
* Answer questions, be helpful
|
||||
* Give a presentation on some topic
|
||||
|
||||
---
|
||||
There may be more tasks and ideas available in the Tasks section of
|
||||
|
||||
+236
@@ -0,0 +1,236 @@
|
||||
|
||||
if BUILD_DOCS
|
||||
DOCBOOK_DIR = docbook
|
||||
else
|
||||
DOCBOOK_DIR =
|
||||
endif
|
||||
|
||||
SUBDIRS = \
|
||||
${DOCBOOK_DIR} \
|
||||
html \
|
||||
legal
|
||||
|
||||
DIST_SUBDIRS = \
|
||||
docbook \
|
||||
html \
|
||||
legal
|
||||
|
||||
documentationdir = $(BRLCAD_DATA)/doc
|
||||
|
||||
documentation_DATA = \
|
||||
IDEAS \
|
||||
PROJECTS \
|
||||
README.AIX \
|
||||
README.BSD \
|
||||
README.IRIX \
|
||||
README.Linux \
|
||||
README.MacOSX \
|
||||
README.Solaris \
|
||||
README.VAX \
|
||||
README.Windows \
|
||||
TODO.BREP \
|
||||
anim.txt \
|
||||
archer_ack.txt \
|
||||
benchmark.tr \
|
||||
brep.txt \
|
||||
BRL-CAD.bib\
|
||||
cvs.txt \
|
||||
description.txt \
|
||||
deprecation.txt \
|
||||
ged.tr \
|
||||
history.txt \
|
||||
hypot.txt \
|
||||
irprep.tr \
|
||||
mater.txt \
|
||||
matrix.txt \
|
||||
mged/a.tex \
|
||||
mged/adc.ps \
|
||||
mged/all.tex \
|
||||
mged/axis-3525.ps \
|
||||
mged/b.tex \
|
||||
mged/buttonmenu.ps \
|
||||
mged/c.tex \
|
||||
mged/coord-axes.ps \
|
||||
mged/crod-close.ps \
|
||||
mged/crod.ps \
|
||||
mged/d.tex \
|
||||
mged/doit \
|
||||
mged/e.tex \
|
||||
mged/eo-arbrot.ps \
|
||||
mged/eo-bgrp.ps \
|
||||
mged/eo-bgrp311.ps \
|
||||
mged/eo-cgrp.ps \
|
||||
mged/eo-cgrp321.ps \
|
||||
mged/eo-ellg.ps \
|
||||
mged/eo-ellg2x.ps \
|
||||
mged/eo-ellgxyz.ps \
|
||||
mged/eo-gredit.ps \
|
||||
mged/eo-grpath.ps \
|
||||
mged/eo-scale.ps \
|
||||
mged/eo-spread.ps \
|
||||
mged/eo-stacked.ps \
|
||||
mged/eo-start.ps \
|
||||
mged/eo-tor111.ps \
|
||||
mged/eo-xymove.ps \
|
||||
mged/eo-xyzmove.ps \
|
||||
mged/es5-edge1.ps \
|
||||
mged/es5-edge2.ps \
|
||||
mged/es5-edge3.ps \
|
||||
mged/es5-edge4.ps \
|
||||
mged/es5-rot.ps \
|
||||
mged/es5-scale.ps \
|
||||
mged/es5-sed.ps \
|
||||
mged/es5-top.ps \
|
||||
mged/es5-tr.ps \
|
||||
mged/es5-xrot.ps \
|
||||
mged/es8-edge1.ps \
|
||||
mged/es8-edge2.ps \
|
||||
mged/es8-edge3.ps \
|
||||
mged/es8-ex1.ps \
|
||||
mged/es8-ex2.ps \
|
||||
mged/es8-rot.ps \
|
||||
mged/es8-scale.ps \
|
||||
mged/es8-sed.ps \
|
||||
mged/es8-top.ps \
|
||||
mged/es8-tr0.ps \
|
||||
mged/es8-xrot.ps \
|
||||
mged/es8-yrot.ps \
|
||||
mged/es8-zrot.ps \
|
||||
mged/esc-mh.ps \
|
||||
mged/esc-mhrt.ps \
|
||||
mged/esc-rot.ps \
|
||||
mged/esc-sa.ps \
|
||||
mged/esc-sb.ps \
|
||||
mged/esc-sc.ps \
|
||||
mged/esc-scale.ps \
|
||||
mged/esc-sd.ps \
|
||||
mged/esc-sed.ps \
|
||||
mged/esc-sh.ps \
|
||||
mged/esc-top.ps \
|
||||
mged/esc-tr.ps \
|
||||
mged/esc-xrot.ps \
|
||||
mged/esc-yrot.ps \
|
||||
mged/esc-zrot.ps \
|
||||
mged/ese-sa.ps \
|
||||
mged/ese-sb.ps \
|
||||
mged/ese-sc.ps \
|
||||
mged/ese-scale.ps \
|
||||
mged/ese-sed.ps \
|
||||
mged/ese-top.ps \
|
||||
mged/ese-tr.ps \
|
||||
mged/ese-xrot.ps \
|
||||
mged/ese-yrot.ps \
|
||||
mged/ese-zrot.ps \
|
||||
mged/est-scale.ps \
|
||||
mged/est-sed.ps \
|
||||
mged/est-sr1.ps \
|
||||
mged/est-sr2.ps \
|
||||
mged/est-top.ps \
|
||||
mged/est-tr.ps \
|
||||
mged/est-xrot.ps \
|
||||
mged/est-yrot.ps \
|
||||
mged/est-zrot.ps \
|
||||
mged/ex.arb4.ps \
|
||||
mged/ex.arb8.ps \
|
||||
mged/ex.box.ps \
|
||||
mged/ex.ellg.ps \
|
||||
mged/ex.raw.ps \
|
||||
mged/ex.rcc.ps \
|
||||
mged/ex.rpp.ps \
|
||||
mged/ex.sph.ps \
|
||||
mged/ex.tor.ps \
|
||||
mged/ex.trc.ps \
|
||||
mged/f.tex \
|
||||
mged/faceplate.ps \
|
||||
mged/faceplate1.ps \
|
||||
mged/fig-sgi-buttons.ps \
|
||||
mged/fig-sgi-knobs.ps \
|
||||
mged/fig-sgi.ps \
|
||||
mged/fig-vg-buttons.ps \
|
||||
mged/fig-vg-knobs.ps \
|
||||
mged/g.tex \
|
||||
mged/h.tex \
|
||||
mged/j.tex \
|
||||
mged/k.tex \
|
||||
mged/l.tex \
|
||||
mged/m.tex \
|
||||
mged/menu-arb-ctl.ps \
|
||||
mged/menu-arb4-edge.ps \
|
||||
mged/menu-arb4-face.ps \
|
||||
mged/menu-arb4-rot.ps \
|
||||
mged/menu-arb8-edge.ps \
|
||||
mged/menu-arb8-face.ps \
|
||||
mged/menu-arb8-rot.ps \
|
||||
mged/obj-edit.ps \
|
||||
mged/obj-path.ps \
|
||||
mged/obj-pick.ps \
|
||||
mged/ped-ell.ps \
|
||||
mged/ped-tgc.ps \
|
||||
mged/ped-tor.ps \
|
||||
mged/plane-35a.ps \
|
||||
mged/plane-35b.ps \
|
||||
mged/plane-bot1.ps \
|
||||
mged/plane-bot2.ps \
|
||||
mged/plane-front1.ps \
|
||||
mged/plane-front2.ps \
|
||||
mged/plane-right1.ps \
|
||||
mged/plane-right2.ps \
|
||||
mged/plane-top1.ps \
|
||||
mged/plane-top2.ps \
|
||||
mged/rmit-3525.ps \
|
||||
mged/robot.ps \
|
||||
mged/sol-2pick.ps \
|
||||
mged/sol-ed.ps \
|
||||
mged/sol-pick.ps \
|
||||
mged/t1-2s-pk.ps \
|
||||
mged/t1-obj-ed.ps \
|
||||
mged/t1-obj-ph.ps \
|
||||
mged/t1-obj-pk.ps \
|
||||
mged/t1-rot-vw.ps \
|
||||
mged/t1-sol-ed.ps \
|
||||
mged/t1-sol-pk.ps \
|
||||
mged/t1-top-vw.ps \
|
||||
mged/t1.tex \
|
||||
mged/test.tex \
|
||||
mged/v-arb8-side.ps \
|
||||
mged/v-arb8-top.ps \
|
||||
mged/wm-arm1.ps \
|
||||
mged/wm-arm2.ps \
|
||||
mged/wm-body.ps \
|
||||
mged/wm-collar.ps \
|
||||
mged/wm-final1.ps \
|
||||
mged/wm-hat-E.ps \
|
||||
mged/wm-hat1.ps \
|
||||
mged/wm-hat2.ps \
|
||||
mged/wm-hat3.ps \
|
||||
mged/wm-head.ps \
|
||||
mged/wm-leg1.ps \
|
||||
mged/wm-prims.ps \
|
||||
mged/wm-tube.ps \
|
||||
mk.tr \
|
||||
movie.txt \
|
||||
old-mged.tr \
|
||||
pad_file.xml \
|
||||
pkg.tr \
|
||||
regions.txt \
|
||||
rounding.txt \
|
||||
sun.txt \
|
||||
tube.txt \
|
||||
tool_categories.txt
|
||||
|
||||
man_MANS = \
|
||||
bw.5 \
|
||||
cmap.5 \
|
||||
pix.5 \
|
||||
plot3.5
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(documentation_DATA) \
|
||||
$(man_MANS) \
|
||||
STARTERS \
|
||||
pad_file.xml.in
|
||||
|
||||
DISTCLEANFILES = \
|
||||
pad_file.xml
|
||||
|
||||
include $(top_srcdir)/misc/Makefile.defs
|
||||
+133
-110
@@ -4,25 +4,65 @@ BRL-CAD Common Projects
|
||||
BRL-CAD is comprised of several projects that have specific
|
||||
distinguishing qualities of utility that make them interesting
|
||||
STAND-ALONE projects applicable to a generally WIDE AUDIENCE of users.
|
||||
These projects are described below:
|
||||
In some cases, these projects may be independently maintained and are
|
||||
sometimes even independently distributed. In general, each of these
|
||||
common projects could exist solely as an independent project but they
|
||||
are included with BRL-CAD as part of the collective solid modeling and
|
||||
processing toolset. These projects are described below:
|
||||
|
||||
= Basic Utility and Numerics Libraries (BU+BN) =
|
||||
Geometry Modeling Kernel
|
||||
When combined together, several of the core libraries form
|
||||
BRL-CAD's geometry modeling kernel. This modeling kernel provides
|
||||
fundamental geometric representation, ray-trace analysis, and
|
||||
geometric processing capabilities via a high-performance procedural C
|
||||
API designed for multithreaded processing and fast ray-intersection
|
||||
evaluation. The geometry engine directly supports the representation
|
||||
and evaluation of implicit and explicit form primitive objects
|
||||
including arbitrary polyhedron, toroids, generalized conics,
|
||||
ellipsoids, NURBS, meshes, parabolics, hyperbolics, and more. Also
|
||||
supported are Constructive Solid Geometry (CSG) expressions, boundary
|
||||
representation (BREP) objects, 2D sketches, 3D extrusions, height
|
||||
fields, pipe/cabling construction, and more. The geometry modeling
|
||||
kernel is comprised of libbu, libbn, librt, libwdb, liboptical,
|
||||
libmultispectral, and the ray-trace interface application back-end.
|
||||
|
||||
BRL-CAD's LIBBU and LIBBN libraries provide an extensive set of
|
||||
fundamental general routines that form a common simple API for
|
||||
cross-platform application development. Some routines are
|
||||
unparalleled in terms of portability, performance, or simplicity.
|
||||
Others are more common and undeniably commonplace with alternatives
|
||||
such as the Apache Portable Runtime (APR). As a collective API, they
|
||||
form a solid basis for application development and would probably do
|
||||
very well in most academic contexts with proper documentation and
|
||||
examples to follow.
|
||||
Network Package Library
|
||||
The libpkg Network Package Library (PKG) interface implements
|
||||
a client-server network connection that multiplexes synchronous and
|
||||
asynchronous messages across stream connections. PKG provides a
|
||||
simple interface for managing client/server connections in a
|
||||
distributed environment, providing a non-blocking interface that
|
||||
accepts arbitrary data messages of arbitrary length.
|
||||
|
||||
= Benchmark Suite =
|
||||
MGED
|
||||
The Multiple-device Geometry EDitor (MGED) is an interactive
|
||||
solid modeler that provides a graphical user interface as well as a
|
||||
robust text-based command interface. MGED heavily utilizes
|
||||
Constructive Solid Geometry (CSG) solid modeling techniques for
|
||||
geometric construction and supports various display manager interfaces
|
||||
for extensive cross-platform support.
|
||||
|
||||
The BRL-CAD Benchmark Suite is a system performance analysis benchmark
|
||||
that tests the performance of a given system's CPU, memory, cache
|
||||
coherency, kernel context switching, and compiler optimization
|
||||
Archer
|
||||
Containing the majority of the command functionality provided
|
||||
by MGED, Archer is a new GUI-based solid model viewer and editing
|
||||
tool. Archer is based on MGED in many respects while providing an
|
||||
improved GUI.
|
||||
|
||||
ADRT
|
||||
The Advanced Distributed Ray-Tracer (ADRT) includes a high
|
||||
performance triangle intersection engine (libtie), a real-time
|
||||
ray-tracer (ISST), and a path-tracer for realistic image synthesis
|
||||
(RISE). ADRT deals only with a triangle mesh representation,
|
||||
providing a high-performance triangle-ray evaluation engine that
|
||||
leverages much computer graphics research on maintaining ray coherency
|
||||
and fast KD-Tree traversal. In all, the system is capable of
|
||||
evaluation several million rays per second allowing for real-time
|
||||
interactive ray-tracing of faceted models.
|
||||
|
||||
Benchmark Suite
|
||||
The BRL-CAD Benchmark Suite is a system performance analysis
|
||||
benchmark that tests the performance of a given system's CPU, memory,
|
||||
cache coherency, kernel context switching, and compiler optimization
|
||||
capabilities. The benchmark provides a linearly comparable metric of
|
||||
overall system performance that may be used to quantitatively evaluate
|
||||
the relative performance of a given system, particular compilers,
|
||||
@@ -31,110 +71,93 @@ performance test is based on a real-world CPU intensive application of
|
||||
ray-tracing, providing a reliable metric of actual system performance
|
||||
that may be compared across more than two decades of computing.
|
||||
|
||||
= Geometry Conversion (GCV) =
|
||||
Image Processing Tools
|
||||
There are many image converters (e.g. pix-*, bw-*, *-pix,
|
||||
*-bw, pix*, bw*), image processing, and image manipulation tools in
|
||||
the package that provide basic image management. The processing tools
|
||||
support several common formats including PNG, RLE, PPM, PS, and SUN
|
||||
images as well as a variety of image processing tools that work on raw
|
||||
image data.
|
||||
|
||||
Included are a variety of importers and exporters for various geometry
|
||||
file formats (e.g. g-* and *-g). Exporters include DXF, EUCLID, NFF,
|
||||
OBJ, STL, TANKILL, VRML, X3D, and OpenGL vertex array buffers.
|
||||
Importers include CY, DXF, ENF, EUCLID, FAST4, NASTRAN, PLY, STL,
|
||||
TANKILL, and VIEWPOINT. BRL-CAD also provides a Unigraphics/NX
|
||||
exporter application as well as a Pro/Engineer export plug-in. This
|
||||
includes LIBGCV.
|
||||
|
||||
= Image Conversion (ICV) =
|
||||
|
||||
There are many image converters (e.g. pix-*, bw-*, *-pix, *-bw, pix*,
|
||||
bw*), image processing, and image manipulation tools in the package
|
||||
that provide basic image management. The processing tools support
|
||||
several common formats including PNG, RLE, PPM, PS, and SUN images as
|
||||
well as a variety of image processing tools that work on raw image
|
||||
data. This includes LIBICV.
|
||||
|
||||
There are a variety of signal processing utilities (e.g. *mod, ifft,
|
||||
dfft, s-i, i-d, cv, wavelet) in the package that categorically
|
||||
Signal processing
|
||||
There are a variety of signal processing utilities (e.g. *mod,
|
||||
ifft, dfft, s-i, i-d, cv, wavelet) in the package that categorically
|
||||
manipulate raw data streams according to specified criteria. These
|
||||
manipulations include data conversion and filtering capabilities as
|
||||
well as various transformations including discrete and non-discrete
|
||||
Fast Fourier transforms (FFT) and wavelet decomposition. It may make
|
||||
sense to merge this capability into ICV.
|
||||
Fast Fourier transforms (FFT) and wavelet decomposition.
|
||||
|
||||
= Network Package Library =
|
||||
Geometry converters
|
||||
Included are a variety of importers and exporters for various
|
||||
geometry file formats (e.g. g-* and *-g). Exporters include DXF,
|
||||
EUCLID, NFF, OBJ, STL, TANKILL, VRML, X3D, and OpenGL vertex array
|
||||
buffers. Importers include CY, DXF, ENF, EUCLID, FAST4, NASTRAN, PLY,
|
||||
STL, TANKILL, and VIEWPOINT. BRL-CAD also provides a Unigraphics/NX
|
||||
exporter application as well as a Pro/Engineer export plug-in.
|
||||
|
||||
The libpkg Network Package Library (PKG) interface implements a
|
||||
client-server network connection that multiplexes synchronous and
|
||||
asynchronous messages across stream connections. PKG provides a
|
||||
simple interface for managing client/server connections in a
|
||||
distributed environment, providing a non-blocking interface that
|
||||
accepts arbitrary data messages of arbitrary length.
|
||||
Raytracers
|
||||
Included are a variety of ray-tracers for analyzing geometry
|
||||
for either visualization or geometric purposes. This includes the
|
||||
"rt" ray-tracer, the "rtedge" and "rthide" hidden-line edge
|
||||
ray-tracers, "rtarea" for computing exposed and presented surface
|
||||
areas, "rtshot" for single-query ray analysis, the "rtxray" X-Ray
|
||||
transport ray-tracer, the "nirt" interactive ray-evaluation
|
||||
ray-tracer, the "lgt" interactive shaded image ray-tracer, as well as
|
||||
"rtweight" and "g_qa" for computing mass, volume,
|
||||
overlaps/interferences, and more.
|
||||
|
||||
= ttcp =
|
||||
ttcp
|
||||
The "Test Transmission Control Protocol" tool is a network
|
||||
throughput performance benchmark tool used to evaluate the performance
|
||||
of TCP and UDP network connections. TTCP may also be used as an
|
||||
excellent tool for bootstrapping hosts onto the network by forming a
|
||||
communication pipe between two machines. This communication pipe may
|
||||
be used to transfer files to a remote system that does not otherwise
|
||||
have a means available to receive files as well as for the evaluation
|
||||
of raw throughput performance of the network connection between the
|
||||
two systems. TTCP includes support for sourcing to/from memory,
|
||||
variable packet sizes, and loading metrics. TTCP is described as a
|
||||
standard testing tool for TCP implementors via Network Working Group
|
||||
RFC 2398.
|
||||
|
||||
The "Test Transmission Control Protocol" tool is a network throughput
|
||||
performance benchmark tool used to evaluate the performance of TCP and
|
||||
UDP network connections. TTCP may also be used as an excellent tool
|
||||
for bootstrapping hosts onto the network by forming a communication
|
||||
pipe between two machines. This communication pipe may be used to
|
||||
transfer files to a remote system that does not otherwise have a means
|
||||
available to receive files as well as for the evaluation of raw
|
||||
throughput performance of the network connection between the two
|
||||
systems. TTCP includes support for sourcing to/from memory, variable
|
||||
packet sizes, and loading metrics. TTCP is described as a standard
|
||||
testing tool for TCP implementers via Network Working Group RFC 2398.
|
||||
JOVE
|
||||
"Jonathan's Own Version [of] Emacs" (JOVE) is a simple
|
||||
lightweight Emacs-like text editor. JOVE provides common Emacs
|
||||
keyboard bindings as well as an assortment of useful editing features
|
||||
including interactive shell windows and language-specific modes while
|
||||
using minimal CPU, memory, and disk requirements comparable to the vi
|
||||
editor.
|
||||
|
||||
= Geometry Modeling Kernel =
|
||||
autogen.sh
|
||||
Part of the build system, autogen.sh is a bootstrap script
|
||||
that effectively implements the majority of autoreconf in POSIX shell
|
||||
script format while accounting for a variety of common system
|
||||
configuration issues, common project configuration issues, and common
|
||||
GNU Build System (GBS, i.e. autoconf, automake, and libtool) bugs.
|
||||
The autogen.sh bootstrap script automatically works around many of
|
||||
those common issues for the user and/or reports the problems in what
|
||||
is generally a considerably more human-readable form than that
|
||||
normally provided by the GBS toolset output. Additionally, the script
|
||||
will ensure that users have minimum and consistent versions of the GBS
|
||||
tools installed.
|
||||
|
||||
This product does not yet exist but is a long term goal. It's
|
||||
basically several of the core libraries form BRL-CAD's geometry
|
||||
modeling kernel including the present libbu, libbn, librt, libwdb,
|
||||
liboptical, and the ray-trace interface application back-end.
|
||||
Example Geometry
|
||||
BRL-CAD geometry database files are platform independent files
|
||||
that are used to store solid geometry models. There are several
|
||||
example database models that have been made openly available (db/*.g)
|
||||
that cover a wide range of example solid model geometry including
|
||||
basic parts, buildings, procedural geometry, and military vehicles.
|
||||
|
||||
This modeling kernel provides fundamental geometric representation,
|
||||
ray-trace analysis, and geometric processing capabilities via a
|
||||
high-performance procedural C API designed for multithreaded
|
||||
processing and fast ray-intersection evaluation.
|
||||
|
||||
The geometry kernel directly supports the representation and
|
||||
evaluation of implicit and explicit form primitive objects including
|
||||
arbitrary polyhedron, toroids, generalized conics, ellipsoids, NURBS,
|
||||
meshes, parabolics, hyperbolics, and more. Also supported are
|
||||
Constructive Solid Geometry (CSG) expressions, boundary representation
|
||||
(BREP) objects, 2D sketches, 3D extrusions, height fields,
|
||||
pipe/cabling construction, and more.
|
||||
|
||||
= Geometry Engine =
|
||||
|
||||
This is a C++ geometry kernel API. This product is intentionally in a
|
||||
separate repository so that it's conceptually and technically
|
||||
implemented on top of BRL-CAD's core libraries. The design intent is
|
||||
similar to the ACIS, Granite, and Parasolid geometry modeling APIs.
|
||||
|
||||
= Geometry Service =
|
||||
|
||||
This is a geometry management network service. It's a geometry server
|
||||
with a socket protocol interface that provides user access controls,
|
||||
versioning, and edit history tracking. At it's core, application
|
||||
developers connect to the service for storing and obtaining geometry.
|
||||
The service supports an extended set of geometry queries. This
|
||||
product is similar in design to other network/socket services such as
|
||||
Apache and MySQL.
|
||||
|
||||
= Example Geometry =
|
||||
|
||||
BRL-CAD geometry database files are platform independent files that
|
||||
are used to store solid geometry models. There are several example
|
||||
database models that have been made openly available (db/*.g) that
|
||||
cover a wide range of example solid model geometry including basic
|
||||
parts, buildings, procedural geometry, and military vehicles.
|
||||
|
||||
= Documentation =
|
||||
|
||||
Over the years, extensive documentation has been written for BRL-CAD
|
||||
including many manual pages, quick reference sheets, and a detailed
|
||||
tutorial series. The tutorial series covers an introduction to the
|
||||
package, details on the modeling philosophies, an introduction to the
|
||||
MGED solid modeler, a more advanced geometry modeling techniques
|
||||
guide, and provides principles of effective modeling. The tutorials
|
||||
take a user through many guided exercises that build upon each other
|
||||
working towards more complex exercise examples the show some of the
|
||||
basic modeling and processing capabilities possible.
|
||||
Documentation
|
||||
Over the years, extensive documentation has been written for
|
||||
BRL-CAD including many manual pages, quick reference sheets, and a
|
||||
detailed tutorial series. The tutorial series covers an introduction
|
||||
to the package, details on the modeling philosophies, an introduction
|
||||
to the MGED solid modeler, a more advanced geometry modeling
|
||||
techniques guide, and provides principles of effective modeling. The
|
||||
tutorials take a user through many guided exercises that build upon
|
||||
each other working towards more complex exercise examples the show
|
||||
some of the basic modeling and processing capabilities possible.
|
||||
|
||||
Image Conversion Library
|
||||
Does not currently exist.
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
BRL-CAD on AIX README
|
||||
=====================
|
||||
|
||||
Dec. 15, 2011 - As of this date, it has been some time since an AIX
|
||||
build of BRL-CAD has been tested, and thus far it has NOT been tested
|
||||
b with the new CMake build system.
|
||||
|
||||
Kitware provides an AIX powerpc binary for CMake, see
|
||||
http://www.cmake.org/cmake/resources/software.html
|
||||
|
||||
|
||||
Building BRL-CAD under AIX is fairly straightforward using a correctly
|
||||
installed version on the GCC compiler. If, however, you are using the
|
||||
IBM Visual Age compiler, then there are additional manual compilation
|
||||
@@ -24,7 +16,7 @@ Problems encountered in our build environment using strict compliance
|
||||
does mostly work though we ran into errors in the standard C library
|
||||
headers.
|
||||
|
||||
Using the "extended" compliance mode resolved the standard C library
|
||||
Using the "extended" complaince mode resolved the standard C library
|
||||
header issues, but introduces problems in the compilation of BRL-CAD
|
||||
as the compiler then disables the provision of the __STDC__
|
||||
preprocessor symbol. BRL-CAD then defaults back to K&R mode, which
|
||||
@@ -0,0 +1,28 @@
|
||||
BRL-CAD on BSD README
|
||||
=====================
|
||||
|
||||
Included below are details on building under one of the various BSD
|
||||
variants. BRL-CAD is continuously compiled under various variants of
|
||||
BSD including FreeBSD, NetBSD, OpenBSD, Darwin, and even the original
|
||||
4.3 BSD (though now rare). See the README.VAX document for additional
|
||||
details that pertain to building BRL-CAD on a VAX running BSD.
|
||||
|
||||
The only compilation issue worth noting, is that newer versions of
|
||||
libtool have a bug where they do not install the .la files causing
|
||||
libtool to report warnings. Examples of such messages in the output
|
||||
during install include:
|
||||
|
||||
libtool: install: warning: `../../src/libfb/libfb.la' has not been installed in `/usr/brlcad/lib'
|
||||
libtool: install: warning: `../../src/libbu/libbu.la' has not been installed in `/usr/brlcad/lib'
|
||||
|
||||
Those warnings are not cause for concern. A simple workaround to
|
||||
quell the warnings is to manually copy/install all the .la files in
|
||||
one step to the install library directory before performing the final
|
||||
'sudo make install' step:
|
||||
|
||||
find . -name \*.la -exec cp {} /usr/brlcad/lib/. \;
|
||||
|
||||
After that, a 'sudo make install' (or whatever means you use to go
|
||||
root) should work just fine and the warnings should go away.
|
||||
|
||||
BRL-CAD is included in the FreeBSD Ports system.
|
||||
@@ -0,0 +1,77 @@
|
||||
BRL-CAD on IRIX README
|
||||
======================
|
||||
|
||||
Building on IRIX is one of the most tricky platforms to support
|
||||
without installing up-to-date compilation tools. That said, the build
|
||||
has and should work just fine with either the MIPSPro or GCC
|
||||
compilers. The best performance is usually achieved with the MIPSPro
|
||||
compiler, whereas GCC will compile faster with less fuss. For
|
||||
convenience, here are some example compilation scenarios:
|
||||
|
||||
For IRIX 32-bit unoptimized /usr/brlcad build:
|
||||
export SGI_ABI=-n32
|
||||
./configure CC=cc
|
||||
|
||||
For IRIX 64-bit unoptimized /usr/brlcad build:
|
||||
export SGI_ABI=-64
|
||||
./configure CC=cc CFLAGS=-64 LDFLAGS=-64 --enable-64bit-build
|
||||
|
||||
For IRIX 32-bit optimized production release build:
|
||||
export SGI_ABI=-n32
|
||||
./configure CC=cc --enable-optimized --enable-everything --prefix=/usr/brlcad/rel-MAJOR.MINOR.PATCH/mips32
|
||||
|
||||
For IRIX 64-bit optimized production release build:
|
||||
export SGI_ABI=-64
|
||||
./configure CC=cc CFLAGS=-64 LDFLAGS=-64 --enable-64bit-build --enable-optimized --enable-everything --prefix=/usr/brlcad/rel-MAJOR.MINOR.PATCH/mips64
|
||||
|
||||
|
||||
Potential problems you may encounter
|
||||
------------------------------------
|
||||
|
||||
Symptom: MIPSPro linker reports symbol(s) missing
|
||||
|
||||
Description: There's a known bug in the MIPSpro linker involving
|
||||
rpaths that are too long (namely longer than 255 characters) so care
|
||||
should be taken to not compile in directories that are too deep. The
|
||||
way this bug is usually seen is that the build will fail during
|
||||
compilation where unresolved symbols are reported during linking,
|
||||
symbols that are correctly included in the libraries being linked.
|
||||
|
||||
Workaround: It is usually sufficient to retry the compile from a
|
||||
shorter path. (e.g., /tmp instead of /some/deep/path/to/brlcad)
|
||||
|
||||
---
|
||||
|
||||
Symptom: GCC crashes during compilation with internal errors
|
||||
|
||||
Description: Certain versions of the gcc compiler are known to crash
|
||||
with internal error messages, for example on src/mged/animedit.c, when
|
||||
using --enable-optimized (i.e. -O3).
|
||||
|
||||
Workaround: Compile in whatever directory is failing with -O0 instead:
|
||||
cd src/mged
|
||||
make CFLAGS="-O0"
|
||||
cd ../..
|
||||
make
|
||||
|
||||
---
|
||||
|
||||
Symptom: Linker reports symbol(s) missing
|
||||
|
||||
Description: Depending on how libraries are set up for compilation,
|
||||
libtool convenience libraries may result in unresolved symbols during
|
||||
compilation. The specific problem is that the .al libtool archive
|
||||
convenience library (not to be confused with usual .la libtool
|
||||
archives) that is listed as a LIBADD inclusion results in having
|
||||
symbols embedded with a .l tag instead of .lo or .o, causing the
|
||||
libtool script to erroneously leave those .l files (that should have
|
||||
been .lo libtool object files) and their associated symbols out of the
|
||||
compilation. (e.g. nmg_rt_isect.l, nurb_reverse.l, and wdb_comb_std.l)
|
||||
|
||||
Workaround: Either rerun autogen.sh so that the libtool wrapper script
|
||||
is rebuilt (being sure to have the latest libtool, automake, and
|
||||
autoconf installed), edit the Makefile.am files so that the
|
||||
convenience library objects files are directly listed on the LIBADD,
|
||||
or compile static (--disable-shared).
|
||||
|
||||
|
||||
+28
-63
@@ -6,33 +6,25 @@ Linux distributions.
|
||||
|
||||
Table of Contents
|
||||
-----------------
|
||||
Parallel Builds
|
||||
64-bit Compile
|
||||
32-bit Compile
|
||||
Arch Linux
|
||||
Ubuntu/Debian
|
||||
PPC64 Linux
|
||||
|
||||
Parallel Builds
|
||||
---------------
|
||||
BRL-CAD compilation can take advantage of multiple CPUs. With
|
||||
Make based builds, this is done using the "-j" flag - e.g. a
|
||||
six core machine will build faster using "make -j6" to utilize
|
||||
all cores.
|
||||
|
||||
|
||||
64-bit Compile (on a platform that defaults to 32-bit)
|
||||
--------------
|
||||
|
||||
cmake ../brlcad -DBRLCAD_WORD_SIZE=32BIT
|
||||
rm -rf *cache* # remove any previous configure results
|
||||
./configure --prefix=/usr/brlcad/rel-MAJOR.MINOR.PATCH --enable-all --enable-64bit-build CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64
|
||||
|
||||
|
||||
32-bit Compile (on a platform that defaults to 64-bit)
|
||||
--------------
|
||||
|
||||
cmake ../brlcad -DBRLCAD_WORD_SIZE=64BIT
|
||||
|
||||
* Note that in both of the above situations you need both a compiler that
|
||||
works in the alternate mode and system libraries of the correct type.
|
||||
rm -rf *cache* # remove any previous configure results
|
||||
../configure --prefix=/usr/brlcad/rel-MAJOR.MINOR.PATCH --enable-all --disable-64bit-build CFLAGS=-m32 LDFLAGS=-m32 CXXFLAGS=-m32
|
||||
|
||||
|
||||
Arch Linux
|
||||
@@ -40,7 +32,7 @@ Arch Linux
|
||||
|
||||
An example PKGBUILD and needed scripts are provided in misc/archlinux.
|
||||
Review and edit the PKGBUILD to suit your preferred configuration and
|
||||
build situation (e.g. building from a tarball vs building from SVN).
|
||||
build situation (eg. building from a tarball vs building from SVN).
|
||||
Run `makepkg` in that directory to build the package.
|
||||
|
||||
|
||||
@@ -51,73 +43,46 @@ Users of Ubuntu, Debian, and other similar packaging distributions of
|
||||
Linux will need to ensure that a few essentials are in place before
|
||||
you will be able to compile BRL-CAD.
|
||||
|
||||
Following the build instructions in the INSTALL file. You will need:
|
||||
Following the build instructions in the INSTALL file, if you are
|
||||
starting from configure then you will need:
|
||||
|
||||
gcc (3+, e.g. 4.0.3)
|
||||
g++ (3+, e.g. 4.0.3)
|
||||
make (e.g. gnu make 3.8.0)
|
||||
cmake (2.8.8 or newer)
|
||||
|
||||
All three of those have implicit dependencies on other packages.
|
||||
If you are starting from autogen.sh you will need a few additional
|
||||
tools that comprise the GNU Autotool toolset:
|
||||
|
||||
autoconf (2.50+, e.g. 2.59)
|
||||
automake (1.6+, e.g. 1.9)
|
||||
libtool (1.4+, e.g. 1.5)
|
||||
|
||||
All three of those have implicit dependencies on things like m4, perl,
|
||||
cpp, and more.
|
||||
|
||||
If you installed automake version 1.4, you will need to install 1.9
|
||||
and update the alternatives entry for automake so that it refers to
|
||||
version 1.9 and not version 1.4:
|
||||
|
||||
sudo update-alternatives automake /usr/bin/automake-1.9
|
||||
|
||||
You will also want to make sure that you have the X11 development
|
||||
headers installed:
|
||||
|
||||
apt-get install xserver-xorg-dev libx11-dev libxi-dev libxext-dev
|
||||
apt-get install xserver-xorg-dev libx11-dev libxi-dev
|
||||
|
||||
Other development packages needed to build on Debian-based platforms:
|
||||
|
||||
for building the Tcl/Tk libraries: libfontconfig-dev
|
||||
|
||||
for OpenGL: libglu1-mesa-dev
|
||||
|
||||
Note there is a supported Debian package generation script in file
|
||||
'sh/make_deb.sh' which can function only on a Debian or Ubuntu system.
|
||||
It can be used like so:
|
||||
|
||||
$ cd <BRL-CAD source directory>
|
||||
|
||||
# get help for the script:
|
||||
$ ./sh/make_deb.sh
|
||||
|
||||
# create a binary package:
|
||||
$ ./sh/make_deb.sh -b
|
||||
|
||||
You can customize the script's cmake build options by modifying the
|
||||
file 'misc/debian/rules'. Note that the BRL-CAD source directory
|
||||
should be deleted and recreated for each new attempt at package
|
||||
generation.
|
||||
Required: make (>= 3.8.0), bison, flex, xserver-xorg-dev, libx11-dev, libxi-dev
|
||||
Optional: libpng-dev, zlib1g-dev, tcl8.5-dev (>= 8.5), tk8.5-dev (>= 8.5), tcl3-dev, itk3-dev, iwidgets4, blt-dev
|
||||
|
||||
|
||||
Redhat/Fedora
|
||||
-------------
|
||||
|
||||
Development packages for building on Redhat/Fedora platforms:
|
||||
|
||||
yum install libX11-devel
|
||||
yum install libXext-devel # optional
|
||||
yum install libXi-devel # optional
|
||||
yum install freetype-devel # optional
|
||||
yum install fontconfig-devel # optional
|
||||
yum install mesa-libGL-devel # optional
|
||||
|
||||
To determine what particular version of Redhat or Fedora you are
|
||||
using, check these files:
|
||||
To determine what particular version of Redhat or Fedora you are using, check
|
||||
these files:
|
||||
|
||||
cat /etc/redhat-release
|
||||
cat /etc/fedora-release
|
||||
|
||||
Note there is a supported rpm package generation script in file
|
||||
'sh/make_rpm.sh' which can only function on a Fedora or openSUSE
|
||||
system. It can be used like so:
|
||||
|
||||
$ cd <BRL-CAD source directory>
|
||||
|
||||
# create an rpm file:
|
||||
$ ./sh/make_rpm.sh
|
||||
|
||||
It is also possible to create an RPM package using CPack with the
|
||||
make package build target, on systems with the proper RPM tools.
|
||||
|
||||
PPC64 Linux
|
||||
-----------
|
||||
|
||||
+34
-48
@@ -11,31 +11,26 @@ Table of Contents
|
||||
-----------------
|
||||
Introduction
|
||||
Table of Contents
|
||||
CMake
|
||||
X11 Window Server
|
||||
Supported Versions
|
||||
Mac OS X 10.2
|
||||
Parallel Builds
|
||||
Bugs
|
||||
|
||||
CMake
|
||||
-----------------
|
||||
Kitware provides Mac OSX compilations of CMake:
|
||||
|
||||
http://www.cmake.org/cmake/resources/software.html
|
||||
|
||||
|
||||
X11 Window Server
|
||||
-----------------
|
||||
You'll need to install an X11 server if you would like to build Tk and
|
||||
have a graphical user interface. Apple's X11 is the recommended X
|
||||
Window Server, but XQuartz should work too and is often newer than the
|
||||
official Apple version: http://xquartz.macosforge.org
|
||||
Window Server, though XDarwin should work suitably as well. Be sure
|
||||
to install the developer headers and libraries from the X11 Software
|
||||
Developers Kit (SDK), which is usually a separate installation
|
||||
package.
|
||||
|
||||
Supported Versions
|
||||
------------------
|
||||
BRL-CAD is generally only "extensively" tested by the developers on
|
||||
the latest released version of Mac OS X. That is to say that
|
||||
the latest released version of Mac OS X only. That is to say that
|
||||
although the BRL-CAD package should build on prior versions of the Mac
|
||||
OS X operating system, they are generally and eventually not
|
||||
maintained and will require additional effort to obtain a build.
|
||||
@@ -43,6 +38,19 @@ Compiling on 10.3 or 10.4 should complete successfully. Due to a
|
||||
variety of significant application programming interface issues in
|
||||
early releases of Mac OS X, versions prior to 10.2 are unsupported.
|
||||
|
||||
Mac OS X 10.2
|
||||
-------------
|
||||
Compiling directly on Mac OS X 10.2 requires additional effort. When
|
||||
compiling from source, a libtool script is generated after running
|
||||
autogen.sh that gets used during compilation. The version of
|
||||
glibtoolize shipped with 10.2 is non-functional with respect to
|
||||
convenience libraries, a feature that BRL-CAD requires. That means
|
||||
that you will need to obtain the generated libtool script from other
|
||||
means. You can either run autogen.sh on a different machine that has
|
||||
a newer version of libtool installed or you can download a source
|
||||
disribution where autogen.sh has already been run for you on a
|
||||
relatively new system.
|
||||
|
||||
Parallel Builds
|
||||
---------------
|
||||
As many workstation and server systems shipped by Apple are
|
||||
@@ -50,47 +58,23 @@ multiprocessor systems, you can enjoy the benefits of decreased
|
||||
compile times by utilizing the "-j" option to make. After running
|
||||
configure, run "make -j2" to build on a 2-processor system.
|
||||
|
||||
Universal Builds
|
||||
----------------
|
||||
Universal Builds and 64-bit Compilation
|
||||
---------------------------------------
|
||||
|
||||
Universal builds have not been fully vetted due to how BRL-CAD
|
||||
serializes data to disk. BRL-CAD's CMake logic is not currently
|
||||
set up to support this type of build, but plans to in the future.
|
||||
serializes data to disk. It is possible to make a universal build,
|
||||
but whether the build behaves correctly has not yet been validated and
|
||||
as such is not recommended.
|
||||
|
||||
CMake and Mac OSX
|
||||
-----------------
|
||||
|
||||
On a default configuration, CMake has some problems performing parallel
|
||||
builds on OSX - typically this will manifest itself as a series of
|
||||
"too many open files" errors. So far, the way to work around this in
|
||||
OSX 10.5 is to set the following system control variables to 50,000:
|
||||
|
||||
kern.maxfiles
|
||||
kern.maxfilesperproc
|
||||
|
||||
(check the current values using "sysctl <variable>" on the command line)
|
||||
|
||||
and up the maxfiles limit in /etc/launchd.conf:
|
||||
|
||||
limit maxfiles 50000 unlimited
|
||||
|
||||
This is not widely tested, and OSX has quite a few limit settings that
|
||||
may or may not apply (and may change from one version to the next.) As
|
||||
we get a better feel for various platforms we can assemble a table of
|
||||
required settings. Other programs have this issue as well, so searching
|
||||
online may prove fruitful.
|
||||
|
||||
So far, if parallel building doesn't work due to the above issue a
|
||||
non-parallel build will still succeed. Another workaround is to build
|
||||
just subdirectories (e.g. src/other, doc, etc.) individually and then
|
||||
do a toplevel make in non-parallel mode to finalize the build.
|
||||
|
||||
OpenSceneGraph and OSX
|
||||
----------------------
|
||||
For 32bit OSX builds of an X11+OpenSceneGraph BRL-CAD:
|
||||
cmake .. -DBRLCAD_BUNDLED_LIBS=BUNDLED -DBRLCAD_ENABLE_OSG=ON
|
||||
-DBRLCAD_REGEX=SYSTEM -DBRLCAD_WORD_SIZE=32BIT -DOSG_WINDOWING_SYSTEM=X11
|
||||
Compiling 64-bit on Mac OS X is possible but will not occur by merely
|
||||
specifying the --enable-64-bit configure flag. You must specify
|
||||
additional CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS to get a 64-bit
|
||||
compilation. The exact values for these flags depends on environment
|
||||
and is beyond the scope of this document -- if you don't know what
|
||||
settings you need, you probably shouldn't be compiling. That said,
|
||||
this just might work for you:
|
||||
|
||||
./configure CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 --enable-64bit
|
||||
|
||||
Tips
|
||||
----
|
||||
@@ -104,6 +88,8 @@ uname -a
|
||||
Bugs
|
||||
----
|
||||
The only known bugs specific to Mac OS X are limitations of Tk or the
|
||||
X11 event handler that are generally outside of BRL-CAD's domain.
|
||||
X11 event handler that our generally outside of BRL-CAD's domain.
|
||||
Refer to BUGS for more general details on known bugs and reporting
|
||||
mechanisms.
|
||||
|
||||
Cheers!
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
BRL-CAD on Solaris README
|
||||
=========================
|
||||
|
||||
If while compiling you encounter an error "Text relocation remains
|
||||
against symbol" along with some number of lines following, it usually
|
||||
means that the build has attempted to link a static system library
|
||||
into a shared library being compiled (e.g. attempting to link a system
|
||||
libz.a into the png library distributed in src/other/libpng being
|
||||
compiled as libpng.so).
|
||||
|
||||
The fix/workaround is pretty simple. Either install a shared verison
|
||||
of the system library (e.g. libz.so) or run configure with the
|
||||
-mimpure-text linker option: ./configure LDFLAGS=-mimpure-text
|
||||
@@ -0,0 +1,33 @@
|
||||
BRL-CAD on VAX README
|
||||
=====================
|
||||
|
||||
One of the first systems to run BRL-CAD was the VAX. In particular, a
|
||||
VAX 11/780 named VGR is the baseline reference machine for the BRL-CAD
|
||||
Benchmark suite. Through the 80's and most of the 90's, BRL-CAD was
|
||||
compiled for and maintained on VGR running 4.3 BSD until the hardware
|
||||
was finally decommissioned.
|
||||
|
||||
BRL-CAD has been successfuly compiled for and run under the simh
|
||||
Computer History Simulation Project's VAX simulator. Using this
|
||||
simulator, it's feasible to install one of the BSD variants
|
||||
(e.g. NetBSD) and using the GCC compiler, obtain a compilation of
|
||||
BRL-CAD with minimal effort. As of the last effort involved in
|
||||
compiling BRL-CAD under this environment, there were a few steps
|
||||
necessary that include the following:
|
||||
|
||||
- Define the preprocessor symbol "vax"
|
||||
./configure CPPFLAGS=-Dvax
|
||||
|
||||
- Disable compilation of libfft and sig. The FFT library builds
|
||||
convolution kernels that are too large for the usual VAX memory
|
||||
sizes.
|
||||
edit src/Makefile.am and remove libfft and sig lines
|
||||
|
||||
- Compile against libm.a instead of libm.so. The shared object
|
||||
library (at least under NetBSD) is buggy and will cause run-time
|
||||
bus errors (i.e. rt will crash).
|
||||
make LIBM=/usr/lib/libm.a
|
||||
|
||||
After those steps, you should at least be able to perform a benchmark
|
||||
compilation (i.e. "make benchmark"), raytrace images, and obtain
|
||||
performance metrics.
|
||||
+22
-107
@@ -1,113 +1,28 @@
|
||||
BRL-CAD on Windows README
|
||||
=========================
|
||||
|
||||
The usual way to build BRL-CAD for Windows is to use the CMake build
|
||||
system generator and the Microsoft Visual Studio C++ (MSVC) compiler.
|
||||
Recent versions of both (as of this writing, MSVC 2013 and CMake
|
||||
2.8.12+) are recommended. If generating an installer, the Nullsoft
|
||||
Scriptable Install System (NSIS) tool is also required.
|
||||
Compilation of BRL-CAD under Windows is performed in one of three
|
||||
ways. The first and usually most readily attainable build process is
|
||||
to install BRL-CAD under the Mingw or Cygwin compatibility
|
||||
environments where the build steps are the same as on the other
|
||||
platforms (documented in the INSTALL file).
|
||||
|
||||
In principle, BRL-CAD can be built using CMake and environments like
|
||||
Cygwin and/or Mingw/Msys, but the latter is largely untested and
|
||||
infrequently supported. Enhancements or bug reports are welcome.
|
||||
The second approach is to compile using MSVC 8 (2005) using the build
|
||||
files in the misc/win32-msvc8 directory. The main brlcad.sln solution
|
||||
file is in the brlcad directory. This approach will compile the vast
|
||||
majority of the package and is the method utilized when making a
|
||||
binary release of BRL-CAD for Windows. This will compile 'mged',
|
||||
'rt', most of the converters, many of the other geometry analysis
|
||||
tools, and more. In all, it compiles all of the BRL-CAD libraries and
|
||||
about half of the available BRL-CAD utilities.
|
||||
|
||||
Visual Studio
|
||||
-------------
|
||||
|
||||
=== Notes on Windows 10 with latest SDK ===
|
||||
Because Tk before 8.6.8 cannot be built with the latest Windows SDK
|
||||
(naming conflicts; see [1]), an earlier one (10.0.15063.0 is the
|
||||
last working version) is needed (available at [2]).
|
||||
|
||||
Targets `tk`, `tkstub` and `libfb` need to be changed to use this SDK
|
||||
(right click on a target -> Configuration Properties -> General;
|
||||
select the SDK in Windows SDK Version).
|
||||
|
||||
Compilation is then unchanged from the below.
|
||||
|
||||
[1]: https://core.tcl.tk/tk/tktview?name=3d34589aa0
|
||||
[2]: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
|
||||
|
||||
===========================================
|
||||
|
||||
=== Notes on Visual Studio 14 2015 ===
|
||||
|
||||
In order to build this version (required to build the Creo 3 converter)
|
||||
with CMake, you must ensure that Microsoft's "rc.exe" program is
|
||||
installed and findable by CMake.
|
||||
|
||||
To install "rc.exe", run or re-run the Visual Studio installer and enable
|
||||
Visual C++ components and "Visual Studio Extensibility Tools Update 1" under
|
||||
the "Common Tools" section.
|
||||
|
||||
The extensibility tools can become unselected by default in some
|
||||
configurations. Verify "rc.exe" is installed in:
|
||||
|
||||
"C:\Program Files (x86)\Windows Kits\8.1\bin\x64"
|
||||
|
||||
Add that directory to your "Path" user variable so CMake will be able to
|
||||
locate the rc executable.
|
||||
|
||||
See:
|
||||
https://stackoverflow.com/questions/43847542/rc-exe-no-longer-found-in-vs-2015-command-prompt
|
||||
|
||||
======================================
|
||||
|
||||
|
||||
To build with CMake and Visual Studio, the first step is to obtain the
|
||||
BRL-CAD sources and create a build directory. In principle, it is not
|
||||
*required* to have a separate build directory, but with Windows and
|
||||
Visual Studio this is the only tested configuration. Once those the
|
||||
sources are obtained and the build directory is created, run the CMake
|
||||
application and specify the source and build directories.
|
||||
|
||||
Once CMake has the correct directory settings, select Configure. If
|
||||
this is the first time running Configure with this build directory,
|
||||
CMake will prompt you to select a generator. Look for your version of
|
||||
Visual Studio and select it. Configuration should now proceed.
|
||||
|
||||
It is normal for configuration to be a long process on Windows. Once
|
||||
it is complete, you should see a list of red highlighted entries
|
||||
appear in the CMake interface. Change any settings that appear to
|
||||
need changing and press Configure again. The second pass should be
|
||||
shorter. If no new red lines appear, the configuration is complete.
|
||||
|
||||
The final CMake step, after completing Configuration, is to select
|
||||
Generate to create Visual Studio project files in the build directory.
|
||||
Once this is done, you may quit CMake.
|
||||
|
||||
Navigate to your build directory. You should see a BRLCAD solution
|
||||
file for Visual Studio. Double-click that file, and Visual Studio
|
||||
should launch. It will load the targets (a default configuration of
|
||||
BRL-CAD on Windows will generate over 800 of them) and a large list of
|
||||
targets will appear. To build everything look for a target named
|
||||
ALL_BUILD. Start compiling that target.
|
||||
|
||||
Once compilation is successfully complete, you can find the compiled
|
||||
executables in a 'bin' directory in your build directory. For
|
||||
example, mged.exe would be in brlcad-svn-trunk\.build\Debug\bin if
|
||||
brlcad-svn-trunk\.build is the build directory specified to CMake and
|
||||
CMAKE_BUILD_TYPE was set to Debug.
|
||||
|
||||
You may want to produce an NSIS installer. If so, locate a target
|
||||
named PACKAGE and run it. The end result should be an .exe file
|
||||
capable of installing BRL-CAD.
|
||||
|
||||
MINGW (WORK IN PROGRESS - THIS DOES NOT YET WORK!!!)
|
||||
-----
|
||||
|
||||
After installing the MINGW system, set up as follows:
|
||||
|
||||
set path=%path%;"C:\Program Files (x86)\CMake\bin"
|
||||
set path=%path%;C:\MinGW\bin
|
||||
|
||||
now make a build directory, and run CMake:
|
||||
|
||||
cmake ..\brlcad -G "MinGW Makefiles" -DBRLCAD_BUNDLED_LIBS=BUNDLED
|
||||
|
||||
mingw32-make
|
||||
|
||||
Note that you don't want to do this from an msys prompt that has
|
||||
sh in the path. (ConEmu can make using the standard Windows command
|
||||
prompt a bit more tolerable: http://conemu.github.io)
|
||||
The third approach is to compile using CMake using the build files
|
||||
in the misc/win32-msvc directory. This approach, however, will ONLY
|
||||
currently build the core libraries together with their C++ interface
|
||||
in rt^3 and is intended for 3rd party applications that link against
|
||||
BRL-CAD as a geometry engine or ray-trace library.
|
||||
|
||||
Special thanks to Jonathan Bonomo for the Windows installer that uses
|
||||
the Nullsoft Scriptable Install System (i.e. NSIS) that replaces the
|
||||
former InstallShield installer. The NSIS scripts files are in
|
||||
misc/nsis/.
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
BRL-CAD on BSD README
|
||||
=====================
|
||||
|
||||
BRL-CAD is frequently compiled under various variants of
|
||||
BSD including FreeBSD, NetBSD, OpenBSD, and even the original
|
||||
4.3 BSD (though now rare) - FreeBSD is the most common BSD
|
||||
platform tested, not counting Mac OSX. See the README.VAX
|
||||
document for additional details that pertain to building
|
||||
BRL-CAD on a VAX running BSD.
|
||||
|
||||
CMake binaries for *BSD operating systems are not distributed
|
||||
by Kitware, but should be available through standard *BSD
|
||||
packaging mechanisms. Failing that, CMake can be bootstrapped
|
||||
without much difficulty on most modern Unix-style platforms.
|
||||
|
||||
BRL-CAD is included in the FreeBSD Ports system.
|
||||
@@ -1,51 +0,0 @@
|
||||
BRL-CAD on IRIX README
|
||||
======================
|
||||
|
||||
Building on IRIX is one of the most tricky platforms to support
|
||||
without installing up-to-date compilation tools. That said, the build
|
||||
has and should work just fine with either the MIPSPro or GCC
|
||||
compilers. The best performance is usually achieved with the MIPSPro
|
||||
compiler, whereas GCC will compile faster with less fuss.
|
||||
|
||||
Kitware provides CMake binaries for IRIX64 platforms:
|
||||
http://www.cmake.org/cmake/resources/software.html
|
||||
|
||||
|
||||
Parallel building
|
||||
-----------------
|
||||
For parallel compilation on IRIX, the -P option enables parallel
|
||||
build mode and the PARALLEL environment variable sets the number
|
||||
of CPUs (default is two):
|
||||
|
||||
PARALLEL=4 make -P
|
||||
|
||||
|
||||
Potential problems you may encounter
|
||||
------------------------------------
|
||||
|
||||
Symptom: MIPSPro linker reports symbol(s) missing
|
||||
|
||||
Description: There's a known bug in the MIPSpro linker involving
|
||||
rpaths that are too long (namely longer than 255 characters) so care
|
||||
should be taken to not compile in directories that are too deep. The
|
||||
way this bug is usually seen is that the build will fail during
|
||||
compilation where unresolved symbols are reported during linking,
|
||||
symbols that are correctly included in the libraries being linked.
|
||||
|
||||
Workaround: It is usually sufficient to retry the compile from a
|
||||
shorter path. (e.g., /tmp instead of /some/deep/path/to/brlcad)
|
||||
|
||||
---
|
||||
|
||||
Symptom: GCC crashes during compilation with internal errors
|
||||
|
||||
Description: Certain versions of the gcc compiler are known to crash
|
||||
with internal error messages, for example on src/mged/animedit.c, when
|
||||
using optimization flags (i.e. -O3).
|
||||
|
||||
Workaround: Compile in whatever directory is failing with -O0 instead:
|
||||
cd src/mged
|
||||
sed -i "s/ -O3 / -O0 /g" CMakeFiles/mged.dir/flags.make
|
||||
make
|
||||
cd ../..
|
||||
make
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user