CN117010108A - Steel sheet datum line determining method and device and electronic equipment - Google Patents

Steel sheet datum line determining method and device and electronic equipment Download PDF

Info

Publication number
CN117010108A
CN117010108A CN202310973275.2A CN202310973275A CN117010108A CN 117010108 A CN117010108 A CN 117010108A CN 202310973275 A CN202310973275 A CN 202310973275A CN 117010108 A CN117010108 A CN 117010108A
Authority
CN
China
Prior art keywords
line
point
determining
lines
steel sheet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310973275.2A
Other languages
Chinese (zh)
Inventor
姜旭辉
丁明玉
徐爽
杨光
王会苓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sailun Jinyu Group Co Ltd
Original Assignee
Sailun Jinyu Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sailun Jinyu Group Co Ltd filed Critical Sailun Jinyu Group Co Ltd
Priority to CN202310973275.2A priority Critical patent/CN117010108A/en
Publication of CN117010108A publication Critical patent/CN117010108A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Image Analysis (AREA)

Abstract

The application discloses a method and a device for determining a steel sheet datum line and electronic equipment. Wherein the method comprises the following steps: determining a sequence line and an azimuth line in the tire design drawing in response to an operation instruction of the front-end interactive interface; cutting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a cutting point set; determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set; and generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set. The application solves the technical problem of low drawing efficiency of the steel sheet datum line caused by manual drawing of the steel sheet by a designer in the related technology.

Description

