mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-30 13:05:50 +03:00
New features: class BOPTools_AlgoTools2D - method void BOPTools_AlgoTools2D::AdjustPCurveOnFace (const BRepAdaptor_Surface& aBAS, const Standard_Real aFirst, const Standard_Real aLast, const Handle(Geom2d_Curve)& aC2D, Handle(Geom2d_Curve)& aC2DA) has been added. The method uses the refetence to BRepAdaptor_Surface object as parameter. The fact allows to avoid redundant computations such as BRepTools::UVBounds(....) Changes: class BOPTools_AlgoTools2D - method: void BOPTools_AlgoTools2D::AdjustPCurveOnFace (const TopoDS_Face& aF, const Standard_Real aT1, const Standard_Real aT2, const Handle(Geom2d_Curve)& aC2D, Handle(Geom2d_Curve)& aC2DA) has been changed. The changes are to provide the consistency with I.1 - method: void BOPTools_AlgoTools2D::MakePCurveOnFace (const TopoDS_Face& aF, const Handle(Geom_Curve)& aC3D, const Standard_Real aT1, const Standard_Real aT2, Handle(Geom2d_Curve)& aC2D, Standard_Real& TolReached2d) has been changed. The changes are to provide the consistency with I.1 The restricted surface is used as data for the projection algorithm. Test case for CR25982
43 lines
717 B
Plaintext
Executable File
43 lines
717 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC25982"
|
|
puts "============"
|
|
puts ""
|
|
###############################
|
|
## Wrong result obtained by General Fuse operator.
|
|
###############################
|
|
|
|
restore [locate_data_file bug25982_human_head_3.brep] b1
|
|
|
|
tcopy b1 b2
|
|
tmirror b2 0 0 0 1 0 0
|
|
explode b1 f
|
|
explode b2 f
|
|
copy b1_4 b1
|
|
copy b2_4 b2
|
|
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects b1
|
|
baddtools b2
|
|
|
|
bfillds
|
|
bbuild result
|
|
|
|
set square 306.285
|
|
|
|
set nbshapes_expected "
|
|
Number of shapes in shape
|
|
VERTEX : 6
|
|
EDGE : 11
|
|
WIRE : 4
|
|
FACE : 2
|
|
SHELL : 0
|
|
SOLID : 0
|
|
COMPSOLID : 0
|
|
COMPOUND : 1
|
|
SHAPE : 24
|
|
"
|
|
checknbshapes result ${nbshapes_expected} 1 "Result obtained by General Fuse operator"
|
|
|
|
set 3dviewer 1
|