Standard_Boolean& DerNull)
{
- Standard_Integer N;
+ Standard_Integer N=0;
Standard_Real Tol=Precision::PConfusion()/10;
Hunt(Arr,Coord,N);
DerNull=Standard_False;
{
Standard_Real Comp=0,DComp=0,Tmp1=0.0,Tmp2=0.0;
Standard_Real Tol=Precision::PConfusion()/10;
- Standard_Integer N, NUp=0, NLo=0;
+ Standard_Integer N=0, NUp=0, NLo=0;
if(Index==1)
{ Comp=UV.X();
DComp=DUV.Y();
{
case MeshVS_MSM_BOX:
{
- Standard_Real min[3], max[3]; Standard_Boolean first = Standard_True;
+ Bnd_Box box;
TColStd_MapIteratorOfPackedMapOfInteger anIterN( anAllNodesMap );
-
for( ; anIterN.More(); anIterN.Next() )
+ {
if( myDataSource->GetGeom( anIterN.Key(), Standard_False, aCoords, NbNodes, aType ) ) {
- if( first )
- {
- for( Standard_Integer i=1; i<=3; i++ )
- min[i-1] = max[i-1] = aCoords( i );
- first = Standard_False;
- }
- else
- for( Standard_Integer i=1; i<=3; i++ )
- {
- if( aCoords( i )<min[i-1] )
- min[i-1] = aCoords( i );
- if( aCoords( i )>max[i-1] )
- max[i-1] = aCoords( i );
- }
+ box.Add (gp_Pnt (aCoords(1), aCoords(2), aCoords(3)));
}
- Bnd_Box box;
- box.Add( gp_Pnt( min[0], min[1], min[2] ) );
- box.Add( gp_Pnt( max[0], max[1], max[2] ) );
-
- theSelection->Add( new Select3D_SensitiveBox( myWholeMeshOwner, box ) );
+ }
+ if (!box.IsVoid())
+ theSelection->Add (new Select3D_SensitiveBox (myWholeMeshOwner, box));
}
break;
TextParam_applied (NULL),
ViewMatrix_applied (&myDefaultMatrix),
StructureMatrix_applied (&myDefaultMatrix),
- PolygonOffset_applied (THE_DEFAULT_POFFSET),
- myModelViewMatrix (myDefaultMatrix)
+ myModelViewMatrix (myDefaultMatrix),
+ PolygonOffset_applied (THE_DEFAULT_POFFSET)
{
theDisplay->InitAttributes();
Standard_Boolean PtEQext1 = Standard_False;
Standard_Boolean PtEQext2 = Standard_False;
- Standard_Real currd2[2], tp[2];
+ Standard_Real currd2[2], tp[2] = {0, 0};
Standard_Integer mp[2];
for (Standard_Integer i=0; i<2; i++) {