Steel sheet datum line determining method and device and electronic equipment
Technical Field
The application relates to the technical field of tire design, in particular to a method and a device for determining a steel sheet datum line and electronic equipment.
Background
When three-dimensional design software (such as CATIA) is used for designing the tire steel sheet, a designer needs to determine the position of the steel sheet on the tire, the designer needs to manually draw the steel sheet in the related art, the operation process is extremely complex, the steel sheet position, the length and the like of the steel sheet need to be manually measured and calculated by the designer, and the manual steel sheet drawing mode is ten complicated and complicated for the CATIA designer to draw the tire steel sheet, so that the technical problems of low drawing efficiency of the steel sheet datum line and the like are caused.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining a steel sheet datum line and electronic equipment, which are used for at least solving the technical problem of low drawing efficiency of the steel sheet datum line caused by manual drawing of the steel sheet by a designer in the related technology.
According to an aspect of the embodiment of the present application, there is provided a steel sheet datum line determining method including: determining a sequence line and an azimuth line in a tire design drawing in response to an operation instruction of a front-end interactive interface, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the generation position of a steel sheet datum line, and the azimuth line is used for determining the generation direction of the steel sheet datum line; cutting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a cutting point set; determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set; and generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
Optionally, splitting the sequential line from the first start point of the sequential line according to the preset distance includes: determining line information of the sequential lines, wherein the line information comprises: the length of the line, the starting point and the ending point of the line; starting from a first starting point of the sequence line, determining a cutting point every time the sequence line passes through a preset length, and cutting the sequence line into a plurality of line segments with preset lengths until the length from the cutting point to a first ending point of the sequence line is not more than the preset length.
Optionally, determining a segmentation point per preset length comprises: establishing a plane rectangular coordinate system, and determining coordinate values of a first starting point and a first ending point in the coordinate system, wherein the coordinate values comprise: an abscissa and an ordinate; determining a ratio of a difference value of the abscissa of the first termination point and the first starting point to the line length of the sequential line as a first ratio, and determining a ratio of a difference value of the ordinate of the first termination point and the first starting point to the line length of the sequential line as a second ratio; calculating the ratio of the preset length to the line length of the sequential lines and rounding down to obtain the total number of cutting times; determining an abscissa increment according to the first ratio and a preset length, and determining an ordinate increment according to the second ratio and the preset length; and calculating the sum of the abscissa of the first starting point and the ordinate increment of the total number of times from one to the cutting to obtain the abscissa of each cutting point, and calculating the sum of the ordinate of the first starting point and the ordinate increment of the total number of times from one to the cutting to obtain the ordinate of each cutting point.
Optionally, the target line includes: a first ray and a second ray; the determining the target line corresponding to each segmentation point in the segmentation point set comprises the following steps: determining the midpoint of the azimuth line; determining a first direction corresponding to the azimuth line according to the midpoint and a second starting point of the azimuth line, and determining a second direction corresponding to the azimuth line according to the midpoint and a second ending point of the azimuth line; taking the tangential point as an endpoint, and taking a ray in a first direction to obtain a first ray; and taking the dividing point as an endpoint, and taking the ray in the second direction to obtain a second ray.
Optionally, generating the steel sheet datum line corresponding to the splitting point according to the target intersection point in the target intersection point set includes: connecting the target intersection points in the target intersection point set corresponding to the segmentation points in pairs to obtain a candidate line segment set; and deleting the candidate line segments under the condition that the intersection points of the candidate line segments in the candidate line segment set and the boundary lines in the boundary line segment set exist and the intersection points are not the starting points or the ending points of the candidate line segments, and determining the remaining candidate line segments in the candidate line segment set as steel sheet datum lines corresponding to the cutting points.
Optionally, the method further comprises: taking the midpoint of the candidate line segment as an endpoint, taking rays in any direction, and counting the number of boundary line intersecting points in the ray and the boundary line set; and under the condition that the number of the intersecting points is even, judging that the candidate line segments are positioned outside a closed graph surrounded by the boundary lines in the boundary line set, and deleting the candidate line segments from the candidate line segment set.
Optionally, the method further comprises: deleting repeated candidate line segments under the condition that a plurality of candidate line segments with the same starting points and the same ending points exist in the candidate line segment set, and only reserving one of the candidate line segments with the same starting points and the same ending points; and under the condition that the candidate line segments with the starting points identical to the ending points of the rest candidate line segments and the ending points identical to the starting points of the rest candidate line segments exist in the candidate line segment set, determining that the two candidate line segments are repeated, and deleting any one of the two repeated candidate line segments.
According to another aspect of the embodiment of the present application, there is also provided a steel sheet datum line determining apparatus including: the line determining module is used for responding to an operation instruction of the front-end interactive interface, determining a sequence line and an azimuth line in the tire design drawing, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the position generated by the steel sheet datum line, and the azimuth line is used for determining the direction generated by the steel sheet datum line; the line segmentation module is used for segmenting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a segmentation point set; the intersection point determining module is used for determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set; and the datum line generating module is used for generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
According to still another aspect of the embodiment of the present application, there is also provided an electronic device including: the device comprises a memory and a processor, wherein the processor is used for running a program stored in the memory, and the program runs to execute the steel sheet datum line determining method.
According to still another aspect of the embodiment of the present application, there is also provided a non-volatile storage medium, the non-volatile storage medium including a stored computer program, wherein a device in which the non-volatile storage medium is located executes the steel sheet datum line determining method by running the computer program.
In the embodiment of the application, an operation instruction responding to a front-end interactive interface is adopted to determine a sequence line and an azimuth line in a tire design drawing, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the position generated by a steel sheet datum line, and the azimuth line is used for determining the direction generated by the steel sheet datum line; cutting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a cutting point set; determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set; according to the method of generating the steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set, the position, the distance and the direction required to be drawn for helping a CATIA designer to quickly position the steel sheet are achieved through the automatic drawing method of the steel sheet datum line, a foundation is laid for CATIA steel sheet drawing, the workload of a designer is reduced, the design accuracy and the design efficiency are improved, and the technical problem of low steel sheet datum line drawing efficiency caused by the fact that the designer needs to manually draw the steel sheet in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a block diagram of a hardware architecture of a computer terminal (or electronic device) for implementing a method for determining a steel sheet datum line according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a method for determining a steel sheet datum line according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a segment cut by using Distance (preset length) as a segment length according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a set of target intersections provided in accordance with an embodiment of the application;
FIG. 5 is a schematic diagram of a candidate segment crossing a boundary according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a satisfactory candidate segment according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a visual interface for steel sheet datum line rendering built in dimensional design software (e.g., CATIA) according to an embodiment of the present application;
fig. 8 is a schematic structural view of a steel sheet datum line determining apparatus according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
When using three-dimensional design software CATIA to design a tire steel sheet, a designer needs to determine the position of the steel sheet on the tire, and the steel sheet datum line is the position where the tire steel sheet is generated. The position of the steel sheet comprises the position of the steel sheet generated by the steel sheet, the direction of the steel sheet, the number of the steel sheets, the length of the steel sheet and the generation mode of the steel sheet: the steel sheet is drawn at the starting position and the ending position of the datum line, etc.
In the related art, when the three-dimensional design software CATIA is used for designing the air holes of the tire pattern, a designer is required to manually measure the distances of key elements, create formulas, create relations, create parameters, draw and the like according to the existing rules and experience, the operation process is complex, the time consumption is high, the risk of mistakes caused by negligence of the personnel exists, and therefore the technical problems of low drawing efficiency of the steel sheet datum line and the like exist. In order to solve this problem, related solutions are provided in the embodiments of the present application, and are described in detail below.
According to an embodiment of the present application, there is provided a method embodiment of steel gauge determination, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Fig. 1 shows a hardware block diagram of a computer terminal (or electronic device) for implementing the steel sheet reference line determination method. As shown in fig. 1, the computer terminal 10 (or electronic device 10) may include one or more processors 102 (shown as 102a, 102b, … …,102 n) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, the method may further 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 the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or electronic device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as a program instruction/data storage device corresponding to the steel sheet reference line determining method in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the steel sheet reference line determining method described above. 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 examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or electronic device).
In the above operating environment, the embodiment of the present application provides a method for determining a steel sheet datum line, and fig. 2 is a schematic diagram of a method flow for determining a steel sheet datum line according to the embodiment of the present application, as shown in fig. 2, where the method includes the following steps:
step S202, determining a sequence line and an azimuth line in a tire design drawing in response to an operation instruction of a front-end interactive interface, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the position generated by a steel sheet datum line, and the azimuth line is used for determining the direction generated by the steel sheet datum line;
specifically, in response to an operation instruction of the front-end visual interface (for example, a user selects any two non-parallel line segments through a mouse click), a sequence line (base_Curve) and an azimuth line (ref_Curve) are obtained, and a starting point and an ending point of the two line segments are measured.
After determining the sequence line and the azimuth line, all the Boundary lines are obtained through a visual interface to be a line set Boundary (namely the Boundary line set). The action of the Base_Curve line segment (namely the sequence line) designates the interval distance for drawing the steel sheet datum line, and the Ref_Curve line segment (namely the azimuth line) designates the direction for drawing the steel sheet datum line;
step S204, cutting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a cutting point set;
firstly, determining the preset length, for example, acquiring a value of a user in an equal_MinD edit box through a front-end visual interface, and taking the value as an Equal Distance (i.e. the preset length).
In some embodiments of the present application, the slicing the sequential line from the first start point of the sequential line by a preset distance includes the steps of: determining line information of the sequential lines, wherein the line information comprises: the length of the line, the starting point and the ending point of the line; starting from a first starting point of the sequence line, determining a cutting point every time the sequence line passes through a preset length, and cutting the sequence line into a plurality of line segments with preset lengths until the length from the cutting point to a first ending point of the sequence line is not more than the preset length.
Specifically, all line information (information including: line start point (x, y), line end point (x, y), line length (length), direction (vector) from line start point to line end point) of base_Curve (azimuth line), boundary line set Boundary, etc. is obtained.
And cutting Base_Curve (sequence line) by taking the length as Distance (namely the preset length) as Distance to obtain a cutting point set P. The Distance between all the dividing points is millimeter (i.e. the above-mentioned preset length). For example, the line length of base_Curve (sequential line) is 10mm, the distance (preset length) is 3mm, and the last 1mm of the cut will not be processed, and no cut point is generated, as shown in fig. 3, where the dot is a cut point, and all the cut points are taken respectively to form a cut point set P.
In some embodiments of the present application, determining a cut point per pass through a preset length includes the steps of: establishing a plane rectangular coordinate system, and determining coordinate values of a first starting point and a first ending point in the coordinate system, wherein the coordinate values comprise: an abscissa and an ordinate; determining a ratio of a difference value of the abscissa of the first termination point and the first starting point to the line length of the sequential line as a first ratio, and determining a ratio of a difference value of the ordinate of the first termination point and the first starting point to the line length of the sequential line as a second ratio; calculating the ratio of the preset length to the line length of the sequential lines and rounding down to obtain the total number of cutting times; determining an abscissa increment according to the first ratio and a preset length, and determining an ordinate increment according to the second ratio and the preset length; and calculating the sum of the abscissa of the first starting point and the ordinate increment of the total number of times from one to the cutting to obtain the abscissa of each cutting point, and calculating the sum of the ordinate of the first starting point and the ordinate increment of the total number of times from one to the cutting to obtain the ordinate of each cutting point.
In this embodiment, the drawings are all described with reference to a cartesian two-dimensional coordinate system.
Specifically, let the length of the line segment (sequential line) be length mm, the start point of the base_Curve be p1 (i.e. the first start point), the end point of the base_Curve be p2 (i.e. the first end point), and the value of the line length of the sequential line be:
length=|√((p1.x-p2.x) 2 +(p1.y-p2.y) 2 )|
the first ratio x and the second ratio y of the average line segments are calculated as follows:
x=(p2.x-p1.x)÷length
y=(p2.y-p1.y)÷length
the number of the average divisions (i.e., the total number of the divisions) is n, and the value of n is:
n=length÷Distance
let each point of the segmentation point set P be Pi, where the subscript i of Pi is the current number of the number of average divisions (total number of segmentations), and the cartesian coordinates of the set point Pi are Pix (abscissa of the segmentation point) and Piy (ordinate of the segmentation point), then the values of Pix and Piy are:
Pix=p1.x+(i×x×Distance)
Piy=p1.y+(i×y×Distance)
where i is from 1 to n (total number of cuts), the set of cut points P is finally obtained.
Step S206, determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set;
in some embodiments of the application, the target line comprises: a first ray and a second ray; the method for determining the target line corresponding to each segmentation point in the segmentation point set comprises the following steps: determining the midpoint of the azimuth line; determining a first direction corresponding to the azimuth line according to the midpoint and a second starting point of the azimuth line, and determining a second direction corresponding to the azimuth line according to the midpoint and a second ending point of the azimuth line; taking the tangential point as an endpoint, and taking a ray in a first direction to obtain a first ray; and taking the dividing point as an endpoint, and taking the ray in the second direction to obtain a second ray.
Specifically, a midpoint of the ref_Curve line segment (i.e., the azimuth line) is determined, and an angle S (i.e., the first direction) from the midpoint to a starting point (i.e., the second starting point) of the ref_Curve line segment and an angle NS (i.e., the second direction) from the midpoint to a termination point (i.e., the second termination point) of the ref_Curve line segment are obtained.
And taking rays from each slicing point Pn of the cyclic slicing point set P to angles S (first direction) and NS (second direction), determining which Boundary lines in the Boundary line set Boundary intersect, taking an intersection point set PnO (namely the target intersection point set), wherein n of the PnO is an intersection point set sequence number of the slicing point set P.
As shown in fig. 4, a circle on the base_Curve line segment (sequence line) in fig. 4 is a certain segmentation point Pn, and the remaining circles are target intersection points of the rays from the Pn point to the S direction and the NS direction and the Boundary line (line segment set Boundary).
And step S208, generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
In some embodiments of the present application, generating a steel sheet datum line corresponding to a splitting point according to a target intersection point in a target intersection point set includes: connecting the target intersection points in the target intersection point set corresponding to the segmentation points in pairs to obtain a candidate line segment set; and deleting the candidate line segments under the condition that the intersection points of the candidate line segments in the candidate line segment set and the boundary lines in the boundary line segment set exist and the intersection points are not the starting points or the ending points of the candidate line segments, and determining the remaining candidate line segments in the candidate line segment set as steel sheet datum lines corresponding to the cutting points.
Specifically, all target intersection point sets PnO corresponding to the point splitting point set P are obtained, all target intersection points in the current PnO are connected to obtain a line segment set Ts (i.e., the candidate line segment set), wherein each candidate line segment in the candidate line segment set is set to be Ti, whether the candidate line segment Ti has an intersection point with a Boundary line in the Boundary line set Boundary is judged, if the candidate line segment Ti intersects with the Boundary line in the Boundary line set Boundary, whether a starting point or an ending point of the candidate line segment Ti intersects with the Boundary line is judged, if not, the candidate line segment is removed from Ts, and thus all steel sheet reference line sets R are obtained.
As shown in fig. 4, if there are 4 circles representing the target intersection points, the 4 target intersection points need to be connected, 6 connection modes (for example, a point A, B, C, D and a total of AB, AC, AD, BC, BD, CD line drawing modes) are combined, and 6 line segments can be drawn, but if the 6 line segments intersect with the side line (except for the starting point and the ending point), the line segments need to be removed, candidate line segments needing to be removed are shown in fig. 5, the reference line does not allow the line segments to pass through, the reference line must be in the boundary, fig. 5 is an error demonstration, and the candidate line segments needing to be removed and meeting the requirements are shown in fig. 6.
As an alternative embodiment, the method further comprises the steps of: taking the midpoint of the candidate line segment as an endpoint, taking rays in any direction, and counting the number of boundary line intersecting points in the ray and the boundary line set; and under the condition that the number of the intersecting points is even, judging that the candidate line segments are positioned outside a closed graph surrounded by the boundary lines in the boundary line set, and deleting the candidate line segments from the candidate line segment set.
Specifically, whether the reference line (candidate line segment) is within a closed figure (i.e., a closed figure surrounded by Boundary lines in the Boundary line set) is determined, each candidate line segment in the candidate line segment set R is R1 and R2. Taking the intermediate point RnO of the candidate line segment, if the point is in the closed area, the intersection times of the ray made by the point in any direction with all side lines (boundary lines) are singular, and if the ray is not in the closed area, the intersection times are even.
As an alternative embodiment, the method further comprises the steps of: deleting repeated candidate line segments under the condition that a plurality of candidate line segments with the same starting points and the same ending points exist in the candidate line segment set, and only reserving one of the candidate line segments with the same starting points and the same ending points; and under the condition that the candidate line segments with the starting points identical to the ending points of the rest candidate line segments and the ending points identical to the starting points of the rest candidate line segments exist in the candidate line segment set, determining that the two candidate line segments are repeated, and deleting any one of the two repeated candidate line segments.
Specifically, each candidate line segment in the reference line segment set (i.e., candidate line segment set) R is R1.
1) Condition one: whether the Rx start point is equal to the Ry start point and whether the Rx end point is equal to the Ry end point.
2) Condition II: whether the Rx start point is equal to the Ry end point and whether the Rx end point is equal to the Rx start point.
If the two rules meet any one, ry is removed from the candidate line segment set R, and Rx is reserved.
So far, all steel sheet datum lines are drawn.
The application uses c++ development language to call CAAAPI interface of CATIA to develop CATIA, develop a visual plug-in program, and the constructed visual UI interface is shown in figure 7. Through realizing man-machine interaction, automatically, the steel sheet datum line of suitable position reduces designer's work load, reduces error and the complicated operation volume that bring because of manual drawing steel sheet datum line, has promoted design efficiency.
Through the steps, the automatic drawing method for drawing the steel sheet datum line achieves the purposes of helping a CATIA designer to quickly position the position, distance and direction of the steel sheet required to be drawn, laying a foundation for drawing the CATIA steel sheet, reducing the workload of designers, improving the design accuracy and efficiency, and further solving the technical problem of low drawing efficiency of the steel sheet datum line caused by the fact that the designers in the related technology need to manually draw the steel sheet.
According to an embodiment of the present application, there is also provided an embodiment of a steel sheet reference line determining apparatus. Fig. 8 is a schematic structural view of a steel sheet datum line determining apparatus according to an embodiment of the present application. As shown in fig. 8, the apparatus includes:
the line determining module 80 is configured to determine, in response to an operation instruction of the front-end interactive interface, a sequential line and an azimuth line in the tire design drawing, where the sequential line and the azimuth line are not parallel to each other, the sequential line is used to determine a position where the steel sheet datum line is generated, and the azimuth line is used to determine a direction where the steel sheet datum line is generated;
the line segmentation module 82 is configured to segment the sequential lines from a first start point of the sequential lines according to a preset length to obtain a segmentation point set;
the intersection point determining module 84 is configured to determine a target line corresponding to each segmentation point in the segmentation point set, and determine a target intersection point of the target line and a boundary line in the boundary line set, so as to obtain a target intersection point set, where the target line passes through the segmentation point and is parallel to the azimuth line, and the sequential line and the azimuth line are both located in a closed graph enclosed by the boundary line in the boundary line set;
and the datum line generating module 86 is used for generating a datum line of the steel sheet corresponding to the cutting point according to the target intersection point in the target intersection point set.
The respective modules in the steel sheet reference line determining apparatus may be program modules (for example, a set of program instructions for realizing a specific function), or may be hardware modules, and the latter may be represented by the following forms, but are not limited thereto: the expression forms of the modules are all a processor, or the functions of the modules are realized by one processor.
It should be noted that, the steel sheet reference line determining device provided in the present embodiment may be used to perform the steel sheet reference line determining method shown in fig. 2, so the explanation about the steel sheet reference line determining method is also applicable to the embodiment of the present application, and is not repeated here.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored computer program, wherein equipment of the nonvolatile storage medium executes the following steel sheet datum line determining method by running the computer program: determining a sequence line and an azimuth line in a tire design drawing in response to an operation instruction of a front-end interactive interface, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the generation position of a steel sheet datum line, and the azimuth line is used for determining the generation direction of the steel sheet datum line; cutting the sequence lines from a first starting point of the sequence lines according to the preset length to obtain a cutting point set; determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are all positioned in a closed graph surrounded by the boundary lines in the boundary line set; and generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of determining a steel sheet datum line, comprising:
determining a sequence line and an azimuth line in a tire design diagram in response to an operation instruction of a front-end interactive interface, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining a position generated by a steel sheet datum line, and the azimuth line is used for determining a direction generated by the steel sheet datum line;
according to a preset length, starting from a first starting point of the sequence line, cutting the sequence line to obtain a cutting point set;
determining target lines corresponding to all the segmentation points in the segmentation point set, and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are both positioned in a closed graph surrounded by the boundary lines in the boundary line set;
and generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
2. The steel sheet datum line determining method as set forth in claim 1, wherein the slicing of the sequence line from the first start point of the sequence line by a preset distance includes:
determining line information of the sequential lines, wherein the line information comprises: the length of the line, the starting point and the ending point of the line;
and determining a cutting point every time the preset length passes from the first starting point of the sequence line, and cutting the sequence line into a plurality of line segments with the preset length until the length from the cutting point to the first ending point of the sequence line is not more than the preset length.
3. The steel sheet datum line determining method as set forth in claim 2, wherein determining one of said cut points per passing of said preset length includes:
establishing a plane rectangular coordinate system, and determining coordinate values of the first starting point and the first ending point in the coordinate system, wherein the coordinate values comprise: an abscissa and an ordinate;
determining a ratio of a difference of the first termination point and the abscissa of the first starting point to a line length of the sequential line as a first ratio, and determining a ratio of a difference of the first termination point and the ordinate of the first starting point to a line length of the sequential line as a second ratio;
calculating the ratio of the preset length to the line length of the sequence lines and rounding down to obtain the total number of segmentation times;
determining an abscissa increment according to the first ratio and the preset length, and determining an ordinate increment according to the second ratio and the preset length;
calculating the sum of the abscissa of the first starting point and the increment of the abscissa from one to the total number of times of segmentation to obtain the abscissa of each segmentation point, and calculating the sum of the ordinate of the first starting point and the increment of the ordinate from one to the total number of times of segmentation to obtain the ordinate of each segmentation point.
4. The steel sheet datum line determination method as set forth in claim 1, wherein the target line includes: a first ray and a second ray; the determining the target line corresponding to each segmentation point in the segmentation point set comprises the following steps:
determining the midpoint of the azimuth line;
determining a first direction corresponding to the azimuth line according to the midpoint and a second starting point of the azimuth line, and determining a second direction corresponding to the azimuth line according to the midpoint and a second ending point of the azimuth line;
taking the segmentation point as an endpoint, and taking rays in the first direction to obtain the first rays;
and taking the segmentation point as an endpoint, and taking rays in the second direction to obtain the second rays.
5. The method of claim 1, wherein generating a steel sheet reference line corresponding to the cut point according to the target intersection point in the target intersection point set comprises:
connecting the target intersection points in the target intersection point set corresponding to the segmentation points in pairs to obtain a candidate line segment set;
and deleting the candidate line segment under the condition that an intersection point exists 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 a starting point or an ending point of the candidate line segment, and determining the rest candidate line segments in the candidate line segment set as the steel sheet datum line corresponding to the segmentation point.
6. The steel sheet datum line determination method as set forth in claim 5, further comprising:
taking the midpoint of the candidate line segment as an endpoint, taking rays in any direction, and counting the number of intersecting points of the rays and the boundary line in the boundary line set;
and under the condition that the number of the intersecting points is even, judging that the candidate line segment is positioned outside a closed graph surrounded by the boundary lines in the boundary line set, and deleting the candidate line segment from the candidate line segment set.
7. The steel sheet datum line determination method as set forth in claim 5, further comprising:
deleting repeated candidate line segments under the condition that a plurality of candidate line segments with the same starting points and the same ending points exist in the candidate line segment set, and only reserving one of the plurality of candidate line segments with the same starting points and the same ending points;
and under the condition that the candidate line segments with the starting points identical to the ending points of the rest of the candidate line segments and the ending points identical to the starting points of the rest of the candidate line segments exist in the candidate line segment set, determining that the two candidate line segments are repeated, and deleting any one of the two repeated candidate line segments.
8. A steel sheet reference line determining apparatus, characterized by comprising:
the line determining module is used for responding to an operation instruction of the front-end interactive interface, determining a sequence line and an azimuth line in the tire design drawing, wherein the sequence line and the azimuth line are not parallel to each other, the sequence line is used for determining the position of the generation of the steel sheet datum line, and the azimuth line is used for determining the direction of the generation of the steel sheet datum line;
the line segmentation module is used for segmenting the sequence lines from a first starting point of the sequence lines according to a preset length to obtain a segmentation point set;
the intersection point determining module is used for determining target lines corresponding to all the segmentation points in the segmentation point set and determining target intersection points of the target lines and boundary lines in the boundary line set to obtain a target intersection point set, wherein the target lines pass through the segmentation points and are parallel to the azimuth lines, and the sequence lines and the azimuth lines are both positioned in a closed graph surrounded by the boundary lines in the boundary line set;
and the datum line generating module is used for generating a steel sheet datum line corresponding to the cutting point according to the target intersection point in the target intersection point set.
9. An electronic device, comprising: a memory and a processor for executing a program stored in the memory, wherein the program is executed to perform the steel sheet datum line determination method as set forth in any one of claims 1 to 7.
10. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored computer program, wherein the device in which the non-volatile storage medium is located performs the method for determining the steel sheet datum line according to any one of claims 1 to 7 by running the computer program.
CN202310973275.2A 2023-08-03 2023-08-03 Steel sheet datum line determining method and device and electronic equipment Pending CN117010108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310973275.2A CN117010108A (en) 2023-08-03 2023-08-03 Steel sheet datum line determining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310973275.2A CN117010108A (en) 2023-08-03 2023-08-03 Steel sheet datum line determining method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117010108A true CN117010108A (en) 2023-11-07

