Mon, 02/10/2003 - 13:42
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
Mon, 02/10/2003 - 15:27
did you try BRepTools::Clean ?
Tue, 02/11/2003 - 06:41
Yes i did try BRepTools::Clean, but it is not working.
Any help is appreciated.
Thanx
saleem
Tue, 02/11/2003 - 18:09
If BRepTools::Clean doesn't work, you should register a bug.
Tue, 02/11/2003 - 18:15
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.