#include <ChFi3d_Builder_0.hxx>
#include <TopOpeBRepDS_ListOfInterference.hxx>
-
+#include <BRepLib.hxx>
+#include <ShapeFix.hxx>
+#include <Precision.hxx>
#ifdef DRAW
#include <TestTopOpeTools.hxx>
#ifdef DEB
#include <OSD_Chronometer.hxx>
+
+
// variables for performances
cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<endl<<endl;
}
#endif
+ //
+ // Inspect the new faces to provide sameparameter
+ // if it is necessary
+ if (IsDone())
+ {
+ Standard_Real SameParTol = Precision::Confusion();
+ Standard_Integer aNbSurfaces, iF;
+ TopTools_ListIteratorOfListOfShape aIt;
+ //
+ aNbSurfaces=myDS->NbSurfaces();
+
+ for (iF=1; iF<=aNbSurfaces; ++iF) {
+ const TopTools_ListOfShape& aLF=myCoup->NewFaces(iF);
+ aIt.Initialize(aLF);
+ for (; aIt.More(); aIt.Next()) {
+ const TopoDS_Shape& aF=aIt.Value();
+ BRepLib::SameParameter(aF, SameParTol, Standard_True);
+ ShapeFix::SameParameter(aF, Standard_False, SameParTol);
+ }
+ }
+ }
}
//=======================================================================
ProjLib_ProjectedCurve::ProjLib_ProjectedCurve()
{
- myTolerance = Precision::PApproximation();
+ myTolerance = Precision::Confusion();
}
ProjLib_ProjectedCurve::ProjLib_ProjectedCurve
(const Handle(Adaptor3d_HSurface)& S)
{
- myTolerance = Precision::PApproximation();
+ myTolerance = Precision::Confusion();
Load(S);
}
(const Handle(Adaptor3d_HSurface)& S,
const Handle(Adaptor3d_HCurve)& C)
{
- myTolerance = Precision::PApproximation();
+ myTolerance = Precision::Confusion();
Load(S);
Load(C);
}
const Handle(Adaptor3d_HCurve)& C,
const Standard_Real Tol)
{
- myTolerance = Max(Tol, Precision::PApproximation());
+ myTolerance = Max(Tol, Precision::Confusion());
Load(S);
Load(C);
}
void ProjLib_ProjectedCurve::Load(const Handle(Adaptor3d_HCurve)& C)
{
- myTolerance = Max(myTolerance,Precision::PApproximation());
+ myTolerance = Max(myTolerance, Precision::Confusion());
myCurve = C;
Standard_Real FirstPar = C->FirstParameter();
Standard_Real LastPar = C->LastParameter();
TKTopAlgo
TKG3d
TKBool
+TKShHealing
## Test : K7
## Comment : from cts21020
## ====================================
-puts "TODO OCC22817 All:Faulty shapes in variables faulty_1 to faulty_14"
+puts "TODO OCC22817 All:Faulty shapes in variables faulty_1 to faulty_"
restore [locate_data_file CFI_cts21020.rle] a
explode a e
set os $env(os_type)
}
if {[string compare $group dist_angle] == 0} {
- puts "TODO OCC22909 All:Faulty shapes in variables faulty_1 to faulty_12"
+ puts "TODO OCC22909 All:Faulty shapes in variables faulty_1 to faulty_"
}
}