Robot Grasp Synthesis from Virtual Demonstration and Topology-Preserving Environment Reconstruction