Foundations of Stencil-Based Preoperative Mapping