MantisBT - Open CASCADE
View Issue Details
0026047Open CASCADE[OCCT] OCCT:Data Exchangepublic2015-04-10 12:172020-11-28 13:05
ado 
dpasukhi 
normalmajor 
verifiedfixed 
ALL
[OCCT] 6.9.0 
[OCCT] 7.6.0* 
bugs/iges/bug26047
0026047: Data Exchange - Lost colors for IGES export
The problem extracted from the 25688.
It's reproduced on android and win64
1. Open pencil.igs from Samples
2. Set Faces in the Options - Export IGES options
4. Save it as IGES
3. Open saved file
=> colors of conical and cylindrical parts are lost (compare pencil_initial.jpg and pencil_exportIGES-Faces.jpg)
No tags attached.
child of 0026168assigned gka Lost colors for IGES import 
jpg pencil_initial.jpg (51,872) 2015-04-10 12:17
https://tracker.dev.opencascade.org/
jpg pencil_exportIGES-Faces.jpg (50,681) 2015-04-10 12:18
https://tracker.dev.opencascade.org/
Issue History
2015-04-10 12:17adoNew Issue
2015-04-10 12:17adoAssigned To => abv
2015-04-10 12:17adoFile Added: pencil_initial.jpg
2015-04-10 12:18adoFile Added: pencil_exportIGES-Faces.jpg
2015-04-15 19:35abvAssigned Toabv => ink
2015-04-15 19:35abvStatusnew => assigned
2015-04-24 11:06gitNote Added: 0040197
2015-04-24 11:39inkAssigned Toink => oan
2015-04-24 11:39inkStatusassigned => resolved
2015-04-27 14:48oanAssigned Tooan => gka
2015-04-30 12:13inkRelationship addedchild of 0026168
2015-05-26 15:11gkaNote Added: 0041567
2015-05-26 15:11gkaAssigned Togka => bugmaster
2015-05-26 15:11gkaStatusresolved => reviewed
2015-09-02 12:12aivProjectInternal => CAD Assistant
2015-09-02 12:12aivCategoryPRODUCTS:CAD Assistant => OCCT:Application Framework
2015-09-02 13:32aivProjectCAD Assistant => Open CASCADE
2015-09-02 13:40kgvCategoryOCCT:Application Framework => OCCT:Data Exchange
2015-09-02 13:40kgvProduct Version => 6.9.0
2015-09-02 13:40kgvTarget Version => 7.0.0
2015-09-02 14:48mkvAssigned Tobugmaster => mkv
2015-09-02 15:03kgvOS => L
2015-09-02 15:03kgvOS Version => L
2015-09-02 15:03kgvPlatformAndroid, win64 => A
2015-09-02 15:21gitNote Added: 0044966
2015-09-03 14:41mkvNote Added: 0045004
2015-09-03 14:41mkvNote Added: 0045005
2015-09-03 14:41mkvAssigned Tomkv => ink
2015-09-03 14:41mkvStatusreviewed => assigned
2015-09-03 14:42mkvNote Added: 0045006
2015-09-08 15:40inkNote Added: 0045236
2015-09-08 15:41inkNote Deleted: 0045236
2015-10-21 15:15gitNote Added: 0047282
2015-10-21 15:16kgvNote Added: 0047283
2015-10-21 15:17kgvNote Added: 0047284
2015-10-21 15:17kgvAssigned Toink => gka
2015-10-21 15:17kgvStatusassigned => feedback
2015-10-22 09:15gitNote Added: 0047308
2015-11-23 10:25gkaAssigned Togka => ink
2015-11-23 10:25gkaStatusfeedback => assigned
2015-12-18 14:39abvAssigned Toink => gka
2015-12-30 14:12inkStatusassigned => resolved
2016-02-08 18:07abvTarget Version7.0.0 => 7.1.0
2016-10-26 11:42gkaTarget Version7.1.0 => 7.2.0
2017-08-15 12:30gitNote Added: 0069380
2017-08-15 14:40abvNote Added: 0069393
2017-08-15 14:41abvTarget Version7.2.0 => 7.4.0
2017-08-15 14:41abvStatusresolved => assigned
2019-07-10 22:06abvTarget Version7.4.0 => 7.5.0
2020-03-04 11:50kgvSummaryLost colors for IGES export => Data Exchange - Lost colors for IGES export
2020-04-15 21:26gkaAssigned Togka => dpasukhi
2020-09-22 18:39gkaTarget Version7.5.0 => 7.6.0*
2020-11-11 23:30gitNote Added: 0096673
2020-11-12 09:00gitNote Added: 0096677
2020-11-12 14:20dpasukhiNote Added: 0096705
2020-11-12 14:20dpasukhiAssigned Todpasukhi => ika
2020-11-12 14:20dpasukhiStatusassigned => resolved
2020-11-12 14:29dpasukhiNote Edited: 0096705bug_revision_view_page.php?bugnote_id=96705#r23983
2020-11-12 15:08gkaNote Added: 0096709
2020-11-12 15:08gkaAssigned Toika => dpasukhi
2020-11-12 15:08gkaStatusresolved => assigned
2020-11-13 01:18gitNote Added: 0096733
2020-11-23 00:04gitNote Added: 0096998
2020-11-23 09:43dpasukhiNote Added: 0097004
2020-11-23 09:43dpasukhiAssigned Todpasukhi => gka
2020-11-23 09:43dpasukhiStatusassigned => resolved
2020-11-23 11:44gitNote Added: 0097006
2020-11-23 21:07gkaNote Added: 0097015
2020-11-23 21:07gkaAssigned Togka => bugmaster
2020-11-23 21:07gkaStatusresolved => reviewed
2020-11-28 12:45bugmasterNote Added: 0097116
2020-11-28 12:45bugmasterStatusreviewed => tested
2020-11-28 12:49bugmasterTest case number => bugs/iges/bug26047
2020-11-28 12:59dpasukhiChangeset attached => occt master 65eed8ff
2020-11-28 12:59dpasukhiAssigned Tobugmaster => dpasukhi
2020-11-28 12:59dpasukhiStatustested => verified
2020-11-28 12:59dpasukhiResolutionopen => fixed
2020-11-28 13:05gitNote Added: 0097132
2020-11-28 13:05gitNote Added: 0097137
2020-11-28 13:05gitNote Added: 0097139
2020-11-28 13:05gitNote Added: 0097140

