knowledge-based automatic 3d line extraction from close