The CNC Machining graph that is based on image space is emulated

  • Time:
  • Click:380
  • source:WILK CNC Machining
In emulation test and verify of CNC Machining graph, the observation analysis measure that method of traditional image space disperse provides is less, restricted its application; And amount of computation of object space method is large, do not have real time sex. Introduce the logarithm on a kind of foundation in law of disperse of fundamental picture space to occupied structure and algorithm to make improved method, won't lose sex of emulation real time on one hand, offerred more for the user on the other hand and convenient and effective analysis watchs a step, and the advantage that has object space method. Make maneuver calculates machine imitate CNC Machining, undertake to the carry of NC program the graph is emulated all right, examine with this NC program and the validity that machine a method, it is a very beneficial attempt. But, emulation technology involves many calculation, efficiency is low, time-consuming much, cannot use in actual production. The method of disperse can make computational quantity is reduced greatly, express accurately after semifinished product of object space disperse and cutting tool can obtain semifinished product cutting, be helpful for undertaking to cutting result effective observation is analysed, more the test and verify that applies to NC program [1 ~ 3] ; Van Hook [4 ~ 6] the dynamic figure that used law of image space disperse to come true to machine a process is emulated, he uses idea of Zbuffer disappear concealed, resemble what entity presses image space element (Pixel) disperse, the one dimension that simplifies computation to go up for direction of line of sight is Boer operation, better land solved the problem of real time sex. But, method of traditional image space disperse cannot offer the observation that goes to the lavatory effectively to analyse a method, restricted its application. Author basis the thought of law of space of Van Hook image, made to data structure and algorithm improve, make fall in the premise that does not lose sex of emulation real time, offerred more convenient and more, effective analysis to watch a step for the user, and the characteristic that these methods have object space method originally. The method of space of basic idea image of algorithm of 1 Van Hook uses the Zbuffer idea of concealed of similar figure disappear, the disperse resembling element that presses workpiece and cutting tool screen is Zbuffer structure. The one dimension that cutting process simplifies to go up for direction of edge line of sight is Boer operation. This law shows hypostatic and Boer operation and figure to the process closes for an organic whole, make the graph is emulated have very tall real time sex. 1.

1Specification of method of 1 Zbuffer of Zbuffer method graph sees a picture 1, direction of line of sight and screen are perpendicular, direction of edge line of sight mixes semifinished product cutting tool disperse, go up like element in each screen, cutting tool and semifinished product express to be a cuboid, call Dexel structure (namely Zbuffer structure) . The relation of cutting tool and semifinished product has 7 kinds, right now, the process of semifinished product of cutting tool cutting turns into the comparison of two Dexel structure problem, particular operation procedure explains with the following algorithm: CASE 1: Have cutting tool only, indication cutting tool; Break; CASE 2: Cutting tool of semifinished product keep out, indication semifinished product; Break; CASE 3: Of semifinished product of cutting tool cutting hind, indication semifinished product; Break; CASE 4: The interior of semifinished product of cutting tool cutting, indication semifinished product; Break; CASE 5: The forehead of semifinished product of cutting tool cutting, indication cutting tool; Break; CASE 6: Semifinished product of cutting tool keep out, indication cutting tool; Break; CASE 7: Have semifinished product only, indication semifinished product; Break; Correspondence forms catenary to express a structure like the Dexel structure of element at each, can handle semifinished product to have the case of hole and cavity. Cutting computation is to happen in correspondence actually at same express the Boer operation between like the cable length of element, two Dexel structure that shows semifinished product and cutting tool respectively. 1.

2The generates structure of graph 2 Dexel and indication cache structure and screen to resemble element correspondence of Dexel structure concerns above all, defining observation coordinate is (2) seeing a picture: Set semifinished product to be cuboid, its center is located in coordinate origin, the direction of line of sight with the user (Xe, ye, ze) is Z1 axis, origin passes on XY plane and as perpendicular as Z1 it is Y1 axis point-blank, can decide X1 axis by Z1 and Y1 again, x1Y1 plane is umbriferous plane namely. Dexel structure is built in observing coordinate is fastened. Because the dot resembling element on screen is not a bit on umbriferous plane more corresponding, however a small square. So, answer to be significant drop with square center, with direction of line of sight (Xe, ye, ze) defines ray, it and object are begged hand in and build Dexel structure. The color that the information in Dexel structure includes the recent Z value, farthermost Z value, color that is in recently, farthermost part and the finger that point to next Dexel structure. CNC Milling