If we use a nice library like [TetGen][1], generate a simple application-wrapper that simplifies our needs and publish it as open source, can we use it inside some Pipe/Chain of applications used in our commercial product?

Is this allowed by the GPL and AGPL licenses, or they do force all of a commercial product that consists of many such applications to be open source?

 [1]: http://wias-berlin.de/software/tetgen/#Download