Automatic reconstruction of cad models and properties from digital scans