An adaptive multiresolution approachto the simulation of planar structures