Simplifying Shape

Hello Team,
I have some shell which has a lot of faces on the same plane ( like chess cells 8x8 ). I try to use ShapeUpgrade_UnifySameDomain, but without success.
Could you say what is wrong or advise another way to simplify shell.

Thanks in advance.
With respects, Eugene.

Here my code below:

ShapeUpgrade_UnifySameDomain unifiedShell;
unifiedShell.Initialize( shell, true, true, true );
unifiedShell.SetSafeInputMode( false );
unifiedShell.Build();

TopoDS_Solid* pResult = new TopoDS_Solid();
builder.MakeSolid( *pResult );
builder.Add( *pResult, unifiedShell.Shape() );
return pResult;

Eugene Zaliznyak's picture

Thank you, Guys for response.
I have solved my issue.

With respects, Eugene.

Mikael Aronsson's picture

Hi !

Thanks for the tip, that works, this is bit messy to use though, I have to setup the matrix myself or setup a gp_Trsf object and then copy that to a gp_GTrsf it would be nice to have the setScale(), setRotation(), setTranslation(), and a setScale( pnt, x, y, z) methods in the gp_GTrsf class and not just in the go_Trsf class.

Mikael