3D Parametric Wireframe Extraction Based on Distance Fields