Notes
(0040197)
git   
2015-04-24 11:06   
Branch CR26047 has been created by ink.

SHA-1: 232bd4bb65d13d2872f0203d474f2e72cf22f9de


Detailed log of new commits:

Author: ink
Date: Fri Apr 24 11:04:32 2015 +0300

    0026047: Lost colors for IGES export
(0041567)
gka   
2015-05-26 15:11   
Branch CR26047 is ready to test
(0044966)
git   
2015-09-02 15:21   
Branch CR26047 has been updated forcibly by mkv.

SHA-1: 6a2e8db6f7ed29b0da296cc30184b03e2296cf6d
(0045004)
mkv   
2015-09-03 14:41   
Dear BugMaster,
Branch CR26047 was rebased on current master of occt git-repository.
SHA-1: 6a2e8db6f7ed29b0da296cc30184b03e2296cf6d
(0045005)
mkv   
2015-09-03 14:41   
Dear BugMaster,
Branch CR26047 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
SHA-1: 6a2e8db6f7ed29b0da296cc30184b03e2296cf6d

Number of compiler warnings:

occt component :
Linux: 15 (15 on master)
Windows: 0 (0 on master)

products component :
Linux: 39 (39 on master)
Windows: 0 (0 on master)

Regressions/Differences/Improvements:
http://occt-tests/CR26047-master-products-64/Debian70-64/summary.html [^]
http://occt-tests/CR26047-master-products-64/Windows-64-VC10/summary.html [^]
sat doc_1 E9
sat doc_4 E7
sat doc_6 D3, H5

Testing cases:


Testing on Linux:
occt component :
Total MEMORY difference: 92039529 / 91192751 [+0.93%]
Total CPU difference: 17622.739999998987 / 17162.109999999382 [+2.68%]
products component :
Total MEMORY difference: 25141649 / 25144817 [-0.01%]
Total CPU difference: 7069.739999999988 / 7020.5499999999965 [+0.70%]

Testing on Windows:
occt component :
Total MEMORY difference: 57097354 / 57089920 [+0.01%]
Total CPU difference: 16345.098375598987 / 16439.931383498915 [-0.58%]
products component :
Total MEMORY difference: 16167781 / 16167831 [-0.00%]
Total CPU difference: 5356.341135299979 / 5316.560880299963 [+0.75%]

There are no differences in images found by testdiff.
(0045006)
mkv   
2015-09-03 14:42   
Dear ink,
could you please write tcl-script for reproduce this bug.
(0047282)
git   
2015-10-21 15:15   
Branch CR26047_1 has been created by kgv.

SHA-1: f4f3314674a63995ba84037df43aca9115317354


Detailed log of new commits:

Author: kgv
Date: Wed Oct 21 15:15:36 2015 +0300

    Add test case bugs/xde/bug26047

Author: ink
Date: Fri Apr 24 11:04:32 2015 +0300

    0026047: Lost colors for IGES export
(0047283)
kgv   
2015-10-21 15:16   
Test case has been added to the patch in branch CR26047_1.
(0047284)
kgv   
2015-10-21 15:17   
Dear gka,

could you please review test case and confirm tests reported as regression due to deviation from reference data?
(0047308)
git   
2015-10-22 09:15   
Branch CR26047 has been deleted by kgv.

SHA-1: 6a2e8db6f7ed29b0da296cc30184b03e2296cf6d
(0069380)
git   
2017-08-15 12:30   
Branch CR26047_2 has been created by abv.

SHA-1: 820980cccf4ca87161456f35d881a60a885635cc


Detailed log of new commits:

Author: ink
Date: Fri Apr 24 11:04:32 2015 +0300

    0026047: Lost colors for IGES export
    
    Method XSAlgo_AlgoContainer::MergeTransferInfo() is corrected to keep locations of sub-shapes when recording transfer results in the map.
    
    Add test case bugs/xde/bug26047
(0069393)
abv   
2017-08-15 14:40   
The fix leads to loss of some colors in ACIS tests:
sat doc_1 E9
sat doc_4 E7
sat doc_6 D3 H5
(0096673)
git   
2020-11-11 23:30   
Branch CR26047_3 has been created by dpasukhi.

SHA-1: 0d511dd78e99c17e109aa430f22d15668f9d4a19


Detailed log of new commits:

Author: dpasukhi
Date: Wed Nov 11 14:23:30 2020 +0300

    0026047: Data Exchange - Lost colors for IGES export
    
    - Fix problem with write shape with locations
    - Add support for adding sub-shapes (labels) together with sub-shapes without location (only for IGES)
(0096677)
git   
2020-11-12 09:00   
Branch CR26047_3 has been updated forcibly by dpasukhi.

SHA-1: 61baae0bf42dc1708d363d4ea6fa976b07052d62
(0096705)
dpasukhi   
2020-11-12 14:20   
(edited on: 2020-11-12 14:29)
Dear ika, please review CR26047_3
The bug was incorrect writing and reading of the shapes with locations.
- I update ShapeTools for adding subshape reference by no-locations(new class field, that enable before IGES import and disabled after it)
- Add support of find shape, that was edit(remove location), while export an IGES file

ALL tests are OK:
http://occt-tests/CR26047_3-master-dpasukhi-OCCT/Debian80-64/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-OCCT/Windows-64-VC14/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-Products/Debian80-64/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-Products/Windows-64-VC14/diff_summary.html [^]

(0096709)
gka   
2020-11-12 15:08   
Could you please remove new redundant flags from XCAFDoc_ShapeTool and add comments
(0096733)
git   
2020-11-13 01:18   
Branch CR26047_4 has been created by dpasukhi.

SHA-1: 969592d70fc79466299ee6a4e79288638c7ec133


Detailed log of new commits:

Author: dpasukhi
Date: Wed Nov 11 14:23:30 2020 +0300

    0026047: Data Exchange - Lost colors for IGES export
    
    - Fix problem with write shape with locations
    - Add support for adding sub-shapes (labels) together with sub-shapes without location
(0096998)
git   
2020-11-23 00:04   
Branch CR26047_4 has been updated forcibly by dpasukhi.

SHA-1: e28d2b2b5fbbf75ff3a607648e17a5d86b61a371
(0097004)
dpasukhi   
2020-11-23 09:43   
Dear gka, please review CR26047_4
The bug was incorrect writing and reading of the shapes with locations.
- I update ShapeTools for adding subshape reference by no-locations
- Add support of find shape, that was edit(remove location), while export an IGES file

All tests are OK:
http://occt-tests/CR26047_3-master-dpasukhi-OCCT/Debian80-64/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-OCCT/Windows-64-VC14/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-Products/Debian80-64/diff_summary.html [^]
http://occt-tests/CR26047_3-master-dpasukhi-Products/Windows-64-VC14/diff_summary.html [^]
(0097006)
git   
2020-11-23 11:44   
Branch CR26047_4 has been updated forcibly by dpasukhi.

SHA-1: 65eed8ff8e998318a380a2e0e14d59fc86e297c0
(0097015)
gka   
2020-11-23 21:07   
Branch CR26047_4 was reviewed
(0097116)
bugmaster   
2020-11-28 12:45   
Combination -
OCCT branch : IR-2020-11-27
master SHA - 765e5bc192b506e546ba77d881d4929dc0f69b1a
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-11-27 SHA - 17b49a570b557fbeb7326a4adb10fa231b058aed
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: 18049.94000000008 / 18024.44000000013 [+0.14%]
Products
Total CPU difference: 12325.960000000132 / 12167.95000000011 [+1.30%]
Windows-64-VC14:
OCCT
Total CPU difference: 19703.46875 / 19697.21875 [+0.03%]
Products
Total CPU difference: 13792.6875 / 13647.203125 [+1.07%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0097132)
git   
2020-11-28 13:05   
Branch CR26047_4 has been deleted by inv.

SHA-1: 65eed8ff8e998318a380a2e0e14d59fc86e297c0
(0097137)
git   
2020-11-28 13:05   
Branch CR26047_3 has been deleted by inv.

SHA-1: 61baae0bf42dc1708d363d4ea6fa976b07052d62
(0097139)
git   
2020-11-28 13:05   
Branch CR26047_2 has been deleted by inv.

SHA-1: 820980cccf4ca87161456f35d881a60a885635cc
(0097140)
git   
2020-11-28 13:05   
Branch CR26047_1 has been deleted by inv.

SHA-1: f4f3314674a63995ba84037df43aca9115317354