Family

ID=88561414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310973275.2A Pending CN117010108A (en) 2023-08-03 2023-08-03 Steel sheet datum line determining method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117010108A (en)

Similar Documents

Publication Publication Date Title
CN105631936A (en) Point cloud repair method and system
CN111105507B (en) Virtual accessory model generation method and device, processor and electronic device
CN107317853B (en) Method, device and system for displaying dynamic effect of message popup window
EP4283441A1 (en) Control method, device, equipment and storage medium for interactive reproduction of target object
CN105338537A (en) Method for sharing and analyzing station address of newly-increased base station and terminal
CN107368612A (en) Quaternary tree index structuring method and device
EP0740273B1 (en) Method and apparatus for processing finite element meshing model
CN104915053A (en) Position determining method and device for interface controls
CN116050338A (en) Non-through-flow copper sheet identification method and device, storage medium and electronic device
CN108847120B (en) Drawing method based on electronic fence map order thermodynamic diagram distribution
CN114265941A (en) Method and system for converting relationship graph into tree-like form blood relationship graph
CN117010108A (en) Steel sheet datum line determining method and device and electronic equipment
CN110334327B (en) Automatic generation method and device of area information and storage device
CN109934894B (en) CAD (computer-aided design) drawing method and device and computer-readable storage medium
CN115374499A (en) Dimension marking method and device, electronic equipment and storage medium
CN112200860B (en) Object position relation determining method and device, storage medium and electronic device
CN116090074A (en) Calculation method, device, equipment and readable storage medium based on construction section operation
CN110009100A (en) The calculation method and Related product of customized operator
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
CN111061878A (en) Page clustering method, device, medium and equipment
CN109299652A (en) A kind of model training method, image position method and device for framing
CN113312436B (en) Spatial index processing method and device
CN113656851B (en) Method for generating gradient functional material based on Wang cubes method, terminal and storage medium
US20230306760A1 (en) Information processing apparatus, non-transitory computer readable medium, and method
CN114092497A (en) Area contour segmentation method and device and electronic equipment

Legal Events

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