}
return 0.;
}
+
+//================================================================================
+/*!
+ * \brief Change size of a box by a factor; each dimension changes independently of others
+ */
+//================================================================================
+
+void SMESH_Octree::enlargeByFactor( Bnd_B3d* box, double factor ) const
+{
+ if ( !box->IsVoid() )
+ {
+ gp_XYZ halfSize = 0.5 * ( box->CornerMax() - box->CornerMin() );
+ for ( int iDim = 1; iDim <= 3; ++iDim )
+ halfSize.SetCoord( iDim, factor * halfSize.Coord( iDim ));
+ box->SetHSize( halfSize );
+ }
+}