mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 01:58:22 +08:00
0028599: Replacement of old Boolean operations with new ones in BRepProj_Projection algorithm
The usage of *BRepAlgo_Section* has been replaced with the usage of *BRepAlgoAPI_Section* in *BRepProj_Projection* algorithm. The TODO statements have been removed from the failing test case in the "prj" grid as they are working correctly now. The following changes have been made to improve the performance *BRepAlgoAPI_Section*: 1. Revision of the *IntPolyh_Intersection* class to avoid repeated calculation of the deflection of the same triangulation. 2. Small revision of the Edge/Face intersection algorithm to perform Extrema computation on the whole intersection range of the edge instead of discrete ranges. 3. Implementation of the extrema computation for the Circle and Sphere. 4. Correct computation of the parameter of the point on the Circle.
This commit is contained in:
@@ -86,7 +86,7 @@ void GeomAPI_ExtremaCurveSurface::Init
|
||||
Extrema_ExtCS theExtCS(TheCurve,TheSurface,Tol,Tol);
|
||||
myExtCS = theExtCS;
|
||||
|
||||
myIsDone = myExtCS.IsDone() && ( myExtCS.NbExt() > 0);
|
||||
myIsDone = myExtCS.IsDone() && (myExtCS.IsParallel() || myExtCS.NbExt() > 0);
|
||||
|
||||
if ( myIsDone) {
|
||||
|
||||
@@ -129,7 +129,7 @@ void GeomAPI_ExtremaCurveSurface::Init
|
||||
Wmin,Wmax,Umin,Umax,Vmin,Vmax,Tol,Tol);
|
||||
myExtCS = theExtCS;
|
||||
|
||||
myIsDone = myExtCS.IsDone() && ( myExtCS.NbExt() > 0);
|
||||
myIsDone = myExtCS.IsDone() && (myExtCS.IsParallel() || myExtCS.NbExt() > 0);
|
||||
|
||||
if ( myIsDone) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user