1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
gelin
f50111ec50 0032811: Bad result of sweep operation due to Surface Surface Intersect Bug 2022-01-29 20:08:52 +08:00
3 changed files with 18 additions and 1 deletions

View File

@@ -504,6 +504,7 @@ void IntTools_FaceFace::Perform (const TopoDS_Face& aF1,
{
const Standard_Real UVMaxStep = IntPatch_Intersection::DefineUVMaxStep(myHS1, dom1, myHS2, dom2);
// TODO: bug32811 Deflection change to 0.01 can work
const Standard_Real Deflection = 0.1;
myIntersector.SetTolerances(TolArc, TolTang, UVMaxStep, Deflection);
}

View File

@@ -448,5 +448,5 @@ void IntTools_TopolTool::SamplePnts(const Standard_Real theDefl,
myV0 = myVPars->Value(1);
myDU = (myUPars->Value(myNbSmplU) - myU0)/(myNbSmplU-1);
myDV = (myVPars->Value(myNbSmplV) - myU0)/(myNbSmplV-1);
myDV = (myVPars->Value(myNbSmplV) - myV0)/(myNbSmplV-1);
}

16
tests/pipe/bugs/bug32811 Normal file
View File

@@ -0,0 +1,16 @@
puts "TODO ? Surface Surface Intersect Lost One Intersect Curve"
puts "0032811: Bad result of sweep operation due to Surface Surface Intersect Bug"
puts "========"
puts ""
restore [locate_data_file CR32811_path.brep] p
restore [locate_data_file CR32811_profile.brep] pr
mksweep p
setsweep -CF
addsweep pr
buildsweep result -C -S
checkshape result
checknbshapes result -vertex 184 -edge 368 -wire 184 -face 184 -shell 1