// File: TopOpeBRepBuild_Builder.hxx // Created: Mon Jun 14 11:48:36 1993 // Author: Jean Yves LEBEY // #include #include #include #include #include #include #ifdef DEB Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GettraceCU(); Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GettraceCUV(); Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GettraceSPF(); Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GettraceSPS(); Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GetcontextSF2(); Standard_IMPORT Standard_Boolean TopOpeBRepBuild_GettraceSHEX(); #endif //======================================================================= //function : BuildFaces //purpose : //======================================================================= void TopOpeBRepBuild_Builder::BuildFaces(const Standard_Integer iS, const Handle(TopOpeBRepDS_HDataStructure)& HDS) { Standard_Real aTBSTol, aTBCTol; BRep_Builder aBB; TopoDS_Shape aFace; // //modified by NIZNHY-PKV Mon Dec 13 10:00:23 2010f const TopOpeBRepDS_Surface& aTBS=HDS->Surface(iS); aTBSTol=aTBS.Tolerance(); // myBuildTool.MakeFace(aFace, aTBS); // //myBuildTool.MakeFace(aFace,HDS->Surface(iS)); //modified by NIZNHY-PKV Mon Dec 13 10:01:03 2010t // TopOpeBRepBuild_WireEdgeSet WES(aFace, this); // #ifdef DEB Standard_Boolean tSE = TopOpeBRepBuild_GettraceSPF(); Standard_Boolean tCU = TopOpeBRepBuild_GettraceCU(); Standard_Boolean NtCUV = !TopOpeBRepBuild_GettraceCUV(); #endif // TopOpeBRepDS_CurveIterator SCurves(HDS->SurfaceCurves(iS)); for (; SCurves.More(); SCurves.Next()) { Standard_Integer iC = SCurves.Current(); const TopOpeBRepDS_Curve& CDS = HDS->Curve(iC); #ifdef DEB if (tSE) cout<NbSurfaces(); myNewFaces = new TopTools_HArray1OfListOfShape(0,n); for (iS = 1; iS <= n; iS++) BuildFaces(iS,HDS); }