breplibrary is an implementation of a topological data structure for representing the boundary (surface) of a 3D solid. A core layer on top of which e.g. CSG operations or 3D model topology fixers can be build. this includes a CSG sample application.