Wed, 08/12/2020 - 10:01
Forums:
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;
Wed, 08/12/2020 - 20:07
Thank you, Guys for response.
I have solved my issue.
With respects, Eugene.
Tue, 03/07/2000 - 01:59
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