MantisBT - Open CASCADE
View Issue Details
0025441Open CASCADE[OCCT] OCCT:Data Exchangepublic2014-10-31 21:312016-11-10 11:42
san 
bugmaster 
normalminor 
closedfixed 
[OCCT] 6.8.0 
[OCCT] 7.0.0[OCCT] 7.0.0 
bugs xde bug25441
0025441: XCAFDoc_ShapeTool::UpdateAssembly() does not update the back-references
XCAFDoc_ShapeTool::UpdateAssembly() rebuilds the assembly's shape.
However, it does not follow the back-references - i.e. the users of this assembly.
As the result, the higher-level assemblies referring this assembly will contain inconsistent shapes.

This problem was discovered the the context of XCAFDoc_ShapeTool::RemoveComponent() method call. However, XCAFDoc_ShapeTool::SetShape() method is free of this problem because it already implements the necessary processing.

It is proposed to make UpdateAssembly() responsible for traversing the back-references in bottom-up direction to ensure the shape data consistency in an XCAF document. Consequently, all methods that call UpdateAssembly() should be reviewed, e.g. duplicated code is to be removed from SetShape().
pload ALL
box b 0 0 0 1 1 1
box b1 1 1 1 10 10 10
NewDoc D
compound b c
compound c c1
XAddShape D c1 1
DFB D
XShow D
XSetShape D 0:1:1:3 b1
XShow D
No tags attached.
related to 0026314closed gka Method XCAFDoc_ShapeTool::SetShape() works not correctly. 
related to 0026353new apn Update of test case bugs xde bug25441 after fixes integration 0026302 and 0026216 
related to 0028082closed abv UpdateAssembly() method in shape tool is not recursive 
Issue History
2014-10-31 21:31sanNew Issue
2014-10-31 21:31sanAssigned To => gka
2015-06-03 12:57gkaAssigned Togka => ink
2015-06-03 12:57abvStatusnew => assigned
2015-06-04 14:42inkRelationship addedrelated to 0026314
2015-06-04 14:50inkNote Added: 0041942
2015-06-04 14:56inkAssigned Toink => gka
2015-06-04 14:56inkStatusassigned => resolved
2015-06-04 14:56inkSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10667#r10667
2015-06-05 14:21gkaNote Added: 0041978
2015-06-05 14:21gkaAssigned Togka => bugmaster
2015-06-05 14:21gkaStatusresolved => reviewed
2015-06-05 15:05apvAssigned Tobugmaster => apv
2015-06-08 15:40apvNote Added: 0042022
2015-06-17 13:00apvTest case number => bugs xde bug25441
2015-06-17 13:47apvNote Added: 0042190
2015-06-17 13:47apvAssigned Toapv => ink
2015-06-17 13:47apvStatusreviewed => assigned
2015-06-18 11:54apvAssigned Toink => apv
2015-06-18 11:54apvStatusassigned => feedback
2015-06-18 12:32apvNote Added: 0042227
2015-06-18 12:32apvAssigned Toapv => bugmaster
2015-06-18 12:32apvStatusfeedback => tested
2015-06-19 11:53bugmasterNote Added: 0042260
2015-06-19 11:53bugmasterStatustested => verified
2015-06-19 11:53bugmasterResolutionopen => fixed
2015-07-03 15:31bugmasterTarget Version7.1.0 => 7.0.0
2015-09-19 09:19abvRelationship addedrelated to 0026353
2016-04-20 15:44aivFixed in Version => 7.0.0
2016-04-20 15:48aivStatusverified => closed
2016-11-10 11:42ssvRelationship addedrelated to 0028082

Notes
(0041942)
ink   
2015-06-04 14:50   
Fixed in branch CR26314.
(0041978)
gka   
2015-06-05 14:21   
Branch CR26314 was reviewed
(0042022)
apv   
2015-06-08 15:40   
Awaiting solution for 0026314
(0042190)
apv   
2015-06-17 13:47   
Dear BugMaster,

Issue 0025441 has been fixed together with issue 0026314 in branch CR26314.

Results of testing case:
bugs xde bug25441 - FAILED
http://occt-tests/CR26314-master-occt-64/Debian70-64/bugs/xde/bug25441.html [^]
http://occt-tests/CR26314-master-occt-64/Windows-64-VC10/bugs/xde/bug25441.html [^]
(0042227)
apv   
2015-06-18 12:32   
Dear BugMaster,

Issue 0025441 has been fixed together with issue 0026314 in branch CR26314.

Results of testing case:
bugs xde bug25441 - OK
http://occt-tests/CR26314-master-occt-64/Debian70-64/bugs/xde/bug25441.html [^]
http://occt-tests/CR26314-master-occt-64/Windows-64-VC10/bugs/xde/bug25441.html [^]
(0042260)
bugmaster   
2015-06-19 11:53   
Fix has been integrated into master of occt repository in framework of issue 26314.