Here you'll find software I've written for AutoCAD (most with source code).
A research project to add delaunay triangulation to AutoCAD, source code is available on project page.