0030153: Visualization, TKOpenGl - AIS_ColoredShape::SynchronizeAspects() doesn't...
[occt.git] / src / ChFi3d / ChFi3d_Builder_6.cxx
index c41659d..54cdd6f 100644 (file)
 #include <TopTools_ListOfShape.hxx>
 
 #include <stdio.h>
-#ifdef OCCT_DEBUG
-// For measurements.
-#include <OSD_Chronometer.hxx>
-//static OSD_Chronometer appclock;
-#endif
 
 //#define DRAW 
 
@@ -692,10 +687,13 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
   Standard_Real length1,length2;
   length1=Data->FirstExtensionValue();
   length2=Data->LastExtensionValue();
+
+  Handle(Geom_BoundedSurface) aBndSurf = Surf;
   if (length1 > Precision::Confusion())
-    GeomLib::ExtendSurfByLength(Surf,length1,1,Standard_False,Standard_False);
+    GeomLib::ExtendSurfByLength(aBndSurf,length1,1,Standard_False,Standard_False);
   if (length2 >  Precision::Confusion())
-    GeomLib::ExtendSurfByLength(Surf,length2,1,Standard_False,Standard_True);
+    GeomLib::ExtendSurfByLength(aBndSurf,length2,1,Standard_False,Standard_True);
+  Surf = Handle(Geom_BSplineSurface)::DownCast (aBndSurf);
 
   //Correction of surface on extremities
   if (length1 <= Precision::Confusion())
@@ -1481,8 +1479,8 @@ Standard_Boolean ChFi3d_Builder::ComputeData
  const Standard_Boolean Appro,
  const Standard_Boolean Forward,
  const math_Vector& Soldep,
- Standard_Boolean& intf,
- Standard_Boolean& intl,
+ Standard_Integer& intf,
+ Standard_Integer& intl,
  Standard_Boolean& Gd1,
  Standard_Boolean& Gd2,
  Standard_Boolean& Gf1,