mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -30,6 +30,7 @@
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
|
||||
#include <BRepLib.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
@@ -1365,7 +1366,7 @@ void BuildSplitsOfFace(const TopoDS_Face& theFace,
|
||||
aFF.Orientation(TopAbs_FORWARD);
|
||||
//
|
||||
// build pcurves for edges on the face
|
||||
BOPTools_AlgoTools2D::BuildPCurveForEdgesOnPlane(aLE, aFF);
|
||||
BRepLib::BuildPCurveForEdgesOnPlane(aLE, aFF);
|
||||
//
|
||||
// build splits of faces
|
||||
BOPAlgo_BuilderFace aBF;
|
||||
|
Reference in New Issue
Block a user