MantisBT - Open CASCADE
View Issue Details
0028230Open CASCADE[OCCT] OCCT:Modeling Datapublic2016-12-16 10:302017-09-29 16:31
msv 
apn 
normalminor 
closedfixed 
[OCCT] 7.1.0 
[OCCT] 7.2.0[OCCT] 7.2.0 
bugs moddata_3 bug28230
0028230: Convert C0 2d curve to C1 raises exception
The method Geom2dConvert::C0BSplineToC1BSplineCurve raises exception in some cases.
The corresponding draw command is splitc12d.
It is strange that if we call it with tolerance 1e-7 it does not raise exception, and does not modify the curve. The curve remains C0.
If we call it with tolerance 1e-6 the curve becomes C1.
If we call it with tolerance 1e-5 (default for draw command) it raises exception.
The method should have consistent behavior.

This bug was the cause of the bug #28221, which was fixed by another way.
restore bug28230_edge.brep e
mk2dcurve pc e 2
splitc12d pc 0
No tags attached.
? bug28230_edge.brep (80,321) 2016-12-16 12:13
https://tracker.dev.opencascade.org/
Issue History
2016-12-16 10:30msvNew Issue
2016-12-16 10:30msvAssigned To => msv
2016-12-16 10:32msvAssigned Tomsv => ifv
2016-12-16 10:32msvStatusnew => assigned
2016-12-16 10:32msvDescription Updatedbug_revision_view_page.php?rev_id=15599#r15599
2016-12-16 10:32msvRelationship addedrelated to 0028221
2016-12-16 12:13msvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15604#r15604
2016-12-16 12:13msvFile Added: bug28230_edge.brep
2017-01-10 17:55gitNote Added: 0062463
2017-01-10 17:56ifvNote Added: 0062464
2017-01-10 17:56ifvAssigned Toifv => msv
2017-01-10 17:56ifvStatusassigned => resolved
2017-01-19 12:10gitNote Added: 0062786
2017-01-19 12:11msvNote Added: 0062787
2017-01-19 12:11msvAssigned Tomsv => bugmaster
2017-01-19 12:11msvStatusresolved => reviewed
2017-01-20 18:01gitNote Added: 0062859
2017-01-20 18:02apvNote Added: 0062860
2017-01-20 18:02apvTest case number => bugs moddata_3 bug28230
2017-01-20 18:02apvAssigned Tobugmaster => apv
2017-01-24 14:29apvNote Added: 0062943
2017-01-24 14:29apvAssigned Toapv => bugmaster
2017-01-24 14:29apvStatusreviewed => tested
2017-01-27 16:15apnChangeset attached => occt master 2dad173d
2017-01-27 16:15apnAssigned Tobugmaster => apn
2017-01-27 16:15apnStatustested => verified
2017-01-27 16:15apnResolutionopen => fixed
2017-02-08 11:35gitNote Added: 0063598
2017-09-29 16:21aivFixed in Version => 7.2.0
2017-09-29 16:31aivStatusverified => closed

Notes
(0062463)
git   
2017-01-10 17:55   
Branch CR28230 has been created by ifv.

SHA-1: 7d3df48b6e5c8a8735ec0d94b499f8b3d1a4d64d


Detailed log of new commits:

Author: ifv
Date: Mon Jan 9 09:41:22 2017 +0300

    0028230: Convert C0 2d curve to C1 raises exception
    
    The treatment of small curves (length of curves is less then tolerance used for checking G1) is added in
    Geom2dConvert_CompCurveToBSplineCurve.cxx
(0062464)
ifv   
2017-01-10 17:56   
Branch CR28230 is ready for review
(0062786)
git   
2017-01-19 12:10   
Branch CR28230 has been updated by msv.

SHA-1: c85d5631173419be790bafdd368bb13145210f36


Detailed log of new commits:

Author: msv
Date: Thu Jan 19 12:10:13 2017 +0300

    // small optimization and creation of test case

(0062787)
msv   
2017-01-19 12:11   
Please test.
(0062859)
git   
2017-01-20 18:01   
Branch CR28230 has been updated forcibly by apv.

SHA-1: 1e99695a7d46405196a585d15dc0369e24c72426
(0062860)
apv   
2017-01-20 18:02   
Branch CR28230 has been rebased on the current master
(0062943)
apv   
2017-01-24 14:29   
Dear BugMaster,

Branch CR28230 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 1e99695a7d46405196a585d15dc0369e24c72426

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MasOS: 0 (0 on master)
products component:
   Linux: 63
   Windows: 0
   MacOS: 1163

Regressions/Differences:
Not detected

Testing cases:
bugs moddata_3 bug28230 - OK
http://occt-tests/CR28230-master-OCCT/Debian70-64/bugs/moddata_3/bug28230.html [^]
http://occt-tests/CR28230-master-OCCT/Windows-64-VC10/bugs/moddata_3/bug28230.html [^]

Testing on Linux:
Total MEMORY difference: 92960529 / 92072858 [+0.96%]
Total CPU difference: 21099.150000000125 / 21062.360000000153 [+0.17%]

Testing on Windows:
Total MEMORY difference: 58324848 / 58324216 [+0.00%]
Total CPU difference: 19486.28771129849 / 19152.585972198493 [+1.74%]
(0063598)
git   
2017-02-08 11:35   
Branch CR28230 has been deleted by kgv.

SHA-1: 1e99695a7d46405196a585d15dc0369e24c72426