Construct HalfSpace

i couldn't construct HalfOfSpace
for example

gp_Pln P(0,0,1,50);
TopoDS_Face F = BRepBuilder_MakeFace(P);
BrepPrimAPI_MakeHalfSpace MHS(F, gp_Pnt(0,0,0));

As result i have empty solid

Christian R. Krug's picture

Hi Marina,

I checked your example in DRAW:
>> plane p 0 0 -50
>> mkface f p
>> halfspace h f 0 0 0
And the result is an infinite solid (as it is supposed to be).

Have you debugged your example ?

Regards, Kris.

Stephen Egan's picture

Hi Marina,
I'm getting a similar outcome, and was wondering if you found a solution.