mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028467: Improve UnifySameDomain performance
This patch turns off some not needed modes of fix in the called ShapeFix_Face algorithm. It stores pcurves on planes in the edges to avoid repeated computation of the same pcurves many times (it is done only when SafeInputMode is false). It avoids unnecessary replace/apply actions in the modification context. It removes the code that makes decomposition of surface of the face on several faces. The new command buildpcurvesonplane has been added, which builds and stores pcurves of edges on planar faces. This is useful for investigations how presence of pcurves on planes influence performance of algorithms. Make drawing of dimension line in snowflake test independent on the order of vertices in the result.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <BOPTools_ListOfCoupleOfShape.hxx>
|
||||
#include <BOPTools_MapOfSet.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRepLib.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomLib.hxx>
|
||||
@@ -438,7 +439,7 @@ void BOPAlgo_Builder::BuildSplitFaces()
|
||||
//
|
||||
if (!myPaveFiller->NonDestructive()) {
|
||||
// speed up for planar faces
|
||||
BOPTools_AlgoTools2D::BuildPCurveForEdgesOnPlane (aLE, aFF);
|
||||
BRepLib::BuildPCurveForEdgesOnPlane(aLE, aFF);
|
||||
}
|
||||
// 3 Build split faces
|
||||
BOPAlgo_BuilderFace& aBF=aVBF.Append1();
|
||||
|
@@ -40,6 +40,7 @@
|
||||
#include <BOPDS_VectorOfListOfPaveBlock.hxx>
|
||||
#include <BOPTools_AlgoTools.hxx>
|
||||
#include <BOPTools_AlgoTools2D.hxx>
|
||||
#include <BRepLib.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepBndLib.hxx>
|
||||
@@ -365,7 +366,7 @@ class BOPAlgo_BPC {
|
||||
}
|
||||
//
|
||||
void Perform() {
|
||||
BOPTools_AlgoTools2D::BuildPCurveForEdgeOnPlane (myE, myF, myCurve, myToUpdate);
|
||||
BRepLib::BuildPCurveForEdgeOnPlane(myE, myF, myCurve, myToUpdate);
|
||||
};
|
||||
//
|
||||
protected:
|
||||
|
@@ -44,6 +44,7 @@
|
||||
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
|
||||
#include <BRepLib.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
|
||||
@@ -659,7 +660,7 @@ Standard_Boolean BOPAlgo_Tools::WiresToFaces(const TopoDS_Shape& theWires,
|
||||
OCC_CATCH_SIGNALS
|
||||
//
|
||||
// build pcurves for edges on this face
|
||||
BOPTools_AlgoTools2D::BuildPCurveForEdgesOnPlane(aLE, aFF);
|
||||
BRepLib::BuildPCurveForEdgesOnPlane(aLE, aFF);
|
||||
//
|
||||
// split the face with the edges
|
||||
BOPAlgo_BuilderFace aBF;
|
||||
|
Reference in New Issue
Block a user