BRepAlgoAPI_Fuse SimplifyResult() for BRepPrimAPI_MakePrism without fuse

Hi guys! Is any method to make "optimize" prizm solid from BRepPrimAPI_MakePrism like it makes BRepAlgoAPI_Fuse::SimplifyResult?
I need to merge collinear wires segments to avoid face separation.
Now i do twice "extrude" of prizm by BRepPrimAPI_MakePrism and after - fuse it and after - SimplifyResult(), but this is wrong way of course :)

What is the correct way to remove extra edges on faces after extrusion by BRepPrimAPI_MakePrism?

Attachments: 
Mikhail Sazonov's picture

Hi,
Use the class ShapeUpgrade_UnifySameDomain.

Caleb Smith's picture

ohh danke :)