Polishing path planning method and system based on bottle body contour

By segmenting the bottle contour and automating path planning, the problems of low efficiency and unstable quality in the existing bottle polishing path planning have been solved, achieving efficient, automated and flexible bottle polishing processing.

CN121607982APending Publication Date: 2026-03-06SHENZHEN QIANJI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202512004033.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-03-06

AI Technical Summary

Technical Problem

In existing technologies, bottle polishing path planning relies on manual experience, resulting in low efficiency, unstable quality, and difficulty in adapting to the processing needs of bottles of different shapes and sizes. Furthermore, existing automated methods suffer from computational redundancy, failing to achieve efficient, automated, and flexible processing.

Method used

By segmenting the bottle contour, discretizing each curve segment according to its type, calculating non-interference tool positions and transition tool paths, generating a non-interference polishing path, and automatically planning the polishing path using a computer program.

Benefits of technology

It achieves fully automated bottle polishing path planning, reduces manual operation, ensures the stability and efficiency of processing quality, and adapts to the processing needs of bottles of different shapes and sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121607982A_ABST
    Figure CN121607982A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of bottle body polishing machining, in particular to a polishing path planning method and system based on a bottle body contour and a computer program product.The method comprises the steps that firstly, the non-interference cutter location path of each subsection is calculated, and according to the characteristics of the bottle body contour, the subsection is divided into a plurality of curve sections according to the curve type; and calculating a non-interference cutter location path of each curve segment and a transition cutter location path between adjacent curve segments to obtain non-interference cutter location paths in the segments. Furthermore, a transition cutter location path between adjacent sections is constructed, and a complete bottle body contour polishing path is obtained through integration. According to the method, full-automatic path planning is achieved, manual operation is greatly reduced, it can be guaranteed that the automatically-generated cutter path is an interference-free cutter path, and the stability of machining quality is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of bottle polishing technology, and in particular to a polishing path planning method, system and computer program product based on the bottle contour. Background Technology

[0002] Bottle polishing is a surface finishing process for bottles made of metal and other materials. Through methods such as mechanical grinding, chemical polishing, or plasma treatment, scratches and burrs are removed from the bottle body, improving surface smoothness and reflectivity. This technology is widely used in fields such as insulated cups, enhancing the product's appearance and texture while also aiding in the adhesion of coatings, thus combining aesthetics and practicality.

[0003] Existing methods for planning polishing paths for cutting tools primarily rely on manual experience. Technicians need to manually select key points along the bottle's contour, then move the cutting tool towards those points, repeatedly adjusting the tool's posture to avoid interference during processing. This manual programming method is highly dependent on operator experience, requiring repeated manual selection of key points and adjustment of tool posture, resulting in low efficiency and difficulty in ensuring processing consistency. Furthermore, manual point selection and path planning lacks flexibility, making it difficult to adapt to the processing needs of bottles with different shapes and sizes, leading to longer production cycles and increased processing costs.

[0004] In recent years, with the development of computer-aided manufacturing technology, automated path planning methods have been gradually applied in industrial production. However, for workpieces with fixed rotationally symmetric contours, such as bottle bodies, there is still a lack of efficient automated path planning methods.

[0005] Some manufacturers use software such as PowerMill to automatically generate polishing paths for cutting tools. However, this method requires manual intervention for interference correction, and its complex algorithm has obvious computational redundancy for simple rotationally symmetrical bottle contours. This wastes computing resources and cannot achieve truly intelligent processing. It cannot meet the demands of efficient, automated, and flexible modern production while ensuring processing accuracy. Summary of the Invention

[0006] Therefore, the technical problem to be solved by the present invention is to overcome the problem that the existing technology requires manual intervention and cannot automatically generate the optimal non-interference processing path, resulting in low polishing efficiency and unstable quality.

[0007] To solve the above technical problems, the present invention provides a polishing path planning method based on the bottle body contour, comprising: The calculation of each segment of the bottle's outline does not interfere with the toolpath, including: Based on the curve segment type, the current segment is divided into multiple curve segments, and each curve segment is discretized based on the curve segment type; The discrete points of each curve segment are used as tool points. Interference judgment is performed on each tool point one by one to obtain the non-interference tool points of each curve segment, which are used as the non-interference tool path of each curve segment. Based on the non-interference tool position point, the transition tool position path between adjacent curve segments is solved; Connect the non-interference toolpaths of each curve segment and the transition toolpaths between adjacent curve segments according to the machining sequence to generate the non-interference toolpath of the current segment. Based on the non-interference toolpath of each segment, the layered toolpath, reciprocating toolpath, and advance / retreat toolpath within each segment are constructed to obtain the target non-interference toolpath of each segment. Construct transition toolpaths between adjacent segments; Connect the target non-interference toolpaths of each segment and the transition toolpaths between adjacent segments according to the processing sequence to generate the polishing path of the bottle body contour.

