3D finite element grid generator with CAD engine