Segmentectomy simulation using a virtual three-dimensional safety margin.