[0008] Preferably, the curve segments are discretized based on the curve segment type, and the steps include: If the current curve segment is a straight line, then the curve segment is uniformly discretized according to the preset number of discrete points to obtain the set of discrete points of the current curve segment; If the current curve segment is a circular arc or a spline curve, analyze its concavity / convexity: if the curve segment has multiple concavity / convexity changes, divide the curve segment based on the inflection points to obtain multiple strictly concave / convex sub-curve segments; for each sub-curve segment, uniformly discretize the sub-curve segment based on the B-axis to obtain an initial set of discrete points; solve for the tool contact point and tool axis direction of the sub-curve segment based on the initial discrete points, and then calculate the tool position point based on the tool contact point and tool axis direction of the sub-curve segment to obtain the target set of discrete points of the sub-curve segment.

[0009] Preferably, discrete points of each curve segment are used as tool points, and interference judgment is performed on each tool point to obtain non-interference tool points for each curve segment, including: If both non-interference knife point and interference knife point exist simultaneously within the current curve segment, then the non-interference critical point is obtained by the dichotomy method between adjacent non-interference knife point and interference knife point. Using the non-interference critical point as the endpoint, the sub-curve segment where the non-interference tool point is located is discrete, and the discrete point of the sub-curve segment is taken as the non-interference tool point.

[0010] Preferably, the method for determining interference at the tool position point is as follows: Obtain the tool profile at the current tool position based on the current tool position and tool axis direction; Determine whether the tool profile at the current tool position point intersects with the initial inspection profile of the bottle. If the tool profile at the current tool position point does not intersect with the initial inspection profile of the bottle, then the current tool position point is a non-interference tool position point. If the tool profile at the current tool position point intersects with the initial inspection profile of the bottle, then further determine whether the tool profile at the current tool position point intersects with the inspection profile of the bottle after offset. If the tool profile at the current tool position point does not intersect with the inspection profile after the bottle body is offset, the interference at the current tool position point is within the error range and is a non-interference tool position point; if the tool profile at the current tool position point intersects with the inspection profile after the bottle body is offset, the current tool position point is an interference tool position point.

[0011] Preferably, based on the non-interference tool position point, the transition tool path between adjacent curve segments is solved, and the steps include: Based on the non-interference tool points at the endpoints of adjacent curve segments and their tool axis directions, determine whether the non-interference tool points at the endpoints of adjacent curve segments overlap; if so, delete the duplicate non-interference tool points and no transition tool path is needed; if not, connect the non-interference tool points at the endpoints of adjacent curve segments as the initial transition tool path. Interference is judged on the initial transition tool path; if no interference occurs, the initial transition tool path is used as the transition tool path; if interference occurs, the non-interference intermediate point is solved between the non-interference tool points at the endpoints of adjacent curve segments, and the intermediate point is used as the transition point to connect the non-interference tool points at the endpoints of adjacent curve segments to obtain the transition tool path.

[0012] Preferably, the non-interference intermediate point is determined between the non-interference tool points at the endpoints of adjacent curve segments, using the following method: S231: Obtain the non-interference tool point at the endpoints of adjacent curve segments, and use the larger X and Y values ​​as the initial intermediate points; Based on the B-axis change angle of the polishing equipment and the tool radius, the chord height generated by the change angle of the tool rotation along the B-axis is calculated and used as the initial safety distance. Initialize the interference state to "no interference"; initialize the non-interference position count n=0; S232: Connect the non-interference tool positions at the endpoints of adjacent curve segments using the midpoint as a transition point, and use this as the midpoint tool position path, and make an interference judgment on the midpoint tool position path. S233: If interference occurs, move the midpoint a safe distance in the positive X direction, change the interference status to "interference has occurred", and return to S232; if no interference occurs, execute S234. S234: Determine if the non-interference position count n is greater than or equal to the preset count; if yes, output the current midpoint; if no, move the midpoint a safe distance in the negative X direction and execute S235. S235: Obtain the current interference state. If the current interference state is no interference, return to S232. If the current interference state is interference, set the non-interference position count n=n+1, halve the safety distance, and return to S232.

