mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0030817: Modeling Algorithms - BRepOffsetAPI_MakePipeShell produces invalid result
BRepFill_TrimShellCorner::CheckAndOrientEdges() - When orienting next edge in a sequence take into account the Orientation of the previous edge. Test cases for the issue.
This commit is contained in:
19
tests/bugs/modalg_7/bug30794_1
Normal file
19
tests/bugs/modalg_7/bug30794_1
Normal file
@@ -0,0 +1,19 @@
|
||||
puts "========"
|
||||
puts "0030794: BRepOffsetAPI_MakePipeShell: shape is produced with artifacts"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file bug30794_shapes1.brep] c
|
||||
explode c
|
||||
|
||||
unifysamedom spine c_1
|
||||
mksweep spine
|
||||
addsweep c_2
|
||||
buildsweep result -C -S
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -s 1.24302e+06 -v 5.64101e+06
|
||||
checknbshapes result -wire 14 -face 14 -shell 1 -solid 1 -t
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
23
tests/bugs/modalg_7/bug30794_2
Normal file
23
tests/bugs/modalg_7/bug30794_2
Normal file
@@ -0,0 +1,23 @@
|
||||
puts "TODO OCC30794 ALL: Faulty shapes in variables"
|
||||
puts "TODO OCC30794 ALL: Error : The area of result shape is"
|
||||
puts "TODO OCC30794 ALL: Error : The volume of result shape is"
|
||||
puts "TODO OCC30794 ALL: Error : is WRONG because number of"
|
||||
|
||||
puts "========"
|
||||
puts "0030794: BRepOffsetAPI_MakePipeShell: shape is produced with artifacts"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file bug30794_shapes1.brep] c
|
||||
explode c
|
||||
|
||||
mksweep c_1
|
||||
addsweep c_2
|
||||
buildsweep result -C -S
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -s 1.24302e+06 -v 5.64101e+06
|
||||
checknbshapes result -wire 14 -face 14 -shell 1 -solid 1 -t
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
19
tests/bugs/modalg_7/bug30794_3
Normal file
19
tests/bugs/modalg_7/bug30794_3
Normal file
@@ -0,0 +1,19 @@
|
||||
puts "========"
|
||||
puts "0030794: BRepOffsetAPI_MakePipeShell: shape is produced with artifacts"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file bug30794_shapes2.brep] c
|
||||
explode c
|
||||
|
||||
unifysamedom spine c_1
|
||||
mksweep spine
|
||||
addsweep c_2
|
||||
buildsweep result -C -S
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -s 883273 -v 1.09918e+07
|
||||
checknbshapes result -wire 6 -face 6 -shell 1 -solid 1 -t
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
22
tests/bugs/modalg_7/bug30794_4
Normal file
22
tests/bugs/modalg_7/bug30794_4
Normal file
@@ -0,0 +1,22 @@
|
||||
puts "TODO OCC30794 ALL: Faulty shapes in variables"
|
||||
puts "TODO OCC30794 ALL: Error : The volume of result shape is"
|
||||
puts "TODO OCC30794 ALL: Error : is WRONG because number of"
|
||||
|
||||
puts "========"
|
||||
puts "0030794: BRepOffsetAPI_MakePipeShell: shape is produced with artifacts"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file bug30794_shapes2.brep] c
|
||||
explode c
|
||||
|
||||
mksweep c_1
|
||||
addsweep c_2
|
||||
buildsweep result -C -S
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -s 883273 -v 1.09918e+07
|
||||
checknbshapes result -wire 6 -face 6 -shell 1 -solid 1 -t
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
18
tests/bugs/modalg_7/bug30817
Normal file
18
tests/bugs/modalg_7/bug30817
Normal file
@@ -0,0 +1,18 @@
|
||||
puts "========"
|
||||
puts "0030817: Modeling Algorithms - BRepOffsetAPI_MakePipeShell produces invalid result"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
binrestore [locate_data_file bug30794_shapes.bin] c
|
||||
explode c
|
||||
|
||||
mksweep c_1
|
||||
addsweep c_2
|
||||
buildsweep result -C -S
|
||||
|
||||
checkshape result
|
||||
|
||||
checkprops result -s 1.44508e+06 -v 1.78664e+07
|
||||
checknbshapes result -wire 7 -face 7 -shell 1 -solid 1 -t
|
||||
|
||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user