Line cut machine tool implements the technology of automatic process designing of cut Chinese character
- Time:
- Click:85
- source:WEDEMEYER CNC Machining
.
7, 0.
.
1] Of Interger=((1, 0) , (1, - 1) , (0, - 1) , (- 1, - 1) , (- 1, 0) , (- 1, 1) , (0, 1) , (1, 1)) ; The algorithm that all over all previous is as follows: (1) scanning image seeks initial drop, its coordinate is written down for (K, 1) ; Record the cost of the a bitth horizontal stroke, ordinate with FirstPointX, FirstPointY; (2) initialization records linear finger, build the catenary list with sharp record; bit more initiative K, 1 value serves as sharp starting point and terminal horizontal stroke, ordinate, the chain that joins this linear record point-blank goes in the watch; (3) with the a bitth search along anticlockwise direction for datum mark below a bit, if search a value to write down search direction to be I for the dot of 1, horizontal stroke of this bits, ordinate is written down for (K, 1) , the record setting of linear terminal horizontal stroke, ordinate is K, 1; (Whether does 4) buy search ending mark SearchCompleted to if SearchCompleted does not repeat 6-13 situation for True,be False; (5) ; (6) buy SearchCompleted is True; (7) place is same a line mark SameLine for True; (8) if SameLine repeats 9-12 situation for True; (SameLine is 9) buy False; (Direction of 10) edge I undertakes searching, namely K:=K+SearchDirection [I] [0] ;1:=1+SearchDirection [I] [1] if; (11) is nodded (K, 1) is 1, criterion SameLine is buy True; linear terminal coordinate the setting is (K, 1) ; Will nod (K, the value setting of 1) is 0; (If 12) is nodded (K, 1) is 0, criterion SameLine is buy False; (13) in order to nod (K, 1) is searched along anticlockwise direction for datum mark below a bit, if search a value to be the dot of 1, write down search direction to be I; One increases in recording list point-blank new linear, k, 1 value serves as the horizontal stroke of sharp starting point, ordinate; The horizontal stroke of the point that reachs the search, ordinate is written down for (K, 1) , the horizontal stroke of linear terminus, ordinate the setting is (K, 1) ; Buy Searhcompleted is False, sameLine is buy True; Will nod (K, the value setting of 1) is 0; (14) undertakes the graph closes change processing, one increases in recording list point-blank linear, k, 1 value serves as the horizontal stroke of sharp starting point, ordinate, firstPointX, FirstPointY regards the horizontal stroke of linear terminus, ordinate as the value. After should alling over all previous to finish so, ergodic orbit is saved be in linear record list, already came true to used the glyph rough sketch of the Chinese character linear Duan Jin to be described all right that is to say. Those who need to point out is, because itself of Chinese character glyph perhaps edits the reason of processing, having picture ergodic in the process, the likelihood exists a few disharmonious dot, make all previous cannot be finished (the circumstance) that reachs redundant point like existence breakpoint, sharp drop, the skill that needs to apply image to handle before alling over all previous nods these complemental or eliminate is dropped, finish in order to make one by one can great, the algorithm that concerns this respect no longer give uncecessary details. Should realize cut Chinese character to leave the question that how makes cut statement only so far. Because already used the glyph rough sketch of the Chinese character,have a description point-blank, and these return from beginning to end point-blank conterminous composition closes outline, want to generate the cut of line cut machine to dictate, the requirement that needs to dictate by cut only has these transition point-blank can. Last word the article introduced to draw glyph rough sketch from inside Chinese character font, its after undertaking editing handling translate into cut dictates, the technology of automatic process designing of cut Chinese character implements on online cut machine thereby. It can make line cut machine implements the cut of the Chinese character simply conveniently, still can undertake all sorts of processing to wanting the Chinese character of cut. Carry out a proof, use this kind of method to be able to satisfy need well, and obtain better result. CNC Milling