Archived issue #0028684
BRepOffsetAPI_MakeOffset produces wire with another orientation in compare with source wire
Description
Wires from Steps To Reproduce are oriented correctly.
However, some result wires have orientation different from orientation of source wire.
It seems depends on offset value (positive or negative), but why?
However, some result wires have orientation different from orientation of source wire.
It seems depends on offset value (positive or negative), but why?
Steps to reproduce
******** SCRIPT # 1 (closed wire):
circle cc 0 0 0 100
mkedge ee cc
wire ww ee
mkoffset r1 ww 1 10 i
mkoffset r2 ww 1 -10 i
axo
don ww r1_1 r2_1
vori ww
vori r1_1
# Reversed wire ==> WRONG
vori r2_1
# Not reversed wire ==> OK
------------------------------------------------------------------------
******** SCRIPT # 2 (open wire, tests\bugs\modalg_5\bug25298_02):
restore [locate_data_file bug25225_2869_open.brep] a
openoffset r1 a 1 10 i
openoffset r2 a 1 -10 i
axo
don a r1_1 r2_1
vori a
vori r1_1
# Reversed wire ==> WRONG
vori r2_1
# Not reversed wire ==> OK
circle cc 0 0 0 100
mkedge ee cc
wire ww ee
mkoffset r1 ww 1 10 i
mkoffset r2 ww 1 -10 i
axo
don ww r1_1 r2_1
vori ww
vori r1_1
# Reversed wire ==> WRONG
vori r2_1
# Not reversed wire ==> OK
------------------------------------------------------------------------
******** SCRIPT # 2 (open wire, tests\bugs\modalg_5\bug25298_02):
restore [locate_data_file bug25225_2869_open.brep] a
openoffset r1 a 1 10 i
openoffset r2 a 1 -10 i
axo
don a r1_1 r2_1
vori a
vori r1_1
# Reversed wire ==> WRONG
vori r2_1
# Not reversed wire ==> OK
Public activity
6 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: Commenter 2
Date: Tue Aug 24 22:47:18 2021 +0300
0028684: BRepOffsetAPI_MakeOffset produces wire with another orientation in compare with source wire
Added flag to reverse resulting shape, if it was reverse in BuildDomains() to bringing to the same direction as the original shape
[revision removed]
Detailed log of new commits:
Author: Commenter 2
Date: Tue Aug 24 22:47:18 2021 +0300
0028684: BRepOffsetAPI_MakeOffset produces wire with another orientation in compare with source wire
Added flag to reverse resulting shape, if it was reverse in BuildDomains() to bringing to the same direction as the original shape
Branch for review:
OCCT - CR28684
Results of testing:
http://jenkins-test-occt.nnov.opencascade.com/view/CR28684-master-Commenter 2/view/COMPARE/
OCCT - CR28684
Results of testing:
http://jenkins-test-occt.nnov.opencascade.com/view/CR28684-master-Commenter 2/view/COMPARE/
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Reviewed.
Branches for integration:
OCCT – CR28684
Products – NOT
Branches for integration:
OCCT – CR28684
Products – NOT
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17495.94000000042 / 17441.55000000031 [+0.31%]
Products
Total CPU difference: 11565.440000000113 / 11534.270000000102 [+0.27%]
Windows-64-VC14:
OCCT
Total CPU difference: 19307.140625 / 19200.421875 [+0.56%]
Products
Total CPU difference: 12917.859375 / 12874.53125 [+0.34%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17495.94000000042 / 17441.55000000031 [+0.31%]
Products
Total CPU difference: 11565.440000000113 / 11534.270000000102 [+0.27%]
Windows-64-VC14:
OCCT
Total CPU difference: 19307.140625 / 19200.421875 [+0.56%]
Products
Total CPU difference: 12917.859375 / 12874.53125 [+0.34%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records