mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-06 04:37:55 +08:00
0021727: BRepBuilderAPI_Copy (and possibly other similar tools) create new shape in Frozen state
Set the value of flag Frozen to false for shape created in BRepTools_Modifier. If shape is not newly created then value of flag Frozen don't changed. Test-case for issue #21727
This commit is contained in:
@@ -544,7 +544,6 @@ Standard_Boolean BRepTools_Modifier::Rebuild
|
||||
// Set flag of the shape.
|
||||
result.Orientation(ResOr);
|
||||
|
||||
result.Free (S.Free());
|
||||
result.Modified (S.Modified());
|
||||
result.Checked (S.Checked());
|
||||
result.Orientable(S.Orientable());
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
puts "========"
|
||||
puts "OCC21727"
|
||||
puts "========"
|
||||
puts ""
|
||||
###########################################################################################
|
||||
# BRepBuilderAPI_Copy (and possibly other similar tools) create new shape in Frozen state
|
||||
###########################################################################################
|
||||
|
||||
box b 10 10 10
|
||||
set bug_info [whatis b]
|
||||
if {[lindex $bug_info 6] != "Free"} {
|
||||
puts "ERROR: OCC21727 is reproduced. Shape b does not have flag FREE."
|
||||
}
|
||||
compound b c
|
||||
set bug_info [whatis b]
|
||||
if {[lindex $bug_info 6] == "Free"} {
|
||||
puts "ERROR: OCC21727 is reproduced. Shape b has flag FREE."
|
||||
}
|
||||
tcopy b q
|
||||
set bug_info [whatis q]
|
||||
if {[lindex $bug_info 6] != "Free"} {
|
||||
puts "ERROR: OCC21727 is reproduced. Shape q does not have flag FREE."
|
||||
}
|
||||
Reference in New Issue
Block a user