[0013] Preferably, the method for determining interference in the toolpath is as follows: Based on the straight-line distance and tool axis direction of the current tool path, the current tool path is uniformly discretized; Traverse all adjacent discrete points and determine whether the adjacent segments formed by two adjacent discrete points interfere with each other; If no interference occurs between adjacent segments, then no interference occurs in the current toolpath; otherwise, interference occurs in the current toolpath.

[0014] Preferably, the method for determining whether interference occurs between adjacent segments formed by two adjacent discrete points is as follows: Based on the positions of two adjacent discrete points and the direction of the tool axis, the tool profiles of the two adjacent discrete points are obtained respectively, and the convex hull of the tool profiles of the two adjacent discrete points is calculated. Determine whether the convex hull intersects with the initial inspection contour of the bottle body; if the convex hull does not intersect with the initial inspection contour of the bottle body, then the current adjacent segments do not interfere; if the convex hull intersects with the initial inspection contour of the bottle body, then further determine whether the convex hull intersects with the inspection contour of the bottle body after offset. If the convex hull does not intersect with the inspection contour after the bottle body is offset, the interference of the current adjacent segment is within the error range, and the current adjacent segment does not interfere; if the convex hull intersects with the inspection contour after the bottle body is offset, the current adjacent segment interferes.

[0015] The present invention also provides a polishing path planning system based on the bottle body contour, comprising: The segmented path planning module is used to calculate non-interfering toolpaths for each segment of the bottle's contour, including: Discrete unit, used to divide the current segment into multiple curve segments according to the curve segment type, and to discretize each curve segment based on the curve segment type; The interference checking unit is used to take the discrete points of each curve segment as tool points, perform interference judgment on each tool point one by one, and obtain the non-interference tool points of each curve segment as the non-interference tool path of each curve segment. The transition tool position solving unit is used to solve the transition tool position path between adjacent curve segments based on the non-interference tool position point; The segmented path synthesis unit is used to connect the non-interference toolpaths of each curve segment and the transition toolpaths between adjacent curve segments according to the machining sequence, and generate the non-interference toolpath of the current segment. The segmented target path calculation module is used to construct the layered tool path, reciprocating tool path, and advance / retreat tool path within each segment based on the non-interference tool path of each segment, so as to obtain the target non-interference tool path of each segment. The segmented transition module is used to construct the transition tool path between adjacent segments; The path integration module is used to connect the target non-interference toolpaths of each segment and the transition toolpaths between adjacent segments according to the processing sequence, and generate the polishing path of the bottle body contour.

