[go: up one dir, main page]

CN112062458B - A kind of special-shaped glass mirror image cutting method - Google Patents

A kind of special-shaped glass mirror image cutting method Download PDF

Info

Publication number
CN112062458B
CN112062458B CN202010997884.8A CN202010997884A CN112062458B CN 112062458 B CN112062458 B CN 112062458B CN 202010997884 A CN202010997884 A CN 202010997884A CN 112062458 B CN112062458 B CN 112062458B
Authority
CN
China
Prior art keywords
special
data
arc
shaped glass
mirror image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010997884.8A
Other languages
Chinese (zh)
Other versions
CN112062458A (en
Inventor
李建根
张开欣
徐伯永
张帆
邓云军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Sg Energy Saving Glass Co ltd
CSG Holding Co Ltd
Original Assignee
Sichuan Sg Energy Saving Glass Co ltd
CSG Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Sg Energy Saving Glass Co ltd, CSG Holding Co Ltd filed Critical Sichuan Sg Energy Saving Glass Co ltd
Priority to CN202010997884.8A priority Critical patent/CN112062458B/en
Publication of CN112062458A publication Critical patent/CN112062458A/en
Application granted granted Critical
Publication of CN112062458B publication Critical patent/CN112062458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • CCHEMISTRY; METALLURGY
    • C03GLASS; MINERAL OR SLAG WOOL
    • C03BMANUFACTURE, SHAPING, OR SUPPLEMENTARY PROCESSES
    • C03B33/00Severing cooled glass
    • C03B33/02Cutting or splitting sheet glass or ribbons; Apparatus or machines therefor
    • C03B33/04Cutting or splitting in curves, especially for making spectacle lenses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P40/00Technologies relating to the processing of minerals
    • Y02P40/50Glass production, e.g. reusing waste heat during processing or shaping
    • Y02P40/57Improving the yield, e-g- reduction of reject rates

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Organic Chemistry (AREA)
  • Re-Forming, After-Treatment, Cutting And Transporting Of Glass Products (AREA)

Abstract

The invention discloses a mirror image cutting method for special-shaped glass in the field of deep processing of building glass. The method comprises the following steps: s1, acquiring original graphic data of the special-shaped glass; s2, acquiring the figure shape parameters of the shaped glass from the figure original data; and S3, carrying out mirror image processing on data in the data group representing the special-shaped shape parameters according to the data containing the rectangular frame for the lines of the pattern shape of each special-shaped glass to obtain the mirror image pattern shape parameters of the special-shaped glass. S4, converting the mirror image pattern shape parameters of the special-shaped glass into mirror image data of the special-shaped glass; and S5, inputting the mirror image data of the special-shaped glass into the cutting machine to realize mirror image cutting of the special-shaped glass. The method realizes full automation of data processing, and the error probability is almost zero; and the single-time drawing is used for multiple times, so that the ordering and optimizing efficiency is improved.

Description

一种异形玻璃镜像切割方法A kind of special-shaped glass mirror image cutting method

技术领域technical field

本发明涉及建筑玻璃深加工领域,特别涉及一种异形玻璃镜像切割方法。The invention relates to the field of deep processing of architectural glass, in particular to a mirror image cutting method of special-shaped glass.

背景技术Background technique

建筑用中空玻璃或夹层玻璃,一般由两片(或三片以上)玻璃,使用不同的中间聚合材料聚合而成的玻璃构件。根据不同类型产品的需求,该类玻璃需要经过切割、磨边、钢化、镀膜、中空或夹层等加工过程。而该玻璃构件所使用的原材料皆为浮法玻璃,由于浮法玻璃分为空气面和锡面两个结构不同的面,这两种面由于结构不同导致其化学稳定性有区别,空气面相对容易霉变,因此在合成中空或夹层时需要将空气面合在相对密封的中间。Insulating glass or laminated glass for buildings is generally a glass component made of two (or more than three) pieces of glass, which are polymerized using different intermediate polymeric materials. According to the requirements of different types of products, this type of glass needs to undergo processing processes such as cutting, edging, tempering, coating, hollowing or interlayering. The raw materials used in this glass component are all float glass. Since the float glass is divided into two surfaces with different structures, the air surface and the tin surface, the chemical stability of these two surfaces is different due to their different structures. The air surface is relatively It is easy to mildew, so when synthesizing the hollow or interlayer, it is necessary to close the air surface in the relatively airtight middle.

对于异形结构(不规则图形)的玻璃来说,由于不能任意翻面,因此在切割时需要对第二层玻璃进行镜像后切割,以确保空气面合在中间且两个图形完全重合。现有技术的异形层二镜像方法是将层一的图形在cad中一个一个进行镜像后,再按照层一的方法重新排版、优化后转换为机器能够识别的文件进行切割。For glass with special-shaped structure (irregular graphics), since it cannot be turned over arbitrarily, it is necessary to mirror the second layer of glass and cut after cutting to ensure that the air surface is in the middle and the two graphics are completely overlapped. The second mirroring method of the special-shaped layer in the prior art is to mirror the graphics of the first layer in the cad one by one, and then rearrange according to the method of the first layer, optimize and convert it into a file that can be recognized by the machine for cutting.

目前异形层二镜像切割的方法存在以下缺点:The current method of cutting the second image of the special-shaped layer has the following disadvantages:

1、为了镜像,需要将已经下单到系统中的异形图形调出,然后在cad中人工镜像后,再次存入系统后,优化排版,转换为机器识别的文件,在人工镜像过程中容易出错。 1. In order to mirror, it is necessary to call out the special-shaped graphics that have been ordered into the system, and then manually mirror them in cad, and then save them in the system again, optimize the typesetting, and convert them into machine-recognized files, which are prone to errors during the manual mirroring process .

2、cad图形镜像相当于重新画图,增加了工作量,效率相对低下。2. The mirror image of cad graphics is equivalent to re-drawing, which increases the workload and relatively low efficiency.

3、在CAD中镜像后,需要重新下单优化,而再次优化会导致与层一的出片顺序不同,后续在中空时不能确保层序配对正确。3. After mirroring in CAD, it is necessary to place an order again for optimization, and re-optimization will result in a different output sequence from layer 1, and the correct layer sequence pairing cannot be ensured when it is hollow.

发明内容Contents of the invention

本发明针对上述三个缺点,直接调取层一图像数据,通过层一图像数据直接计算得到了层二或者中间层的镜像数据,简化了处理过程,减少了人工干预,提出了一种异形玻璃镜像切割方法。In view of the above three shortcomings, the present invention directly retrieves the image data of layer 1, and directly calculates the image data of layer 2 or the middle layer through the image data of layer 1, simplifies the processing process, reduces manual intervention, and proposes a special-shaped glass Mirror cut method.

为了实现上述发明目的,本发明提供了以下技术方案:In order to realize the above-mentioned purpose of the invention, the present invention provides the following technical solutions:

一种异形玻璃镜像切割方法,其特征在于,步骤包括:A special-shaped glass mirror image cutting method, characterized in that the steps include:

S1、获取异形玻璃的图形原始数据;S1. Obtaining the graphic original data of special-shaped glass;

S2、从图形原始数据中获取异形玻璃的图形形状参数,异形玻璃的图形形状参数包括包容矩形框的数据、图形形状的线条段数以及代表异形形状参数的数据组;S2. Obtain the graphic shape parameters of the special-shaped glass from the original graphic data. The graphic shape parameters of the special-shaped glass include the data containing the rectangular frame, the number of line segments of the graphic shape, and a data group representing the special-shaped shape parameters;

S3、对于每一个异形玻璃的图形形状的线条,根据包容矩形框的数据对代表异形形状参数的数据组中的数据进行镜像处理,得到异形玻璃的镜像图形形状参数。S3. For each line of the graphic shape of the special-shaped glass, perform mirroring processing on the data in the data group representing the special-shaped shape parameters according to the data of the enclosing rectangular frame, to obtain the mirror image graphic shape parameters of the special-shaped glass.

S4、将异形玻璃的镜像图形形状参数转换为异形玻璃的镜像数据;S4, converting the shape parameter of the mirror image of the special-shaped glass into the mirror image data of the special-shaped glass;

S5,将异形玻璃的镜像数据输入切割机,实现异形玻璃的镜像切割。S5, input the mirror image data of the special-shaped glass into the cutting machine to realize the mirror image cutting of the special-shaped glass.

进一步的,当需要获取多个异形玻璃的镜像数据时,重复执行步骤S1~S4,获取批量的异形玻璃的镜像数据,并将批量的异形玻璃的镜像数据输入切割机,实现批量异形玻璃的镜像切割。Further, when it is necessary to obtain the image data of multiple special-shaped glasses, repeat steps S1-S4 to obtain the image data of batches of special-shaped glasses, and input the image data of batches of special-shaped glasses into the cutting machine to realize the mirror image of batches of special-shaped glasses cutting.

作为本发明的优选方案,步骤S2中包容矩形框的数据包括包容矩形框的宽度和包容矩形框的长度。As a preferred solution of the present invention, the data of the enclosing rectangle in step S2 includes the width of the enclosing rectangle and the length of the enclosing rectangle.

作为本发明的优选方案,异形玻璃的图形原始数据为dat数据,包容矩形框的宽度数据和包容矩形框的长度数据在图形原始dat数据中的第二行。As a preferred solution of the present invention, the original graphic data of special-shaped glass is dat data, and the width data of the enclosing rectangular frame and the length data of the enclosing rectangular frame are in the second row of the original graphic dat data.

作为本发明的优选方案,步骤S2中代表异形形状参数的数据组中,每一个异形玻璃的图形形状的线条对应一行异形形状参数的数据,异形形状参数的数据类型包括直线段数据和弧线数据;As a preferred solution of the present invention, in the data group representing the special-shaped shape parameters in step S2, the lines of the graphic shape of each special-shaped glass correspond to a row of data of the special-shaped shape parameters, and the data types of the special-shaped shape parameters include straight line segment data and arc data ;

直线段数据包括直线段的起点二维坐标和直线段的终点二维坐标;The data of the straight line segment includes the two-dimensional coordinates of the starting point of the straight line segment and the two-dimensional coordinates of the end point of the straight line segment;

弧线数据包括圆心二维坐标、弧线起点弧度和弧线终点弧度。The arc data includes the two-dimensional coordinates of the center of the circle, the radians of the arc starting point and the arc end point of the arc.

作为本发明的优选方案,对于每一行异形形状参数的数据,从左到右第三个数字为0时,则异形形状参数的数据类型为直线段数据,并且从左到右第一个数字为直线段起点X轴坐标,从左到右第二个数字为直线段起点Y轴坐标;从左到右第四个数字为直线段终点X轴坐标,从左到右第五个数字为直线段终点Y轴坐标。As a preferred solution of the present invention, for the data of each row of special-shaped shape parameters, when the third number from left to right is 0, then the data type of special-shaped shape parameters is straight line segment data, and the first number from left to right is The X-axis coordinate of the starting point of the straight line segment, the second number from left to right is the Y-axis coordinate of the starting point of the straight line segment; the fourth number from left to right is the X-axis coordinate of the end point of the straight line segment, and the fifth number from left to right is the straight line segment The Y-axis coordinate of the end point.

作为本发明的优选方案,当步骤S2中异形形状参数的数据类型为直线段数据时,步骤S3中镜像处理的具体步骤为:As a preferred solution of the present invention, when the data type of the special-shaped shape parameter is straight line segment data in the step S2, the specific steps of the mirror image processing in the step S3 are:

A31,将包容矩形框长度减去直线段起点X轴坐标,作为镜像直线段起点X轴坐标,将包容矩形框长度减去直线段终点X轴坐标,作为镜像直线段终点X轴坐标;A31, the length of the containing rectangle minus the X-axis coordinate of the starting point of the straight line segment is used as the X-axis coordinate of the starting point of the mirroring straight line segment, and the length of the containing rectangle minus the X-axis coordinate of the end point of the straight line segment is used as the X-axis coordinate of the end point of the mirroring straight line segment;

A32,将镜像直线段起点X轴坐标与直线段起点Y轴坐标结合,得到镜像直线段的起点二维坐标;将镜像直线段终点X轴坐标与直线段终点Y轴坐标结合,得到镜像直线段的终点二维坐标;异形玻璃的镜像图形形状参数包括镜像直线段的起点二维坐标和镜像直线段的终点二维坐标。A32, combine the X-axis coordinates of the starting point of the mirrored straight line segment with the Y-axis coordinates of the starting point of the straight line segment to obtain the two-dimensional coordinates of the starting point of the mirrored straight line segment; combine the X-axis coordinates of the end point of the mirrored straight line segment with the Y-axis coordinates of the end point of the straight line segment to obtain the mirrored straight line segment The two-dimensional coordinates of the end point of the special-shaped glass; the shape parameters of the mirror image of the special-shaped glass include the two-dimensional coordinates of the starting point of the mirrored straight line segment and the two-dimensional coordinates of the end point of the mirrored straight line segment.

作为本发明的优选方案,对于每一行异形形状参数的数据,从左到右第三个数字不为0时,则异形形状参数的数据类型为弧线数据,并且从左到右第一个数字为弧线圆心的X轴坐标,从左到右第二个数字为弧线圆心的Y轴坐标;从左到右第四个数字为弧线起点弧度,从左到右第五个数字为弧线终点弧度。As a preferred solution of the present invention, for each row of data of special-shaped shape parameters, when the third number from left to right is not 0, the data type of special-shaped shape parameters is arc data, and the first number from left to right It is the X-axis coordinate of the arc center, the second number from left to right is the Y-axis coordinate of the arc center; the fourth number from left to right is the radian of the arc starting point, and the fifth number from left to right is the arc The end point of the line in radians.

作为本发明的优选方案,当步骤S2中异形形状参数的数据类型为弧线数据时,步骤S3中镜像处理的具体步骤为:As a preferred solution of the present invention, when the data type of the special-shaped shape parameter is arc data in the step S2, the specific steps of the mirror image processing in the step S3 are:

B31,将包容矩形框长度减去圆心二维坐标中的弧线圆心的X轴坐标,计算出镜像弧线的圆心X轴坐标;B31, subtracting the X-axis coordinate of the arc center in the two-dimensional coordinates of the center of the circle from the length of the containing rectangle to calculate the X-axis coordinate of the center of the mirrored arc;

B32,用π减去弧线起点弧度,得到镜像弧线的起始点弧度,并用π减去弧线终点弧度,得到镜像弧线的终止点弧度;B32, use π to subtract the radian of the starting point of the arc to obtain the radian of the starting point of the mirrored arc, and use π to subtract the radian of the end point of the arc to obtain the radian of the ending point of the mirrored arc;

B33,将镜像弧线的圆心X轴坐标与圆心二维坐标中的弧线圆心的Y轴坐标结合,得到镜像弧线的圆心二维坐标;异形玻璃的镜像图形形状参数包括镜像弧线的圆心二维坐标、镜像弧线的起始点弧度和镜像弧线的终止点弧度。B33, combine the X-axis coordinates of the center of the mirrored arc with the Y-axis coordinates of the center of the arc in the two-dimensional coordinates of the center to obtain the two-dimensional coordinates of the center of the mirrored arc; the shape parameters of the mirror image of special-shaped glass include the center of the mirrored arc Two-dimensional coordinates, the starting point of the mirrored arc in radians, and the ending point of the mirrored arc in radians.

基于相同的构思,还提出了一种异形玻璃镜像切割装置,包括至少一个处理器,以及与至少一个处理器通信连接的存储器;存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述任一项的方法。Based on the same concept, a special-shaped glass mirror image cutting device is also proposed, including at least one processor, and a memory connected to the at least one processor; the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor. Execution by a processor, so that at least one processor can perform any one of the above methods.

与现有技术相比,本发明的有益效果:Compared with prior art, the beneficial effect of the present invention:

1、本发明直接调取层一图像数据,通过层一图像数据直接计算得到了其他层的镜像数据,实现了数据处理的全自动化,出错几率几乎为零;采用一次绘图多次利用,提升了下单及优化效率。1. The present invention directly retrieves the layer-1 image data, and directly calculates the mirror image data of other layers through the layer-1 image data, which realizes the full automation of data processing, and the probability of error is almost zero; the use of one-time drawing for multiple utilization improves the Place orders and optimize efficiency.

2、本发明由于仅对机器文件中的异形图形进行镜像处理,不改变外围包容的矩形大小及顺序,确保层一、层二出片顺序完全相同,保证了合片工序的生产配对,提高生产效率。2. Since the present invention only performs mirror image processing on the special-shaped graphics in the machine file, the size and order of the rectangles contained in the periphery are not changed, so that the sequence of film output of layer 1 and layer 2 is exactly the same, ensuring the production pairing of the assembling process and improving production efficiency.

附图说明:Description of drawings:

图1为本发明实施例1中一种异形玻璃镜像切割方法的流程图;Fig. 1 is the flow chart of a kind of special-shaped glass mirror image cutting method in the embodiment 1 of the present invention;

图2为本发明实施例1中选中异形图形对应的dat文件的示意图;Fig. 2 is the schematic diagram of the dat file corresponding to the selected special-shaped figure in embodiment 1 of the present invention;

图3为本发明实施例1中打开后的异形图形对应的dat文件中的数据图;Fig. 3 is the data diagram in the dat file corresponding to the special-shaped figure after opening in embodiment 1 of the present invention;

图4为本发明实施例1中读取的线条段数值示意图;Fig. 4 is a schematic diagram of the line segment values read in Example 1 of the present invention;

图5为本发明实施例1中代表异形形状参数的数据组图;Fig. 5 is a data group diagram representing the shape parameter of the special shape in Embodiment 1 of the present invention;

图6为本发明实施例1中转化小程序的图标;Fig. 6 is the icon of the conversion applet in Embodiment 1 of the present invention;

图7为本发明实施例1中TXT文件转化为dat文件示意图;Fig. 7 is a schematic diagram of converting a TXT file into a dat file in Embodiment 1 of the present invention;

图8为本发明实施例1中镜像前异形玻璃图形尺寸图;Fig. 8 is a figure size diagram of special-shaped glass before mirroring in Example 1 of the present invention;

图9为本发明实施例1中镜像后异形玻璃图形尺寸图。Fig. 9 is a figure dimension diagram of special-shaped glass after mirroring in embodiment 1 of the present invention.

具体实施方式Detailed ways

下面结合试验例及具体实施方式对本发明作进一步的详细描述。但不应将此理解为本发明上述主题的范围仅限于以下的实施例,凡基于本发明内容所实现的技术均属于本发明的范围。The present invention will be further described in detail below in conjunction with test examples and specific embodiments. However, it should not be understood that the scope of the above subject matter of the present invention is limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.

实施例1Example 1

一种异形玻璃镜像切割方法的流程图如图1所示,具体包括以下步骤:A flow chart of a special-shaped glass mirror image cutting method is shown in Figure 1, specifically comprising the following steps:

A、获取异形玻璃的图形原始数据。A. Obtain the original graphic data of special-shaped glass.

原始数据主要指异形玻璃的层一尺寸数据。首先将已经下单的玻璃图形进行优化,导出为机器所能识别的dat文件,从所有dat文件中找到异形图形对应的dat文件并打开。导出的dat文件以及选中异形图形对应的dat文件的示意图如图2所示。The original data mainly refers to the dimension data of layer one of special-shaped glass. First, optimize the glass graphics that have been ordered, export them as dat files that the machine can recognize, and find the dat files corresponding to the special-shaped graphics from all the dat files and open them. The schematic diagram of the exported dat file and the dat file corresponding to the selected special-shaped figure is shown in Figure 2.

B、获取异形图形形状参数 。B. Obtain shape parameters of special-shaped graphics.

对打开的异形图形对应的dat文件进行分类识别,打开后的异形图形对应的dat文件中的数据如图3所示。识别出代表包容矩形框的数据,代表包容矩形框的数据包括包容矩形框长度和包容矩形框宽度(如图3中的第一行数据:1240,840),将代表包容矩形框的数据组作为第一组数据。并且读取出代表异形图形线条的线条段数值;读取的线条段数值如图4所示,是第一组数据中,第三行第二列的数据,线条段数值为5。最后,识别出代表异形形状参数的数据组,作为第二数据组,代表异形形状参数的数据组如图5所示,代表异形形状参数的数据组是第一组数据中,倒数六行数据。Classify and identify the dat file corresponding to the opened special-shaped figure, and the data in the dat file corresponding to the opened special-shaped figure is shown in Figure 3. Identify the data representing the containment rectangle, the data representing the containment rectangle includes the length of the containment rectangle and the width of the containment rectangle (the first row of data in Figure 3: 1240, 840), and the data group representing the containment rectangle as The first set of data. And read out the value of the line segment representing the line of the special-shaped figure; Finally, identify the data group representing the shape parameter of the special shape, as the second data group, the data group representing the shape parameter of the special shape is shown in Figure 5, the data group representing the shape parameter of the special shape is the last six rows of data in the first group of data .

C、识别异形图形组成元素的类型和坐标。C. Identify the types and coordinates of the constituent elements of the special-shaped graphics.

根据代表异形图形线条的线条段数值,分段判定各个线条的类型,并从第二数组中获取每条线条对应的图形坐标元素。本实施例中,如图5所示,异形形状参数的数据为五行,所以异形图形线条的线条段数值为5。通过每条线条中图形坐标元素第三位数据,判断图形元素,若第三个数为0,代表该元素为直线,否则为弧线。当线条为直线时,识别出线条的起点与终点坐标,如第一条线段的图形元素为20 20 0 20 1220 1000,第三个数为0,标识该线条为直线,0 前的两个数值代表该直线段的起始点坐标为(20,20),0后面的两个数值代表该直线段的终止坐标,为(1220,20),其他行的直线段起始点坐标判断方法与上述过程相同,由此,得出异形图形中所有直线段的起始点坐标。第三条线的图形元素为720 320500 0 1.5707996326 1000,由于第三个数不为0,则该线为弧线,第三个数的前两个数代表了圆心的坐标,为(720,320),第三个数的数值为半径,为500,第四个数代表了起始弧度,为0,第五个数代表了终止弧度,为1.5707996326,由此,得出了异形图形中弧线的相关参数。According to the line segment value representing the special-shaped graphic line, the type of each line is determined segmentally, and the graphic coordinate element corresponding to each line is obtained from the second array. In this embodiment, as shown in FIG. 5 , the data of the shape parameter of the special shape is five lines, so the line segment value of the line of the special shape figure is 5. Determine the graphic element by the third data of the graphic coordinate element in each line. If the third number is 0, it means that the element is a straight line, otherwise it is an arc. When the line is a straight line, identify the starting point and end point coordinates of the line. For example, the graphic element of the first line segment is 20 20 0 20 1220 1000, and the third number is 0, indicating that the line is a straight line. The two values before 0 It means that the starting point coordinates of the straight line segment are (20, 20), and the two numbers after 0 represent the ending coordinates of the straight line segment, which is (1220, 20). The judgment method of the starting point coordinates of the straight line segment in other lines is the same as the above process , thus, the starting point coordinates of all straight line segments in the special-shaped figure are obtained. The graphic element of the third line is 720 320500 0 1.5707996326 1000. Since the third number is not 0, the line is an arc, and the first two numbers of the third number represent the coordinates of the center of the circle, which is (720, 320 ), the value of the third number is the radius, which is 500, the fourth number represents the starting arc, which is 0, and the fifth number represents the ending arc, which is 1.5707996326, thus, the arc in the special-shaped figure is obtained related parameters.

D、计算异形图形的镜像坐标。D. Calculate the mirror image coordinates of the special-shaped figure.

异形图形是包含在矩形框中的,当线条为直线时,用包容矩形框中的长度减去各自的X坐标,从而获得镜像图形的X坐标,而镜像图形的Y坐标保持不变。从包容矩形框的数据组中获取包容矩形框的长度,本例中是1240,因此,本例中第一条线段(起始点坐标为(20,20),终止点坐标为(1220,20))的镜像线段X坐标为1240-20=1220和终止点X坐标为1240-1220=20,则,第一条线段的镜像线段起始点坐标为(1220,20),终止点坐标为(20,20)。其他直线段的镜像线段起始点坐标和终点坐标的计算方法与第一条线段相同。The special-shaped figure is contained in a rectangular frame. When the line is a straight line, the respective X coordinates are subtracted from the length in the containing rectangular frame to obtain the X coordinate of the mirrored figure, while the Y coordinate of the mirrored figure remains unchanged. Obtain the length of the enclosing rectangle from the data group of the enclosing rectangle, which is 1240 in this example. Therefore, the first line segment in this example (the starting point coordinates are (20, 20) and the ending point coordinates are (1220, 20) )’s mirrored line segment X coordinate is 1240-20=1220 and the end point’s X coordinate is 1240-1220=20, then the starting point coordinate of the mirrored line segment of the first line segment is (1220, 20), and the end point coordinate is (20, 20). The calculation method of the start point coordinates and end point coordinates of mirrored line segments of other straight line segments is the same as that of the first line segment.

当线条为弧形时,用包容矩形框的长度减去圆心的X坐标得到圆心相应的镜像X坐标,Y坐标保持不变,图示用π减去起始点弧度和并用π减去终点的弧度,得到镜像图形的起始点弧度和终止点弧度,本例中第三条线(弧线)的镜像图形的圆心为(1240-720,320),为(820,320)。镜像图形起始弧度为3.1415926-0=3.1415926,镜像图形终点弧度为3.1415926-1.5707996326=1.5707929674。When the line is arc-shaped, subtract the X coordinate of the center of the circle from the length of the enclosing rectangle to obtain the corresponding X coordinate of the mirror image of the center of the circle, and the Y coordinate remains unchanged. In the illustration, subtract the radian of the starting point and the arc of the end point with π , to get the starting point radian and ending point radian of the mirror image. In this example, the center of the mirror image image of the third line (arc) is (1240-720, 320), which is (820, 320). The starting arc of the mirror image is 3.1415926-0=3.1415926, and the end arc of the mirror image is 3.1415926-1.5707996326=1.5707929674.

E、根据生成的镜像X坐标,生成异形图形相应镜像图形的形状数据。分别计算出镜像图形各线段的X值后,与原来的Y值生成镜像图形的图形形状参数。E. According to the generated X-coordinate of the mirror image, the shape data of the corresponding mirror image of the special-shaped figure is generated. After calculating the X value of each line segment of the mirrored graphic, and the original Y value to generate the graphic shape parameter of the mirrored graphic.

F、根据镜像图形的图形形状参数,生成异形图形相应镜像图形的数据文件。将生成的图形数据坐标,按照图形文件位置写入图形文件,并保存为Txt文件,在生成镜像图形的Txt文件的时候,异形玻璃的层一尺寸数据的dat文件的顺序与相应的镜像图形的Txt文件的顺序相同。因此,不改变外围包容的矩形大小及顺序,确保了层一、层二出片顺序完全相同,保证了合片工序的生产配对。F. According to the graphic shape parameters of the mirrored graphic, a data file of the corresponding mirrored graphic of the special-shaped graphic is generated. Write the coordinates of the generated graphics data into the graphics file according to the location of the graphics file, and save it as a Txt file. When generating the Txt file of the mirror image, the order of the dat file of the layer-size data of the special-shaped glass is the same as that of the corresponding mirror image. Txt files are in the same order. Therefore, without changing the size and order of the rectangles contained in the periphery, it is ensured that the film output sequence of layer 1 and layer 2 is exactly the same, and the production matching of the assembling process is guaranteed.

G、通过上述A-F步骤,可以完成一个异形玻璃图形文件的镜像处理,当有批量的异形玻璃需要处理时,按顺序循环执行步骤A-F,就可以生成批量的异形玻璃图形文件的镜像txt文件。G. Through the above-mentioned steps A-F, the mirror image processing of a special-shaped glass graphic file can be completed. When there is a batch of special-shaped glass that needs to be processed, step A-F is executed cyclically in order to generate a batch of mirror txt files of the special-shaped glass graphic file.

用计算机程序,按照以上程序完成所有图形文件的镜像,并生成新的图形txt文件。计算机程序如下:Use a computer program to complete the mirroring of all graphic files according to the above procedure, and generate a new graphic txt file. The computer program is as follows:

a1 = Range("a1")a1 = Range("a1")

h = 32 h = 32

For j = 1 To Range("b3") For j = 1 To Range("b3")

h = h + 1 h = h + 1

If Range("c" & h & "") = 0 Then If Range("c" & h & "") = 0 Then

a = Range("d" & h & "") a = Range("d" & h & "")

b = Range("e" & h & "") b = Range("e" & h & "")

Range("d" & h & "") = a1 - a Range("d" & h & "") = a1 - a

Range("e" & h & "") = a1 - b Range("e" & h & "") = a1 - b

Else Else

a = Range("d" & h & "") a = Range("d" & h & "")

b = Range("e" & h & "") b = Range("e" & h & "")

c = Range("a" & h & "") c = Range("a" & h & "")

b = Range("e" & h & "") b = Range("e" & h & "")

Range("d" & h & "") = 3.1415926 - a Range("d" & h & "") = 3.1415926 - a

Range("e" & h & "") = 3.1415926 - b Range("e" & h & "") = 3.1415926 - b

Range("a" & h & "") = a1 - c Range("a" & h & "") = a1 - c

End If End If

Next j Next j

ChDir "C:\mirror" ChDir "C:\mirror"

ActiveWorkbook.SaveAs Filename:="C:\mirror\" & i & ".txt",FileFormat _ ActiveWorkbook.SaveAs Filename:="C:\mirror\" & i & ".txt",FileFormat_

:=xlText, CreateBackup:=False :=xlText, CreateBackup:=False

Application.DisplayAlerts = False Application. DisplayAlerts = False

Sheets(Sheets.Count).Delete Sheets(Sheets. Count). Delete

Sheets("sheet1").Select Sheets("sheet1"). Select

Next iNext i

End SubEnd Sub

H、文件转换。H. File conversion.

将异形玻璃图形文件的镜像txt文件转化为可以识别的dat文件。当异形玻璃图形文件的镜像txt文件为批量数据时,批量转化为可以识别的dat文件。将以上程序生成的txt文件,批量转化为机器可以识别的dat文件。所有用工具为转换小程序rename.bat,转化小程序的图标如图6所示,转换示意图如图7所示。Convert the image txt file of the special-shaped glass graphics file into a recognizable dat file. When the image txt file of the special-shaped glass graphics file is batch data, it will be converted into a recognizable dat file in batches. Convert the txt files generated by the above program into dat files that can be recognized by the machine in batches. All the tools used are the conversion applet rename.bat, the icon of the conversion applet is shown in Figure 6, and the conversion diagram is shown in Figure 7.

I、输出切割。I. Output cutting.

将异形玻璃的层一尺寸数据的dat文件和异形玻璃图形文件的dat文件合并为一个整体dat文件,将整体dat文件输出到切割机,进行镜像后的异形玻璃切割。Merge the dat file of layer one dimension data of the special-shaped glass and the dat file of the special-shaped glass graphics file into a whole dat file, output the whole dat file to the cutting machine, and cut the special-shaped glass after mirroring.

图8中给出了镜像前异形玻璃图形尺寸图,并且图9中给出了采用本发明方法得到的镜像后异形玻璃图形尺寸图。通过试验证明,本发明的方法实现了数据处理的全自动化,出错几率几乎为零;采用一次绘图多次利用,提升了下单及优化效率。并且由于仅对机器文件中的异形图形进行镜像处理,不改变外围包容的矩形大小及顺序,确保层一、层二出片顺序完全相同,保证了合片工序的生产配对,提高生产效率。Fig. 8 shows the dimension diagram of the special-shaped glass pattern before mirroring, and Fig. 9 shows the dimension diagram of the special-shaped glass pattern after mirroring obtained by the method of the present invention. It is proved by experiments that the method of the present invention realizes full automation of data processing, and the probability of error is almost zero; the use of one-time drawing for multiple utilization improves the efficiency of order placement and optimization. And because only the special-shaped graphics in the machine file are mirrored, and the size and order of the surrounding rectangles are not changed, it is ensured that the film output sequence of layer 1 and layer 2 is exactly the same, ensuring the production matching of the assembling process and improving production efficiency.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention within.

Claims (4)

1.一种异形玻璃镜像切割方法,其特征在于,步骤包括:1. A special-shaped glass mirror image cutting method is characterized in that the steps comprise: S1、获取异形玻璃的图形原始数据;S1. Obtaining the graphic raw data of the special-shaped glass; S2、从所述图形原始数据中获取异形玻璃的图形形状参数,所述异形玻璃的图形形状参数包括包容矩形框的数据、图形形状的线条段数以及代表异形形状参数的数据组;S2. Obtain the graphic shape parameters of the special-shaped glass from the original graphic data, the graphic shape parameters of the special-shaped glass include data containing a rectangular frame, the number of line segments of the graphic shape, and a data group representing the special-shaped shape parameters; S3、对于每一个异形玻璃的图形形状的线条,根据所述包容矩形框的数据对所述代表异形形状参数的数据组中的数据进行镜像处理,得到异形玻璃的镜像图形形状参数;S3. For the lines of the graphic shape of each special-shaped glass, mirror the data in the data group representing the special-shaped shape parameters according to the data of the containing rectangular frame to obtain the mirror image graphic shape parameters of the special-shaped glass; S4、将所述异形玻璃的镜像图形形状参数转换为异形玻璃的镜像数据;S4. Converting the shape parameter of the image image of the special-shaped glass into the image data of the special-shaped glass; S5,将所述异形玻璃的镜像数据输入切割机,实现异形玻璃的镜像切割;S5, inputting the mirror image data of the special-shaped glass into the cutting machine to realize the mirror image cutting of the special-shaped glass; 步骤S2中所述包容矩形框的数据包括包容矩形框的宽度和包容矩形框的长度;The data of the containment rectangle described in step S2 includes the width of the containment rectangle and the length of the containment rectangle; 所述异形形状参数的数据组的行数根据所述图形形状的线条段数确定;The number of rows of the data set of the special-shaped shape parameter is determined according to the number of line segments of the graphic shape; 步骤S2中所述代表异形形状参数的数据组中,每一个异形玻璃的图形形状的线条对应一行异形形状参数的数据,所述异形形状参数的数据类型包括直线段数据和弧线数据;In the data group representing the special-shaped shape parameters described in step S2, the lines of the graphic shape of each special-shaped glass correspond to a row of data of the special-shaped shape parameters, and the data types of the special-shaped shape parameters include straight line segment data and arc data; 所述直线段数据包括直线段的起点二维坐标和直线段的终点二维坐标;The straight line segment data includes the two-dimensional coordinates of the starting point of the straight line segment and the two-dimensional coordinates of the end point of the straight line segment; 所述弧线数据包括圆心二维坐标、弧线起点弧度和弧线终点弧度;The arc data includes the two-dimensional coordinates of the center of the circle, the radian of the arc starting point and the arc end point of the arc; 对于每一行所述异形形状参数的数据,从左到右第三个数字为0时,则所述异形形状参数的数据类型为直线段数据,并且从左到右第一个数字为直线段起点X轴坐标,从左到右第二个数字为直线段起点Y轴坐标;从左到右第四个数字为直线段终点X轴坐标,从左到右第五个数字为直线段终点Y轴坐标;For the data of the special-shaped shape parameter in each row, when the third number from left to right is 0, the data type of the special-shaped shape parameter is straight line segment data, and the first number from left to right is the starting point of the straight line segment X-axis coordinates, the second number from left to right is the Y-axis coordinate of the starting point of the straight line segment; the fourth number from left to right is the X-axis coordinate of the end point of the straight line segment, and the fifth number from left to right is the Y-axis coordinate of the end point of the straight line segment coordinate; 步骤S3中所述镜像处理的具体步骤为:The specific steps of mirror image processing described in step S3 are: A31,将所述包容矩形框长度减去直线段起点X轴坐标,作为镜像直线段起点X轴坐标,将所述包容矩形框长度减去直线段终点X轴坐标,作为镜像直线段终点X轴坐标;A31, the length of the containing rectangle minus the X-axis coordinate of the starting point of the straight line segment is used as the X-axis coordinate of the starting point of the mirrored straight line segment, and the length of the containing rectangle minus the X-axis coordinate of the end point of the straight line segment is used as the X-axis coordinate of the end point of the mirrored straight line segment coordinate; A32,将所述镜像直线段起点X轴坐标与所述直线段起点Y轴坐标结合,得到所述镜像直线段的起点二维坐标;将所述镜像直线段终点X轴坐标与直线段终点Y轴坐标结合,得到所述镜像直线段的终点二维坐标;所述异形玻璃的镜像图形形状参数包括所述镜像直线段的起点二维坐标和所述镜像直线段的终点二维坐标;A32, combining the X-axis coordinates of the starting point of the mirrored straight line segment with the Y-axis coordinates of the starting point of the straight line segment to obtain the two-dimensional coordinates of the starting point of the mirrored straight line segment; Combining the axis coordinates to obtain the two-dimensional coordinates of the end point of the mirrored straight line segment; the shape parameters of the mirrored image of the special-shaped glass include the two-dimensional coordinates of the starting point of the mirrored straight line segment and the two-dimensional coordinates of the end point of the mirrored straight line segment; 对于每一行所述异形形状参数的数据,从左到右第三个数字不为0时,则所述异形形状参数的数据类型为弧线数据,并且从左到右第一个数字为弧线圆心的X轴坐标,从左到右第二个数字为弧线圆心的Y轴坐标;从左到右第四个数字为弧线起点弧度,从左到右第五个数字为弧线终点弧度;For the data of the special-shaped shape parameter in each row, when the third number from left to right is not 0, the data type of the special-shaped shape parameter is arc data, and the first number from left to right is arc The X-axis coordinate of the center of the circle, the second number from left to right is the Y-axis coordinate of the arc center; the fourth number from left to right is the starting point of the arc, and the fifth number from left to right is the end point of the arc ; 当步骤S2中所述异形形状参数的数据类型为弧线数据时,步骤S3中所述镜像处理的具体步骤为:When the data type of the special-shaped shape parameter described in the step S2 is arc data, the specific steps of the mirror image processing described in the step S3 are: B31,将所述包容矩形框长度减去所述圆心二维坐标中的弧线圆心的X轴坐标,计算出镜像弧线的圆心X轴坐标;B31, subtracting the X-axis coordinate of the arc center in the two-dimensional coordinates of the center of the circle from the length of the containing rectangular frame to calculate the X-axis coordinate of the center of the mirrored arc; B32,用π减去弧线起点弧度,得到镜像弧线的起始点弧度,并用π减去弧线终点弧度,得到镜像弧线的终止点弧度;B32, use π to subtract the radian of the starting point of the arc to obtain the radian of the starting point of the mirrored arc, and use π to subtract the radian of the end point of the arc to obtain the radian of the ending point of the mirrored arc; B33,将所述镜像弧线的圆心X轴坐标与所述圆心二维坐标中的弧线圆心的Y轴坐标结合,得到所述镜像弧线的圆心二维坐标;所述异形玻璃的镜像图形形状参数包括所述镜像弧线的圆心二维坐标、所述镜像弧线的起始点弧度和所述镜像弧线的终止点弧度。B33, combining the X-axis coordinates of the center of the mirrored arc with the Y-axis coordinates of the center of the arc in the two-dimensional coordinates of the center to obtain the two-dimensional coordinates of the center of the mirrored arc; the mirror image of the special-shaped glass The shape parameters include the two-dimensional coordinates of the center of the mirrored arc, the arc of the starting point of the mirrored arc, and the arc of the ending point of the mirrored arc. 2.如权利要求1所述的一种异形玻璃镜像切割方法,其特征在于,当需要获取多个异形玻璃的镜像数据时,重复执行步骤S1~S4,获取批量的异形玻璃的镜像数据,并将所述批量的异形玻璃的镜像数据输入切割机,实现批量异形玻璃的镜像切割。2. The mirror image cutting method of special-shaped glass according to claim 1, characterized in that, when it is necessary to obtain the mirror image data of a plurality of special-shaped glasses, steps S1 to S4 are repeatedly executed to obtain the mirror image data of batches of special-shaped glasses, and The mirror image data of the batch of special-shaped glass is input into the cutting machine to realize the mirror image cutting of the batch of special-shaped glass. 3.如权利要求1所述的一种异形玻璃镜像切割方法,其特征在于,所述异形玻璃的图形原始数据为dat数据,所述包容矩形框的宽度数据和包容矩形框的长度数据在图形原始dat数据中的第二行。3. a kind of special-shaped glass mirror image cutting method as claimed in claim 1, is characterized in that, the graphic original data of described special-shaped glass is dat data, and the width data of described containing rectangular frame and the length data of containing rectangular frame are in graphic The second row in the original dat data. 4.一种异形玻璃镜像切割装置,其特征在于,包括至少一个处理器,以及与所述至少一个处理器通信连接的存储器;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至3中任一项所述的方法。4. A special-shaped glass mirror image cutting device, characterized in that it includes at least one processor, and a memory connected to the at least one processor in communication; the memory stores instructions that can be executed by the at least one processor, The instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
CN202010997884.8A 2020-09-21 2020-09-21 A kind of special-shaped glass mirror image cutting method Active CN112062458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010997884.8A CN112062458B (en) 2020-09-21 2020-09-21 A kind of special-shaped glass mirror image cutting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010997884.8A CN112062458B (en) 2020-09-21 2020-09-21 A kind of special-shaped glass mirror image cutting method

Publications (2)

Publication Number Publication Date
CN112062458A CN112062458A (en) 2020-12-11
CN112062458B true CN112062458B (en) 2023-03-17

Family

ID=73682284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010997884.8A Active CN112062458B (en) 2020-09-21 2020-09-21 A kind of special-shaped glass mirror image cutting method

Country Status (1)

Country Link
CN (1) CN112062458B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04160577A (en) * 1990-10-25 1992-06-03 Ricoh Co Ltd Image processing device and plotter
US5579406A (en) * 1990-08-24 1996-11-26 Fuji Xerox Co., Ltd. Apparatus and method for outline data processing
US5739656A (en) * 1995-02-13 1998-04-14 Samsung Electronics Co., Ltd. Numerical controlling method with mirror image function
CN108978573A (en) * 2018-08-16 2018-12-11 长江水利委员会长江科学院 A kind of method of terrain data quick visualization auxiliary river bed change research
CN109886879A (en) * 2019-02-19 2019-06-14 珠海中易建建设工程有限公司 Figure mirror processing method, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599287B (en) * 2018-12-13 2022-11-01 河源龙记金属制品有限公司 System and method for customizing a machined product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5579406A (en) * 1990-08-24 1996-11-26 Fuji Xerox Co., Ltd. Apparatus and method for outline data processing
JPH04160577A (en) * 1990-10-25 1992-06-03 Ricoh Co Ltd Image processing device and plotter
US5739656A (en) * 1995-02-13 1998-04-14 Samsung Electronics Co., Ltd. Numerical controlling method with mirror image function
CN108978573A (en) * 2018-08-16 2018-12-11 长江水利委员会长江科学院 A kind of method of terrain data quick visualization auxiliary river bed change research
CN109886879A (en) * 2019-02-19 2019-06-14 珠海中易建建设工程有限公司 Figure mirror processing method, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梁贺.水射流机床用CAD图形系统开发.《中国优秀博硕士学位论文全文数据库(硕士) 工程科技I辑》.2007,B022-226. *
水射流机床用CAD图形系统开发;梁贺;《中国优秀博硕士学位论文全文数据库(硕士) 工程科技I辑》;20070915;2.1部分、2.2部分、3.4.2部分、1.2.3部分、第四章前言、4.1部分、3.2.1部分、1.1.2部分、1.3.1部分、1.3.2部分 *

Also Published As

Publication number Publication date
CN112062458A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN112148932B (en) Visualization method, system, computer device and storage medium
Fu et al. Computing inversion-free mappings by simplex assembly
WO2019109485A1 (en) Echarts tool-based chart making method, apparatus and device, and medium
CN111078689B (en) Data processing method and system of discontinuous pre-ordering traversal tree algorithm
EP4020250A1 (en) Performing database joins in distributed data processing systems
EP2959458A1 (en) Systems and methods for interactive image caricaturing by an electronic device
CN109961516B (en) Surface acquisition method, device and non-transitory computer readable recording medium
CN112062458B (en) A kind of special-shaped glass mirror image cutting method
CN112015405A (en) Interface layout file generation method, interface generation method, device and equipment
TWI514180B (en) System and method for processing information of measurement numbers
WO2023134134A1 (en) Method and apparatus for generating association viewing model, and computer device and storage medium
CN114494379B (en) Convex hull-assisted three-dimensional point cloud registration method, device and medium based on FPFH
CN111524215B (en) Method for splitting CG picture rendering layer
CN112330679B (en) Numerical control machining-oriented free-form surface segmentation method and system
CN115082253A (en) Recipe cavity Recipe management system and semiconductor device control method
CN111967067A (en) Rapid quality inspection method for environmental protection data
CN116307142B (en) A single rule nesting method for combining irregular images
CN114385540A (en) A data unit conversion method and device
CN114580046A (en) Method for engineering drawing, computer readable storage medium and electronic device
CN119150838B (en) Efficient data processing system and method based on multi-source data comparison
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN113742619B (en) Method, device, electronic device and storage medium for determining page layout
CN117406563B (en) Method for detecting position offset of alignment mark and method for processing semiconductor
CN114706216B (en) A method of constructing free-form surfaces
Wei et al. On the polygon containment problem on an isometric grid

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant