A non-transitory computer-readable storage medium storing a computer program that causes a computer to perform a slice data generation method that generates slice data, the slice data generation method comprising the steps of:
- reading information on a polygon mesh based on which the slice data is to be generated;
- changing phase information on the read polygon mesh such that a contour polyline that represents a contour obtained as a result of slicing the read polygon mesh into round slices is capable of being acquired;
- acquiring the contour polyline from the polygon mesh, the phase information on which has been changed, and correcting the acquired contour polyline such that an area inside the acquired contour polyline is capable of being painted out;
- and
- painting out the area inside the corrected contour polyline;
- wherein
- the polygon mesh includes a two-manifold;
- and
- when the polygon mesh read by the reading step includes a non-manifold, the step of changing changes the phase information on the read polygon mesh such that the non-manifold becomes a two-manifold.