[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described polishing path planning method based on the bottle body contour.

[0017] Compared with the prior art, the above-described technical solution of the present invention has the following advantages: This invention discloses a polishing path planning method based on the bottle body contour. First, it calculates the non-interference toolpaths for each segment: considering the characteristics of the bottle body contour, the segments are divided into multiple curve segments according to curve type, and the non-interference toolpath for each curve segment and the transition toolpath between adjacent curve segments are calculated to obtain the non-interference toolpath within each segment. Further, this invention constructs the transition toolpaths between adjacent segments, integrating them to obtain the complete bottle body contour polishing path. This invention achieves fully automated path planning, significantly reducing manual operation, and ensures that the automatically generated toolpaths are non-interference toolpaths, guaranteeing the stability of processing quality. This invention effectively solves the problems of low efficiency and unstable quality in existing bottle polishing path planning methods. Attached Figure Description

[0018] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings, wherein: Figure 1 This is a flowchart of a polishing path planning method based on the bottle body contour according to the present invention; Figure 2 This is a flowchart for solving the non-interference tool path for a curve segment; Figure 3 This is a schematic diagram showing that the knife point does not interfere with each other at all; Figure 4 This is a schematic diagram showing that the tool position does not interfere within the error range; Figure 5 This is a schematic diagram of the interference at the knife point; Figure 6 This is a flowchart for solving the transition tool path between adjacent curve segments; Figure 7 This is a schematic diagram showing that the knife-edge section does not interfere with the road at all; Figure 8 This is a schematic diagram showing that the tool path segments do not interfere within the error range; Figure 9 This is a schematic diagram of interference in the knife path segment; Figure 10 This is a schematic diagram for solving a straight-line toolpath; Figure 11 This is a schematic diagram for solving the circular arc infeed path; Figure 12 This is a schematic diagram of the software interface for setting general parameters according to an embodiment of the present invention; Figure 13 This is a schematic diagram of the software interface for segmented settings according to an embodiment of the present invention; Figure 14 This is a schematic diagram of the software interface for non-interference tool path generation according to an embodiment of the present invention. Detailed Implementation

[0019] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention.

[0020] Reference Figure 1 As shown, the present invention provides a polishing path planning method based on the bottle body contour, including: S1: Construct an interference checker based on the bottle's contour; S2: The calculation of each segment of the bottle outline does not interfere with the tool path; S3: Based on the non-interference toolpath of each segment, construct the layered toolpath, reciprocating toolpath, and advance / retreat toolpath within each segment to obtain the target non-interference toolpath of each segment; S4: Construct transition toolpaths between adjacent segments; S5: Connect the target non-interference toolpaths of each segment and the transition toolpaths between adjacent segments according to the processing sequence to generate the polishing path of the bottle body contour and obtain the final toolpath file.

[0021] Specifically, the steps of S1 include: S11: Obtain user-input parameters, including bottle body parameters, tool geometry parameters, and tool overcut.

[0022] S12: Extract the entire bottle outline based on the bottle body parameters, and use it as the initial inspection outline for the bottle body during interference inspection.

[0023] S13: Construct a wireframe model of the fixture based on the information of the upper and lower fixtures, as the contour that cannot be overcut.

[0024] Taking the following fixture as an example, the method for constructing the fixture wireframe model is as follows: extract the endpoint information of the bottle body contour, obtain the bottom point of the bottle body as the fixture positioning point, and make the fixture depth coincide with this point; combine the fixture height to find the bottom point of the fixture, and then construct the complete wireframe model of the lower fixture according to the fixture diameter.

[0025] The upper fixture can be constructed using the same method.

[0026] S14: Subtract the non-overcut contour from the initial inspection contour of the bottle body to obtain the overcut contour; based on the overcutting amount of the tool, offset the overcut contour to the inside of the bottle body to obtain the inspection contour after offsetting the bottle body; the offset distance is equal to the overcutting amount of the tool.

[0027] S15: Construct a theoretical profile model of the tool based on the tool profile information.

[0028] The interference checker is used in subsequent steps to determine interference at the tool position point and the tool path.

[0029] The specific steps of S2 include:

[0030] S21: Divide the current segment into multiple curve segments according to the curve segment type, and discretize each curve segment based on the curve segment type.

[0031] If the current curve segment is a straight line, then the curve segment is uniformly discretized according to the preset number of discrete points to obtain the set of discrete points of the current curve segment; If the current curve segment is a circular arc or a spline curve, analyze its concavity / convexity: if the curve segment has multiple concavity / convexity changes, divide the curve segment based on the inflection points to obtain multiple strictly concave / convex sub-curve segments; for each sub-curve segment, uniformly discretize the sub-curve segment based on the B-axis to obtain an initial set of discrete points; solve for the tool contact point and tool axis direction of the sub-curve segment based on the initial discrete points, and then calculate the tool position point based on the tool contact point and tool axis direction of the sub-curve segment to obtain the target set of discrete points of the sub-curve segment.

[0032] S22: Take the discrete points of each curve segment as tool positions, perform interference judgment on each tool position one by one, obtain the non-interference tool positions of each curve segment, and use them as the non-interference tool path of each curve segment.

[0033] If all tool points within the current curve segment are non-interference tool points, then all tool points within the current curve segment are retained, and the entire current curve segment becomes a safe toolpath. If all points in the current curve segment are interference tool points, then discard all tool points in the current curve segment; If both non-interference knife points and interference knife points exist simultaneously within the current curve segment, then the non-interference critical point is obtained by bisection between adjacent non-interference knife points and interference knife points; using the non-interference critical point as the endpoint, the sub-curve segment where the non-interference knife point is located is discretized, and the discrete point of the sub-curve segment is used as the non-interference knife point.

[0034] The process for obtaining the non-interference toolpath for a curve segment is as follows: Figure 2 As shown.

[0035] Preferably, the method for judging interference at the tool position point based on the interference checker is as follows: Obtain the tool profile at the current tool position based on the current tool position and tool axis direction; Determine if the tool profile at the current tool position point intersects with the initial inspection profile of the bottle; if the tool profile at the current tool position point does not intersect with the initial inspection profile of the bottle, ... Figure 3 As shown, the current tool position is a non-interference tool position and is completely non-interference; if the tool profile of the current tool position intersects with the initial inspection profile of the bottle body, then it is further determined whether the tool profile of the current tool position intersects with the inspection profile of the bottle body after offset. If the tool profile at the current tool position point does not intersect with the inspection profile after the bottle body is offset, such as Figure 4 As shown, if the interference at the current tool position point is within the error range, it is a non-interference tool position point; if the tool profile at the current tool position point intersects with the inspection profile after the bottle body is offset, such as Figure 5 As shown, the current tool position is the interference tool position.

[0036] S23: Based on the non-interference tool position point, solve the transition tool position path between adjacent curve segments. The steps include: Based on the non-interference tool points at the endpoints of adjacent curve segments and their tool axis directions, determine whether the non-interference tool points at the endpoints of adjacent curve segments overlap; if so, delete the duplicate non-interference tool points and no transition tool path is needed; if not, connect the non-interference tool points at the endpoints of adjacent curve segments as the initial transition tool path. Interference is judged on the initial transition tool path; if no interference occurs, the initial transition tool path is used as the transition tool path; if interference occurs, the non-interference intermediate point is solved between the non-interference tool points at the endpoints of adjacent curve segments, and the intermediate point is used as the transition point to connect the non-interference tool points at the endpoints of adjacent curve segments to obtain the transition tool path.

[0037] The criterion for determining the coincidence of non-interference tool points at the endpoints of adjacent curve segments is that the position of the non-interference tool point and the direction of the tool axis are consistent within the error range.

[0038] In this embodiment, the method for determining the non-interference intermediate point between the non-interference tool points at the endpoints of adjacent curve segments is as follows: S231: Obtain the non-interference tool point at the endpoints of adjacent curve segments, and use the larger X and Y values ​​as the initial intermediate points; Based on the B-axis change angle of the polishing equipment and the tool radius, the chord height generated by the change angle of the tool rotation along the B-axis is calculated and used as the initial safety distance. Initialize the interference state to "no interference"; initialize the non-interference position count n=0; S232: Connect the non-interference tool positions at the endpoints of adjacent curve segments using the midpoint as a transition point, and use this as the midpoint tool position path, and make an interference judgment on the midpoint tool position path. S233: If interference occurs, move the midpoint a safe distance in the positive X direction, change the interference status to "interference has occurred", and return to S232; if no interference occurs, execute S234. S234: Determine if the non-interference position count n is greater than or equal to the preset count; if yes, output the current midpoint; if no, move the midpoint a safe distance in the negative X direction and execute S235. S235: Obtain the current interference state. If the current interference state is no interference, return to S232. If the current interference state is interference, set the non-interference position count n=n+1, halve the safety distance, and return to S232.

[0039] Preferably, the preset number of counts in this embodiment is 3.

[0040] The flowchart for solving the transition tool path between adjacent curve segments is as follows: Figure 6 As shown.

[0041] Preferably, the method for judging interference in the tool path based on the interference checker is as follows: Based on the straight-line distance and tool axis direction of the current tool path, the current tool path is uniformly discretized; Traverse all adjacent discrete points and determine whether the adjacent segments formed by two adjacent discrete points interfere with each other; If no interference occurs between adjacent segments, then no interference occurs in the current toolpath; otherwise, interference occurs in the current toolpath.

[0042] Specifically, the method for determining whether interference occurs between adjacent segments formed by two adjacent discrete points is as follows: Based on the positions of two adjacent discrete points and the direction of the tool axis, the tool profiles of the two adjacent discrete points are obtained respectively, and the convex hull of the tool profiles of the two adjacent discrete points is calculated. Determine whether the convex hull intersects with the initial inspection contour of the bottle body; if the convex hull does not intersect with the initial inspection contour of the bottle body, such as Figure 7As shown, if the current adjacent segments do not interfere, and there is no interference at all; if the convex hull intersects with the initial inspection contour of the bottle body, then it is further determined whether the convex hull intersects with the inspection contour of the bottle body after offset. If the convex hull and the inspection contour after the bottle body is offset do not intersect, such as Figure 8 As shown, if the interference of the current adjacent segment is within the error range, no interference will occur between the current adjacent segments; if the convex hull intersects with the inspection contour after the bottle body is offset, such as Figure 9 As shown, interference occurs between the currently adjacent segments.

[0043] S24: Connect the non-interference toolpaths of each curve segment and the transition toolpaths between adjacent curve segments according to the machining sequence to generate the non-interference toolpath of the current segment.

[0044] In S3, users can construct layered toolpaths, reciprocating toolpaths, and feed / retract toolpaths within each segment based on the non-interference toolpaths of each segment, according to machining needs, to obtain the target non-interference toolpath for each segment. The specific steps are as follows: If it is unidirectional machining, it will be output in the order of toolpath without interfering with the toolpath. If it is a layered reciprocating machining process, the depth of cut for each layer is calculated based on the depth of cut and the total number of machining layers. The toolpath position for each layer is determined based on the depth of cut and its positive or negative sign. The non-interference toolpath of the current segment is taken as the outermost toolpath and translated to the toolpath position of each layer to obtain the toolpath of each layer. The toolpath position of the next layer is adjusted based on the toolpoint position arrangement of the previous layer. The interlayer step-connecting toolpath is constructed based on the depth of cut for each layer to achieve a smooth transition of the reciprocating path. Construct the tool advance and retraction paths within the segment at the start and end positions of the non-interfering toolpath.

[0045] Specifically, the approach and retraction paths within the segments are constructed. Taking the approach path as an example, the method is as follows: Reference Figure 10 As shown, if the non-interference toolpath where the current tool entry point is located is a straight line, the starting point of the tool entry segment is calculated based on the user-input tool entry parameters (including rotation angle and length) and the starting coordinates of the non-interference toolpath; the tool entry path is obtained by connecting the starting point of the tool entry segment and the starting point of the non-interference toolpath. Reference Figure 11 As shown, if the non-interference tool path where the current tool entry point is located is an arc, the contour tangential vector is solved in reverse according to the tool axis direction and B-axis angle at the starting point of the non-interference tool path. Then, the center position is calculated by combining the tool entry radius and the tool entry direction. A circle is drawn with the center and the tool entry radius, and the corresponding arc is intercepted as the tool entry path according to the angle input by the user. The tool path is discretized to generate a set of tool positions for the tool path.

[0046] The method for calculating the retraction path is the same as the method for calculating the infeed path.

[0047] Specifically, in S4, the transition tool path between adjacent segments is constructed as follows: Based on the first and last tool positions of adjacent segments, the interval distance between them is calculated. Then, according to the user-defined transition segment dispersion length, the interval distance is uniformly discretized. At the same time, the B-axis variation is uniformly interpolated to generate a set of tool positions for the transition tool path between adjacent segments.

[0048] Specifically, in S5, the final toolpath file includes: all tool points of the polishing path of the bottle body contour, as well as the toolpath type, feed rate, spindle speed, position and tool axis information corresponding to each tool point.

[0049] In one embodiment of the present invention, reference is made to... Figure 12 As shown, users can set machine tool parameters, tool parameters, fixture parameters, and machining coordinate system parameters on the general parameters page.

[0050] In one embodiment of the present invention, reference is made to... Figure 13 As shown, users can set CAM programming parameters and add different segments according to the bottle's outline, including adding, deleting, reversing, and adjusting segment positions. Users can further adjust segment information, including feed rate, tool advance / retreat, number of machining layers, and machining depth.

[0051] In one embodiment of the present invention, reference is made to... Figure 14 As shown, when the user clicks the calculation button, the polishing path can be calculated, and a non-interfering tool path can be generated based on the bottle's contour.

[0052] This invention discloses a polishing path planning method based on the bottle body contour. First, it calculates the non-interference toolpaths for each segment: considering the characteristics of the bottle body contour, the segments are divided into multiple curve segments according to curve type, and the non-interference toolpath for each curve segment and the transition toolpath between adjacent curve segments are calculated to obtain the non-interference toolpath within each segment. Further, this invention constructs the transition toolpaths between adjacent segments, integrating them to obtain the complete bottle body contour polishing path. This invention achieves fully automated path planning, significantly reducing manual operation, and ensures that the automatically generated toolpaths are non-interference toolpaths, guaranteeing the stability of processing quality. This invention effectively solves the problems of low efficiency and unstable quality in existing bottle polishing path planning methods.

[0053] Based on the above-mentioned polishing path planning method based on bottle contour, the present invention also provides a polishing path planning system based on bottle contour, comprising: The segmented path planning module is used to calculate non-interfering toolpaths for each segment of the bottle's contour, including: Discrete unit, used to divide the current segment into multiple curve segments according to the curve segment type, and to discretize each curve segment based on the curve segment type; The interference checking unit is used to take the discrete points of each curve segment as tool points, perform interference judgment on each tool point one by one, and obtain the non-interference tool points of each curve segment as the non-interference tool path of each curve segment. The transition tool position solving unit is used to solve the transition tool position path between adjacent curve segments based on the non-interference tool position point; The segmented path synthesis unit is used to connect the non-interference toolpaths of each curve segment and the transition toolpaths between adjacent curve segments according to the machining sequence, and generate the non-interference toolpath of the current segment. The segmented target path calculation module is used to construct the layered tool path, reciprocating tool path, and advance / retreat tool path within each segment based on the non-interference tool path of each segment, so as to obtain the target non-interference tool path of each segment. The segmented transition module is used to construct the transition tool path between adjacent segments; The path integration module is used to connect the target non-interference toolpaths of each segment and the transition toolpaths between adjacent segments according to the processing sequence, and generate the polishing path of the bottle body contour.

[0054] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described polishing path planning method based on the bottle body contour.

[0055] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0056] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0057] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0058] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0059] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.

