Steel sheet reference line determination method, device, and electronic device
By automating the drawing of steel sheet baselines in CATIA, the inefficiency caused by manual drawing by designers is solved, improving design accuracy and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SAILUN GRP CO LTD
- Filing Date
- 2023-08-03
- Publication Date
- 2026-07-31
AI Technical Summary
When using the 3D design software CATIA to design tire steel strips, designers need to manually draw the steel strips, resulting in low efficiency in drawing the steel strip baseline.
By determining non-parallel sequential and directional lines in the tire design drawing, the sequential lines are cut according to a preset length to generate a set of cutting points, and the target intersection point is determined to generate the steel sheet baseline.
It enables automated drawing of steel sheet baselines, reducing the workload of designers and improving design accuracy and efficiency.
Smart Images

Figure CN117010108B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of tire design technology, and more specifically, to a method, apparatus, and electronic device for determining the reference line of a steel sheet. Background Technology
[0002] When designing tire steel plates using 3D design software (such as CATIA), designers need to determine the position of the steel plates on the tire. In related technologies, designers need to manually draw the steel plates, which is an extremely complicated process. The position and length of the steel plates need to be manually calculated by the designers. This manual drawing method is very complicated and tedious for CATIA designers to draw tire steel plates, resulting in technical problems such as low efficiency in drawing steel plate baselines.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This application provides a method, apparatus, and electronic device for determining steel sheet baselines, in order to at least solve the technical problem of low efficiency in drawing steel sheet baselines caused by the need for designers to manually draw steel sheets in related technologies.
[0005] According to one aspect of the embodiments of this application, a method for determining a steel sheet reference line is provided, comprising: responding to an operation instruction of a front-end interactive interface, determining sequential lines and directional lines in a tire design drawing, wherein the sequential lines and directional lines are not parallel to each other, the sequential lines are used to determine the position where the steel sheet reference line is generated, and the directional lines are used to determine the direction in which the steel sheet reference line is generated; dividing the sequential lines according to a preset length, starting from the first starting point of the sequential lines, to obtain a set of dividing points; determining the target lines corresponding to each dividing point in the set of dividing points, and determining the target intersection points between the target lines and the boundary lines in the set of boundary lines, to obtain a set of target intersection points, wherein the target lines pass through the dividing points and are parallel to the directional lines, and both the sequential lines and the directional lines are located within the closed shape enclosed by the boundary lines in the set of boundary lines; and generating a steel sheet reference line corresponding to the dividing points based on the target intersection points in the set of target intersection points.
[0006] Optionally, dividing the sequential line from the first starting point according to a preset distance includes: determining the line information of the sequential line, wherein the line information includes: line length, starting point and ending point of the line; starting from the first starting point of the sequential line, determining a dividing point every preset length, dividing the sequential line into multiple line segments of preset length, until the length from the dividing point to the first ending point of the sequential line is not greater than the preset length.
[0007] Optionally, determining a cutting point after each preset length includes: establishing a Cartesian coordinate system and determining the coordinate values of a first starting point and a first ending point in the coordinate system, wherein the coordinate values include: an abscissa and a ordinate; determining the ratio of the difference between the abscissas of the first ending point and the first starting point to the length of the sequential line as a first ratio, and determining the ratio of the difference between the ordinates of the first ending point and the first starting point to the length of the sequential line as a second ratio; calculating the ratio of the preset length and the length of the sequential line and rounding it down to obtain the total number of cuts; determining the abscissa increment based on the first ratio and the preset length, and determining the ordinate increment based on the second ratio and the preset length; calculating the sum of the abscissa of the first starting point and the abscissa increments from one to the total number of cuts to obtain the abscissa of each cutting point, and calculating the sum of the ordinate of the first starting point and the ordinate increments from one to the total number of cuts to obtain the ordinate of each cutting point.
[0008] Optionally, the target line includes: a first ray and a second ray; determining the target line corresponding to each cutting point in the set of cutting points includes: determining the midpoint of the azimuth line; determining the first direction corresponding to the azimuth line based on the midpoint and the second starting point of the azimuth line, and determining the second direction corresponding to the azimuth line based on the midpoint and the second ending point of the azimuth line; drawing a ray from the cutting point as the endpoint towards the first direction to obtain the first ray; drawing a ray from the cutting point as the endpoint towards the second direction to obtain the second ray.
[0009] Optionally, generating the steel sheet baseline corresponding to the cutting point based on the target intersection points in the target intersection point set includes: connecting the target intersection points in the target intersection point set corresponding to the cutting point pairwise to obtain a candidate line segment set; if there is an intersection point between the candidate line segment in the candidate line segment set and the boundary line in the boundary line set, and the intersection point is not the starting point or ending point of the candidate line segment, the candidate line segment is deleted, and the remaining candidate line segments in the candidate line segment set are determined as the steel sheet baseline corresponding to the cutting point.
[0010] Optionally, the method further includes: taking the midpoint of the candidate line segment as the endpoint, drawing a ray in any direction, and counting the number of intersection points between the ray and the boundary lines in the set of boundary lines; if the number of intersection points is even, determining that the candidate line segment is outside the closed figure enclosed by the boundary lines in the set of boundary lines, and deleting the candidate line segment from the set of candidate line segments.
[0011] Optionally, the method further includes: if there are multiple candidate line segments in the candidate line segment set that have the same starting point and the same ending point, deleting the duplicate candidate line segments and retaining only one of the multiple candidate line segments that have the same starting point and the same ending point; if there are candidate line segments in the candidate line segment set that have the same starting point and the same ending point as the other candidate line segments, and the same ending point as the same starting point as the other candidate line segments, determining that the two candidate line segments are duplicates, and deleting either of the two duplicate candidate line segments.
[0012] According to another aspect of the embodiments of this application, a steel sheet baseline determination device is also provided, comprising: a line determination module, used to determine sequential lines and directional lines in a tire design drawing in response to an operation command of a front-end interactive interface, wherein the sequential lines and directional lines are not parallel to each other, the sequential lines are used to determine the position where the steel sheet baseline is generated, and the directional lines are used to determine the direction in which the steel sheet baseline is generated; a line segmentation module, used to segment the sequential lines according to a preset length, starting from the first starting point of the sequential lines, to obtain a set of segmentation points; an intersection point determination module, used to determine the target lines corresponding to each segmentation point in the set of segmentation points, and to determine the target intersection points between the target lines and the boundary lines in the set of boundary lines, to obtain a set of target intersection points, wherein the target lines pass through the segmentation points and are parallel to the directional lines, and both the sequential lines and the directional lines are located within the closed shape enclosed by the boundary lines in the set of boundary lines; and a baseline generation module, used to generate the steel sheet baseline corresponding to the segmentation points based on the target intersection points in the set of target intersection points.
[0013] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the program executes a method for determining a steel sheet baseline during runtime.
[0014] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored computer program, wherein the device where the non-volatile storage medium is located executes a steel sheet baseline determination method by running the computer program.
[0015] In this embodiment, in response to operation instructions from the front-end interactive interface, sequential lines and directional lines are determined in the tire design drawing. The sequential lines and directional lines are not parallel. The sequential lines are used to determine the position where the steel sheet baseline is generated, and the directional lines are used to determine the direction in which the steel sheet baseline is generated. The sequential lines are divided according to a preset length, starting from the first starting point, to obtain a set of dividing points. The target lines corresponding to each dividing point in the set of dividing points are determined, as are the target intersection points between the target lines and the boundary lines in the set of boundary lines, resulting in a set of target intersection points. The target lines pass through the dividing points. Furthermore, parallel to the orientation lines, both the sequence lines and the orientation lines are located within the closed shape enclosed by the boundary lines in the boundary line set; based on the target intersection points in the target intersection point set, the steel plate baseline corresponding to the cutting point is generated. Through the automated drawing method of the steel plate baseline, CATIA designers can quickly locate the position, distance, and direction of the steel plate that needs to be drawn, laying the foundation for CATIA steel plate drawing, reducing the workload of designers, and improving design accuracy and efficiency. This solves the technical problem of low efficiency in drawing steel plate baselines caused by the need for designers to manually draw steel plates in related technologies. Attached Figure Description
[0016] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0017] Figure 1 This is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for determining the baseline of a steel sheet, according to an embodiment of this application.
[0018] Figure 2 This is a schematic diagram of a method for determining a steel sheet baseline according to an embodiment of this application;
[0019] Figure 3 This is a schematic diagram of a line segment divided by a distance (preset length) according to an embodiment of this application;
[0020] Figure 4 This is a schematic diagram of a set of target intersection points provided according to an embodiment of this application;
[0021] Figure 5 This is a schematic diagram of a candidate line segment crossing a boundary according to an embodiment of this application;
[0022] Figure 6 This is a schematic diagram of a candidate line segment that meets the requirements according to an embodiment of this application;
[0023] Figure 7 This is a schematic diagram of a visualization interface for drawing a steel sheet baseline built in 3D design software (such as CATIA) according to an embodiment of this application;
[0024] Figure 8 This is a schematic diagram of a steel sheet reference line determination device provided according to an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] When designing tire slabs using the 3D design software CATIA, designers need to determine the position of the slabs on the tire. The slab baseline is the location where the tire slabs are generated. This location includes the slab's position, orientation, number, length, and generation method: the starting and ending positions of the slabs drawn on the baseline.
[0028] In related technologies, when using the 3D design software CATIA to design the air holes of tire treads, designers need to manually measure the distances of key elements, create formulas, establish relationships, create parameters, and draw diagrams based on existing rules and experience. This process is cumbersome, time-consuming, and carries the risk of human error, resulting in low efficiency in drawing steel sheet baselines. To address this problem, this application provides a related solution, which is detailed below.
[0029] According to an embodiment of this application, a method for determining a steel sheet baseline is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] The methods and embodiments provided in this application can be executed on mobile terminals, computer terminals, or similar computing devices. Figure 1 A hardware block diagram of a computer terminal (or electronic device) for implementing a method for determining the baseline of a steel sheet is shown. Figure 1 As shown, the computer terminal 10 (or electronic device 10) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0031] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or electronic device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0032] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the steel sheet baseline determination method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the above-mentioned steel sheet baseline determination method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0034] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or electronic device).
[0035] Under the above operating environment, this application provides a method for determining the reference line of a steel sheet. Figure 2 This is a schematic diagram of a method for determining a steel sheet reference line according to an embodiment of this application, as shown below. Figure 2 As shown, the method includes the following steps:
[0036] Step S202: In response to the operation instructions of the front-end interactive interface, determine the sequence lines and orientation lines in the tire design drawing. The sequence lines and orientation lines are not parallel to each other. The sequence lines are used to determine the position where the steel sheet reference line is generated, and the orientation lines are used to determine the direction in which the steel sheet reference line is generated.
[0037] Specifically, in response to operation instructions from the front-end visualization interface (e.g., the user selects any two non-parallel line segments by clicking with the mouse), the sequence line (Base_Curve) and orientation line (Ref_Curve) are obtained, and the start and end points of these two line segments are measured.
[0038] After determining the sequence lines and orientation lines, all boundary lines are obtained through the visualization interface, forming a line set called Boundary (i.e., the boundary line set mentioned above). The Base_Curve segment (i.e., the sequence lines mentioned above) specifies the interval distance for drawing the steel sheet baseline, while the Ref_Curve segment (i.e., the orientation lines mentioned above) specifies the direction in which the steel sheet baseline is drawn.
[0039] Step S204: According to the preset length, the sequential line is divided from the first starting point of the sequential line to obtain a set of dividing points;
[0040] First, determine the preset length mentioned above. For example, obtain the value of the user in the Equal_MinD edit box through the front-end visual interface, and use it as the distance Distance (i.e., the preset length mentioned above).
[0041] In some embodiments of this application, dividing the sequential line from the first starting point according to a preset distance includes the following steps: determining the line information of the sequential line, wherein the line information includes: line length, starting point and ending point of the line; starting from the first starting point of the sequential line, determining a dividing point every preset length, dividing the sequential line into multiple line segments of preset length, until the length from the dividing point to the first ending point of the sequential line is not greater than the preset length.
[0042] Specifically, it retrieves all line information from Base_Curve (sequential lines), Ref_Curve (orientation lines), and the Boundary set of boundary lines (information includes: line start point (x, y), line end point (x, y), line length, and direction from the line start point to the line end point (vector)).
[0043] Divide the Base_Curve (sequential lines) by a distance of Distance (the preset length mentioned above), resulting in a set of dividing points P. The distance between all dividing points is Distance millimeters (the preset length mentioned above). For example, if the Base_Curve (sequential lines) is 10mm long and Distance (the preset length) is 3mm, the remaining 1mm will not be processed and no dividing point will be generated. Figure 3 As shown, the dots are the dividing points. All the dividing points will be taken to form the dividing point set P.
[0044] In some embodiments of this application, determining a cutting point after a preset length includes the following steps: establishing a Cartesian coordinate system and determining the coordinate values of a first starting point and a first ending point in the coordinate system, wherein the coordinate values include: abscissa and ordinate; determining the ratio of the difference between the abscissa of the first ending point and the first starting point to the length of the sequential line as a first ratio, and determining the ratio of the difference between the ordinate of the first ending point and the first starting point to the length of the sequential line as a second ratio; calculating the ratio of the preset length and the length of the sequential line and rounding down to obtain the total number of cuts; determining the abscissa increment based on the first ratio and the preset length, and determining the ordinate increment based on the second ratio and the preset length; calculating the sum of the abscissa of the first starting point and the abscissa increments from one to the total number of cuts to obtain the abscissa of each cutting point, and calculating the sum of the ordinate of the first starting point and the ordinate increments from one to the total number of cuts to obtain the ordinate of each cutting point.
[0045] In this embodiment, all drawings are illustrated using a Cartesian two-dimensional coordinate system as the reference.
[0046] Specifically, let the length of the Base_Curve line segment (sequential line) be length in millimeters, the starting point of the Base_Curve be p1 (i.e., the first starting point mentioned above), and the ending point of the Base_Curve be p2 (i.e., the first ending point mentioned above). The value of the length of the sequential line is:
[0047] length=|√((p1.x-p2.x) 2 +(p1.y-p2.y) 2 )|
[0048] Calculate the values of the first ratio x and the second ratio y that bisect the line segment:
[0049] x = (p2.x - p1.x) ÷ length
[0050] y = (p2.y - p1.y) ÷ length
[0051] The number of equal divisions (i.e., the total number of divisions mentioned above) is n, and the value of n is:
[0052] n = length ÷ Distance
[0053] Let each point in the set of dividing points P be Pi, where the index i of Pi represents the current number of divisions (total number of divisions). Let the Cartesian coordinates of point Pi be Pix (the x-coordinate of the dividing point) and Piy (the y-coordinate of the dividing point). Then the values of Pix and Piy are:
[0054] Pix = p1.x + (i × x × Distance)
[0055] Piy = p1.y + (i × y × Distance)
[0056] Where i ranges from 1 to n (total number of cuts), the final set of cut points P is obtained.
[0057] Step S206: Determine the target lines corresponding to each cutting point in the cutting point set, and determine the target intersection points between the target lines and the boundary lines in the boundary line set, to obtain the target intersection point set. The target lines pass through the cutting points and are parallel to the orientation lines. The sequence lines and orientation lines are both located within the closed shape enclosed by the boundary lines in the boundary line set.
[0058] In some embodiments of this application, the target line includes: a first ray and a second ray; determining the target line corresponding to each cutting point in the set of cutting points includes the following steps: determining the midpoint of the azimuth line; determining the first direction corresponding to the azimuth line based on the midpoint and the second starting point of the azimuth line, and determining the second direction corresponding to the azimuth line based on the midpoint and the second ending point of the azimuth line; drawing a ray from the cutting point as the endpoint towards the first direction to obtain the first ray; drawing a ray from the cutting point as the endpoint towards the second direction to obtain the second ray.
[0059] Specifically, determine the midpoint of the Ref_Curve line segment (i.e., the aforementioned directional line), and obtain the angle S (i.e., the aforementioned first direction) from the midpoint to the starting point of the Ref_Curve line segment (i.e., the aforementioned second starting point) and the angle NS (i.e., the aforementioned second direction) from the midpoint to the ending point of the Ref_Curve line segment (i.e., the aforementioned second ending point).
[0060] For each cutting point Pn in the cyclic cutting point set P, rays are drawn towards angles S (first direction) and NS (second direction) to determine which boundary lines in the boundary line set Boundary intersect with. This intersection point set PnO (i.e. the target intersection point set mentioned above) is taken, where n in PnO is the sequence number of the intersection point set of the cutting point set P.
[0061] like Figure 4 As shown, Figure 4 The circle on the Base_Curve line segment (sequential line) is a certain dividing point Pn, and the other circles are the target intersection points of the rays from point Pn to the S and NS directions and the boundary line (line segment set Boundary).
[0062] Step S208: Generate the steel sheet baseline corresponding to the cutting point based on the target intersection points in the target intersection point set.
[0063] In some embodiments of this application, generating the steel sheet baseline corresponding to the cutting point based on the target intersection points in the target intersection point set includes: connecting the target intersection points in the target intersection point set corresponding to the cutting point pairwise to obtain a candidate line segment set; if there is an intersection point between the candidate line segment in the candidate line segment set and the boundary line in the boundary line set, and the intersection point is not the start point or end point of the candidate line segment, the candidate line segment is deleted, and the remaining candidate line segments in the candidate line segment set are determined as the steel sheet baseline corresponding to the cutting point.
[0064] Specifically, obtain the set of all target intersection points PnO corresponding to the point splitting point set P. Connect all target intersection points in the current PnO to obtain the line segment set Ts (i.e., the above candidate line segment set). Each candidate line segment in the candidate line segment set is set as Ti. Determine whether the candidate line segment Ti intersects with the boundary line in the boundary line set Boundary. If the candidate line segment Ti intersects with the boundary line in the boundary line set Boundary, determine whether the starting point or ending point of the candidate line segment Ti intersects with this boundary line. If not, remove this candidate line from Ts. In this way, obtain the set R of all steel sheet baselines.
[0065] like Figure 4 As shown, there are four circles representing target intersection points. These four intersection points need to be connected by lines, resulting in six possible connections (e.g., for points A, B, C, and D, there are six possible line drawing methods: AB, AC, AD, BC, BD, and CD). Six line segments can be drawn. However, if any of these six line segments intersects with an edge line (excluding the starting and ending points), these line segments need to be removed. An example of candidate line segments to be removed is shown below. Figure 5 As shown, the baseline is not allowed to cross the line segment; it must remain within the boundary. Figure 5 This is an incorrect example; such candidate line segments need to be removed. Candidate line segments that meet the requirements are as follows: Figure 6 As shown.
[0066] As an optional implementation, the method further includes the following steps: taking the midpoint of the candidate line segment as the endpoint, drawing a ray in any direction, and counting the number of intersection points between the ray and the boundary lines in the boundary line set; if the number of intersection points is even, determining that the candidate line segment is outside the closed shape enclosed by the boundary lines in the boundary line set, and deleting the candidate line segment from the candidate line segment set.
[0067] Specifically, it is determined whether the baseline (candidate line segment) is within a closed figure (i.e., the closed figure enclosed by the boundary lines in the set of boundary lines). Each candidate line segment in the candidate line segment set R is designated as R1, R2, ..., Rn. It is determined whether Rn is within the closed figure formed by the set of boundary lines. If it is not within the closed figure, it is deleted from the candidate line segment set. The midpoint RnO of the candidate line segment is taken. If the point is within the closed region, the ray drawn from the point in any direction will intersect all boundary lines an odd number of times. If it is not within the closed region, the number of intersections will be even.
[0068] As an optional implementation, the method further includes the following steps: if there are multiple candidate line segments in the candidate line segment set that have the same starting point and the same ending point, delete the duplicate candidate line segments and retain only one of the multiple candidate line segments that have the same starting point and the same ending point; if there are candidate line segments in the candidate line segment set that have the same starting point and the same ending point as the other candidate line segments, and the same ending point as the same starting point as the other candidate line segments, determine that the two candidate line segments are duplicates, and delete either of the two duplicate candidate line segments.
[0069] Specifically, each candidate line segment in the set of baseline line segments (i.e., the set of candidate line segments) R is R1...Rn. Assuming that lines Rx and Ry are two random candidate line segments from the set of candidate line segments R, then the following judgment is made:
[0070] 1) Condition 1: Whether the starting point of Rx is equal to the starting point of Ry, and whether the ending point of Rx is equal to the ending point of Ry.
[0071] 2) Condition 2: Whether the starting point of Rx is equal to the ending point of Ry, and whether the ending point of Rx is equal to the starting point of Rx.
[0072] If either of the above two rules is satisfied, Ry will be removed from the candidate line segment set R, and Rx will be retained.
[0073] At this point, all the baselines for the steel sheets have been drawn.
[0074] This application uses the C++ programming language to develop a visual plugin program by calling the CATIA CAAAPI interface. The visual UI interface built is as follows: Figure 7 As shown, by implementing human-computer interaction, the steel sheet baseline at the appropriate position is automatically generated, reducing the workload of designers, minimizing errors and complex operations caused by manually drawing the steel sheet baseline, and improving design efficiency.
[0075] Through the above steps, the automated drawing method of steel sheet baselines helps CATIA designers quickly locate the position, distance, and direction of the steel sheet to be drawn, laying the foundation for CATIA steel sheet drawing, reducing the workload of designers, and improving design accuracy and efficiency. This solves the technical problem of low efficiency in drawing steel sheet baselines caused by the need for designers to manually draw steel sheets in related technologies.
[0076] According to an embodiment of this application, an embodiment of a steel sheet baseline determination device is also provided. Figure 8 This is a structural schematic diagram of a steel sheet baseline determination device provided according to an embodiment of this application. Figure 8 As shown, the device includes:
[0077] The line determination module 80 is used to respond to the operation instructions of the front-end interactive interface and determine the sequential lines and directional lines in the tire design drawing. The sequential lines and directional lines are not parallel to each other. The sequential lines are used to determine the position where the steel sheet baseline is generated, and the directional lines are used to determine the direction in which the steel sheet baseline is generated.
[0078] The line segmentation module 82 is used to segment the sequential lines according to a preset length, starting from the first starting point of the sequential lines, to obtain a set of segmentation points;
[0079] The intersection point determination module 84 is used to determine the target lines corresponding to each cutting point in the cutting point set, and to determine the target intersection points between the target lines and the boundary lines in the boundary line set, thereby obtaining the target intersection point set. The target lines pass through the cutting points and are parallel to the orientation lines. The sequence lines and orientation lines are both located within the closed shape enclosed by the boundary lines in the boundary line set.
[0080] The baseline generation module 86 is used to generate the steel sheet baseline corresponding to the cutting point based on the target intersection points in the target intersection point set.
[0081] It should be noted that each module in the above-mentioned steel sheet baseline determination device can be a program module (for example, a set of program instructions to implement a certain function) or a hardware module. For the latter, it can be manifested in the following forms, but is not limited to them: each of the above modules is manifested as a processor, or the functions of each of the above modules are implemented by a processor.
[0082] It should be noted that the steel sheet baseline determination device provided in this embodiment can be used to perform... Figure 2 The method for determining the steel sheet baseline shown above is also applicable to the embodiments of this application, and will not be repeated here.
[0083] This application embodiment also provides a non-volatile storage medium, which includes a stored computer program. The device containing the non-volatile storage medium executes the following steel sheet baseline determination method by running the computer program: responding to operation instructions from a front-end interactive interface, determining sequential lines and directional lines in a tire design drawing, wherein the sequential lines and directional lines are not parallel to each other; the sequential lines are used to determine the position where the steel sheet baseline is generated, and the directional lines are used to determine the direction in which the steel sheet baseline is generated; dividing the sequential lines according to a preset length, starting from the first starting point, to obtain a set of dividing points; determining the target lines corresponding to each dividing point in the set of dividing points, and determining the target intersection points between the target lines and the boundary lines in the set of boundary lines, to obtain a set of target intersection points, wherein the target lines pass through the dividing points and are parallel to the directional lines; both the sequential lines and the directional lines are located within the closed shape enclosed by the boundary lines in the set of boundary lines; and generating the steel sheet baseline corresponding to the dividing points based on the target intersection points in the set of target intersection points.
[0084] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0085] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0086] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0087] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0089] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it 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 includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute 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 a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0090] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method of determining a reference line of a steel sheet, characterized by, include: In response to the operation instructions of the front-end interactive interface, sequential lines and directional lines are determined in the tire design drawing, wherein the sequential lines and the directional lines are not parallel to each other, the sequential lines are used to determine the position where the steel sheet reference line is generated, and the directional lines are used to determine the direction in which the steel sheet reference line is generated. According to a preset length, the sequential line is divided from the first starting point of the sequential line to obtain a set of dividing points; The target lines corresponding to each cutting point in the set of cutting points are determined, and the target intersection points of the target lines and the boundary lines in the set of boundary lines are determined to obtain the set of target intersection points. The target lines pass through the cutting points and are parallel to the directional lines. The sequence lines and the directional lines are both located within the closed shape enclosed by the boundary lines in the set of boundary lines. Based on the target intersection points in the target intersection point set, the steel sheet baseline corresponding to the cutting point is generated.
2. The steel sheet reference line determination method according to claim 1, characterized by, The sequential lines are divided according to a preset distance, starting from the first starting point of the sequential lines, including: Determine the line information of the sequential lines, wherein the line information includes: line length, line start point, and line end point; Starting from the first starting point of the sequential line, a cutting point is determined every time the predetermined length is passed, and the sequential line is divided into multiple line segments of the predetermined length, until the length from the cutting point to the first ending point of the sequential line is not greater than the predetermined length.
3. The steel sheet reference line determination method according to claim 2, characterized by, Determining a cutting point for each predetermined length includes: Establish a Cartesian coordinate system and determine the coordinate values of the first starting point and the first ending point in the coordinate system, wherein the coordinate values include: the horizontal coordinate and the vertical coordinate; The ratio of the difference between the x-coordinates of the first termination point and the first starting point to the length of the sequential line is determined as a first ratio, and the ratio of the difference between the y-coordinates of the first termination point and the first starting point to the length of the sequential line is determined as a second ratio. Calculate the ratio of the preset length to the line length of the sequential lines and round down to obtain the total number of cuts; Based on the first ratio and the preset length, the horizontal axis increment is determined, and based on the second ratio and the preset length, the vertical axis increment is determined. The x-coordinate of the first starting point is calculated by summing the x-coordinate increments from one to the total number of divisions to obtain the x-coordinate of each division point. The y-coordinate of the first starting point is calculated by summing the y-coordinate increments from one to the total number of divisions to obtain the y-coordinate of each division point.
4. The method of claim 1, wherein The target line includes: a first ray and a second ray; determining the target line corresponding to each cutting point in the set of cutting points includes: Determine the midpoint of the azimuth line; Based on the midpoint and the second starting point of the azimuth line, a first direction corresponding to the azimuth line is determined, and based on the midpoint and the second ending point of the azimuth line, a second direction corresponding to the azimuth line is determined. Using the dividing point as the endpoint, draw a ray in the first direction to obtain the first ray; Using the dividing point as the endpoint, draw a ray in the second direction to obtain the second ray.
5. The method of claim 1, wherein Based on the target intersection points in the set of target intersection points, generating the steel sheet baseline corresponding to the cutting point includes: Connect each pair of the target intersection points in the target intersection point set corresponding to the cutting point to obtain a candidate line segment set; If a candidate line segment in the candidate line segment set intersects with a boundary line in the boundary line set, and the intersection point is not the start or end point of the candidate line segment, the candidate line segment is deleted, and the remaining candidate line segments in the candidate line segment set are determined as the steel sheet baseline corresponding to the cutting point.
6. The steel sheet reference line determination method according to claim 5, characterized by, The method further includes: Using the midpoint of the candidate line segment as the endpoint, draw a ray in any direction and count the number of intersection points between the ray and the boundary lines in the set of boundary lines; If the number of intersection points is even, it is determined that the candidate line segment is outside the closed shape enclosed by the boundary lines in the set of boundary lines, and the candidate line segment is deleted from the set of candidate line segments.
7. The method of claim 5, wherein The method further includes: If there are multiple candidate line segments in the candidate line segment set that have the same starting point and the same ending point, delete the duplicate candidate line segments and retain only one of the multiple candidate line segments that have the same starting point and the same ending point. If there is a candidate line segment in the candidate line segment set whose starting point is the same as the ending point of the other candidate line segments, and whose ending point is the same as the starting point of the other candidate line segments, then the two candidate line segments are determined to be duplicates, and either of the two duplicate candidate line segments is deleted.
8. A steel sheet reference line determining apparatus characterized by comprising: include: The line determination module is used to determine sequential lines and directional lines in the tire design drawing in response to the operation instructions of the front-end interactive interface. The sequential lines and the directional lines are not parallel to each other. The sequential lines are used to determine the position where the steel sheet reference line is generated, and the directional lines are used to determine the direction in which the steel sheet reference line is generated. The line segmentation module is used to segment the sequential lines according to a preset length, starting from the first starting point, to obtain a set of segmentation points; The intersection point determination module is used to determine the target lines corresponding to each cutting point in the cutting point set, and to determine the target intersection points of the target lines and the boundary lines in the boundary line set, thereby obtaining a target intersection point set. The target lines pass through the cutting points and are parallel to the directional lines. The sequential lines and the directional lines are both located within the closed shape enclosed by the boundary lines in the boundary line set. The baseline generation module is used to generate the steel sheet baseline corresponding to the cutting point based on the target intersection points in the target intersection point set.
9. An electronic device, comprising: include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the steel sheet reference line determination method according to any one of claims 1 to 7.
10. A non-volatile storage medium, comprising: The non-volatile storage medium includes a stored computer program, wherein a device in which the non-volatile storage medium is located executes the steel sheet reference line determination method of any one of claims 1 to 7 by running the computer program.