you didn't really say if it was 2d or 3d so maybe this will help.
http://sourceforge.net/projects/pappe
and for 2d
http://lazarus.freepascal.org/index....c,13626.0.html
don't know if they have what you want but perhaps they will be useful anyway