mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
0031812: IGES import - NURBS patches lost in the import process - 720
Correction for case invalid color definition to avoid considering an entity that has a number corresponding to the color field as erroneous if entity is not a color entity. Issue #322 Fix
This commit is contained in:
parent
4097ab152e
commit
80289f0312
@ -290,13 +290,15 @@ IGESData_IGESReaderTool::IGESData_IGESReaderTool
|
|||||||
if (v[14] < 0) {
|
if (v[14] < 0) {
|
||||||
fieldent = GetCasted(IGESData_IGESEntity,IR->BoundEntity( (1-v[14])/2 ));
|
fieldent = GetCasted(IGESData_IGESEntity,IR->BoundEntity( (1-v[14])/2 ));
|
||||||
Color = GetCasted(IGESData_ColorEntity, fieldent);
|
Color = GetCasted(IGESData_ColorEntity, fieldent);
|
||||||
|
//an entity that is not a color entity and has a number corresponding
|
||||||
|
//to the color field should not be considered erroneous
|
||||||
if (Color.IsNull()) {
|
if (Color.IsNull()) {
|
||||||
// Sending of message : Incorrect Color Number
|
// Sending of message : Incorrect Color Number
|
||||||
Message_Msg Msg34 ("XSTEP_34");
|
Message_Msg Msg34 ("XSTEP_34");
|
||||||
Msg34.Arg(thecnum);
|
Msg34.Arg(thecnum);
|
||||||
Msg34.Arg(thectyp.Type());
|
Msg34.Arg(thectyp.Type());
|
||||||
ach->SendWarning(Msg34);
|
ach->SendWarning(Msg34);
|
||||||
ent->InitDirFieldEntity(13,fieldent);
|
ent->InitDirFieldEntity(13, Color);
|
||||||
}
|
}
|
||||||
else ent->InitColor(Color);
|
else ent->InitColor(Color);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user