MantisBT - Community
View Issue Details
0026334Community[OCCT] OCCT:Modeling Algorithmspublic2015-06-11 03:112016-04-20 15:50
Hayashi 
bugmaster 
normalminor 
closedfixed 
WindowsVC++ 201032 bit
[OCCT] 6.9.0 
[OCCT] 7.0.0[OCCT] 7.0.0 
bugs modalg_6 bug26334
0026334: BRepOffsetAPI_MakePipeShell returns the wrong shape
When a wire of attachment is used, the wrong shape is returned.
6.8.0 and 6.7.1 crashes.
BRep_Builder builder;
TopoDS_Wire w1, w2, w3;
BRepTools::Read(w1,"pw1.brep",builder);
BRepTools::Read(w2,"pw2.brep",builder);
BRepTools::Read(w3,"pw3.brep",builder);
BRepOffsetAPI_MakePipeShell make(w1);
make.Add(w2);
make.Add(w3);
make.Build();
make.Shape();
No tags attached.
zip wires.zip (7,190) 2015-06-11 03:11
https://tracker.dev.opencascade.org/
png result.png (51,478) 2015-06-11 03:12
https://tracker.dev.opencascade.org/
png curv.PNG (50,841) 2015-06-26 11:20
https://tracker.dev.opencascade.org/
png sweep.PNG (88,153) 2015-06-26 11:20
https://tracker.dev.opencascade.org/
Issue History
2015-06-11 03:11HayashiNew Issue
2015-06-11 03:11HayashiAssigned To => msv
2015-06-11 03:11HayashiFile Added: wires.zip
2015-06-11 03:12HayashiFile Added: result.png
2015-06-11 09:17msvAssigned Tomsv => ifv
2015-06-11 09:17msvTarget Version => 7.1.0
2015-06-26 10:57ifvStatusnew => assigned
2015-06-26 11:08ifvNote Added: 0042477
2015-06-26 11:08ifvAssigned Toifv => msv
2015-06-26 11:08ifvStatusassigned => resolved
2015-06-26 11:20ifvFile Added: curv.PNG
2015-06-26 11:20ifvFile Added: sweep.PNG
2015-06-26 11:23ifvNote Added: 0042478
2015-06-26 12:56HayashiNote Added: 0042489
2015-06-26 15:43msvAssigned Tomsv => bugmaster
2015-06-26 15:43msvStatusresolved => reviewed
2015-06-26 17:50mkvTest case number => Not needed
2015-06-26 17:50mkvStatusreviewed => tested
2015-07-02 13:43bugmasterNote Added: 0042671
2015-07-02 13:43bugmasterAssigned Tobugmaster => apn
2015-07-02 13:43bugmasterStatustested => feedback
2015-12-08 10:32bugmasterAssigned Toapn => mkv
2015-12-10 15:53gitNote Added: 0048970
2015-12-10 15:55mkvNote Added: 0048971
2015-12-10 15:56mkvTest case numberNot needed => bugs modalg_6 bug26334
2015-12-10 15:56mkvAssigned Tomkv => ifv
2015-12-10 16:09ifvNote Added: 0048973
2015-12-10 16:09ifvAssigned Toifv => bugmaster
2015-12-10 16:09ifvStatusfeedback => reviewed
2015-12-10 17:19mkvNote Added: 0048995
2015-12-10 17:19mkvStatusreviewed => tested
2015-12-18 15:25bugmasterChangeset attached => occt master 3da62e0e
2015-12-18 15:25bugmasterStatustested => verified
2015-12-18 15:25bugmasterResolutionopen => fixed
2015-12-21 12:53bugmasterTarget Version7.1.0 => 7.0.0
2016-04-17 14:00gitNote Added: 0053022
2016-04-20 15:42aivFixed in Version => 7.0.0
2016-04-20 15:50aivStatusverified => closed

Notes
(0042477)
ifv   
2015-06-26 11:08   
Some curves of w1 has very strong torsion (rotation of Frenet trihedron around tangent direction)and Corrected Frenet algorithm used by default for sweeping cannot compensate this.
For such sase it is better using Discrete trihedron algorithm, which can be set by method make.SetDiscreteMode()
(0042478)
ifv   
2015-06-26 11:23   
file curv.png is curvature plot of w1 to illustrate torsion.
file sweep.png is result using Discrete trihedron algorithm by commands:
Draw[6]> mksweep pw1
Draw[7]> addsweep pw2
Draw[8]> addsweep pw3
Draw[9]> setsweep -DT
Draw[10]> buildsweep sw
(0042489)
Hayashi   
2015-06-26 12:56   
Thank you for your investigation.
I confirmed that the shape that it's expected using SetDiscreteMode() returns by 6.7.1 and 6.9.0.
Please close.
(0042671)
bugmaster   
2015-07-02 13:43   
Andrey,

Please create testing case
(0048970)
git   
2015-12-10 15:53   
Branch CR26334 has been created by mkv.

SHA-1: a6bda85813149fcb4395b22f04c6f78858c4ad27


Detailed log of new commits:

Author: mkv
Date: Thu Dec 10 15:53:28 2015 +0300

    0026334: BRepOffsetAPI_MakePipeShell returns the wrong shape
(0048971)
mkv   
2015-12-10 15:55   
Dear ifv,
could you please review following test case
bugs modalg_6 bug26334

It is OK:
http://occt-tests/CR26949-master-occt-64/Debian70-64/bugs/modalg_6/bug26334.html [^]
http://occt-tests/CR26949-master-occt-64/Windows-64-VC10/bugs/modalg_6/bug26334.html [^]
bugs modalg_6 bug26334: OK
(0048973)
ifv   
2015-12-10 16:09   
Testseems to be OK
(0048995)
mkv   
2015-12-10 17:19   
Dear BugMaster,
Branch CR26334 is TESTED.
(0053022)
git   
2016-04-17 14:00   
Branch CR26334 has been deleted by kgv.

SHA-1: a6bda85813149fcb4395b22f04c6f78858c4ad27