For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

ShapeUpgrade_UnifySameDomain unif(shape, false, true, false) fails in particular cases

Massimo Del Fedele's picture

To reproduce :

Draw a sphere
cut it in 2 semi-spheres by a vertical plane
erase one of them
mirror the other to replace the erased one (you'll get a sphere composed by 2 separate semi-spheres)
fuse them (you'll get a new sphere)
use ShapeUpgrade_UnifySameDomain(sphere, false, true, false) to unify the sphere surface

result -- exception (fails creating a gp_Dir(0, 0, 0) or something like this

it don't fail if you skip the erase + mirror part, so it's a problem with the mirrored semisphere.


PG's picture

How did u cut into two spheres i.e using which API?