{
Standard_Boolean bHasFaceInfo, bIsClosed, bIsDegenerated, bToReverse;
Standard_Integer i, j, k, aNbS, aNbPBIn, aNbPBOn, aNbPBSc, aNbAV, nSp;
- Standard_Boolean bRunParallel;
Standard_Size aNbBF;
TopoDS_Face aFF, aFSD;
TopoDS_Edge aSp, aEE;
}
aFile.Open (OSD_ReadOnly, OSD_Protection());
- aFile.Read (aShader->mySource, aFile.Size());
+ aFile.Read (aShader->mySource, (int)aFile.Size());
aFile.Close();
return aShader;
} /* end if */
if ( k == 0 )
-
+ {
if ( path.Name ().UsefullLength () == 0 && path.Extension ().UsefullLength () == 0 )
goto badPath;
dir += path.Extension ();
} // end else
+ }
if ( dir.Value ( dir.UsefullLength () ) != TEXT( '\\' ) ) dir += TEXT( "\\" );
TCollection_AsciiString aDeclarations;
aDeclFile.Open (OSD_ReadOnly, OSD_Protection());
- aDeclFile.Read (aDeclarations, aDeclFile.Size());
+ aDeclFile.Read (aDeclarations, (int)aDeclFile.Size());
aDeclFile.Close();
for (Graphic3d_ShaderObjectList::Iterator anIter (theShaders);
Standard_OStream& TDataStd_NamedData::Dump (Standard_OStream& anOS) const
{
anOS << "NamedData: ";
- anOS << "\tIntegers = " << HasIntegers() ? myIntegers->Map().Extent() : 0;
- anOS << "\tReals = " << HasReals() ? myReals->Map().Extent() : 0;
- anOS << "\tStrings = " << HasStrings() ? myStrings->Map().Extent() : 0;
- anOS << "\tBytes = " << HasBytes() ? myBytes->Map().Extent() : 0;
- anOS << "\tArraysOfIntegers = " << HasArraysOfIntegers() ? myArraysOfIntegers->Map().Extent() : 0;
- anOS << "\tArraysOfReals = " << HasArraysOfReals() ? myArraysOfReals->Map().Extent() : 0;
+ anOS << "\tIntegers = " << (HasIntegers() ? myIntegers->Map().Extent() : 0);
+ anOS << "\tReals = " << (HasReals() ? myReals->Map().Extent() : 0);
+ anOS << "\tStrings = " << (HasStrings() ? myStrings->Map().Extent() : 0);
+ anOS << "\tBytes = " << (HasBytes() ? myBytes->Map().Extent() : 0);
+ anOS << "\tArraysOfIntegers = " << (HasArraysOfIntegers() ? myArraysOfIntegers->Map().Extent() : 0);
+ anOS << "\tArraysOfReals = " << (HasArraysOfReals() ? myArraysOfReals->Map().Extent() : 0);
return anOS;
}
NCollection_DataMap <int, int> mapNodeId;
// Count non-degenerated triangles
- const int nNodes = myCoords->Length();
+ const int nNodes = (int)myCoords->Length();
for (i = 0; i < (int)myNbPolygons; i++) {
const Standard_Integer * arrIndice;
if (Polygon(i, arrIndice) == 3) {