Claims

1. A bottle body contour-based polishing path planning method, characterized by, The method comprises the following steps: calculating non-interference tool path for each segment of the bottle body profile, comprising: dividing the current segment into multiple curve segments according to the curve segment type, and discretizing each curve segment based on the curve segment type; discretizing the discrete points of each curve segment as tool position points, and performing interference judgment on the tool position points one by one to obtain non-interference tool position points of each curve segment as the non-interference tool path of each curve segment; solving the transition tool path between adjacent curve segments based on the non-interference tool position points; connecting the non-interference tool path of each curve segment and the transition tool path between adjacent curve segments in the processing order to generate the non-interference tool path of the current segment; based on the non-interference tool path of each segment, corresponding to build the layered tool path, reciprocating tool path, and advancing and retreating tool path in each segment to obtain the target non-interference tool path of each segment; constructing the transition tool path between adjacent segments; connecting the target non-interference tool path of each segment and the transition tool path between adjacent segments in the processing order to generate the polishing path of the bottle body profile.

2. The bottle contour-based polishing path planning method of claim 1, wherein, Discretizing each curve segment based on the curve segment type, the steps comprise: if the type of the current curve segment is a straight line, the curve segment is uniformly discretized according to a preset number of discrete points to obtain a discrete point set of the current curve segment; if the type of the current curve segment is a circular arc or a spline curve, analyze the concave-convex property of the curve segment: if the curve segment has multiple concave-convex changes, the curve segment is segmented based on the inflection points to obtain multiple strictly concave-convex sub-curve segments; for each sub-curve segment, the sub-curve segment is uniformly discretized based on the B-axis of the sub-curve segment to obtain an initial discrete point set; the tool contact point and tool axis direction of the sub-curve segment are solved based on the initial discrete point, and the target discrete point set of the sub-curve segment is obtained based on the tool contact point and tool axis direction of the sub-curve segment.

