[cgma-dev] r5270 - cgm/trunk/test

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon Dec 19 12:23:41 CST 2011


Author: janehu
Date: 2011-12-19 12:23:41 -0600 (Mon, 19 Dec 2011)
New Revision: 5270

Added:
   cgm/trunk/test/Solid_6.brep
   cgm/trunk/test/Solid_7.brep
   cgm/trunk/test/imprint_bug.cpp
Log:
Added testcase for bug 247.

Added: cgm/trunk/test/Solid_6.brep
===================================================================
--- cgm/trunk/test/Solid_6.brep	                        (rev 0)
+++ cgm/trunk/test/Solid_6.brep	2011-12-19 18:23:41 UTC (rev 5270)
@@ -0,0 +1,309 @@
+DBRep_DrawableShape
+
+CASCADE Topology V1, (c) Matra-Datavision
+Locations 5
+1
+              1               0               0               0 
+              0               1               0               0 
+              0               0               1               5 
+2  1 -1 0
+1
+              1               0               0               4 
+              0               1               0               0 
+              0               0               1               0 
+1
+              1               0               0               0 
+              0               1               0              -3 
+              0               0               1               0 
+1
+              1               0               0               4 
+              0               1               0               0 
+              0               0               1               0 
+Curve2ds 25
+1 6.2831853071795862 -6.2831853071795862 0 1 
+1 0 -6.2831853071795862 0 1 
+1 0 1.5707963267948966 1 0 
+8 1.6653345369377348e-16 3.1415926535897931
+7 0 0  10 56 7  6.2831853071795916 0.97873451276921841  6.1489042135794509 0.97873451268533362  6.0146230247046333 0.97141404585454438  5.8836119286133908 0.95677466827328317  5.7591255260631442 0.93527328863274306  5.6434262122493237 0.90786399279022589  5.5362642745021731 0.8756338802195387  5.437181782501284 0.83945724614750361  5.3452301078868913 0.80012683039058174  5.2594764863445693 0.75828188140585095  5.0381764824154551 0.63778135974603356  4.9135229666353553 0.55505510526063517  4.8001403373782523 0.46917929048504448  4.6934712822549045 0.38204689055783092  4.590790226822719 0.29496254233890795  4.4895743204979226 0.20913706698411261  4.3879535228479654 0.12567535841299105  4.2841139328738791 0.045796977317877463  4.1765307343294591 -0.029120653967002627  3.9798301341867424 -0.14889580309271588  3.8928203398740235 -0.19658596678599333  3.8026495240033911 -0.23999638094303463  3.7090118359948976 -0.27844458634044711  3.6118106095600524 -0.3112238613948648  3.5112205
 34137101 -0.33761815609468615  3.4078314380798473 -0.35699149820088677  3.302645157305514 -0.36890977687802062  3.196794094605282 -0.37321085519203928  2.9331984952231389 -0.36512666481415762  2.7759704298441648 -0.34332264906095133  2.623301088475273 -0.30485103939645342  2.4785495957767125 -0.2512178329143353  2.3431967371143401 -0.1851859974249237  2.2156141592131462 -0.10942037453423836  2.0944392439268995 -0.026061745404149406  1.9774495381716406 0.062936079413589141  1.8622819719848362 0.15587741612512707  1.6876391405937508 0.29855345134486555  1.629109960765549 0.3466562435978538  1.5698808082094347 0.39508240948681594  1.5095283771661947 0.44360858626409183  1.4475730485043337 0.4919990058390592  1.3834726628200464 0.53999698017578335  1.3166029972589652 0.58731166555969838  1.2462293919435594 0.63359808845300136  1.1715035647953038 0.67843238771246817  1.0115949280965766 0.76414401228240481  0.92641245007416728 0.8050214886707181  0.83512437843819498 0.843393436472
 97937  0.73684421871439554 0.87863820003985893  0.63069778667704668 0.90999038497102447  0.51627045474015176 0.93660737491154578  0.39342964852403384 0.95745542187796673  0.26436602608464455 0.97164103915929445  0.13218295153934737 0.97873451268664435  4.1930483481222847e-16 0.9787345127692173 
