1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_6/bug28266
ifv 9f2d973602 0028261: Chamfer fails on edge connected to cone's seam
Method GetType() of class GeomAdaptor_SurfaceOfRevolution was modified to create plane instead Cone or SurfaceOfRevolution for "plane like" within Precision::Confusion() restricted object.
For infinite objects Cone with semiangle > PI/2 - eps is replaced by SurfaceOfRevolution for eps < Precision::Confusion()
Tests cases are added

Small correction of shape names for issue CR28261_28266
2017-01-26 13:19:44 +03:00

28 lines
718 B
Plaintext

puts "========"
puts "OCC28266"
puts "========"
puts ""
#################################################
# Boolean CUT produces incorrect result with quasi-planar cone
#################################################
brestore [locate_data_file bug28261_face.brep] f
brestore [locate_data_file bug28266_tool1.brep] t1
brestore [locate_data_file bug28266_tool2.brep] t2
explode f E
mkcurve c f_1
cvalue c 0 x y z dx dy dz
revol rev f $x $y $z $dx $dy $dz 360
bcut r rev t1
checkshape r
checknbshapes r -solid 1 -face 86 -edge 267 -vertex 184
checkprops r -v 17215.5 -s 4033.34
bcut result r t2
checkshape result
checknbshapes result -solid 1 -face 90 -edge 278 -vertex 190
checkprops result -v 17215.5 -s 4033.52