mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0032341: Coding Rules - eliminate GCC11 compiler warnings -Wmaybe-uninitialized
This commit is contained in:
parent
36fbf05b15
commit
b04cd5d587
@ -6584,19 +6584,20 @@ L9900:
|
|||||||
doublereal moin11[2] = { -1.,1. };
|
doublereal moin11[2] = { -1.,1. };
|
||||||
|
|
||||||
/* System generated locals */
|
/* System generated locals */
|
||||||
integer valbas_dim1, i__1;
|
integer valbas_dim1 = 0, i__1 = 0;
|
||||||
|
|
||||||
/* Local variables */
|
/* Local variables */
|
||||||
doublereal vjacc[80], herm[24];
|
doublereal vjacc[80] = {};
|
||||||
|
doublereal herm[24] = {};
|
||||||
NCollection_Array1<doublereal> vjac (vjacc[0], 1, 80);
|
NCollection_Array1<doublereal> vjac (vjacc[0], 1, 80);
|
||||||
integer iord[2];
|
integer iord[2] = {};
|
||||||
doublereal wval[4];
|
doublereal wval[4] = {};
|
||||||
integer nwcof, iunit;
|
integer nwcof = 0, iunit = 0;
|
||||||
doublereal wpoly[7];
|
doublereal wpoly[7] = {};
|
||||||
integer ii, jj, iorjac;
|
integer ii = 0, jj = 0, iorjac = 0;
|
||||||
doublereal hermit[36] /* was [6][3][2] */;
|
doublereal hermit[36] = {}; // was [6][3][2]
|
||||||
integer kk1, kk2, kk3;
|
integer kk1 = 0, kk2 = 0, kk3 = 0;
|
||||||
integer khe, ier;
|
integer khe = 0, ier = 0;
|
||||||
|
|
||||||
|
|
||||||
/* ***********************************************************************
|
/* ***********************************************************************
|
||||||
@ -10652,12 +10653,12 @@ int mvgaus0_(integer *kindic,
|
|||||||
|
|
||||||
{
|
{
|
||||||
/* System generated locals */
|
/* System generated locals */
|
||||||
integer i__1;
|
integer i__1 = 0;
|
||||||
|
|
||||||
/* Local variables */
|
/* Local variables */
|
||||||
doublereal tampc[40];
|
doublereal tampc[40] = {};
|
||||||
NCollection_Array1<doublereal> tamp (tampc[0], 1, 40);
|
NCollection_Array1<doublereal> tamp (tampc[0], 1, 40);
|
||||||
integer ndegl, kg, ii;
|
integer ndegl = 0, kg = 0, ii = 0;
|
||||||
|
|
||||||
/* **********************************************************************
|
/* **********************************************************************
|
||||||
*/
|
*/
|
||||||
|
@ -725,7 +725,7 @@ int macrgfl_(intptr_t *iadfld,
|
|||||||
*/
|
*/
|
||||||
integer ifois = 1;
|
integer ifois = 1;
|
||||||
|
|
||||||
char cbid[1];
|
char cbid[1] = {};
|
||||||
integer ibid, ienr;
|
integer ibid, ienr;
|
||||||
doublereal* t = 0;
|
doublereal* t = 0;
|
||||||
integer novfl = 0;
|
integer novfl = 0;
|
||||||
@ -1867,7 +1867,7 @@ int matrsym_(const char *cnmsym,
|
|||||||
|
|
||||||
{
|
{
|
||||||
/* Local variables */
|
/* Local variables */
|
||||||
char chainx[255];
|
char chainx[255] = {};
|
||||||
|
|
||||||
/* ***********************************************************************
|
/* ***********************************************************************
|
||||||
*/
|
*/
|
||||||
|
@ -2814,16 +2814,15 @@ void BSplCLib::Trimming(const Standard_Integer Degree,
|
|||||||
TColStd_Array1OfReal& NewPoles)
|
TColStd_Array1OfReal& NewPoles)
|
||||||
{
|
{
|
||||||
Standard_Integer i, nbpoles=0, nbknots=0;
|
Standard_Integer i, nbpoles=0, nbknots=0;
|
||||||
Standard_Real kk[2];
|
Standard_Real kk[2] = { U1, U2 };
|
||||||
Standard_Integer mm[2];
|
Standard_Integer mm[2] = { Degree, Degree };
|
||||||
TColStd_Array1OfReal K( kk[0], 1, 2 );
|
TColStd_Array1OfReal K( kk[0], 1, 2 );
|
||||||
TColStd_Array1OfInteger M( mm[0], 1, 2 );
|
TColStd_Array1OfInteger M( mm[0], 1, 2 );
|
||||||
|
|
||||||
K(1) = U1; K(2) = U2;
|
|
||||||
mm[0] = mm[1] = Degree;
|
|
||||||
if (!PrepareInsertKnots( Degree, Periodic, Knots, Mults, K, &M,
|
if (!PrepareInsertKnots( Degree, Periodic, Knots, Mults, K, &M,
|
||||||
nbpoles, nbknots, Epsilon( U1), 0))
|
nbpoles, nbknots, Epsilon( U1), 0))
|
||||||
|
{
|
||||||
throw Standard_OutOfRange();
|
throw Standard_OutOfRange();
|
||||||
|
}
|
||||||
|
|
||||||
TColStd_Array1OfReal TempPoles(1, nbpoles*Dimension);
|
TColStd_Array1OfReal TempPoles(1, nbpoles*Dimension);
|
||||||
TColStd_Array1OfReal TempKnots(1, nbknots);
|
TColStd_Array1OfReal TempKnots(1, nbknots);
|
||||||
|
@ -1387,14 +1387,14 @@ void Geom_BezierSurface::D0 (const Standard_Real U,
|
|||||||
const Standard_Real V,
|
const Standard_Real V,
|
||||||
gp_Pnt& P ) const
|
gp_Pnt& P ) const
|
||||||
{
|
{
|
||||||
Standard_Real array_u[2];
|
Standard_Real array_u[2] = { 0.0, 1.0 };
|
||||||
Standard_Real array_v[2];
|
Standard_Real array_v[2] = { 0.0, 1.0 };
|
||||||
Standard_Integer mult_u[2];
|
Standard_Integer mult_u[2] = { UDegree() + 1, UDegree() + 1 };
|
||||||
Standard_Integer mult_v[2];
|
Standard_Integer mult_v[2] = { VDegree() + 1, VDegree() + 1 };
|
||||||
TColStd_Array1OfReal biduknots(array_u[0], 1, 2); biduknots(1) = 0.; biduknots(2) = 1.;
|
TColStd_Array1OfReal biduknots(array_u[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2); bidumults.Init(UDegree() + 1);
|
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2);
|
||||||
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2); bidvknots(1) = 0.; bidvknots(2) = 1.;
|
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2); bidvmults.Init(VDegree() + 1);
|
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2);
|
||||||
if (urational || vrational) {
|
if (urational || vrational) {
|
||||||
BSplSLib::D0(U, V, 1, 1, poles->Array2(),
|
BSplSLib::D0(U, V, 1, 1, poles->Array2(),
|
||||||
&weights->Array2(),
|
&weights->Array2(),
|
||||||
@ -1426,14 +1426,14 @@ void Geom_BezierSurface::D1
|
|||||||
gp_Vec& D1U,
|
gp_Vec& D1U,
|
||||||
gp_Vec& D1V ) const
|
gp_Vec& D1V ) const
|
||||||
{
|
{
|
||||||
Standard_Real array_u[2];
|
Standard_Real array_u[2] = { 0.0, 1.0 };
|
||||||
Standard_Real array_v[2];
|
Standard_Real array_v[2] = { 0.0, 1.0 };
|
||||||
Standard_Integer mult_u[2];
|
Standard_Integer mult_u[2] = { UDegree() + 1, UDegree() + 1 };
|
||||||
Standard_Integer mult_v[2];
|
Standard_Integer mult_v[2] = { VDegree() + 1, VDegree() + 1 };
|
||||||
TColStd_Array1OfReal biduknots(array_u[0], 1, 2); biduknots(1) = 0.; biduknots(2) = 1.;
|
TColStd_Array1OfReal biduknots(array_u[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2); bidumults.Init(UDegree() + 1);
|
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2);
|
||||||
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2); bidvknots(1) = 0.; bidvknots(2) = 1.;
|
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2); bidvmults.Init(VDegree() + 1);
|
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2);
|
||||||
if (urational || vrational) {
|
if (urational || vrational) {
|
||||||
BSplSLib::D1(U, V, 1, 1, poles->Array2(),
|
BSplSLib::D1(U, V, 1, 1, poles->Array2(),
|
||||||
&weights->Array2(),
|
&weights->Array2(),
|
||||||
@ -1464,14 +1464,14 @@ void Geom_BezierSurface::D2
|
|||||||
gp_Vec& D1U, gp_Vec& D1V,
|
gp_Vec& D1U, gp_Vec& D1V,
|
||||||
gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV ) const
|
gp_Vec& D2U, gp_Vec& D2V, gp_Vec& D2UV ) const
|
||||||
{
|
{
|
||||||
Standard_Real array_u[2];
|
Standard_Real array_u[2] = { 0.0, 1.0 };
|
||||||
Standard_Real array_v[2];
|
Standard_Real array_v[2] = { 0.0, 1.0 };
|
||||||
Standard_Integer mult_u[2];
|
Standard_Integer mult_u[2] = { UDegree() + 1, UDegree() + 1 };
|
||||||
Standard_Integer mult_v[2];
|
Standard_Integer mult_v[2] = { VDegree() + 1, VDegree() + 1 };
|
||||||
TColStd_Array1OfReal biduknots(array_u[0], 1, 2); biduknots(1) = 0.; biduknots(2) = 1.;
|
TColStd_Array1OfReal biduknots(array_u[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2); bidumults.Init(UDegree() + 1);
|
TColStd_Array1OfInteger bidumults(mult_u[0], 1, 2);
|
||||||
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2); bidvknots(1) = 0.; bidvknots(2) = 1.;
|
TColStd_Array1OfReal bidvknots(array_v[0], 1, 2);
|
||||||
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2); bidvmults.Init(VDegree() + 1);
|
TColStd_Array1OfInteger bidvmults(mult_v[0], 1, 2);
|
||||||
if (urational || vrational) {
|
if (urational || vrational) {
|
||||||
//-- ATTENTION a l'ORDRE d'appel ds BSPLSLIB
|
//-- ATTENTION a l'ORDRE d'appel ds BSPLSLIB
|
||||||
BSplSLib::D2(U, V, 1, 1, poles->Array2(),
|
BSplSLib::D2(U, V, 1, 1, poles->Array2(),
|
||||||
|
@ -197,10 +197,8 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool
|
|||||||
const IGESData_DirPart& DP, Handle(Interface_Check)& ach) const
|
const IGESData_DirPart& DP, Handle(Interface_Check)& ach) const
|
||||||
{
|
{
|
||||||
|
|
||||||
Standard_Integer v[17];
|
Standard_Integer v[17] = {};
|
||||||
Standard_Character nom[9]; Standard_Character snum[9], theRes1[9],theRes2[9];
|
Standard_Character nom[9] = {}; Standard_Character snum[9] = {}, theRes1[9] = {}, theRes2[9] = {};
|
||||||
//char mess[50]; //szv#4:S4163:12Mar99 unused
|
|
||||||
|
|
||||||
DP.Values(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],
|
DP.Values(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],
|
||||||
v[12],v[13],v[14],v[15],v[16],theRes1,theRes2,nom,snum);
|
v[12],v[13],v[14],v[15],v[16],theRes1,theRes2,nom,snum);
|
||||||
|
|
||||||
|
@ -84,8 +84,8 @@ IntImp_ConstIsoparametric IntImp_Int2S:: Perform(const TColStd_Array1OfReal& Par
|
|||||||
math_FunctionSetRoot& Rsnld,
|
math_FunctionSetRoot& Rsnld,
|
||||||
const IntImp_ConstIsoparametric ChoixIso)
|
const IntImp_ConstIsoparametric ChoixIso)
|
||||||
{
|
{
|
||||||
Standard_Real BornInfBuf[3], BornSupBuf[3], ToleranceBuf[3], UVapBuf[3];
|
Standard_Real BornInfBuf[3] = {}, BornSupBuf[3] = {}, ToleranceBuf[3] = {}, UVapBuf[3] = {};
|
||||||
Standard_Real UvresBuf[4];
|
Standard_Real UvresBuf[4] = {};
|
||||||
math_Vector BornInf (BornInfBuf, 1, 3), BornSup (BornSupBuf, 1, 3),
|
math_Vector BornInf (BornInfBuf, 1, 3), BornSup (BornSupBuf, 1, 3),
|
||||||
Tolerance (ToleranceBuf, 1, 3), UVap (UVapBuf, 1, 3);
|
Tolerance (ToleranceBuf, 1, 3), UVap (UVapBuf, 1, 3);
|
||||||
TColStd_Array1OfReal Uvres (UvresBuf[0], 1, 4);
|
TColStd_Array1OfReal Uvres (UvresBuf[0], 1, 4);
|
||||||
|
@ -63,23 +63,23 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
|
|||||||
// end of conditions.
|
// end of conditions.
|
||||||
|
|
||||||
{
|
{
|
||||||
Standard_Integer I, N = 0, SaveN = 0;
|
Standard_Integer I = 0, N = 0, SaveN = 0;
|
||||||
Standard_Real aBornInf[2], aBornSup[2], aUVap[2];
|
Standard_Real aBornInf[2] = {}, aBornSup[2] = {}, aUVap[2] = {};
|
||||||
math_Vector BornInf(aBornInf,1,2), BornSup(aBornSup,1,2), UVap(aUVap,1,2);
|
math_Vector BornInf(aBornInf,1,2), BornSup(aBornSup,1,2), UVap(aUVap,1,2);
|
||||||
Standard_Real PasC, PasCu, PasCv;
|
Standard_Real PasC = 0.0, PasCu = 0.0, PasCv = 0.0;
|
||||||
Standard_Boolean Arrive; // shows if the line ends
|
Standard_Boolean Arrive = false; // shows if the line ends
|
||||||
Standard_Boolean Cadre; // shows if one is on border of the domain
|
Standard_Boolean Cadre = false; // shows if one is on border of the domain
|
||||||
Standard_Boolean ArretAjout; //shows if one is on added point
|
Standard_Boolean ArretAjout = false; //shows if one is on added point
|
||||||
IntSurf_PntOn2S Psol;
|
IntSurf_PntOn2S Psol;
|
||||||
Handle(IntWalk_TheIWLine) CurrentLine; // line under construction
|
Handle(IntWalk_TheIWLine) CurrentLine; // line under construction
|
||||||
Standard_Boolean Tgtend;
|
Standard_Boolean Tgtend = false;
|
||||||
|
|
||||||
IntWalk_StatusDeflection aStatus = IntWalk_OK, StatusPrecedent = IntWalk_OK;
|
IntWalk_StatusDeflection aStatus = IntWalk_OK, StatusPrecedent = IntWalk_OK;
|
||||||
|
|
||||||
Standard_Integer NbDivision;
|
Standard_Integer NbDivision = 0;
|
||||||
// number of divisions of step for each section
|
// number of divisions of step for each section
|
||||||
|
|
||||||
Standard_Integer StepSign;
|
Standard_Integer StepSign = 0;
|
||||||
|
|
||||||
ThePointOfPath PathPnt;
|
ThePointOfPath PathPnt;
|
||||||
|
|
||||||
|
@ -41,31 +41,31 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
|
|||||||
//
|
//
|
||||||
// ********************************************************************
|
// ********************************************************************
|
||||||
{
|
{
|
||||||
Standard_Integer I,N = 0,SaveN = 0;
|
Standard_Integer I = 0, N = 0,SaveN = 0;
|
||||||
Standard_Real aBornInf[2], aBornSup[2], aUVap[2];
|
Standard_Real aBornInf[2] = {}, aBornSup[2] = {}, aUVap[2] = {};
|
||||||
math_Vector BornInf(aBornInf,1,2), BornSup(aBornSup,1,2);
|
math_Vector BornInf(aBornInf,1,2), BornSup(aBornSup,1,2);
|
||||||
math_Vector Uvap(aUVap,1,2);// parameters of current approach
|
math_Vector Uvap(aUVap,1,2);// parameters of current approach
|
||||||
Standard_Real PasC; // step of advancement on the tangent
|
Standard_Real PasC = 0.0; // step of advancement on the tangent
|
||||||
Standard_Real PasCu; // step of advancement current by U
|
Standard_Real PasCu = 0.0; // step of advancement current by U
|
||||||
Standard_Real PasCv; // step of advancement current by V
|
Standard_Real PasCv = 0.0; // step of advancement current by V
|
||||||
Standard_Real PasSav; // save first step of advancement
|
Standard_Real PasSav = 0.0; // save first step of advancement
|
||||||
Standard_Boolean Arrive;// show if line ends
|
Standard_Boolean Arrive = false;// show if line ends
|
||||||
Standard_Boolean Cadre; // show if on border of the domains
|
Standard_Boolean Cadre = false; // show if on border of the domains
|
||||||
Standard_Boolean ArretAjout; // show if on the added point
|
Standard_Boolean ArretAjout = false; // show if on the added point
|
||||||
IntSurf_PntOn2S Psol;
|
IntSurf_PntOn2S Psol;
|
||||||
Handle(IntWalk_TheIWLine) CurrentLine; //line under construction
|
Handle(IntWalk_TheIWLine) CurrentLine; //line under construction
|
||||||
ThePointOfPath PathPnt;
|
ThePointOfPath PathPnt;
|
||||||
ThePointOfLoop LoopPnt;
|
ThePointOfLoop LoopPnt;
|
||||||
|
|
||||||
Standard_Boolean Tgtbeg,Tgtend;
|
Standard_Boolean Tgtbeg = false, Tgtend = false;
|
||||||
|
|
||||||
Standard_Integer StepSign;
|
Standard_Integer StepSign = 0;
|
||||||
|
|
||||||
IntWalk_StatusDeflection aStatus = IntWalk_OK, StatusPrecedent;
|
IntWalk_StatusDeflection aStatus = IntWalk_OK, StatusPrecedent;
|
||||||
Standard_Integer NbDivision ; // number of divisions of step
|
Standard_Integer NbDivision = 0; // number of divisions of step
|
||||||
// during calculation of 1 section
|
// during calculation of 1 section
|
||||||
|
|
||||||
Standard_Integer Ipass ;
|
Standard_Integer Ipass = 0;
|
||||||
//index in the iterator of points on edge of point of passage
|
//index in the iterator of points on edge of point of passage
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ void IntWalk_IWalking::MakeWalkingPoint
|
|||||||
}
|
}
|
||||||
else if (Case == 11 || Case == 12)
|
else if (Case == 11 || Case == 12)
|
||||||
{
|
{
|
||||||
Standard_Real aUV[2], aFF[1], aDD[1][2];
|
Standard_Real aUV[2] = {}, aFF[1] = {}, aDD[1][2] = {};
|
||||||
math_Vector UV(aUV, 1, 2);
|
math_Vector UV(aUV, 1, 2);
|
||||||
math_Vector FF(aFF, 1, 1);
|
math_Vector FF(aFF, 1, 1);
|
||||||
math_Matrix DD(aDD, 1, 1, 1, 2);
|
math_Matrix DD(aDD, 1, 1, 1, 2);
|
||||||
|
@ -74,7 +74,7 @@ MeshVS_CommonSensitiveEntity::MeshVS_CommonSensitiveEntity (const Handle(SelectM
|
|||||||
myCOG = aCenter / anAllNodesMap.Extent();
|
myCOG = aCenter / anAllNodesMap.Extent();
|
||||||
|
|
||||||
const TColStd_PackedMapOfInteger& anAllElementsMap = myDataSource->GetAllElements();
|
const TColStd_PackedMapOfInteger& anAllElementsMap = myDataSource->GetAllElements();
|
||||||
MeshVS_EntityType aType;
|
MeshVS_EntityType aType = MeshVS_ET_NONE;
|
||||||
for (TColStd_MapIteratorOfPackedMapOfInteger anElemIter (anAllElementsMap); anElemIter.More(); anElemIter.Next())
|
for (TColStd_MapIteratorOfPackedMapOfInteger anElemIter (anAllElementsMap); anElemIter.More(); anElemIter.Next())
|
||||||
{
|
{
|
||||||
const Standard_Integer anElemIdx = anElemIter.Key();
|
const Standard_Integer anElemIdx = anElemIter.Key();
|
||||||
@ -138,10 +138,10 @@ Standard_Integer MeshVS_CommonSensitiveEntity::Size() const
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
gp_Pnt MeshVS_CommonSensitiveEntity::getVertexByIndex (const Standard_Integer theNodeIdx) const
|
gp_Pnt MeshVS_CommonSensitiveEntity::getVertexByIndex (const Standard_Integer theNodeIdx) const
|
||||||
{
|
{
|
||||||
Standard_Real aCoordsBuf[3];
|
Standard_Real aCoordsBuf[3] = {};
|
||||||
TColStd_Array1OfReal aCoords (aCoordsBuf[0], 1, 3);
|
TColStd_Array1OfReal aCoords (aCoordsBuf[0], 1, 3);
|
||||||
Standard_Integer aNbNodes;
|
Standard_Integer aNbNodes = 0;
|
||||||
MeshVS_EntityType aType;
|
MeshVS_EntityType aType = MeshVS_ET_NONE;
|
||||||
if (!myDataSource->GetGeom (theNodeIdx, Standard_False, aCoords, aNbNodes, aType))
|
if (!myDataSource->GetGeom (theNodeIdx, Standard_False, aCoords, aNbNodes, aType))
|
||||||
{
|
{
|
||||||
return gp_Pnt();
|
return gp_Pnt();
|
||||||
@ -161,8 +161,8 @@ Select3D_BndBox3d MeshVS_CommonSensitiveEntity::Box (const Standard_Integer theI
|
|||||||
{
|
{
|
||||||
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
||||||
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
||||||
Standard_Integer aNbNodes;
|
Standard_Integer aNbNodes = 0;
|
||||||
MeshVS_EntityType aType;
|
MeshVS_EntityType aType = MeshVS_ET_NONE;
|
||||||
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
||||||
|| aNbNodes == 0)
|
|| aNbNodes == 0)
|
||||||
{
|
{
|
||||||
@ -238,8 +238,8 @@ Standard_Boolean MeshVS_CommonSensitiveEntity::overlapsElement (SelectBasics_Pic
|
|||||||
{
|
{
|
||||||
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
||||||
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
||||||
Standard_Integer aNbNodes;
|
Standard_Integer aNbNodes = 0;
|
||||||
MeshVS_EntityType aType;
|
MeshVS_EntityType aType = MeshVS_ET_NONE;
|
||||||
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
||||||
|| aNbNodes == 0)
|
|| aNbNodes == 0)
|
||||||
{
|
{
|
||||||
@ -296,8 +296,8 @@ Standard_Boolean MeshVS_CommonSensitiveEntity::elementIsInside (SelectBasics_Sel
|
|||||||
{
|
{
|
||||||
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
MeshVS_Buffer aCoordsBuf (3 * myMaxFaceNodes * sizeof (Standard_Real));
|
||||||
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
TColStd_Array1OfReal aCoords (aCoordsBuf, 1, 3 * myMaxFaceNodes);
|
||||||
Standard_Integer aNbNodes;
|
Standard_Integer aNbNodes = 0;
|
||||||
MeshVS_EntityType aType;
|
MeshVS_EntityType aType = MeshVS_ET_NONE;
|
||||||
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
if (!myDataSource->GetGeom (anItemIdx, Standard_True, aCoords, aNbNodes, aType)
|
||||||
|| aNbNodes == 0)
|
|| aNbNodes == 0)
|
||||||
{
|
{
|
||||||
|
@ -919,7 +919,7 @@ static Standard_Integer QANColTestSequence(Draw_Interpretor& di, Standard_Intege
|
|||||||
static NCollection_Array1<double> GetArrayByValue()
|
static NCollection_Array1<double> GetArrayByValue()
|
||||||
{
|
{
|
||||||
const int aLen = 1024;
|
const int aLen = 1024;
|
||||||
double aCArray[aLen];
|
double aCArray[aLen] = {};
|
||||||
NCollection_Array1<double> anArray (aCArray[0], 1, aLen);
|
NCollection_Array1<double> anArray (aCArray[0], 1, aLen);
|
||||||
for (int i = 1; i <= aLen; i++)
|
for (int i = 1; i <= aLen; i++)
|
||||||
anArray.SetValue(i, i + 113.);
|
anArray.SetValue(i, i + 113.);
|
||||||
|
@ -770,7 +770,7 @@ void StepData_StepWriter::Send (const Standard_Integer val)
|
|||||||
void StepData_StepWriter::Send (const Standard_Real val)
|
void StepData_StepWriter::Send (const Standard_Real val)
|
||||||
{
|
{
|
||||||
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
|
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
|
||||||
char lval[24];
|
char lval[24] = {};
|
||||||
Standard_Integer lng = thefloatw.Write(val,lval);
|
Standard_Integer lng = thefloatw.Write(val,lval);
|
||||||
AddParam();
|
AddParam();
|
||||||
AddString(lval,lng); // gere le format specifique : si besoin est
|
AddString(lval,lng); // gere le format specifique : si besoin est
|
||||||
|
@ -158,7 +158,7 @@ static const Standard_ExtString voidext = { 0 };
|
|||||||
const Standard_Integer dd, const Standard_Integer hh,
|
const Standard_Integer dd, const Standard_Integer hh,
|
||||||
const Standard_Integer mn, const Standard_Integer ss) const
|
const Standard_Integer mn, const Standard_Integer ss) const
|
||||||
{
|
{
|
||||||
char ladate[50];
|
char ladate[50] = {};
|
||||||
Interface_MSG::TDate (ladate, yy,mm,dd,hh,mn,ss);
|
Interface_MSG::TDate (ladate, yy,mm,dd,hh,mn,ss);
|
||||||
bufasc.Clear(); bufasc.AssignCat(ladate);
|
bufasc.Clear(); bufasc.AssignCat(ladate);
|
||||||
return bufasc.ToCString();
|
return bufasc.ToCString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user