+ 1.6653345369377348e-16 11 0.78539816339745383 9 2.1598449493430012 9 3.1906800388021477 9 4.7369326729908714 9 5.5100589900852279 9 6.2831853071795862 11
+8 1.6653345369377348e-16 3.1415926535897931
+7 0 0  10 101 12  3.1415926535897927 1.5055939875750588  3.2278531271570641 1.5055939875211723  3.3141131394841223 1.505006160863664  3.398344112875384 1.5038306543277487  3.4785026801953789 1.5020924844531691  3.5530410803257837 1.4998443166587094  3.6213676690356804 1.4971504708897556  3.6835416590931347 1.4940730407238334  3.7398154825137366 1.4906667613105811  3.7906511447981486 1.4869797630620267  3.9268647046660785 1.4753210053997896  3.997999725430418 1.4666585706199839  4.0536797217500862 1.4573756373283686  4.0983964778133668 1.4476735413190909  4.1345891373930499 1.4376587999868207  4.1642937508877367 1.427415982063394  4.1888052817957941 1.416994857499958  4.2091582421053317 1.4064365386839199  4.226104513592162 1.3957695676849273  4.2675978950723517 1.3641821997807977  4.2843767393847241 1.3430244747916198  4.2948108943948684 1.3217054018322869  4.3007006095198452 1.3002925383065302  4.3032464663265273 1.2788352089082764  4.3032272111013299 1.2573674531464349  4.
 301139847836021 1.2359130366284716  4.2973972028331264 1.2144941734485246  4.2922701417265809 1.1931275028828137  4.2741839708352769 1.1318928400375323  4.2582959432178589 1.0921949701192752  4.2397413988115655 1.0528353114864331  4.2191194172133688 1.0138880947852158  4.1968380187463481 0.97542326383882028  4.1731544322334226 0.93750790623016655  4.148224898319131 0.90020811083281838  4.1221801182200624 0.86359169524567414  4.0950972666799155 0.82772723980130447  4.0179351267490393 0.73136195954747663  3.9658423023730549 0.67255762133591745  3.9110804617957671 0.61665001560631671  3.8537625153277384 0.56403375158134472  3.7939515217096611 0.51512271732478143  3.7317180770446305 0.47034800948955163  3.6671685967976595 0.43014644248982431  3.6004766513081585 0.39493886906691617  3.5319103052335423 0.36510174636202797  3.3566575454361836 0.30469633983728595  3.2480532226145442 0.28122171808854546  3.13714705145685 0.27154497671835998  3.0254828825127333 0.27632791280484525  2.
 9149091533035971 0.29569365357019706  2.8073410430224612 0.32899625377467601  2.7039466708956752 0.37501906258330564  2.6054575313319219 0.43236588715899416  2.512218218496562 0.49957791763715675  2.3807382285521657 0.61307501410072884  2.3383079341461221 0.65302053735957588  2.2973169707042871 0.69490250816916155  2.2578029542084552 0.73854692492168394  2.2198251514309959 0.78378463734770776  2.1834532391760151 0.83045344073907468  2.1488164492128816 0.87839702861092517  2.1161380806284433 0.92746373205594423  2.0857672877924953 0.97750501063252693  2.044967676088858 1.0537900619258322  2.0321604693768118 1.0794222720665929  2.0202552898934298 1.1052383930062661  2.0093885484049681 1.1312180148277549  1.9997563144715969 1.157339045079425  1.9916020485034096 1.183578267572011  1.9852858097690842 1.2099088205934094  1.9813421591504103 1.236298206059768  1.9805573507809187 1.2627059026552421  1.9865647654608101 1.3022402086550142  1.9897648644293817 1.3154054199736607  1.99436
 57746226944 1.3285491061613428  2.0006276123703777 1.3416604119486695  2.0088778545464772 1.35472648052736  2.0195520214824683 1.3677304237533767  2.0332392980695069 1.3806495814669932  2.0507551667093398 1.39345329259288  2.0733105161256331 1.4060960851517419  2.1176858625368413 1.4247002725993749  2.1342345905897369 1.4308416664636556  2.1527898345717196 1.436913133145884  2.1736466330158692 1.4429026881938021  2.1971660587902688 1.4487954500123625  2.2237817461819458 1.4545729262401743  2.2540195271843966 1.460211749005234  2.2885266484637001 1.4656816113468483  2.3280763640183642 1.4709425847956141  2.4188896801581103 1.4809422668211394  2.4701529005251359 1.4856809929551673  2.5280885733372997 1.4901062598801218  2.5935317196999677 1.4941543471359182  2.6673277859226801 1.4977444228716195  2.7498465885873884 1.500786174525274  2.8412253700953443 1.5031661284010625  2.9391579720686423 1.5047846476354607  3.040375362258557 1.5055939875118287  3.1415926535897967 1.50559398
 75750608 
