MantisBT - Community
View Issue Details
0028571Community[OCCT] OCCT:Modeling Algorithmspublic2017-03-20 07:352017-12-05 16:59
devocctgp 
msv 
normalminor 
newopen 
[OCCT] 7.1.0 
[OCCT] 7.4.0* 
bugs modalg_7 bug28571_1, bug28571_2
0028571: BRepOffsetAPI_MakeOffset build invalid wire
BRepOffsetAPI_MakeOffset build invalid wire.

input wire brep is in the uploaded file
test1 and test2's result brep are in the uploaded file
test1 and test2's result picture are in the uploaded file too
    {// test1
        BRepOffsetAPI_MakeOffset mf(input_wire, GeomAbs_Arc, false);
        mf.Perform(1, 0);
        auto resultshape = mf.Shape();
    }

    {// test2
        BRepOffsetAPI_MakeOffset mf(input_wire, GeomAbs_Arc, true);
        mf.Perform(1, 0);
        auto resultshape = mf.Shape();
    }


#### DRAW ####

restore inputwire.brep w

# case 1 - closed offset
mkoffset r w 1 1 a

# case 2 - open offset
openoffset r w 1 1 a
No tags attached.
related to 0026265assigned isn Open CASCADE Incorrect result of 2d offset 
? inputwire.brep (349,579) 2017-03-20 07:35
https://tracker.dev.opencascade.org/
? test1_offsetresult.brep (395,917) 2017-03-20 07:35
https://tracker.dev.opencascade.org/
? test2_offsetresult.brep (395,201) 2017-03-20 07:35
https://tracker.dev.opencascade.org/
png test1.png (17,500) 2017-03-20 07:36
https://tracker.dev.opencascade.org/
png test2.png (19,454) 2017-03-20 07:36
https://tracker.dev.opencascade.org/
Issue History
2017-03-20 07:35devocctgpNew Issue
2017-03-20 07:35devocctgpAssigned To => msv
2017-03-20 07:35devocctgpFile Added: inputwire.brep
2017-03-20 07:35devocctgpFile Added: test1_offsetresult.brep
2017-03-20 07:35devocctgpFile Added: test2_offsetresult.brep
2017-03-20 07:36devocctgpFile Added: test1.png
2017-03-20 07:36devocctgpFile Added: test2.png
2017-03-20 09:51amlNote Added: 0064430
2017-03-20 09:53msvRelationship addedrelated to 0026265
2017-03-20 09:54amlNote Deleted: 0064430
2017-03-20 10:08msvNote Added: 0064432
2017-03-20 10:08msvProduct Version => 7.1.0
2017-03-20 10:08msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16235#r16235
2017-03-20 10:08msvAdditional Information Updatedbug_revision_view_page.php?rev_id=16237#r16237
2017-03-20 10:08msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16238#r16238
2017-03-20 10:08msvAdditional Information Updatedbug_revision_view_page.php?rev_id=16239#r16239
2017-03-20 10:09msvDescription Updatedbug_revision_view_page.php?rev_id=16241#r16241
2017-03-20 10:09msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16242#r16242
2017-03-20 11:05devocctgpNote Added: 0064433
2017-03-20 11:10msvNote Added: 0064434
2017-03-20 11:50devocctgpNote Added: 0064436
2017-07-21 11:22msvTarget Version7.2.0 => 7.3.0
2017-08-31 18:01mkvTest case number => bugs modalg_7 bug28571_1, bug28571_2
2017-08-31 18:01mkvNote Added: 0070127
2017-12-05 16:59msvTarget Version7.3.0 => 7.4.0*

Notes
(0064432)
msv   
2017-03-20 10:08   
I have given the draw script in steps to reproduce.

However, I do not see any sense in making open offset on a closed wire. The flag IsOpenResult has only sense when the wire is open. In this case it defines whether the result must be an offset on the one side of the wire, or the closed contour around the wire.

I think the issue 0026265 will address removal of unwanted loops in the result.
(0064433)
devocctgp   
2017-03-20 11:05   
dear msv,
yes, open result for closed wire has no sense,i added the test just want give you more information to see,
thus,with a closed wire no matter the parameter is open or closed, the result should be closed .am i right?

and i will monitor the 26265 issue, thank u.
(0064434)
msv   
2017-03-20 11:10   
Theoretically, for a closed wire the result should not depend on the IsOpenResult flag, but some parts of code may do some special things depending on the flag, and we see this in the result.
(0064436)
devocctgp   
2017-03-20 11:50   
em,ok,got it!
(0070127)
mkv   
2017-08-31 18:01   
Problem described in issue is reproduced on current state of OCCT.