MantisBT - Community
View Issue Details
0024159Community[OCCT] OCCT:Data Exchangepublic2013-09-10 17:292014-11-11 12:58
goeranbarz 
bugmaster 
normalminor 
closedfixed 
WindowsVC++ 201232bit
[OCCT] 6.6.0 
[OCCT] 6.8.0[OCCT] 6.8.0 
de step_1(004) E3
0024159: Colors are not imported for Step-Files created with Inventor 2014
When I try to import the attached step-file, the colors are missing.
STEPConstruct_Styles::LoadStyles looks for entities of either StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel as the type, but the Step Library used with Autodesk Inventor 2014 seems to use another way to export the colors.
//read the Step File
Handle(TDocStd_Document) hDoc;
XCAFApp_Application::GetApplication()->NewDocument("MDTV_XCAF", hDoc);
STEPCAFControl_Reader reader;
reader.SetColorMode(true);
reader.ReadFile(strFileName);
reader.Transfer(hDoc);

//Access the Colors
Handle(XCAFDoc_ColorTool) hColorTool = XCAFDoc_DocumentTool::ColorTool(hDoc->Main());
TDF_LabelSequence Labels;
hColorTool->GetColors(Labels);//no color was imported
No tags attached.
? 2014_MEIN_HS_org.stp (183,614) 2013-09-10 17:29
https://tracker.dev.opencascade.org/
Issue History
2013-09-10 17:29goeranbarzNew Issue
2013-09-10 17:29goeranbarzAssigned To => gka
2013-09-10 17:29goeranbarzFile Added: 2014_MEIN_HS_org.stp
2014-07-03 14:17gkaAssigned Togka => dbv
2014-09-12 11:25abvTarget Version => 6.8.0
2014-09-23 17:46gitNote Added: 0032034
2014-09-23 17:46dbvStatusnew => assigned
2014-09-23 17:48dbvNote Added: 0032036
2014-09-23 17:48dbvAssigned Todbv => gka
2014-09-23 17:48dbvStatusassigned => resolved
2014-09-24 08:49abvNote Added: 0032051
2014-09-24 08:49abvAssigned Togka => bugmaster
2014-09-24 08:49abvStatusresolved => reviewed
2014-09-24 14:47apvAssigned Tobugmaster => apv
2014-09-24 15:58gitNote Added: 0032096
2014-09-25 14:14apvNote Added: 0032141
2014-09-25 14:15apvAssigned Toapv => dbv
2014-09-25 14:15apvStatusreviewed => assigned
2014-09-25 15:05dbvStatusassigned => resolved
2014-09-25 15:10dbvNote Added: 0032155
2014-09-25 15:10dbvAssigned Todbv => apv
2014-09-25 15:10dbvStatusresolved => reviewed
2014-09-25 17:02gitNote Added: 0032161
2014-09-25 17:04apvTest case number => de step_1(004) E3
2014-09-25 17:04apvAssigned Toapv => bugmaster
2014-09-25 17:04apvStatusreviewed => tested
2014-09-29 15:31bugmasterChangeset attached => occt master ec661e43
2014-09-29 15:31bugmasterStatustested => verified
2014-09-29 15:31bugmasterResolutionopen => fixed
2014-09-30 11:34gitNote Added: 0032387
2014-11-11 12:44aivFixed in Version => 6.8.0
2014-11-11 12:58aivStatusverified => closed

Notes
(0032034)
git   
2014-09-23 17:46   
Branch CR24159 has been created by dbv.

SHA-1: b353550f3c587586975ff744a3a6b3272f797536


Detailed log of new commits:

Author: dbv
Date: Tue Sep 23 17:45:55 2014 +0400

    0024159: Colors are not imported for Step-Files created with Inventor 2014
    
    Method STEPConstruct_Styles::LoadStyles() now imports StepVisual_StyledItem entities even if they was defined without StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel entity
(0032036)
dbv   
2014-09-23 17:48   
Method STEPConstruct_Styles::LoadStyles() now imports StepVisual_StyledItem entities even if they was defined without StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel entity

Dear gka, patch is ready be reviewed in branch CR24159
(0032051)
abv   
2014-09-24 08:49   
No remarks, please test
(0032096)
git   
2014-09-24 15:58   
Branch CR24159 has been updated forcibly by apv.

SHA-1: 9ee9971ee4e52e4498c827d5d44644d970e3bcf7
(0032141)
apv   
2014-09-25 14:14   
Dear BugMaster,

Branch CR24159 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 9ee9971ee4e52e4498c827d5d44644d970e3bcf7

Number of compiler warnings:
occt component:
   Linux: 15 (15 on master)
   Windows: 0 (0 on master)
   MacOS: 193 (193 on master)
products component :
   Linux: 11 (11 on master)
   Windows: 1 (1 on master)

Regressions/Differences:
http://occt-tests/CR24159-master-occt/Debian60-64/summary.html [^]
http://occt-tests/CR24159-master-occt/Windows-32-VC10/summary.html [^]
de step_1(004) A1, E3, J7, J8, J9, N7
de step_2(005) K4, K5, K8
de step_3(006) C9
de step_4(007) E3

Testing cases:
Not done

Testing on Linux:
Total MEMORY difference: 354699004 / 354707176
Total CPU difference: 46226.690000000046 / 44597.82000000009

Testing on Windows:
Total MEMORY difference: 244494736 / 241480544
Total CPU difference: 36830.28125 / 33949.359375
(0032155)
dbv   
2014-09-25 15:10   
Dear apv,

as now all the colors are read, following test cases should be updated:
de step_1(004) A1, E3, J7, J8, J9, N7
de step_2(005) K4, K5, K8
de step_3(006) C9
de step_4(007) E3


(0032161)
git   
2014-09-25 17:02   
Branch CR24159 has been updated by apv.

SHA-1: a64ea29cae946f4e8d4d4f5ba0c0d1682c2d77a3


Detailed log of new commits:

Author: apv
Date: Thu Sep 25 17:02:14 2014 +0400

    Update of reference data

(0032387)
git   
2014-09-30 11:34   
Branch CR24159 has been deleted by inv.

SHA-1: a64ea29cae946f4e8d4d4f5ba0c0d1682c2d77a3