+ 1.6653345369377348e-16 11 0.098174770424676247 9 0.2914563496982569 9 0.66593940954085029 9 1.368095146745695 9 2.596867686854166 9 4.4400264970168761 9 5.3616059020982334 9 5.8223956046389027 9 6.0527904559092427 9 6.1679878815444145 9 6.2831853071795862 11
+7 0 0  9 34 5  2.3639622245463694 0.3971720397307606  2.4477307934399399 0.44066721264779529  2.5307545396590285 0.48819818434367335  2.6133604347633081 0.53928228493623465  2.6960557622078341 0.59341999055868655  2.779553170374129 0.65010437005912536  2.864820423987112 0.70882934666406072  2.9532211004425335 0.76904266276096678  3.0467434819484653 0.83013241727932863  3.200185014262801 0.92168863925775024  3.2535251921881354 0.952194297852202  3.3095143754399032 0.9825708275056968  3.368713376679807 1.0126818778990128  3.4318140745017445 1.0423642425994331  3.4996966969702044 1.0714111792203767  3.5734468390110123 1.0995611440389439  3.6544833632443936 1.1264508155378381  3.7890078442823829 1.1641675155838116  3.8360109680061449 1.1763034476813208  3.8853455986807908 1.1879424944475734  3.9371785075082801 1.1990164317274119  3.9916592713816499 1.20944909045516  4.0489035055807108 1.2191560439512159  4.108957549602577 1.228046214707665  4.1717533395819775 1.236026475359471  
 4.3024202651709675 1.2499924563953391  4.3702914461275428 1.2559781845372677  4.4404961638776212 1.2608791843689839  4.512695278599697 1.2646140191583173  4.5863930729885602 1.2671135409388323  4.6609400074433625 1.2683325351039609  4.7356097718610721 1.2682573798857035  4.8097190411046746 1.2669057425154659  4.882676828358175 1.264319725720856 
+ 4.2161627684917402 10 5.2839122144930357 8 5.8177869374936853 8 6.0847242989940105 8 6.3516616604943437 10
+7 0 0  8 30 5  2.2625483806373712 0.34749196100149743  2.3709840193834695 0.39733560531736839  2.4777802624357719 0.45463630783319786  2.5833445396729076 0.51837326453187416  2.6886325982522976 0.58741581610911453  2.7950371510196419 0.66069264108500647  2.9049523313369718 0.73702363316169794  3.0214961803070937 0.81528835651569054  3.2184784127624964 0.93248889631163789  3.2878326166837724 0.97152309190028063  3.3619105077632412 1.0102635911703146  3.4420030404908175 1.0483994299020196  3.5300242212742887 1.0854913827024575  3.6281607958835593 1.1210020429416545  3.7403319022900394 1.1540040987372753  3.9334610007388875 1.1977721499988203  4.0019824111300295 1.2114057363349957  4.0749673995578632 1.2239197460221476  4.1526417204440804 1.2351266590576415  4.2350577636279922 1.2448205343916925  4.3218976715161261 1.252781814184118  4.4122595933802531 1.2588299336298552  4.5975770126222946 1.2668776437814251  4.6925325737865933 1.268877187976841  4.7885553110463661 1.268741569
 1834758  4.8840965111739933 1.2664274308581298  4.9774340345102246 1.2619944900761766  5.0673836972518984 1.2555993808477979  5.1532570865469607 1.2474296818689614  5.2347435086855372 1.2376834117761846 
