A curve fitting method, device and medium based on tire curve
By using a double circular arc spline curve fitting method, the stability and speed issues of Bezier curve fitting in tire design are solved, achieving efficient tire curve fitting, which is applicable to aircraft tires and other curved surface designs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHANGCHUN INSTITUTE OF APPLIED CHEMISTRY CHINESE ACADEMY OF SCIENCES
- Filing Date
- 2022-07-07
- Publication Date
- 2026-05-29
AI Technical Summary
The Bezier curve fitting method suffers from low stability and slow operation in tire curve design. In particular, when too many data points are collected, the Bezier curve has a high order, which leads to curve oscillation.
The double circular arc spline curve fitting method is adopted. By collecting tire inflation size parameters, selecting sample points, and performing double circular arc fitting, auxiliary points and complete circular arc information are generated, reducing the number of list points and improving fitting stability and speed.
It improves the stability and speed of tire curve fitting, saves storage space, and is suitable for various tire design scenarios.
Smart Images

Figure CN115146387B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of curve fitting technology, and in particular to a curve fitting method, apparatus and medium based on tire curves. Background Technology
[0002] Currently, in the design of tire surfaces, it is usually necessary to conduct forward design based on the user's requirements for parameters such as tire inflation size, dynamic performance, and load-bearing capacity. Curve fitting is a commonly used technique in the design process. Curve fitting is a data processing method that uses a continuous curve to approximate or analogize the functional relationship between coordinates represented by a discrete set of points on a plane. It provides an important clue to the geometry of industrial products and has wide applications in industrial modeling, architectural design, medical visualization, 3D reconstruction, electronic engineering, robotics, clothing and footwear model design, terrain description, military combat simulation, animation production, and multimedia technology. Currently, the commonly used curve fitting method is the Bezier curve fitting method.
[0003] However, when the Bezier method is running, if too many list points are collected, the Bezier curve has a high order and its derivative will have multiple zeros, resulting in too many extreme points on the curve. This leads to curve oscillations, low stability, and low running speed, making it unsuitable for curve fitting of tire curves.
[0004] In view of the above problems, designing a curve fitting method based on tire curves is an urgent problem to be solved by technicians in this field. Summary of the Invention
[0005] The purpose of this application is to provide a curve fitting method, device and medium based on tire curves, which solves the problems of low stability and low operating speed of traditional curve fitting methods.
[0006] To address the aforementioned technical problems, this application provides a curve fitting method based on tire curves, comprising:
[0007] Collect tire inflation size parameters to obtain a list of all points for the parameters;
[0008] Select sample points from the list of points;
[0009] Perform double circular arc fitting on the sample points to obtain double circular arc information;
[0010] Auxiliary points are generated based on the double circular arc information;
[0011] Obtain the auxiliary point arc information of the auxiliary point;
[0012] The complete arc information and straight line information of the tire are generated based on the double arc information and the auxiliary point arc information.
[0013] Preferably, selecting sample points from the list of points includes:
[0014] Select a preset number of the list points as initial sample points;
[0015] Perform initial double circular arc fitting on the initial sample points to obtain initial double circular arc information;
[0016] Based on the initial double circular arc information, determine whether the list points meet the double circular arc spline fitting requirements;
[0017] If so, then the initial sample point is used as the sample point;
[0018] If not, add a new initial sample point to the interval of the list points, and return to the step of performing initial double circular arc fitting on the initial sample point to obtain initial double circular arc information.
[0019] Preferably, adding new initial sample points to the interval of the list points includes:
[0020] Obtain a preset range of tangent angle differences that meet the fitting requirements of the double circular arc spline;
[0021] Based on the initial double circular arc information, obtain the interval of the list points where the tangent angle difference is greater than the preset range, and add a first initial sample point to the interval of the list points;
[0022] Based on the initial double-circle arc information, obtain the interval of the list points where the tangent angle difference is less than the preset range, and obtain the distance from each list point to P. j-1 String and String Length For the interval of the list points where the included angle is greater than the included angle error, add a second initial sample point to the interval of the list points; where P j (j = 1, 2…n) is the list of point coordinate vectors;
[0023] In the remaining intervals of the list points, obtain the intervals of the list points other than the initial sample point where the distance between the double arcs in the interval of the list points is greater than the distance error, and add a third initial sample point in the intervals of the list points;
[0024] The first initial sample point, the second initial sample point, and the third initial sample point are added as new initial sample points to the interval of the list points.
[0025] Preferably, generating auxiliary points based on the double circular arc information includes:
[0026] Based on the double circular arc information, determine whether the interval of the list points whose tangent angle difference is greater than the preset range is an empty set;
[0027] If not, obtain the first tangent angle direction in the interval of the list points and the corresponding list point, and obtain the second tangent angle direction in the interval of the list points and the corresponding list point;
[0028] The auxiliary point is generated based on the first tangent angle direction and its corresponding list point in the interval of the list points, and the second tangent angle direction and its corresponding list point.
[0029] Preferably, generating the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information includes:
[0030] Generate arc information without auxiliary points based on the aforementioned double arc information;
[0031] The auxiliary point arc information is inserted into the arc information to generate the complete arc information;
[0032] The straight line information is generated based on the complete arc information.
[0033] Preferably, if the interval of the list points whose tangent angle difference is greater than the preset range is determined based on the double circular arc information to be an empty set, the method further includes:
[0034] The auxiliary points are not generated.
[0035] The complete arc information and the straight line information are generated based on the double arc information.
[0036] Preferably, after generating the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information, the method further includes:
[0037] Output the curve fitting results for the tire.
[0038] To address the aforementioned technical problems, this application also provides a curve fitting device based on tire curves, comprising:
[0039] The data acquisition module is used to acquire tire inflation size parameters to obtain a list of all points of the parameters;
[0040] The selection module is used to select sample points from the list of points;
[0041] The first acquisition module is used to perform double circular arc fitting on the sample points to obtain double circular arc information;
[0042] The first generation module is used to generate auxiliary points based on the double arc information;
[0043] The second acquisition module is used to acquire the auxiliary point arc information of the auxiliary point;
[0044] The second generation module is used to generate the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information.
[0045] To address the aforementioned technical problems, this application also provides another curve fitting device based on tire curves, comprising:
[0046] Memory, used to store computer programs;
[0047] A processor is used to implement the steps of the above-described curve fitting method based on tire curves when executing the computer program.
[0048] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned curve fitting method based on tire curves.
[0049] The tire curve fitting method provided in this application collects tire inflation dimension parameters to obtain a list of all parameter points; selects sample points from the list and performs double circular arc fitting on these sample points to obtain double circular arc information; generates auxiliary points based on the double circular arc information and obtains the auxiliary point arc information; and generates the complete circular arc and straight line information of the tire based on the double circular arc information and the auxiliary point arc information. Therefore, the above scheme uses double circular arc spline curve fitting, which has good stability; by selecting sample points, the number of list points is greatly reduced, the fitting speed is accelerated, storage space is saved, and operating efficiency is improved.
[0050] In addition, embodiments of this application also provide a curve fitting device based on tire curves and a computer-readable storage medium, with the same effect as above. Attached Figure Description
[0051] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 A flowchart illustrating a curve fitting method based on tire curves provided in this application embodiment;
[0053] Figure 2 A schematic diagram of a curve fitting device based on a tire curve provided in an embodiment of this application;
[0054] Figure 3 This is a schematic diagram of another curve fitting device based on tire curves provided in an embodiment of this application. Detailed Implementation
[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0056] The core of this application is to provide a curve fitting method, device, and medium based on tire curves.
[0057] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0058] Figure 1 A flowchart illustrating a curve fitting method based on tire curves provided in this application embodiment. Figure 1 As shown, the method includes:
[0059] S10: Collect tire inflation size parameters to obtain a list of all parameter points.
[0060] S11: Select sample points from the list of points.
[0061] S12: Perform double circular arc fitting on the sample points to obtain double circular arc information.
[0062] S13: Generate auxiliary points based on the information of the double circular arcs.
[0063] S14: Obtain the auxiliary point arc information.
[0064] S15: Generate complete arc and straight line information of the tire based on the double arc information and auxiliary point arc information.
[0065] It is understood that the tire curve fitting method provided in this application embodiment is mainly applied to the application scenario of forward tire design based on tire parameter requirements. This method can be used for aircraft tire design, but is not limited to aircraft tire design. It can also be applied to other types of forward surface design, for example. This embodiment does not impose any limitations and depends on the specific implementation.
[0066] Specifically, firstly, the tire inflation size parameters are collected to generate a list of parameter points. Next, sample points are selected from all the list points. The number of sample points is less than the total number of list points. Preliminary double-circular-arc fitting is performed on the selected sample points to obtain double-circular-arc information. Then, auxiliary points are generated based on the double-circular-arc information. In this embodiment, the specific selection process for sample points is not limited and depends on the specific implementation; similarly, the specific process for generating auxiliary points based on the double-circular-arc information is not limited and depends on the specific implementation.
[0067] After obtaining the auxiliary points, the auxiliary point arc information is acquired, and the complete arc and straight line information of the tire are generated based on the double arc information and the auxiliary point arc information. This embodiment does not limit the process of generating the complete arc and straight line information of the tire; it depends on the specific implementation.
[0068] In this embodiment, tire inflation dimension parameters are collected to obtain a list of all parameter points. Sample points are selected from the list points, and double circular arc fitting is performed on the sample points to obtain double circular arc information. Auxiliary points are generated based on the double circular arc information, and auxiliary point arc information is obtained. The complete circular arc information and straight line information of the tire are generated based on the double circular arc information and the auxiliary point arc information. Therefore, the above scheme uses double circular arc spline curve fitting, which has good stability. By selecting sample points, the number of list points is greatly reduced, the fitting speed is accelerated, storage space is saved, and operating efficiency is improved.
[0069] Based on the above embodiments:
[0070] As a preferred embodiment, selecting sample points from the list of points includes:
[0071] Select a preset number of list points as initial sample points;
[0072] Initial double circular arc fitting is performed on the initial sample points to obtain initial double circular arc information;
[0073] Determine whether the list points meet the double circular arc spline fitting requirements based on the initial double circular arc information;
[0074] If so, then the initial sample point will be used as the sample point;
[0075] If not, add new initial sample points to the interval of the list points and return to the step of performing initial double circular arc fitting on the initial sample points to obtain initial double circular arc information.
[0076] Specifically, the first step is to select a predetermined number of list points with equal step sizes from all list points as initial sample points. In this embodiment, the predetermined number is not limited and depends on the specific implementation. j(j=1,2…n) is the list point coordinate vector, t j This is the corresponding tangent vector.
[0077] In [P] j ,P j+1 The cubic parametric spline function representing the planar curve of the initial sample points within the interval using coordinate vectors is:
[0078] P j (u)=R 3j u 3 +R 2j u 2 +R 1j u+R 0j , where R 0j =P j R 1j =t j .
[0079] R 2j =3(P j+1 -P j )-2t j -2t j+1 ;R 3j =2(P j -P j+1 )+t j +t j+1 ;(j=1,2…n-1,0≤u≤1);
[0080] By adding the boundary condition of a smooth and continuous curve, the tangent vector components are obtained using the chasing method. The presence or absence of inflection points in the double circular arc is determined by the tangent vector components. If there are no inflection points,
[0081] when hour,
[0082]
[0083] when hour,
[0084]
[0085] when hour,
[0086]
[0087] If there is an inflection point
[0088]
[0089]
[0090] The coordinates of the first center are
[0091] The coordinates of the second center are
[0092] in, For P j-1 The radius of the circle, For P j The radius of the circle, θ j-1 tangent vector t j-1 and The included angle, θ j tangent vector t j and The included angle, L j-1 String length
[0093] S j-1 =|sinθ j-1 |,S j =|sinθ j |;
[0094]
[0095] The initial double-circular arc information of the initial sample points has been obtained above. Further, based on the initial double-circular arc information, it is determined whether the list points meet the double-circular arc spline fitting requirements; if so, the initial sample points are used as sample points; if not, new initial sample points are added to the interval of the list points, and the process returns to the step of performing initial double-circular arc fitting on the initial sample points to obtain the initial double-circular arc information. In this embodiment, the specific determination process for whether the list points meet the double-circular arc spline fitting requirements based on the initial double-circular arc information is not limited and depends on the specific implementation.
[0096] In this embodiment, a preset number of list points are selected as initial sample points; initial double-circular arc fitting is performed on the initial sample points to obtain initial double-circular arc information; based on the initial double-circular arc information, it is determined whether the list points meet the double-circular arc spline fitting requirements; if so, the initial sample points are used as sample points; if not, new initial sample points are added to the interval of the list points, and the process returns to the step of performing initial double-circular arc fitting on the initial sample points to obtain initial double-circular arc information. This achieves the selection of sample points, greatly reduces the number of list points, speeds up the operation, and saves storage space.
[0097] Based on the above embodiments:
[0098] As a preferred embodiment, adding new initial sample points within the interval of the list points includes:
[0099] Obtain the preset range of the tangent angle difference that meets the fitting requirements of the double circular arc spline;
[0100] Based on the initial double circular arc information, obtain the interval of list points where the difference in tangent angle is greater than the preset range, and add the first initial sample point to the interval of list points;
[0101] Based on the initial double circular arc information, obtain the interval of list points where the tangent angle difference is less than the preset range, and obtain the distance from each list point to P. j-1 String and String Length For the intervals of list points where the included angle is greater than the included angle error, add a second initial sample point to the intervals of the list points; where P j (j = 1, 2…n) is the list of point coordinate vectors;
[0102] In the remaining list point intervals, obtain the intervals where the distance between the double arcs from the list points other than the initial sample points is greater than the distance error, and add a third initial sample point to the list point intervals.
[0103] The first, second, and third initial sample points are added as new initial sample points to the interval of the list points.
[0104] Having obtained the initial double-circle information in the above embodiment, in this embodiment, firstly through O1, O2, P j-1 P j Obtain the common tangent point T of the double circular arcs; obtain the preset range of the tangent angle difference that satisfies the fitting requirements of the double circular arc spline; then find the list point intervals in the initial double circular arc information where the tangent angle difference is too large, exceeding the preset range, and thus does not meet the fitting requirements of the double circular arc spline; and add the first initial sample point within the interval.
[0105] Furthermore, the algorithm identifies the intervals of list points in the initial double circular arc information where the tangent angle difference is too small, less than the preset range, and therefore does not meet the requirements for double circular arc spline fitting. It then calculates the distance from each list point within the interval to P. j-1 String and String Length Find the angle between the two samples, and then find the interval where the angle is greater than the error. Add a second initial sample point within the interval.
[0106] Finally, within the remaining list point intervals, find the intervals where the distance from the list points other than the initial sample points to the double arcs within the interval is greater than the distance error, and add a third initial sample point within these intervals. Combine the first, second, and third initial sample points to form the additional point list.
[0107] It is important to note that if the added point column is not empty, the initial sample points and the added point column are merged, and the initial sample points are filtered again. This process continues until the added point column is empty or is the same as the previous one, at which point suitable sample point information is selected from the entire list of points.
[0108] In this embodiment, the initial sample points in different list point intervals are increased based on the relationship between the tangent angle difference of the initial double circular arc information and the double circular arc spline fitting requirements, so as to facilitate subsequent double circular arc fitting.
[0109] Based on the above embodiments:
[0110] As a preferred embodiment, generating auxiliary points based on the double circular arc information includes:
[0111] Based on the double circular arc information, determine whether the interval of list points whose tangent angle difference is greater than the preset range is an empty set;
[0112] If not, obtain the first tangent angle direction and its corresponding list point in the interval of the list points, and obtain the second tangent angle direction and its corresponding list point in the interval of the list points;
[0113] Auxiliary points are generated based on the first tangent angle direction and its corresponding list point in the interval of the list points, and the second tangent angle direction and its corresponding list point.
[0114] In the above embodiments, the process of generating auxiliary points is not limited and depends on the specific implementation. As a preferred embodiment, it is first determined whether the interval of list points with a tangent angle difference greater than a preset range is an empty set based on the double circular arc information.
[0115] Specifically, if the set is not empty, auxiliary points are generated based on the first tangent angle direction and its corresponding list point, and the second tangent angle direction and its corresponding list point within the interval of the list points: Find the large tangent angle direction td and its corresponding list point Pd, and the small tangent angle direction tx and its corresponding list point Px within this interval. Draw a line l1 perpendicular to td through Pd, and draw a line l1 perpendicular to td through Px. The angle bisector lies on line l2. Draw a perpendicular line within the interval... Let line l3 intersect l1 at α and l2 at β; let |Pdα|=|αβ|. Here, β is the coordinate of the added auxiliary point, and α is the coordinate of the center of the circle between auxiliary point β and list point Pd. This yields the arc information between auxiliary point β and list point Pd. Then, double arc fitting is performed between auxiliary point β and list point Px to obtain the center, radius, and common tangent coordinates of the double arc of the auxiliary point, thus obtaining the arc information of the auxiliary point.
[0116] In this embodiment, when the interval of the list points whose tangent angle difference is greater than the preset range is determined based on the double arc information, it is not an empty set. The first tangent angle direction and its corresponding list point in the interval of the list points are obtained, and the second tangent angle direction and its corresponding list point in the interval of the list points are obtained. The auxiliary point is generated based on the first tangent angle direction and its corresponding list point in the interval of the list points, and the second tangent angle direction and its corresponding list point, thereby obtaining the auxiliary point arc information.
[0117] Based on the above embodiments:
[0118] As a preferred embodiment, generating the complete arc information and straight line information of the tire based on the dual arc information and the auxiliary point arc information includes:
[0119] Generate arc information without auxiliary points based on the double arc information;
[0120] Insert the auxiliary point arc information into the arc information to generate complete arc information;
[0121] Generate straight line information based on complete arc information.
[0122] In the above embodiments, the double arc information of the sample points and the arc information of the auxiliary points are obtained, and the complete arc information and straight line information of the tire can be generated based on the above information.
[0123] Specifically, the double-arc information of the selected sample points in the above embodiments is cross-integrated into arc information without auxiliary points. Then, the triple-arc information of the auxiliary points is inserted into the arc information to form complete arc information. Finally, straight lines with excessively small tangent angle differences (i.e., less than a preset range) are filtered from the complete arc information. This ultimately achieves complete double-arc curve fitting. Compared to conventional fitting methods, this method has better stability, significantly reduces the number of list points, speeds up the process, saves storage space, and has less stringent requirements on list points and tangent direction, making it applicable to curve fitting with any list points.
[0124] Based on the above embodiments:
[0125] As a preferred embodiment, if the interval of list points whose tangent angle difference is greater than a preset range is determined based on the double circular arc information to be an empty set, the method further includes:
[0126] No auxiliary points are generated;
[0127] Generate complete arc and straight line information based on the double arc information.
[0128] It is understandable that when the list of points in the double circular arc information is confirmed to be an empty set, meaning there are no list of points with excessively large tangent angle differences that do not meet the requirements for fitting the double circular arc spline, there is no need to set auxiliary points. The complete circular arc information and straight line information can be generated directly from the double circular arc information.
[0129] Furthermore, to indicate to the user that curve fitting is complete, after generating the complete arc and straight line information of the tire based on the double arc information and auxiliary point arc information, the following steps are also included:
[0130] Output the curve fitting results for the tire.
[0131] By outputting the curve fitting results of the tire, the user is notified that the curve fitting is complete, so that the user can perform subsequent operations based on the results.
[0132] In the above embodiments, curve fitting based on tire curves has been described in detail. This application also provides embodiments corresponding to a curve fitting device based on tire curves. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on functional modules, and the other is based on hardware structure.
[0133] Figure 2 This is a schematic diagram of a curve fitting device based on a tire curve, provided as an embodiment of this application. Figure 2 As shown, the curve fitting device based on tire curves includes:
[0134] The acquisition module 10 is used to acquire tire inflation size parameters to obtain a list of all parameter points.
[0135] Module 11 is used to select sample points from the list of points.
[0136] The first acquisition module 12 is used to perform double circular arc fitting on the sample points to obtain double circular arc information.
[0137] The first generation module 13 is used to generate auxiliary points based on the double arc information.
[0138] The second acquisition module 14 is used to acquire the auxiliary point arc information of the auxiliary point.
[0139] The second generation module 15 is used to generate complete arc information and straight line information of the tire based on the double arc information and auxiliary point arc information.
[0140] In this embodiment, the curve fitting device based on the tire curve includes an acquisition module, a selection module, a first acquisition module, a first generation module, a second acquisition module, and a second generation module. It acquires all list points of the tire inflation size parameters; selects sample points from the list points and performs double circular arc fitting on the sample points to obtain double circular arc information; generates auxiliary points based on the double circular arc information and obtains the auxiliary point arc information; and generates the complete circular arc information and straight line information of the tire based on the double circular arc information and the auxiliary point arc information. Therefore, the above scheme uses double circular arc spline curve fitting, which has good stability; by selecting sample points, it greatly reduces the number of list points, speeds up the fitting process, saves storage space, and improves operating efficiency.
[0141] Figure 3 This is a schematic diagram of another curve fitting device based on tire curves provided in an embodiment of this application. Figure 3As shown, the curve fitting device based on tire curves includes:
[0142] Memory 20 is used to store computer programs;
[0143] The processor 21 is configured to execute a computer program to implement the steps of the curve fitting method based on tire curves as described in the above embodiments.
[0144] The curve fitting device based on tire curves provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0145] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0146] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the tire curve fitting method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the tire curve fitting method.
[0147] In some embodiments, the curve fitting device based on tire curves may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0148] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the tire curve-fitting device and may include more or fewer components than shown.
[0149] In this embodiment, the curve fitting device based on tire curves includes a memory and a processor. The processor executes a computer program to implement the steps of the curve fitting method based on tire curves as described in the above embodiment. The process involves collecting tire inflation size parameters to obtain a list of all parameter points; selecting sample points from the list and performing double circular arc fitting on the sample points to obtain double circular arc information; generating auxiliary points based on the double circular arc information and obtaining auxiliary point circular arc information; and generating complete circular arc information and straight line information of the tire based on the double circular arc information and the auxiliary point circular arc information. Therefore, the above scheme uses double circular arc spline curve fitting, which has good stability; by selecting sample points, the number of list points is greatly reduced, the fitting speed is accelerated, storage space is saved, and operating efficiency is improved.
[0150] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.
[0151] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0152] In this embodiment, a computer program is stored on a computer-readable storage medium. When the computer program is executed by a processor, it implements the steps described in the above method embodiment. The process involves collecting tire inflation size parameters to obtain a list of all parameter points; selecting sample points from the list and performing double circular arc fitting on the sample points to obtain double circular arc information; generating auxiliary points based on the double circular arc information and obtaining auxiliary point arc information for these auxiliary points; and generating complete circular arc and straight line information for the tire based on the double circular arc information and the auxiliary point arc information. Therefore, the above scheme uses double circular arc spline curve fitting, which has good stability; by selecting sample points, the number of list points is greatly reduced, the fitting speed is accelerated, storage space is saved, and operating efficiency is improved.
[0153] The foregoing has provided a detailed description of the curve fitting method, apparatus, and medium based on tire curves provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0154] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A curve fitting method based on tire curves, characterized in that, include: Collect tire inflation size parameters to obtain a list of all points for the parameters; Select sample points from the list of points; Perform double circular arc fitting on the sample points to obtain double circular arc information; Auxiliary points are generated based on the double circular arc information; Obtain the auxiliary point arc information of the auxiliary point; The complete arc information and straight line information of the tire are generated based on the double arc information and the auxiliary point arc information. Selecting sample points from the list of points includes: Select a preset number of the list points as initial sample points; Initial double circular arc fitting is performed on the initial sample points to obtain initial double circular arc information; Based on the initial double circular arc information, determine whether the list points meet the double circular arc spline fitting requirements; If so, then the initial sample point is used as the sample point; If not, add a new initial sample point to the interval of the list points, and return to the step of performing initial double circular arc fitting on the initial sample point to obtain initial double circular arc information; Adding new initial sample points to the interval of the listed points includes: Obtain a preset range of tangent angle differences that meet the fitting requirements of the double circular arc spline; Based on the initial double circular arc information, obtain the interval of the list points where the tangent angle difference is greater than the preset range, and add a first initial sample point to the interval of the list points; Based on the initial double-circle arc information, obtain the interval of the list points where the tangent angle difference is less than the preset range, and obtain the distance from each list point to... String and String Length For the intervals of the list points where the included angle is greater than the included angle error, a second initial sample point is added to the intervals of the list points; wherein... The list contains point coordinate vectors; In the remaining intervals of the list points, obtain the intervals of the list points other than the initial sample point where the distance between the double arcs in the interval of the list points is greater than the distance error, and add a third initial sample point in the intervals of the list points; The first initial sample point, the second initial sample point, and the third initial sample point are added as the new initial sample points to the interval of the list points; The step of generating auxiliary points based on the double circular arc information includes: Based on the double circular arc information, determine whether the interval of the list points whose tangent angle difference is greater than the preset range is an empty set; If not, obtain the first tangent angle direction in the interval of the list points and the corresponding list point, and obtain the second tangent angle direction in the interval of the list points and the corresponding list point; The auxiliary point is generated based on the first tangent angle direction and its corresponding list point in the interval of the list points, and the second tangent angle direction and its corresponding list point. The step of generating the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information includes: Generate arc information without auxiliary points based on the aforementioned double arc information; The auxiliary point arc information is inserted into the arc information to generate the complete arc information; The straight line information is generated based on the complete arc information.
2. The curve fitting method based on tire curves according to claim 1, characterized in that, If, based on the double-circular arc information, the interval of the list points whose tangent angle difference is greater than the preset range is determined to be an empty set, the method further includes: The auxiliary points are not generated. The complete arc information and the straight line information are generated based on the double arc information.
3. The curve fitting method based on tire curves according to claim 1, characterized in that, After generating the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information, the method further includes: Output the curve fitting results for the tire.
4. A curve fitting device based on tire curves, characterized in that, include: The data acquisition module is used to acquire tire inflation size parameters to obtain a list of all points of the parameters; The selection module is used to select sample points from the list of points; The first acquisition module is used to perform double circular arc fitting on the sample points to obtain double circular arc information; The first generation module is used to generate auxiliary points based on the double arc information; The second acquisition module is used to acquire the auxiliary point arc information of the auxiliary point; The second generation module is used to generate complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information; Selecting sample points from the list of points includes: Select a preset number of the list points as initial sample points; Initial double circular arc fitting is performed on the initial sample points to obtain initial double circular arc information; Based on the initial double circular arc information, determine whether the list points meet the double circular arc spline fitting requirements; If so, then the initial sample point is used as the sample point; If not, add a new initial sample point to the interval of the list points, and return to the step of performing initial double circular arc fitting on the initial sample point to obtain initial double circular arc information; Adding new initial sample points to the interval of the listed points includes: Obtain a preset range of tangent angle differences that meet the fitting requirements of the double circular arc spline; Based on the initial double circular arc information, obtain the interval of the list points where the tangent angle difference is greater than the preset range, and add a first initial sample point to the interval of the list points; Based on the initial double-circle arc information, obtain the interval of the list points where the tangent angle difference is less than the preset range, and obtain the distance from each list point to... String and String Length For the intervals of the list points where the included angle is greater than the included angle error, a second initial sample point is added to the intervals of the list points; wherein... The list contains point coordinate vectors; In the remaining intervals of the list points, obtain the intervals of the list points other than the initial sample point where the distance between the double arcs in the interval of the list points is greater than the distance error, and add a third initial sample point in the intervals of the list points; The first initial sample point, the second initial sample point, and the third initial sample point are added as the new initial sample points to the interval of the list points; The step of generating auxiliary points based on the double circular arc information includes: Based on the double circular arc information, determine whether the interval of the list points whose tangent angle difference is greater than the preset range is an empty set; If not, obtain the first tangent angle direction in the interval of the list points and the corresponding list point, and obtain the second tangent angle direction in the interval of the list points and the corresponding list point; The auxiliary point is generated based on the first tangent angle direction and its corresponding list point in the interval of the list points, and the second tangent angle direction and its corresponding list point. The step of generating the complete arc information and straight line information of the tire based on the double arc information and the auxiliary point arc information includes: Generate arc information without auxiliary points based on the aforementioned double arc information; The auxiliary point arc information is inserted into the arc information to generate the complete arc information; The straight line information is generated based on the complete arc information.
5. A curve fitting device based on tire curves, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the curve fitting method based on tire curves as described in any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the curve fitting method based on tire curves as described in any one of claims 1 to 3.