Hi Thomas,
Thanks a lot for your comment :) The IfcPolygonalBoundedHalfSpace is
used to subtract from other solids.
Well, the first minor problem is that I have to specify a height for
the the extrusion of the boundary. At the time of creation of the half
space I do not yet know which other solids the subtraction will
operate on, so choosing a height is somewhat arbitrary. But that's my
problem, I can overcome that.
What happens a lot in the IFC files I process is that some of the
edges of the 'halfspace boundary' coincide with the faces of the other
solid. When I BRepAlgoAPI_Cut those solids, often BRepCheck_Analyzer
points out the resulting shape is invalid. Then if I triangulate the
resulting shape it is often a mix of faces of both operands.
But, in fact, perhaps the problem might be more general? That cutting
solids that 'share' (part of) a face leads to invalid results? Does
anybody have experience with that?
Thanks again.
Kind regards,
Thomas
On Mar 3, 6:00 pm, Thomas Paviot <
tpav...@gmail.com> wrote:
> 2012/3/3 thomas krijnen <
t.krij...@gmail.com>
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> > Some of you might remember that I am working on an open source IFC
> > implementation called IfcOpenShell and use OCE for the interpretation
> > of the (STEP-like) geometry in IFC.
>
> > Most geometry in IFC has a counterpart OCC class, making the geometry
> > interpretation rather easy. However, there is one type of geometry I
> > can't seem to implement elegantly: a halfspace solid bounded by a
> > polygonal boundary:
>
> >
http://buildingsmart-tech.org/ifc/IFC2x3/TC1/html/ifcgeometricmodelre...