+ 4.0732964403088019 9 5.2882898027381824 7 5.8957864839528726 7 6.1995348245602191 7 6.5032831651675655 9
+7 0 0  9 18 3  2.7491585197903881 -0.32318040080035459  2.8587088261611755 -0.26678137080126713  2.9642838541361964 -0.2075052900924155  3.0669495457320104 -0.14645107793790166  3.1678994728091414 -0.084602201843793523  3.2682830794708733 -0.022854592234967046  3.3691965878028896 0.037925962832561076  3.4716941515397588 0.096843468898093865  3.5767343626809396 0.15293453380952376  3.7933351121971013 0.2574255292315627  3.9048956958413328 0.30582541051921908  4.0204336790266098 0.34936212849697768  4.1404296157706995 0.3869582656534476  4.2649659094458912 0.41752004451882385  4.3935847854445456 0.43995543594974151  4.5248127651339018 0.45348932012552723  4.6569131767816669 0.45785648425190684  4.7882882259599056 0.45322810386649842 
+ 4.2161627684917402 10 5.2839122144930419 8 6.3516616604943437 10
+7 0 0  9 18 3  2.7491585197903881 -0.32318040080035459  2.8587088261611755 -0.26678137080126713  2.9642838541361964 -0.2075052900924155  3.0669495457320104 -0.14645107793790166  3.1678994728091414 -0.084602201843793523  3.2682830794708733 -0.022854592234967046  3.3691965878028896 0.037925962832561076  3.4716941515397588 0.096843468898093865  3.5767343626809396 0.15293453380952376  3.7933351121971013 0.2574255292315627  3.9048956958413328 0.30582541051921908  4.0204336790266098 0.34936212849697768  4.1404296157706995 0.3869582656534476  4.2649659094458912 0.41752004451882385  4.3935847854445456 0.43995543594974151  4.5248127651339018 0.45348932012552723  4.6569131767816669 0.45785648425190684  4.7882882259599056 0.45322810386649842 
+ 4.2161627684917402 10 5.2839122144930419 8 6.3516616604943437 10
+7 0 0  9 34 5  2.3639622245463694 0.3971720397307606  2.4477307934399399 0.44066721264779529  2.5307545396590285 0.48819818434367335  2.6133604347633081 0.53928228493623465  2.6960557622078341 0.59341999055868655  2.779553170374129 0.65010437005912536  2.864820423987112 0.70882934666406072  2.9532211004425335 0.76904266276096678  3.0467434819484653 0.83013241727932863  3.200185014262801 0.92168863925775024  3.2535251921881354 0.952194297852202  3.3095143754399032 0.9825708275056968  3.368713376679807 1.0126818778990128  3.4318140745017445 1.0423642425994331  3.4996966969702044 1.0714111792203767  3.5734468390110123 1.0995611440389439  3.6544833632443936 1.1264508155378381  3.7890078442823829 1.1641675155838116  3.8360109680061449 1.1763034476813208  3.8853455986807908 1.1879424944475734  3.9371785075082801 1.1990164317274119  3.9916592713816499 1.20944909045516  4.0489035055807108 1.2191560439512159  4.108957549602577 1.228046214707665  4.1717533395819775 1.236026475359471  
 4.3024202651709675 1.2499924563953391  4.3702914461275428 1.2559781845372677  4.4404961638776212 1.2608791843689839  4.512695278599697 1.2646140191583173  4.5863930729885602 1.2671135409388323  4.6609400074433625 1.2683325351039609  4.7356097718610721 1.2682573798857035  4.8097190411046746 1.2669057425154659  4.882676828358175 1.264319725720856 
