Inverse Procedural Modeling