The compensation of tool wear is the important topics for numerical control machining. The lower-hand controller has the basic G code function (G41/G42) to obtain the compensated cutter location for planar contour machining. However, the advanced controller with cutter compensation vector function should be employed in order to process the three dimensional compensated tool path. The purpose of this paper is to establish the algorithm for calculating the 3D cutter compensation vector and develop a generalized postprocessor system to obtain the NC code. Through the verification by the solid cutting simulation software, it confirmed the effectiveness of the proposed algorithm.