+ 4.2161627684917402 10 5.2839122144930357 8 5.8177869374936853 8 6.0847242989940105 8 6.3516616604943437 10
+8 3.1415926535897931 6.2831853071795862
+7 0 0  10 56 7  6.2831853071795916 0.97873451276921841  6.1489042135794509 0.97873451268533362  6.0146230247046333 0.97141404585454438  5.8836119286133908 0.95677466827328317  5.7591255260631442 0.93527328863274306  5.6434262122493237 0.90786399279022589  5.5362642745021731 0.8756338802195387  5.437181782501284 0.83945724614750361  5.3452301078868913 0.80012683039058174  5.2594764863445693 0.75828188140585095  5.0381764824154551 0.63778135974603356  4.9135229666353553 0.55505510526063517  4.8001403373782523 0.46917929048504448  4.6934712822549045 0.38204689055783092  4.590790226822719 0.29496254233890795  4.4895743204979226 0.20913706698411261  4.3879535228479654 0.12567535841299105  4.2841139328738791 0.045796977317877463  4.1765307343294591 -0.029120653967002627  3.9798301341867424 -0.14889580309271588  3.8928203398740235 -0.19658596678599333  3.8026495240033911 -0.23999638094303463  3.7090118359948976 -0.27844458634044711  3.6118106095600524 -0.3112238613948648  3.5112205
 34137101 -0.33761815609468615  3.4078314380798473 -0.35699149820088677  3.302645157305514 -0.36890977687802062  3.196794094605282 -0.37321085519203928  2.9331984952231389 -0.36512666481415762  2.7759704298441648 -0.34332264906095133  2.623301088475273 -0.30485103939645342  2.4785495957767125 -0.2512178329143353  2.3431967371143401 -0.1851859974249237  2.2156141592131462 -0.10942037453423836  2.0944392439268995 -0.026061745404149406  1.9774495381716406 0.062936079413589141  1.8622819719848362 0.15587741612512707  1.6876391405937508 0.29855345134486555  1.629109960765549 0.3466562435978538  1.5698808082094347 0.39508240948681594  1.5095283771661947 0.44360858626409183  1.4475730485043337 0.4919990058390592  1.3834726628200464 0.53999698017578335  1.3166029972589652 0.58731166555969838  1.2462293919435594 0.63359808845300136  1.1715035647953038 0.67843238771246817  1.0115949280965766 0.76414401228240481  0.92641245007416728 0.8050214886707181  0.83512437843819498 0.843393436472
 97937  0.73684421871439554 0.87863820003985893  0.63069778667704668 0.90999038497102447  0.51627045474015176 0.93660737491154578  0.39342964852403384 0.95745542187796673  0.26436602608464455 0.97164103915929445  0.13218295153934737 0.97873451268664435  4.1930483481222847e-16 0.9787345127692173 