3. The method of claim 1, wherein, Discretizing the discrete points of each curve segment as tool position points, and performing interference judgment on the tool position points one by one to obtain non-interference tool position points of each curve segment, comprising: if there are both non-interference tool position points and interference tool position points in the current curve segment, a non-interference critical point is obtained between the adjacent non-interference tool position points and interference tool position points by bisection method; taking the non-interference critical point as an end point, discretizing the sub-curve segment where the non-interference tool position point is located, and taking the discrete points of the sub-curve segment as non-interference tool position points.

4. The bottle contour-based polishing path planning method of claim 1, wherein, The method for interference judgment on the tool position points is: obtaining the tool profile of the current tool position point based on the current tool position point and the tool axis direction; judging whether the tool profile of the current tool position point intersects with the initial inspection profile of the bottle body; if the tool profile of the current tool position point does not intersect with the initial inspection profile of the bottle body, the current tool position point is a non-interference tool position point; if the tool profile of the current tool position point intersects with the initial inspection profile of the bottle body, further judge whether the tool profile of the current tool position point intersects with the inspection profile of the bottle body after offset; if the tool profile of the current tool position point does not intersect with the inspection profile of the bottle body after offset, the interference amount of the current tool position point is within the error range, which is a non-interference tool position point; if the tool profile of the current tool position point intersects with the inspection profile of the bottle body after offset, the current tool position point is an interference tool position point.

