An automatic triangular mesh generator for planar domains