View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021727 | Open CASCADE | OCCT:Modeling Algorithms | public | 2010-05-05 19:05 | 2015-05-14 16:23 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Target Version | 6.9.0 | Fixed in Version | 6.9.0 | ||
Summary | 0021727: BRepBuilderAPI_Copy (and possibly other similar tools) create new shape in Frozen state | ||||
Description | Tools like BREpBuilderAPI_Copy create a new shape which should be free; however they produce shape in frozen state. Try the following commands in DRAW: ========================= Draw[0]> pload MODELING Draw[1]> box b 10 10 10 Draw[2]> whatis b b is a shape SOLID FORWARD Free Modified Draw[3]> compound b c Draw[4]> whatis b b is a shape SOLID FORWARD Modified Draw[5]> tcopy b q q Draw[6]> whatis q q is a shape SOLID FORWARD Modified ============================= Note that shape b looses flag Free when it is added to compound; however q is new shape and should be Free | ||||
Steps To Reproduce | pload MODELING box b 10 10 10 whatis b compound b c whatis b tcopy b q whatis q | ||||
Tags | No tags attached. | ||||
Test case number | bugs modalg_6(011) bug21727 | ||||
|
This issue is no longer blocking for #25132, so correction is postponed to later release, also because the solution is not obvious. |
|
Branch CR21727 has been created by ink. SHA-1: e9c0c6103649f4f0711caa1d0b2ad04653652973 Detailed log of new commits: Author: ink Date: Thu Apr 16 11:09:26 2015 +0300 0021727: BRepBuilderAPI_Copy (and possibly other similar tools) create new shape in Frozen state Set the value of flag Frozen to false for shape created in BRepBuilderAPI_ModifyShape::DoModif(). |
|
It is not safe to reset Free flag in DoModif method, because myModifier can leave an old shape without creation of a new one. The better place to make the fix is in the file BRepTools_Modifier.cxx:547: result.Free (S.Free()); I propose to remove this line. If 'result' was got by EmptyCopied method the flag Free is always false. If 'result' is just a subshape that will be placed in a shape of upper level then the flag Free will be set when it is added to the parent shape. So, there is no necessity to set the flag Free directly. |
|
Branch CR21727 has been updated forcibly by ink. SHA-1: 2bbf2bb9e1e5ef64626d6436a76e0a181690d3ee |
|
Reviewed. |
|
Branch CR21727 has been updated forcibly by apv. SHA-1: 98d648cceef09fa560899d617c073b335f530700 |
|
Branch CR21727 has been updated forcibly by apv. SHA-1: 81f9b35e17c55ae6321aef122d78476cb13d48ab |
|
Branch CR21727 has been rebased on the current master |
|
Branch CR21727 has been updated by apv. SHA-1: 934fc04360dc39277e23ffb3b364bde694c9a278 Detailed log of new commits: Author: apv Date: Tue Apr 28 16:10:45 2015 +0300 Test-case for issue 0021727 |
|
Dear BugMaster, Branch CR21727 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested. SHA-1: 81f9b35e17c55ae6321aef122d78476cb13d48ab Number of compiler warnings: occt component: Linux: 18 (18 on master) Windows: 0 (0 on master) products component: Linux: 4 (4 on master) Windows: 0 (0 on master) Regressions/Differences: Not detected Testing cases: bugs modalg_6(011) bug21727 - OK http://occt-tests/CR21727-master-occt-64/Debian60-64/bugs/modalg_6/bug21727.html http://occt-tests/CR21727-master-occt-64/Windows-64-VC10/bugs/modalg_6/bug21727.html Testing on Linux: Total MEMORY difference: 94754087 / 94536502 [+0.23%] Total CPU difference: 54117.7799999996 / 51016.899999999456 [+6.08%] Testing on Windows: Total MEMORY difference: 57633079 / 57268183 [+0.64%] Total CPU difference: 16362.492487098909 / 15811.13815279897 [+3.49%] |
|
Branch CR21727 has been deleted by inv. SHA-1: 934fc04360dc39277e23ffb3b364bde694c9a278 |
occt: master 062d7dfd 2015-04-30 11:09:32
Committer: bugmaster Details Diff |
0021727: BRepBuilderAPI_Copy (and possibly other similar tools) create new shape in Frozen state Set the value of flag Frozen to false for shape created in BRepTools_Modifier. If shape is not newly created then value of flag Frozen don't changed. Test-case for issue 0021727 |
Affected Issues 0021727 |
|
mod - src/BRepTools/BRepTools_Modifier.cxx | Diff File | ||
add - tests/bugs/modalg_6/bug21727 | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-05-13 16:18 | bugmaster | Assigned To | bugmaster => abv |
2010-05-13 16:18 | bugmaster | Status | new => assigned |
2011-08-02 11:31 | bugmaster | Category | OCCT:MOA => OCCT:Modeling Algorithms |
2014-08-21 14:29 |
|
Assigned To | abv => san |
2014-08-21 14:29 |
|
Fixed in Version | EMPTY => |
2014-08-21 14:29 |
|
Target Version | => 6.8.0 |
2014-08-21 14:29 |
|
Description Updated | |
2014-10-17 20:21 |
|
Note Added: 0033298 | |
2014-10-17 20:21 |
|
Assigned To | san => abv |
2014-10-17 20:21 |
|
Target Version | 6.8.0 => 7.1.0 |
2015-04-16 06:44 |
|
Assigned To | abv => ink |
2015-04-16 11:10 | git | Note Added: 0039821 | |
2015-04-16 11:14 |
|
Assigned To | ink => msv |
2015-04-16 11:14 |
|
Status | assigned => resolved |
2015-04-16 11:14 |
|
Steps to Reproduce Updated | |
2015-04-16 12:48 |
|
Note Added: 0039848 | |
2015-04-16 12:48 |
|
Assigned To | msv => ink |
2015-04-16 12:48 |
|
Status | resolved => assigned |
2015-04-16 13:11 | git | Note Added: 0039853 | |
2015-04-16 13:12 |
|
Assigned To | ink => msv |
2015-04-16 13:12 |
|
Status | assigned => resolved |
2015-04-16 13:24 |
|
Note Added: 0039855 | |
2015-04-16 13:24 |
|
Assigned To | msv => bugmaster |
2015-04-16 13:24 |
|
Status | resolved => reviewed |
2015-04-17 15:32 |
|
Assigned To | bugmaster => apv |
2015-04-17 16:51 | git | Note Added: 0039976 | |
2015-04-24 16:37 | git | Note Added: 0040218 | |
2015-04-24 16:38 |
|
Note Added: 0040219 | |
2015-04-28 16:11 | git | Note Added: 0040362 | |
2015-04-28 16:11 |
|
Test case number | => bugs modalg_6(011) bug21727 |
2015-04-28 17:23 |
|
Note Added: 0040369 | |
2015-04-28 17:23 |
|
Assigned To | apv => bugmaster |
2015-04-28 17:23 |
|
Status | reviewed => tested |
2015-05-07 11:18 | bugmaster | Changeset attached | => occt master 062d7dfd |
2015-05-07 11:18 | bugmaster | Status | tested => verified |
2015-05-07 11:18 | bugmaster | Resolution | open => fixed |
2015-05-07 11:34 | bugmaster | Target Version | 7.1.0 => 6.9.0 |
2015-05-14 15:28 |
|
Status | verified => closed |
2015-05-14 15:30 |
|
Fixed in Version | => 6.9.0 |
2015-05-14 16:23 | git | Note Added: 0040919 |