5. The bottle contour-based polishing path planning method of claim 1, wherein, Based on the non-interference tool position points, a transition tool path between adjacent curve segments is solved, and the steps include: Based on the non-interference tool position points at the endpoints of adjacent curve segments and the tool axis directions thereof, it is judged whether the non-interference tool position points at the endpoints of adjacent curve segments are coincident; if yes, the repeated non-interference tool position points are deleted, and a transition tool path is not needed; if no, the non-interference tool position points at the endpoints of adjacent curve segments are connected as an initial transition tool path; An interference judgment is performed on the initial transition tool path; if no interference occurs, the initial transition tool path is taken as a transition tool path; if interference occurs, an intermediate point between the non-interference tool position points at the endpoints of adjacent curve segments is solved, the intermediate point is taken as a transition point to connect the non-interference tool position points at the endpoints of adjacent curve segments, and a transition tool path is obtained.

6. The bottle body contour-based polishing path planning method of claim 5, wherein, An intermediate point between the non-interference tool position points at the endpoints of adjacent curve segments is solved, and the method is: S231: The non-interference tool position points at the endpoints of adjacent curve segments are obtained, and the larger X value and Y value thereof are taken as an initial intermediate point; Based on the B-axis change angle of the polishing equipment and the tool radius, a chord height generated by the B-axis change angle of the tool rotation is calculated as an initial safety distance; An interference state is initialized as no interference, and a non-interference position count n is initialized as 0; S232: The non-interference tool position points at the endpoints of adjacent curve segments are connected as an intermediate point tool path by taking the intermediate point as a transition point, and an interference judgment is performed on the intermediate point tool path; S233: If interference occurs, the intermediate point is moved by a safety distance in the positive X direction, the interference state is changed to having occurred, and S232 is returned; if no interference occurs, S234 is executed; S234: It is judged whether the non-interference position count n is greater than or equal to a preset number of times; if yes, the current intermediate point is output; if no, the intermediate point is moved by a safety distance in the negative X direction, and S235 is executed; S235: The current interference state is obtained, if the current interference state is no interference, S232 is returned; if the current interference state is having occurred, the non-interference position count n is n+1, the safety distance is halved, and S232 is returned.

