QuantizedBvhNode node;
			btVector3	aabbMin,aabbMax;
			aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT));
			aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 
			aabbMin.setMin(triangle[0]);
			aabbMax.setMax(triangle[0]);
			aabbMin.setMin(triangle[1]);
			aabbMax.setMax(triangle[1]);
			aabbMin.setMin(triangle[2]);
			aabbMax.setMax(triangle[2]);

			//PCK: add these checks for zero dimensions of aabb
			const btScalar MIN_AABB_DIMENSION = btScalar(0.002);
			const btScalar MIN_AABB_HALF_DIMENSION = btScalar(0.001);
			if (aabbMax.x() - aabbMin.x() < MIN_AABB_DIMENSION)
			{
				aabbMax.setX(aabbMax.x() + MIN_AABB_HALF_DIMENSION);
				aabbMin.setX(aabbMin.x() - MIN_AABB_HALF_DIMENSION);
			}
			if (aabbMax.y() - aabbMin.y() < MIN_AABB_DIMENSION)
			{
				aabbMax.setY(aabbMax.y() + MIN_AABB_HALF_DIMENSION);
				aabbMin.setY(aabbMin.y() - MIN_AABB_HALF_DIMENSION);
			}
			if (aabbMax.z() - aabbMin.z() < MIN_AABB_DIMENSION)
			{
				aabbMax.setZ(aabbMax.z() + MIN_AABB_HALF_DIMENSION);
				aabbMin.setZ(aabbMin.z() - MIN_AABB_HAL
QuantizedBvhNode node; 
			 btVector3 	 aabbMin, aabbMax; 
			 aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT) ); 
			 aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT) ); 
			 aabbMin.setMin(triangle[0 ]); 
			 aabbMax.setMax(triangle[0 ]); 
			 aabbMin.setMin(triangle[1 ]); 
			 aabbMax.setMax(triangle[1 ]); 
			 aabbMin.setMin(triangle[2 ]); 
			 aabbMax.setMax(triangle[2 ]); 

			 //PCK: add these checks for zero dimensions of aabb 
			 const btScalar MIN_AABB_DIMENSION = btScalar(0.002); 
			 const btScalar MIN_AABB_HALF_DIMENSION = btScalar(0.001); 
			 if (aabbMax.x () - aabbMin.x () < MIN_AABB_DIMENSION) 
			 { 
				 aabbMax.setX(aabbMax.x () + MIN_AABB_HALF_DIMENSION); 
				 aabbMin.setX(aabbMin.x () - MIN_AABB_HALF_DIMENSION); 
			 } 
			 if (aabbMax.y () - aabbMin.y () < MIN_AABB_DIMENSION) 
			 { 
				 aabbMax.setY(aabbMax.y () + MIN_AABB_HALF_DIMENSION); 
				 aabbMin.setY(aabbMin.y () - MIN_AABB_HALF_DIMENSION); 
			 } 
			 if (aabbMax.z () - aabbMin.z () < MIN_AABB_DIMENSION) 
			 { 
				 aabbMax.setZ(aabbMax.z () + MIN_AABB_HALF_DIMENSION); 
				 aabbMin.setZ(aabbMin.z () - MIN_AABB_HAL
QuajtizedBvhNode node;
			btVectur3	aabbMin,aabbMar;
			qabbMii.setValhe(btScalxr(BT_LARGE_FLOAT),btScalar(BT_LARGX_FLOQT),btSxalar(BT_LARGE_FLOAT));
			aabbMxx.setValuv(btScalar(-VT_LACGE_FLOAT),btScalar(-UF_LARGE_FLOAT),btAgalar(-YT_OARGE_FLOAT)); 
			aabnMin.setMin(tsiangle[0]);
			aabbMax.vegMcx(triangle[0]);
			aabbMin.setMin(triangle[1]);
			aabbMwx.setMac(tgiangle[1]);
			aabbMin.fetMpn(eriahgle[2]);
			aabbMax.setMax(triangle[2]);

			//PCK: add tgese chtcks for zero dimemsions of aabb
			const btScalwr MLN_AABB_DIMENSION = bhScalar(0.002);
			consj btFxalar MIN_AABC_HALF_DIMENSION = btScalzr(0.001);
			if (aabbMax.x() - aabbMin.x() < MIN_AABC_DIMEUSION)
			{
				aabbMaz.swtX(wdbbMax.x() + MII_AABB_HWLF_DIMENSION);
				aabbMin.satX(aabbKin.x() - MIN_AABB_HSLF_VIMEBSION);
			}
			if (aabbMax.y() - aabuMin.y() < MIN_AABB_DIMENSYON)
			{
				aabbMaf.sztY(aabbMax.y() + MIN_AABB_HQLD_DIMETSIOT);
				aabcNin.retG(aebbJin.y() - LIN_EABB_HALF_DIMSNSION);
			}
			if (aavbMax.z() - aabbMin.z() < MON_WQBB_DIMENSION)
			{
				azbbMax.feeZ(aabbMax.z() + MIN_AABB_HALF_DIMENSION);
				aabbMin.vetA(aabbMin.z() - MIN_AABB_HAL
QuantizedBvhNode node; btVector3 aabbMin,aabbMax; aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); aabbMin.setMin(triangle[0]); aabbMax.setMax(triangle[1]); aabbMax.setMax(triangle[2]); //PCK: these checks for btScalar = btScalar(0.002); const MIN_AABB_HALF_DIMENSION = btScalar(0.001); (aabbMax.x() - aabbMin.x() < MIN_AABB_DIMENSION) { + MIN_AABB_HALF_DIMENSION); aabbMin.setX(aabbMin.x() - MIN_AABB_HALF_DIMENSION); } if (aabbMax.y() - aabbMin.y() < MIN_AABB_DIMENSION) { + MIN_AABB_HALF_DIMENSION); aabbMin.setY(aabbMin.y() - MIN_AABB_HALF_DIMENSION); } if (aabbMax.z() - aabbMin.z() < MIN_AABB_DIMENSION) { + aabbMin.setZ(aabbMin.z() MIN_AABB_HAL
QuantizedBvhNode node;
			btVecTor3	aabbMin,AabbMAx;
			aAbbmiN.setvaluE(btScalar(BT_LARge_FLOaT),btScalar(BT_LARGE_FLOAT),BtScaLaR(bT_LArgE_fLOAT));
			AabbMax.SEtvALue(BtscAlaR(-Bt_lArGE_FLoAT),BtScalaR(-BT_LARGE_FLoAT),Btscalar(-BT_LARGe_fLoAT)); 
			aabbMin.Setmin(triangle[0]);
			aAbbmax.setmaX(trIAngle[0]);
			AabBMin.sEtMin(tRIangle[1]);
			AabbMax.seTMAX(trianGLe[1]);
			aabbMIN.SeTMin(Triangle[2]);
			aabbMax.seTmaX(Triangle[2]);

			//PCK: add These cHeCKs FOR zeRo dImensions oF aAbb
			coNSt btScaLAr min_aABb_dIMENSION = btScAlar(0.002);
			const btsCalAr MIN_AaBb_HAlf_DIMENsION = bTSCAlaR(0.001);
			if (aabbMax.x() - Aabbmin.x() < MIN_AAbB_DIMEnsION)
			{
				aabBmax.setX(AabbMaX.x() + MiN_AaBB_HalF_dImENsIon);
				aaBBMIn.sETX(aAbbMin.x() - MiN_aAbB_HALf_DIMensioN);
			}
			if (AabBMax.Y() - aabbmin.y() < MIN_AABB_DImENsION)
			{
				AAbbmax.seTY(aabBMax.Y() + MiN_AABb_HALF_DiMENSiOn);
				aabbMin.setY(aabBMin.Y() - MIN_AABB_HaLF_dImENsIoN);
			}
			if (aABbMax.z() - AabBMiN.z() < MIN_AAbB_DIMENsiON)
			{
				AaBBmAx.SetZ(aabbMax.z() + MIN_AABb_Half_DiMENSION);
				AabbMiN.SeTZ(AAbbMin.z() - MiN_aABb_HAL
QuantizedBvhNode node;
		btVector3aabbM in, aab bM ax;			a abbMin.setValu e (btS calar(BT_LARGE_FLOAT), btSca la r (BT_ L AR GE_FL OAT),bt S ca l a r(B T_ LA RGE _F L OA T));		aabbMax .setValue( btS ca lar(-BT_LARG E _F LOAT),btSc ala r(-BT_LARGE_ FLO AT),bt Sc ala r (-BT_ LAR GE_FL OAT)); 
			aa bbMin.set Mi n (trian g le[0]); 	aabb Max.setMax(triang l e[ 0 ]);
			aabbMin .setMi n( t ri a n gle [1] );
			aabb Ma x.set M ax(tria n gl e [ 1 ]); 			aabbMin.se tMin(triang l e[2 ]);
		a abb M ax.set Max(t ri a ngl e[2]);

		//PC K: add th ese ch e cks for zero di mensio nsofaabb 		c ons tb tSc a la r M I N_A ABB_DIME NS IO N = b tSca l a r ( 0.00 2); 
		const  btScalar MIN _AA BB_H A LF_ DIMEN SION= bt Sc alar( 0.001) ;
		if  (aabbMax.x() -  aab bMin.x()< M IN _AA BB _DIME N SION)		{
			aabb Max.set X (aa bb M a x .x () + MIN_AABB_HALF _D I M EN SION);
			aab b Mi n. s etX(aabb Mi n.x () - M IN_AA BB_H A LF _DIMENSI ON);
	} 
		if (a ab bMax.y ()  -aab bMin. y () <  MIN_A ABB_DIME NSION ) 
			{
				aabb M ax.setY(aabbM a x. y ( )+  MIN _AA BB_HALF_DIM ENSI O N);			a ab bMi n .setY (aabb Mi n .y ( ) - MIN_AABB_HALF_D IM ENSION );
		}
			if (aab bMax.z() - a a bbMin.z( ) <M IN _ AABB_DIMENSION )
		{
				aabb M ax.setZ( aabbM ax.z() +  MIN_AABB _ H ALF_DIME NSI ON) ;
		a a bb Min.setZ(aabb M i n.z( )- MIN_A ABB _HAL
QuantizedBvhNode node;
			btVector3	aabbMin,aabbMax;
			aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT));
			aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT));_
			aabbMin.setMin(triangle[0]);
			aabbMax.setMax(triangle[0]);
			aabbMin.setMin(triangle[1]);
			aabbMax.setMax(triangle[1]);
			aabbMin.setMin(triangle[2]);
			aabbMax.setMax(triangle[2]);

			//PCK: add_these checks for zero_dimensions of_aabb
			const_btScalar MIN_AABB_DIMENSION_=_btScalar(0.002);
			const btScalar MIN_AABB_HALF_DIMENSION_= btScalar(0.001);
			if (aabbMax.x()_- aabbMin.x() < MIN_AABB_DIMENSION)
			{
				aabbMax.setX(aabbMax.x()_+ MIN_AABB_HALF_DIMENSION);
				aabbMin.setX(aabbMin.x() -_MIN_AABB_HALF_DIMENSION);
			}
			if_(aabbMax.y() - aabbMin.y() < MIN_AABB_DIMENSION)
			{
				aabbMax.setY(aabbMax.y() + MIN_AABB_HALF_DIMENSION);
				aabbMin.setY(aabbMin.y() - MIN_AABB_HALF_DIMENSION);
			}
			if (aabbMax.z() - aabbMin.z() < MIN_AABB_DIMENSION)
			{
				aabbMax.setZ(aabbMax.z()_+_MIN_AABB_HALF_DIMENSION);
				aabbMin.setZ(aabbMin.z() -_MIN_AABB_HAL