Patent ID: 7369971

Claim:
An apparatus for generating post-machining three-dimensional shape data indicative of a shape of a workpiece to be obtained after machining on the basis of an NC program including tool traveling path for a tool, tool shape data indicative of a shape of the tool and stock blank shape data indicative of a shape of a stock blank for the workpiece to be machined with the tool in an NC machine tool, the apparatus comprising: a processor with memory comprising: a stock blank lattice point generating section which represents the shape of the stock blank for the workpiece by three-dimensional lattice point data comprising a multiplicity of lattice points arranged along three axes extending perpendicularly to each other on the basis of the stock blank shape data, the multiplicity of lattice points being each defined by three-dimensional coordinate data and connection information indicative of whether or not lattice points are present at positions adjacent to a lattice point of interest along the three axes in the six axial directions, wherein the three-dimensional coordinate data used to define one lattice point are not connection information used to define another lattice point; a tool path processing section which generates data indicative of a tool traveling region in which the tool is to move with respect to the workpiece on the basis of the NC program, the tool shape data and the stock blank shape data, then removes lattice points of the three-dimensional lattice point data located in the tool traveling region, and updates connection information for the remaining lattice points; a shape data generating section which generates the post-machining three-dimensional shape data for the workpiece on the basis of three-dimensional coordinate data and the connection information for the remaining lattice points; and a surface lattice point extracting section which extracts surface lattice points defining surfaces of the workpiece to be obtained after the machining on the basis of the connection information for the remaining lattice points after the connection information for the remaining lattice points is updated by the tool path processing section, wherein the shape data generating section generates the post-machining three-dimensional shape data for the workpiece on the basis of three-dimensional coordinate data and connection information for the surface lattice points, and wherein said extracted surface lattice points are not expressed in the form of blocks.