+ 1.6653345369377348e-16 11 0.78539816339745383 9 2.1598449493430012 9 3.1906800388021477 9 4.7369326729908714 9 5.5100589900852279 9 6.2831853071795862 11
+8 3.1415926535897931 6.2831853071795862
+7 0 0  10 101 12  3.1415926535897927 1.5055939875750588  3.2278531271570641 1.5055939875211723  3.3141131394841223 1.505006160863664  3.398344112875384 1.5038306543277487  3.4785026801953789 1.5020924844531691  3.5530410803257837 1.4998443166587094  3.6213676690356804 1.4971504708897556  3.6835416590931347 1.4940730407238334  3.7398154825137366 1.4906667613105811  3.7906511447981486 1.4869797630620267  3.9268647046660785 1.4753210053997896  3.997999725430418 1.4666585706199839  4.0536797217500862 1.4573756373283686  4.0983964778133668 1.4476735413190909  4.1345891373930499 1.4376587999868207  4.1642937508877367 1.427415982063394  4.1888052817957941 1.416994857499958  4.2091582421053317 1.4064365386839199  4.226104513592162 1.3957695676849273  4.2675978950723517 1.3641821997807977  4.2843767393847241 1.3430244747916198  4.2948108943948684 1.3217054018322869  4.3007006095198452 1.3002925383065302  4.3032464663265273 1.2788352089082764  4.3032272111013299 1.2573674531464349  4.
 301139847836021 1.2359130366284716  4.2973972028331264 1.2144941734485246  4.2922701417265809 1.1931275028828137  4.2741839708352769 1.1318928400375323  4.2582959432178589 1.0921949701192752  4.2397413988115655 1.0528353114864331  4.2191194172133688 1.0138880947852158  4.1968380187463481 0.97542326383882028  4.1731544322334226 0.93750790623016655  4.148224898319131 0.90020811083281838  4.1221801182200624 0.86359169524567414  4.0950972666799155 0.82772723980130447  4.0179351267490393 0.73136195954747663  3.9658423023730549 0.67255762133591745  3.9110804617957671 0.61665001560631671  3.8537625153277384 0.56403375158134472  3.7939515217096611 0.51512271732478143  3.7317180770446305 0.47034800948955163  3.6671685967976595 0.43014644248982431  3.6004766513081585 0.39493886906691617  3.5319103052335423 0.36510174636202797  3.3566575454361836 0.30469633983728595  3.2480532226145442 0.28122171808854546  3.13714705145685 0.27154497671835998  3.0254828825127333 0.27632791280484525  2.
 9149091533035971 0.29569365357019706  2.8073410430224612 0.32899625377467601  2.7039466708956752 0.37501906258330564  2.6054575313319219 0.43236588715899416  2.512218218496562 0.49957791763715675  2.3807382285521657 0.61307501410072884  2.3383079341461221 0.65302053735957588  2.2973169707042871 0.69490250816916155  2.2578029542084552 0.73854692492168394  2.2198251514309959 0.78378463734770776  2.1834532391760151 0.83045344073907468  2.1488164492128816 0.87839702861092517  2.1161380806284433 0.92746373205594423  2.0857672877924953 0.97750501063252693  2.044967676088858 1.0537900619258322  2.0321604693768118 1.0794222720665929  2.0202552898934298 1.1052383930062661  2.0093885484049681 1.1312180148277549  1.9997563144715969 1.157339045079425  1.9916020485034096 1.183578267572011  1.9852858097690842 1.2099088205934094  1.9813421591504103 1.236298206059768  1.9805573507809187 1.2627059026552421  1.9865647654608101 1.3022402086550142  1.9897648644293817 1.3154054199736607  1.99436
 57746226944 1.3285491061613428  2.0006276123703777 1.3416604119486695  2.0088778545464772 1.35472648052736  2.0195520214824683 1.3677304237533767  2.0332392980695069 1.3806495814669932  2.0507551667093398 1.39345329259288  2.0733105161256331 1.4060960851517419  2.1176858625368413 1.4247002725993749  2.1342345905897369 1.4308416664636556  2.1527898345717196 1.436913133145884  2.1736466330158692 1.4429026881938021  2.1971660587902688 1.4487954500123625  2.2237817461819458 1.4545729262401743  2.2540195271843966 1.460211749005234  2.2885266484637001 1.4656816113468483  2.3280763640183642 1.4709425847956141  2.4188896801581103 1.4809422668211394  2.4701529005251359 1.4856809929551673  2.5280885733372997 1.4901062598801218  2.5935317196999677 1.4941543471359182  2.6673277859226801 1.4977444228716195  2.7498465885873884 1.500786174525274  2.8412253700953443 1.5031661284010625  2.9391579720686423 1.5047846476354607  3.040375362258557 1.5055939875118287  3.1415926535897967 1.50559398
 75750608 


More information about the cgma-dev mailing list