7. The bottle contour-based polishing path planning method of claim 5 or 6, wherein, The method for performing an interference judgment on a tool path is: Based on the straight line distance of the current tool path and the tool axis direction, the current tool path is uniformly dispersed; All adjacent dispersed points are traversed, and it is judged whether adjacent segments formed by two adjacent dispersed points interfere; If all adjacent segments do not interfere, the current tool path does not interfere, otherwise, the current tool path interferes.

8. The bottle contour-based polishing path planning method of claim 7, wherein, The method for judging whether adjacent segments formed by two adjacent dispersed points interfere is: Based on the positions of the two adjacent dispersed points and the tool axis direction, the tool contours of the two adjacent dispersed points are respectively obtained, and the convex hulls of the tool contours of the two adjacent dispersed points are calculated; It is judged whether the convex hulls and the initial inspection contour of the bottle body exist intersection; if the convex hulls and the initial inspection contour of the bottle body do not exist intersection, the current adjacent segments do not interfere; if the convex hulls and the initial inspection contour of the bottle body exist intersection, it is further judged whether the convex hulls and the inspection contour of the bottle body after offset exist intersection; If the convex hull and the inspection contour after the bottle body is offset have no intersection, the interference amount of the current adjacent segment is within the error range, and the current adjacent segment does not interfere; if the convex hull and the inspection contour after the bottle body is offset have an intersection, the current adjacent segment interferes.

9. A bottle body contour based polishing path planning system, characterized by, The method comprises the steps of: The segmented path planning module is configured to calculate an interference-free tool path for each segment of the bottle body contour, comprising: The discrete unit is configured to divide the current segment into a plurality of curve segments according to the curve segment type, and discretize each curve segment based on the curve segment type; The interference checking unit is configured to take the discrete points of each curve segment as tool points, and perform interference judgment on the tool points one by one to obtain interference-free tool points of each curve segment as the interference-free tool path of each curve segment; The transition tool path solving unit is configured to solve the transition tool path between adjacent curve segments based on the interference-free tool points; The segmented path synthesis unit is configured to connect the interference-free tool path of each curve segment and the transition tool path between adjacent curve segments in the machining order to generate the interference-free tool path of the current segment; The segmented target path calculation module is configured to construct a layered tool path, a reciprocating tool path, and a feeding and retracting tool path in each segment based on the interference-free tool path of each segment to obtain a target interference-free tool path of each segment; The segmented transition module is configured to construct a transition tool path between adjacent segments; The path integration module is configured to connect the target interference-free tool path of each segment and the transition tool path between adjacent segments in the machining order to generate a polishing path of the bottle body contour.

10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the polishing path planning method based on the bottle body contour according to any one of claims 1 to 8.