Spatial Mapping - Hololens 1

Is there a way to track the environment with Hololens 1? And also draw debug lines on recognized environment?