MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0027186Open CASCADE[OCCT] OCCT:Data Exchangepublic2016-02-18 18:582017-08-18 15:08
Reporterabv 
Assigned Togka 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] UnscheduledFixed in Version 
Summary0027186: IGES - reconsider creation of Undefined entity in case of failure
DescriptionCurrent implementation of method Interface_FileReaderTool::LoadedEntity() creates entity of undefined type if translation of entity of appropriate type set error flag (see the end of the method). This results in situation when properly defined and recognized entity gets loaded as undefined. This may be useful for more complete loading of all the data, however it can complicate interpretation of data where it is based on types of entities. Perhaps this shall be reconsidered so that entity of correct type is always produced, even if some its fields are nor read properly.

Additional information
and documentation updates
To reproduce in DRAW, read the IGES file used in test de iges_2 F9, then do command "entity 16233".

When entity is read as undefined, it gives this dump:

----------------------------

Draw[3]> enti 16233
  -- DUMP Entity n0 16233 level 4
 --- Entity 16233 ERRONEOUS, Content, Type cdl : IGESData_UndefinedEntity **
**
Check:1 -- Entity (n0:id) 16233: DE : 32465 type : 122 Type:122 0 TabulatedC
ylinder
Parameter Data : parameter 1 (Generatrix entity) is incorrect.
Parameter Data : parameter 1 (Generatrix entity) is incorrect.
Directory Entry (Field 13) : Color Number field is incorrect (Pointer or Integer
 between 0 and 8 was expected).

**** Dump IGES, level 4 ( Directory Part + Parameters, no Arrays ) ****

**** Entity Type:122 Form:0 Class:UndefinedEntity
              Directory Part
** Status Number : Blank:1 Subordinate:3 UseFlag:0 Hierarchy:1
**** Label : SUR130 SubScript:2489

              Graphic Attributes
** LineFont Value:2
** Level Value :1
** LineWeight Num:250 -> Value:0.25

**** Own Data ****

 -- Directory Entry Error Status = 512 --
 UNDEFINED ENTITY ...
7 Parameters (WARNING : Odd Integer Values Interpreted as Entities)
        [1]=2147428976 [2]=10.6687 [3]=13.1303 [4]=25.2 [5]=0
[6]=1 [7]=32467

**** End of Dump ****

 ** Data Check (One Entity) **
Check:1 -- Entity (n0:id) 16233: DE : 32465 type : 122 Type:122 0 TabulatedC
ylinder
Parameter Data : parameter 1 (Generatrix entity) is incorrect.
Parameter Data : parameter 1 (Generatrix entity) is incorrect.
Directory Entry (Field 13) : Color Number field is incorrect (Pointer or Integer
 between 0 and 8 was expected).


----------------------------

and when read as TabulatedCylinder, it gives this (note that fails are lost because of another bug):

----------------------------
Draw[3]> enti 16233
  -- DUMP Entity n0 16233 level 4
 --- Entity 16233 Type cdl : IGESGeom_TabulatedCylinder
**** Dump IGES, level 4 ( Directory Part + Parameters, no Arrays ) ****

**** Entity 16233:D32465 Type:122 Form:0 Class:TabulatedCylinder
              Directory Part
** Status Number : Blank:1 Subordinate:3 UseFlag:0 Hierarchy:1
**** Label : SUR130 SubScript:2489

              Graphic Attributes
** LineFont Value:2
** Level Value :1
** LineWeight Num:250 -> Value:0.25
** Color Ref : 10:D19
**** Own Data ****

IGESGeom_TabulatedCylinder
Directrix : (Null)
Terminate Point : (10.6687,13.1303,25.2)

**** Properties (nb:1) ****
16234:D32467 Type:406 Form:6007 Class:UndefinedEntity

**** End of Dump ****
----------------------------
TagsNo tags attached.
Test case numberbugs iges bug27186
Attached Files

- Relationships
related to 0027185newgka IGES - incorrect reading of DE for undefined entity 

-  Notes
(0069582)
mkv (tester)
2017-08-18 15:08

Problem described in issue is reproduced on current state of OCCT.

- Issue History
Date Modified Username Field Change
2016-02-18 18:58 abv New Issue
2016-02-18 18:58 abv Assigned To => gka
2016-02-18 18:59 abv Relationship added related to 0027185
2017-08-18 15:08 mkv Test case number => bugs iges bug27186
2017-08-18 15:08 mkv Note Added: 0069582


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker