Iges Warning code

When I use GESControl_Reader to translate iges file, I got some warning code from log file, such as:
Entity DE : 5 type : 106
--> Warning : IGES_1120
Where can I get the map of warnig code and warning messege?

Thanks

Stephane Routelous's picture

In the source ?

for the entity type, see the pdf file : iges40.pdf

for the warning :

from IGESToBRep_TopoCurve.cxx line 1030 :

MoniTool_Msg Msg1120("IGES_1120");// "Wire not always implemented."
SendWarning(start,Msg1120);

Joe Aleman's picture

Hello,

Where would I find this pdf file?

r/Joe

Henry Durrant's picture

You can download it from the Documents section it is zipped with the other OC pdf documents

saleem's picture

After reading the IGES file, the faces of the solid are triangulated.
How do i remove the triangulation from the solid ?

Any help is appreciated.

Thanx
Saleem

Serge's picture

Hi,

do the following for every face in the solid

(*((Handle(BRep_TFace)*)&aFace.TShape()))->Triangulation(NULL);

As a result all faces won't have any triangulation

Serge

Stephane Routelous's picture

Well, I think BRepTools::Clean is the good way to do it.
As an advice, never change directly the TShapes from the shapes ( in your case using BRep_TFace ). It is very dangerous and can give unexpected results.

HTH

saleem's picture

Hi...
Thanx for the info....
But iam facing some problems,,,
Refer the sample code below

// Instructions for use.
// Read an IGES file and select the shape of the IGES file and call this function

// The triangulation is still there.

Void CBottleDoc::OnRemoveTriangulation()
{
TopoDS_shape shape;
Handle(AIS_SHAPE) S;
myAISContext->InitSelected();

shape = myAISContext->SelectedShape();
if(shape.ISNull())
{
AfxMessageBox("");
return;
}

TopExp_Explorer exploface(shape, TOPAbs_Face);
int count = 0;

while(exploface.More())
{
++nCount;
const TopoDS_Face face = (ToppDS::Face(exploface.Current()));

// As per your suggestion
(*((Handle(BRep_TFace)*) *face.Tshape()))->Triangulation(NULL);

exploface.Next()
}

}

Is there any thing else to be done.
Any help is greatly appreciated.

Thanx
Regards
saleem

Francois Lauzon's picture

Hello,
you need to load the message files so that the message will be translated directly instead of giving you an IGES_1120 warning, to do so:

IGESControl_Controller::Init();
MoniMessage_MsgFile::LoadFromEnv("CSF_XSMessage","IGES");

and define the CSF_XSMessage environment variable to the location of the file IGES.us (it is distributed in ${CASROOT}/src/XSMessage/IGES.us). You also have the french version .fr.
There is some other message files you could also load for other component, XSTEP.us for example. Look for all files ending with .us to give you an idea.

Good Luck,
Francois