//function : Transfer
//purpose : basic working method
//=======================================================================
+static void checkColorRange (Standard_Real& theCol)
+{
+ if ( theCol < 0. ) theCol = 0.;
+ if ( theCol > 100. ) theCol = 100.;
+}
Standard_Boolean IGESCAFControl_Reader::Transfer (Handle(TDocStd_Document) &doc)
{
else {
Standard_Real r, g, b;
color->RGBIntensity ( r, g, b );
+ checkColorRange ( r );
+ checkColorRange ( g );
+ checkColorRange ( b );
col.SetValues ( 0.01*r, 0.01*g, 0.01*b, Quantity_TOC_RGB );
}
}
/* Sending of message : No Terminal Section */
if (lesect[5] == 0) {
- IGESFile_Check3 (0,"XSTEP_20");
- return -1;
+ IGESFile_Check3 (1, "XSTEP_20");
+ //return -1;
}
void StepToTopoDS_TranslateShell::Init
(const Handle(StepShape_ConnectedFaceSet)& CFS, StepToTopoDS_Tool& aTool, StepToTopoDS_NMTool& NMTool)
{
-
+ //bug15697
+ if(CFS.IsNull())
+ return;
+
if (!aTool.IsBound(CFS)) {
BRep_Builder B;
{
return myError;
}
+