John Peterson - 2015-10-23

Hi,

This is a simple-minded patch that adds the ability to generate meshes from CSG input files to the nglib C-interface. It is intended to provide some of the same functionality that already exists for the STL, ACIS, OCC, and 2D geometry formats.

Since I don't know very much about the internals of netgen, this probably isn't exactly the way you will want to do this (for example, there should probably be separate interfaces for generating the geometry and generating the Mesh; also the ParseCSG functionality was not really accessible to the C-interfaces so I added an interface on the CSGeometry class that provides it), but I hope you will agree that an interface like this is at least worth having. It works quite well in this simple libmesh example I cooked up, and would be a very powerful new capability for users of libmesh-based codes.

 

Last edit: John Peterson 2015-10-23