Provided is a tool-path generating device that includes a point-sequence generating unit that generates a point sequence that represents a tool path on the basis of a machining program, and a smoothing unit that smooths the generated point sequence. The smoothing unit includes a filter-length setting unit that sets filter lengths that are applied to the points such that a pre/post-smoothing divergence amount of each point in the point sequence is equal to or less than a first threshold, a filter-length changing unit that changes the set filter lengths such that an absolute value of a difference between the filter lengths applied to adjacent points in the point sequence is equal to or less than a second threshold, and a filter processing unit that performs filter processing on the basis of the changed filter lengths.
展开▼