We present a method to simplify simulation techniques for determining liquid-crystal director orientation in geometries with sharply defined edges and for surfaces with strong anchoring without preferred direction. We show analytically that close to such edges, the liquid crystal can be described by just a few parameters. After examining the solutions, it is explained how these results can avoid the numerical problems that arise when simulating such configurations.