REFINE2D

This routine deterministically refines a triangle by bisecting all the edges and connect these bisection points to form new triangles. Thus, after calling REFINE2D once, a triangle will be tessellated into 4 triangles.
FORMAT:
refine2d