mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Implementation of method "IsDeleted(...)" for MakeRevol and MakePrism algorithms. Problem (exception) occurs during history building and was caused by an attempt to obtain generated shape for subshape, which was really "deleted" by algorithm - this input subshape and its possible generated shape was not used in result.
24 lines
583 B
Plaintext
24 lines
583 B
Plaintext
puts "========"
|
|
puts "0030346: Modeling Algorithms - BRepPrimAPI_MakeRevol throws BRepSweep_Translation::MakeEmptyVertex"
|
|
puts "========"
|
|
puts ""
|
|
|
|
pload MODELING
|
|
|
|
sphere s 1
|
|
mkface f1 s 0 2*pi 0.785398163397448 1.5707963267949
|
|
prism r1 f1 0 0 2
|
|
savehistory h1
|
|
set s1 [dump h1]
|
|
if { !([regexp "0 Deleted" $s1] && [regexp "2 Generated" $s1])} {
|
|
puts "Error: wrong history h1"
|
|
}
|
|
#
|
|
mkface f2 s 0 5 0.785398163397448 1.5707963267949
|
|
prism r2 f2 0 0 2
|
|
savehistory h2
|
|
set s2 [dump h2]
|
|
if { !([regexp "0 Deleted" $s2] && [regexp "6 Generated" $s2])} {
|
|
puts "Error: wrong history h2"
|
|
}
|