From 384db46a5a3219cc8e4d63e9bbda8d6535bddda5 Mon Sep 17 00:00:00 2001 From: emv <emv@opencascade.com> Date: Fri, 23 Mar 2018 07:50:13 +0300 Subject: [PATCH] 0029627: BRepOffsetAPI_NormalProjection class changes orientation of the result The problem is fixed by the fix for the issue #0029234. --- tests/bugs/modalg_7/bug29627 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs/modalg_7/bug29627 diff --git a/tests/bugs/modalg_7/bug29627 b/tests/bugs/modalg_7/bug29627 new file mode 100644 index 0000000000..8f9dd35121 --- /dev/null +++ b/tests/bugs/modalg_7/bug29627 @@ -0,0 +1,24 @@ +puts "========" +puts "OCC29627" +puts "========" +puts "" +################################################# +# BRepOffsetAPI_NormalProjection class changes orientation of the result +################################################# + +restore [locate_data_file bug29627_edge.brep] e +restore [locate_data_file bug29627_face.brep] f +nproject result e f + +explode result e + +set e_ori [lindex [whatis e] 5] +set r_ori [lindex [whatis result_1] 5] + +if {$e_ori != $r_ori} { + puts "Error: BRepOffsetAPI_NormalProjection changes orientation of projected edge" +} + +checkshape result +checkprops result -l 0.000374916 +checknbshapes result -vertex 2 -edge 1