Cut a solid into two solids by a face

Hi
How can I cut a solid into two solids by a face?

Thanks.

Sean

Cauchy Ding's picture

Hi Sean,

1. Use BRepPrimAPI_MakeHalfSpace to create a half-space.
2. Use Boolean APIs do sub and intersection operations

Ding

seanliu's picture

Hi
What if the face is not a planar face?
Please see the attached picture.

Thanks.

Sean

Attachments: 
Cauchy Ding's picture

Hi Sean,

The source face of half-space can be any face.

Ding