(const TopoDS_Shape& F,
const TopoDS_Shape& E)
{
- TopTools_ListOfShape Result;
- Result.Clear();
- if(F.ShapeType() != TopAbs_FACE) return myEmptyListOfShape;
- if(E.ShapeType() != TopAbs_EDGE) return myEmptyListOfShape;
+ myListOfVertex.Clear();
+ if(F.ShapeType() != TopAbs_FACE || E.ShapeType() != TopAbs_EDGE)
+ return myListOfVertex;
Standard_Integer iF = myHDS->Shape(F), iE = myHDS->Shape(E);
- if((iF == 0) || (iE == 0)) return myEmptyListOfShape;
+ if((iF == 0) || (iE == 0))
+ return myListOfVertex;
const TopOpeBRepDS_DataStructure& DS = myHDS->DS();
const TopOpeBRepDS_ListOfInterference& LI =
goodKind = I->GeometryType();
goodIndex = I->Geometry();
if(goodKind == TopOpeBRepDS_VERTEX)
- Result.Append(myHDS->Shape(goodIndex));
+ myListOfVertex.Append(myHDS->Shape(goodIndex));
else
if (goodKind == TopOpeBRepDS_POINT)
- Result.Append(myHB->NewVertex(goodIndex));
+ myListOfVertex.Append(myHB->NewVertex(goodIndex));
}
}
- myListOfVertex = Result;
return myListOfVertex;
}
anUexpect[i] = anUf;
}
- Standard_Real aCriticalDelta[aNbCritPointsMax];
+ Standard_Real aCriticalDelta[aNbCritPointsMax] = {0};
for(Standard_Integer aCritPID = 0; aCritPID < aNbCritPoints; aCritPID++)
{ //We are not intersted in elements of aCriticalDelta array
//if their index is greater than or equal to aNbCritPoints
//
iC = bMaxDist ? 1 : -1;
iErr = 0;
+ aT1max = aT2max = 0.; // silence GCC warning
//
aGS = 0.6180339887498948482045868343656;// =0.5*(1.+sqrt(5.))-1.;
aA = aT1A;
{
if(parint[i] <= parint[j])
{
- Standard_Real aTemp = parint[i];
- parint[i] = parint[j];
- parint[j] = aTemp;
-
- aTemp = zint[i];
- zint[i] = zint[j];
- zint[j] = aTemp;
-
- aTemp = yint[i];
- yint[i] = yint[j];
- yint[j] = aTemp;
-
- aTemp = xint[i];
- xint[i] = xint[j];
- xint[j] = aTemp;
-
- aTemp = bord[i];
- bord[i] = bord[j];
- bord[j] = RealToInt(aTemp);
+ std::swap (parint[i], parint[j]);
+ std::swap (zint[i], zint[j]);
+ std::swap (yint[i], yint[j]);
+ std::swap (xint[i], xint[j]);
+ std::swap (bord[i], bord[j]);
}
if((i < nbpi - 1) && IsEqual(parint[i], parint[i+1]))
{
- for(Standard_Integer k = i + 1; k < aNbDiffPoints; k++)
+ aNbDiffPoints--;
+ for(Standard_Integer k = i; k < aNbDiffPoints; k++)
{
- parint[k-1] = parint[k];
- zint[k-1] = zint[k];
- yint[k-1] = yint[k];
- xint[k-1] = xint[k];
- bord[k-1] = bord[k];
+ parint[k] = parint[k+1];
+ zint[k] = zint[k+1];
+ yint[k] = yint[k+1];
+ xint[k] = xint[k+1];
+ bord[k] = bord[k+1];
}
-
- aNbDiffPoints--;
}
}
}
return;
}
#else
- (void )theContext;
+ (void)theSignal; // silence GCC warnings
+ (void)theContext;
#endif
#ifdef linux
if (fFltExceptions)
{{ 1.0F, 1.0F, 1.0F, 1.0F }}, // diffuse color
{{ 1.0F, 1.0F, 1.0F, 1.0F }}, // specular color
{{ 1.0F, 1.0F, 1.0F, 1.0F }}, // emissive color
- {{ 1.0F, 1.0F, 1.0F, 1.0F }} // material color
+ {{ 1.0F, 1.0F, 1.0F, 1.0F }}, // material color
+ Graphic3d_BSDF()
};
static const TCollection_AsciiString THE_EMPTY_KEY;
static const PM_FONT_INFO arrPMFontInfo[][TEL_NO_OF_SIZES] =
{
// TOM_POINT - not used
- {{0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0},
- {0}},
+ {{0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0},
+ {0, 0, 0}},
// TOM_PLUS
{{ 9.f, 9.f, PM_PLUS_10_OFT},
{ 1.F, 1.F, 1.F }, //ColorSubTitle
0, //TextZoomable
0.F, //TextAngle
- (int)Font_FA_Regular //TextFontAspect
+ (int)Font_FA_Regular, //TextFontAspect
+ 0 //ShaderProgram
};
aTextAspect.SetAspect(aDefaultContextText);
TCollection_ExtendedString anExtText = theText;
// Set line aspect
const OpenGl_AspectLine* aCurrentAspectLine = theWorkspace->AspectLine (Standard_True);
- CALL_DEF_CONTEXTLINE aLineAspect = {1, 1, { 1.F, 1.F, 1.F }, aCurrentAspectLine->Type(), aCurrentAspectLine->Width()};
+ CALL_DEF_CONTEXTLINE aLineAspect = {1, 1, { 1.F, 1.F, 1.F }, aCurrentAspectLine->Type(), aCurrentAspectLine->Width(), 0};
aLineAspect.Color.r = myZColor.r();
aLineAspect.Color.g = myZColor.g();
aLineAspect.Color.b = myZColor.b();
//purpose :
//=======================================================================
void STEPConstruct_GDTProperty::GetDimClassOfTolerance(const Handle(StepShape_LimitsAndFits)& theLAF,
- Standard_Boolean theHolle,
- XCAFDimTolObjects_DimensionFormVariance theFV,
- XCAFDimTolObjects_DimensionGrade theG)
+ Standard_Boolean& theHolle,
+ XCAFDimTolObjects_DimensionFormVariance& theFV,
+ XCAFDimTolObjects_DimensionGrade& theG)
{
Handle(TCollection_HAsciiString) aFormV = theLAF->FormVariance();
Handle(TCollection_HAsciiString) aGrade = theLAF->Grade();
return Standard_True;
}
return Standard_False;
-}
\ No newline at end of file
+}
XCAFDimTolObjects_DimensionModifiersSequence& theModifiers);
Standard_EXPORT static void GetDimClassOfTolerance(const Handle(StepShape_LimitsAndFits)& theLAF,
- Standard_Boolean theHolle,
- XCAFDimTolObjects_DimensionFormVariance theFV,
- XCAFDimTolObjects_DimensionGrade theG);
+ Standard_Boolean& theHolle,
+ XCAFDimTolObjects_DimensionFormVariance& theFV,
+ XCAFDimTolObjects_DimensionGrade& theG);
Standard_EXPORT static Standard_Boolean GetDimType(const Handle(TCollection_HAsciiString)& theName,
XCAFDimTolObjects_DimensionType& theType);