Help!!! Triangulation -- IGES Import

Hi...
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.
// I want to remove the triangulation of the solid read from the IGES file.

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()));

(*((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

Stephane Routelous's picture

did you try BRepTools::Clean ?

saleem's picture

Yes i did try BRepTools::Clean, but it is not working.

Any help is appreciated.

Thanx
saleem

Stephane Routelous's picture

If BRepTools::Clean doesn't work, you should register a bug.

Serge's picture

Hi,

How do you find out that there is any triangulation?

Take into account that if you display your shape in the shading mode the triangulation is recomputed.

Regards.