6 restore [locate_data_file buc60533a.brep] part
11 restore [locate_data_file buc60533b.brep] trTool
12 puts [checkshape trTool]
13 #puts "Tolerance trTool"
14 #computetolerance trTool
17 vertex v 10000 15000 -15000
18 halfspace hs trTool 10000 15000 -15000
22 #*************************************************
23 if [catch {bcut result part hs} catch_result] {
24 puts "Faulty BUC60533: function CUT works wrongly"
26 puts " BUC60533 OK: function CUT works properly"
28 #*************************************************
30 #set che [checkshape res r]
31 #set err [lindex $che [expr [llength $che] - 1]]
33 # puts "Faulty : mistakes are found in checked shape by checkshape command"
35 # puts "Checking by checkshape - OK"
46 #set tolerance [ maxtolerance res ]
47 #set MaxFaceTolerance [ lindex $tolerance 14 ]
48 #set MaxEdgeTolerance [ lindex $tolerance 20 ]
49 #set MaxVertexTolerance [ lindex $tolerance 26 ]
50 #if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
51 #puts "Faulty :Tolerance of shape is more then 1.0"
53 #puts "Tolerance of shape is less then 1.0"
57 # Objectif : Couper part par trTool
59 # part est construite a partir d'un semi de point et de telle facon que u=x et v=y.
60 # On obtient une Geom_BSplineSurface. On cree alors la topologie a partir de cette
61 # surface via BRepAPI::MakeFace(surface)
62 # Dans notre code, a aucun moment, nous
63 # n'initialisons la tolerance.
65 # Le cut n'est pas effectue car une exception est levee :
66 # An exception was caught Standard_ConstructionError:
67 # ** Exception ** Standard_ConstructionError:
69 set square 1.63191e+07