A method and
system are provided for visualizing a surgical path (31, 41, 51) for a surgical tool. The method comprises a step of receiving (21) anatomical information (14) about a position of at least one anatomical structure (32, 33, 34, 35) in a region to undergo
surgery, geometric information (15) describing the surgical path (31, 41, 51) and at least one
safety margin defining a minimal distance between the surgical tool and the anatomical structure (32, 33, 34, 35). The method further comprises defining (23) a critical segment (43, 44, 45) of the surgical path (31, 41, 51), in which critical segment (43, 44, 45) a distance to the anatomical structure (32, 33, 34, 35) is smaller than the
safety margin. Then a graphical representation (30, 40, 50) of the surgical path (31, 41, 51) is provided (24), wherein the critical segment (43, 44, 45) is highlighted.