An appearance size labeling method, system and computer readable storage medium
By using an automatic annotation method based on the distance between the vertices and endpoints of the minimum bounding rectangle, the problem of low efficiency in annotating the external dimensions of parts is solved, and efficient and accurate external dimension annotation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUCHUAN HEAVY ENG
- Filing Date
- 2022-08-17
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, the marking of part dimensions is inefficient and prone to omissions and errors.
By obtaining the minimum bounding rectangle vertex of the design drawing, traversing the endpoint distances, determining whether the minimum distance endpoint is an irregular corner point, and using this as a reference, the outer dimensions are automatically marked, replacing manual operation.
It improves the efficiency of marking the external dimensions of parts, reduces labor intensity, and effectively avoids omissions and errors in marking.
Smart Images

Figure CN115391939B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of part dimensioning technology, and in particular relates to a method, system and computer-readable storage medium for dimensioning. Background Technology
[0002] In the manufacturing process of steel structures such as bridges, it is necessary to draw design drawings of parts and mark their external dimensions. In related technologies, the marking of external dimensions of parts mainly relies on manual marking one by one, which is not only labor-intensive, but also prone to omissions and errors, resulting in low efficiency in marking the external dimensions of parts.
[0003] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0004] This application aims to at least partially solve the technical problem of low efficiency in manually annotating the external dimensions of parts. To this end, this application provides a method, system, and computer-readable storage medium for annotating external dimensions.
[0005] In some implementations...
[0006] This application provides a method for annotating external dimensions, which includes the following steps:
[0007] Steps to obtain design drawings: Obtain the design drawings of the parts;
[0008] The minimum bounding rectangle vertex acquisition step involves obtaining the minimum bounding rectangle of the design drawing based on the design drawing, and then obtaining the vertices of the minimum bounding rectangle based on the minimum bounding rectangle.
[0009] The minimum distance endpoint acquisition step involves iterating through the distances between the vertices of the minimum bounding rectangle and all endpoints of the design drawing, and obtaining the minimum distance endpoint that is the smallest distance to the vertices of the minimum bounding rectangle.
[0010] The corner point acquisition step involves determining whether the minimum distance endpoint is an irregular corner point; when the determination result is "no", the minimum distance endpoint is a corner point of the design drawing; when the determination result is "yes", the corner point of the design drawing is acquired based on the minimum distance endpoint; and...
[0011] The step of annotating the external dimensions involves annotating the external dimensions of the design drawing based on the corner points.
[0012] In some implementations, in the minimum distance endpoint acquisition step, the endpoint is the endpoint of the border line segment in the design drawing.
[0013] In some implementations, the border segment includes straight line segments and curved line segments.
[0014] In some implementations, determining whether the minimum distance endpoint is an irregular corner point includes the following sub-steps:
[0015] The first angle acquisition step involves obtaining the first angle between the line connecting the current minimum distance endpoint and the first nearest minimum distance endpoint and the X-axis or Y-axis.
[0016] The first angle determination step is to determine whether the first angle is within the preset angle range;
[0017] The second angle acquisition step involves obtaining the second angle between the line connecting the current minimum distance endpoint and the second nearest minimum distance endpoint and the X-axis or Y-axis.
[0018] The second angle determination step is to determine whether the second angle is within the preset angle range;
[0019] In the irregular corner point determination step, when both the determination result of the first included angle determination step and the determination result of the second included angle determination step are "no", the determination result of the irregular corner point is "no"; when at least one of the determination results of the first included angle determination step and the determination result of the second included angle determination step is "yes", the determination result of the irregular corner point is "yes".
[0020] Wherein, the X-axis or Y-axis is parallel to any side of the minimum outer rectangle.
[0021] In some implementations, when the irregular corner point determination result is "yes", the step of obtaining the corner point of the design drawing based on the minimum distance endpoint is selected from the following sub-steps:
[0022] When the judgment result of the first angle judgment step is "yes", obtain the first corner point connecting the current minimum distance endpoint and the second nearest minimum distance endpoint, obtain the second corner point connecting the first nearest minimum distance endpoint and the interval minimum distance endpoint, and obtain the first intersection point of the first corner point connection and the second corner point connection based on the first corner point connection and the second corner point connection. The first intersection point is the corner point of the design drawing.
[0023] When the judgment result of the second included angle judgment step is "yes", obtain the line connecting the current minimum distance endpoint and the first adjacent minimum distance endpoint, obtain the line connecting the second adjacent minimum distance endpoint and the fourth corner point connecting the minimum distance endpoint, and obtain the second intersection point of the line connecting the third corner point and the line connecting the fourth corner point according to the line connecting the third corner point and the line connecting the fourth corner point. The second intersection point is the corner point of the design drawing.
[0024] In some embodiments, the preset included angle range is 20° to 70°.
[0025] In some implementations, the irregular corner point includes a chamfer or a through-hole.
[0026] In some embodiments, the part is a bridge steel structure unit.
[0027] This application also proposes a dimension annotation system, which includes the following modules:
[0028] The design drawing acquisition module is used to acquire the design drawings of parts.
[0029] The minimum bounding rectangle vertex acquisition module is used to acquire the minimum bounding rectangle of the design drawing based on the design drawing, and to acquire the vertices of the minimum bounding rectangle based on the minimum bounding rectangle;
[0030] The minimum distance endpoint acquisition module is used to traverse the distances between the vertices of the minimum outer rectangle and all endpoints of the design drawing, and obtain the minimum distance endpoint that is the smallest distance to the vertices of the minimum outer rectangle.
[0031] The corner point acquisition module is used to determine whether the minimum distance endpoint is an irregular corner point; when the determination result is "no", the minimum distance endpoint is the corner point of the design drawing; when the determination result is "yes", the corner point of the design drawing is acquired based on the minimum distance endpoint.
[0032] The outer dimension annotation module is used to annotate the outer dimensions of the design drawing based on the corner points.
[0033] This application also proposes a computer-readable storage medium containing one or more program instructions for being executed by a server using the above-described external dimension annotation method.
[0034] The embodiments of this application have at least the following beneficial effects:
[0035] The aforementioned method for dimensioning external shapes, based on the part design drawing, locates the corner points of the part design drawing using the minimum bounding rectangle, and then uses these corner points as references to dimension the design drawing. This method automatically locates the corner points of the design drawing and performs dimensioning, replacing manual dimensioning, reducing the labor intensity of dimensioning, and effectively avoiding the omissions and errors that easily occur in manual dimensioning, thus improving the efficiency of part dimensioning. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A flowchart illustrating the external dimension annotation method according to an embodiment of this application is shown;
[0038] Figure 2 It shows Figure 1 A detailed flowchart illustrating the method for annotating external dimensions in the diagram;
[0039] Figure 3 This diagram illustrates the principle of determining whether the minimum distance endpoint is an irregular corner point in the external dimension annotation method of this application.
[0040] Figure 4 This illustration shows the principle of obtaining the corner point of the design drawing based on the minimum distance endpoint in the external dimension annotation method of this application when the corner point judgment result of the irregular corner point is "yes";
[0041] Figure 5 The principle diagram illustrating the determination of whether the other minimum distance endpoint is an irregular corner point in the external dimension annotation method of this application is shown in the embodiment of the application.
[0042] Figure 6 An example effect diagram of the external dimension annotation method according to an embodiment of this application is shown;
[0043] Figure 7 The diagram illustrates the steps of dimension annotation in related technologies.
[0044] Figure 8 A schematic diagram of the external dimension marking system according to an embodiment of this application is shown. Detailed Implementation
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0046] Furthermore, reference numerals and / or reference letters may be repeated in different examples in this application. Such repetition is for simplification and clarity purposes and does not in itself indicate a relationship between the various embodiments and / or settings discussed. In addition, this application provides examples of various specific processes and materials; however, those skilled in the art will recognize the application of other processes and / or the use of other materials.
[0047] This application is described below with reference to the accompanying drawings and specific embodiments:
[0048] This application provides a method for dimensioning, such as... Figure 1 As shown, the method for annotating external dimensions provided in this embodiment includes the following steps:
[0049] Steps to obtain design drawings: Obtain the design drawings of the parts;
[0050] The steps for obtaining the vertices of the minimum bounding rectangle are as follows: obtain the minimum bounding rectangle of the design drawing, and then obtain the vertices of the minimum bounding rectangle based on the minimum bounding rectangle.
[0051] The steps for obtaining the minimum distance endpoint are: iterate through the distances between the vertices of the minimum outer rectangle and all endpoints of the design drawing, and obtain the minimum distance endpoint that is the smallest distance to the vertex of the minimum outer rectangle.
[0052] The corner point acquisition steps are as follows: First, determine if the minimum distance endpoint is an irregular corner point. If the result is "no," the minimum distance endpoint is the corner point of the design drawing. If the result is "yes," obtain the corner point of the design drawing based on the minimum distance endpoint. And...
[0053] The steps for dimensioning the exterior are as follows: dimension the exterior of the design drawing based on the corner points.
[0054] The aforementioned method for dimensioning external shapes, based on the part design drawing, locates the corner points of the part design drawing using the minimum bounding rectangle, and then uses these corner points as references to dimension the design drawing. This method automatically locates the corner points of the design drawing and performs dimensioning, replacing manual dimensioning, reducing the labor intensity of dimensioning, and effectively avoiding the omissions and errors that easily occur in manual dimensioning, thus improving the efficiency of part dimensioning.
[0055] In the construction of bridges and other structures, the steel structure manufacturing process includes: design drawing manufacturing process review, rough drafting of parts, material procurement, design drawing refinement (construction drawing preparation), steel cutting, unit component manufacturing, and assembly manufacturing. The design drawing refinement (construction drawing preparation) process includes: detailed part layout, machining drawing preparation, unit component drawing preparation, jig drawing preparation, assembly drawing preparation, and on-site construction drawing preparation. The most labor-intensive parts are detailed part layout and unit component preparation, both primarily done manually. Unit component preparation involves several steps: part placement, section drawing, positioning dimension annotation, external dimension annotation, and compilation of supporting tables. The applicant's research found that in the unit-by-unit drawing process alone, the number of unit components typically ranges from 10 to 100 pages, with a significant amount of external dimension and positioning dimension annotation, consuming a considerable amount of time for drafters. This repetitive and labor-intensive work can take anywhere from several hours to several days to complete. Figure 7 As shown, taking the base plate unit as an example, during manual annotation, corner points need to be manually selected repeatedly for dimensioning. Furthermore, manually capturing corner points easily leads to point misalignment, causing annotation errors. Moreover, weld holes or chamfers are manufacturing processes commonly found in unit components to facilitate assembly and welding; in drawing and actual measuring, the intersection of the weld hole or chamfer edge lines is used as the measurement point. For irregular corner points with weld holes or chamfers, it is also necessary to manually confirm the virtual corner points for accurate dimensioning, making the manual operation more complex. To shorten annotation time and improve annotation efficiency, this application proposes the aforementioned dimensioning method, which also further solves the problems of annotation errors or difficulty in annotating irregular corner points during manual annotation.
[0056] To address the problems raised in this application, all or part of the embodiments of this application are based on computer program processing flow, providing a solution for controlling or processing external or internal objects of a computer by executing a computer program compiled according to the above flow. That is, in this embodiment, the method for annotating external dimensions can be implemented through computer program processing.
[0057] In the design drawing acquisition step of this embodiment, it is only necessary to manually input the design drawing or select the design drawing from the storage device, and the design drawing can be automatically annotated with external dimensions through subsequent steps.
[0058] In the minimum bounding rectangle vertex acquisition step of this embodiment, the minimum bounding rectangle of the design drawing can be obtained using methods existing in the art. After acquiring the minimum bounding rectangle, its four vertices can be obtained simultaneously using the same method. Figures 3 to 5As shown in this embodiment, for ease of explanation, the four vertices of the minimum bounding rectangle are respectively denoted as vertex PA, vertex PB, vertex PC, and vertex PD.
[0059] In this embodiment, the minimum bounding rectangle (MBR), also translated as minimum boundary rectangle, minimum containing rectangle, or minimum circumscribed rectangle, refers to the maximum extent of several two-dimensional shapes (e.g., points, lines, polygons) represented by two-dimensional coordinates. Specifically, it is the rectangle whose lower boundary is defined by the maximum and minimum x-coordinates, maximum and minimum y-coordinates of each vertex of a given two-dimensional shape. The minimum bounding rectangle can be divided into the minimum area bounding rectangle and the minimum perimeter bounding rectangle. Generally, the difference between the two is not significant; therefore, in the embodiments of this application, the minimum bounding rectangle can be either the minimum area bounding rectangle or the minimum perimeter bounding rectangle.
[0060] In related technologies, there are various methods for obtaining the minimum bounding rectangle of an object in an image. For example, the direct calculation method obtains the rectangle by calculating the maximum and minimum values of the object's distribution coordinates in the image. Obviously, this rectangle usually cannot accurately describe the distribution of the region. Another method is the equal-interval rotation search method, which rotates the image object at equal intervals within a 90° range, records the parameters of the bounding rectangle of its contour in the coordinate system direction each time, and obtains the minimum bounding rectangle by calculating the area of the bounding rectangle.
[0061] Optionally, in one embodiment of this application, obtaining the minimum outer rectangle of the design drawing based on the design drawing may include the following steps:
[0062] Step 1: Calculate the outer rectangle of the outline area of the board according to the direct calculation method, and record the length, width and area of the outer rectangle. Obtain the minimum outer rectangle RectMin, and assign its area value to the variable AreaMin. Set the rotation angle α = 0°.
[0063] Rotate the contour region by an angle θ, and calculate the smallest bounding rectangle RectTmp after rotation according to step 1, and obtain its area value covering variable AreaTmp.
[0064] Step 3: Set the rotation angle α = α + θ, compare the sizes of AreaTmp and AreaMin, assign the smaller area value to AreaMin, assign the current rotation angle to β = α, and assign the rectangle information to RectMin = RectTmp.
[0065] Step 4: Repeat steps 2 and 3 to obtain the smallest outer rectangle RectMin and its corresponding rotation angle α.
[0066] Step 5: Rotate the calculated rectangle RectMin inversely by an angle β to obtain the minimum bounding rectangle.
[0067] The above only discloses one optional method for obtaining the minimum outer rectangle in this application. In the embodiments of this application, the method for obtaining the minimum outer rectangle of the design drawing based on the design drawing can be arbitrarily selected by those skilled in the art from the minimum outer rectangle obtaining method in the prior art, and will not be described in detail here.
[0068] As an optional implementation, in the minimum distance endpoint acquisition step of this embodiment, the endpoint is the endpoint of the border line segment in the design drawing. More preferably, the border line segment includes straight line segments and curved line segments.
[0069] In this embodiment, since the objective of this application is to perform external dimension annotation, it is not necessary to consider all points on the design drawing, but only the endpoints of the lines that make up the outer frame on the design drawing. In the minimum distance endpoint acquisition step, it is not necessary to consider the internal structure of the design drawing or the non-end points of the border line segments, which can significantly reduce the computational load of this step and improve the overall efficiency of the external dimension annotation method. Figures 3 to 5 As shown in this embodiment, for ease of explanation, an endpoint is denoted as Pn, and the distance between the endpoint Pn and the four vertices of the minimum bounding rectangle is denoted as distance Ln.
[0070] After traversing the distances between the vertices of the minimum bounding rectangle and all endpoints of the design drawing, the minimum distance endpoints of the minimum bounding rectangle vertices (vertices PA, PB, PC, and PD) are found to be at least four. When there are weld holes or chamfers at the corners of the design drawing, the minimum distance endpoints of the same minimum bounding rectangle vertex (e.g., vertex P) are considered. A There are two endpoints with the smallest distance.
[0071] like Figure 3 and Figure 5 As shown, in this embodiment, the endpoints of the design drawing are endpoint Pn, endpoint Pn+1, endpoint Pn+2, endpoint Pn-1, and endpoint Pn-2, which are the minimum distance endpoints that are the smallest distances from the vertices of the smallest outer rectangle.
[0072] exist Figure 3 In the schematic diagram shown, endpoints Pn and Pn-1 are equidistant from vertex PA with the smallest distance. Endpoint Pn is used as the current endpoint with the smallest distance to determine whether the corner point containing endpoint Pn is an irregular corner point. Figure 5 In the schematic diagram shown, the distances between endpoint Pn and endpoint Pn+1 and vertex PA are the smallest and equal. The endpoint Pn is used as the current minimum distance endpoint to determine whether the corner point where endpoint Pn is located is an irregular corner point.
[0073] As an optional implementation, in this embodiment, the part is a bridge steel structure unit.
[0074] In this embodiment, the main components of the bridge steel structure are generally elongated polygons or nearly square polygons. Except for large inflection points at the diagonals, the angle between the lines connecting other points and adjacent points and the Y-axis is either close to 0° or close to 90°. The angle only changes significantly when there are weld holes or chamfers. Therefore, in this application, the determination of whether the minimum distance endpoint is an irregular corner point is based on the angle change.
[0075] As an optional implementation, in this embodiment, irregular corner points include chamfers or through-holes.
[0076] In the following sections, embodiments of this application will further illustrate how to determine irregular angles by using the minimum distance endpoint and based on angle changes, and further explain how to obtain corner points for external dimension annotation by using irregular angles.
[0077] As an alternative implementation method, such as Figure 2 As shown, the determination of whether the minimum distance endpoint is an irregular corner point in this embodiment includes the following sub-steps:
[0078] The first angle acquisition step involves obtaining the first angle between the line connecting the current minimum distance endpoint and the first nearest minimum distance endpoint and the X-axis or Y-axis.
[0079] The first angle determination step is to determine whether the first angle is within the preset angle range;
[0080] The second angle acquisition step involves obtaining the second angle between the line connecting the current minimum distance endpoint and the second nearest minimum distance endpoint and the X-axis or Y-axis.
[0081] The second angle determination step is to determine whether the second angle is within the preset angle range;
[0082] The irregular corner point judgment step is as follows: when the judgment results of the first included angle judgment step and the second included angle judgment step are both "no", the irregular corner point judgment result is "no"; when at least one of the judgment results of the first included angle judgment step and the second included angle judgment step is "yes", the irregular corner point judgment result is "yes".
[0083] The X-axis or Y-axis is parallel to any side of the smallest bounding rectangle.
[0084] As a further preferred implementation, such as Figure 2 As shown, in this embodiment, when the result of determining the irregular corner point is "yes", the corner point of the design drawing is selected from the minimum distance endpoint and chosen from the following sub-steps:
[0085] When the judgment result of the first included angle judgment step is "yes", obtain the first corner point connecting the current minimum distance endpoint and the second nearest minimum distance endpoint, obtain the second corner point connecting the first nearest minimum distance endpoint and the minimum distance endpoint, and obtain the first intersection point of the first corner point connection and the second corner point connection based on the first corner point connection and the second corner point connection. The first intersection point is the corner point of the design drawing.
[0086] When the judgment result of the second included angle judgment step is "yes", obtain the line connecting the current minimum distance endpoint and the first adjacent minimum distance endpoint, obtain the line connecting the second adjacent minimum distance endpoint and the fourth corner point connecting the minimum distance endpoint, obtain the second intersection point of the line connecting the third corner point and the fourth corner point based on the line connecting the third corner point and the fourth corner point, and the second intersection point is the corner point of the design drawing.
[0087] As a further optional implementation, in this embodiment, the preset included angle range is 20° to 70°.
[0088] This application has undergone actual testing and research on multiple unit components of various bridge types. The effect is better when the preset included angle range is 20° to 70°, and it can correctly find corner points containing weld holes or chamfers.
[0089] In this embodiment, it can be determined whether the current minimum distance endpoint is an irregular angle by judging the angle between the line connecting the current minimum distance endpoint and the nearest minimum distance endpoint and the X-axis or Y-axis.
[0090] like Figure 2 and Figure 3 As shown, when determining whether the minimum distance endpoint is an irregular corner point, endpoint Pn+1 is considered as the current minimum distance endpoint. The angle between the line connecting endpoint Pn+1 and the first adjacent minimum distance endpoint Pn and the Y-axis does not fall within the preset angle range; simultaneously, the angle between the line connecting endpoint Pn+1 and the second adjacent minimum distance endpoint Pn+2 and the Y-axis does not fall within the preset angle range; therefore, the irregular corner point determination result is "no", and the current minimum distance endpoint is a corner point of the design drawing, which can be used to mark the outer dimensions of the design drawing. The irregular corner point determination process for endpoints Pn+2, Pn-1, and Pn-2 is the same as that for endpoint Pn+1, and will not be repeated here.
[0091] like Figure 2 and Figure 3As shown, when determining whether the minimum distance endpoint is an irregular corner point, endpoint Pn is considered as the current minimum distance endpoint. The first angle β between the line connecting endpoint Pn and the first adjacent minimum distance endpoint Pn+1 and the Y-axis does not fall within the preset angle range; simultaneously, the second angle α between the line connecting endpoint Pn and the second adjacent minimum distance endpoint Pn-1 and the Y-axis falls within the preset angle range; therefore, the irregular corner point determination result is "yes," and it is necessary to further obtain the corner point of the design drawing through the minimum distance endpoint. Figure 4 As shown, when obtaining the design based on the minimum distance endpoint, the current minimum distance endpoint Pn is connected to the first nearest minimum distance endpoint Pn+1 to obtain the third corner point line, and the second nearest minimum distance endpoint Pn-1 is connected to the minimum distance endpoint Pn-2 to obtain the fourth corner point line. The third corner point line and the fourth corner point line intersect at the second intersection point Pn'. This second intersection point is the corner point of the design drawing, and the outer dimensions of the design drawing can be marked based on this second corner point.
[0092] In this embodiment, if endpoint Pn is the current minimum distance endpoint, then the neighboring minimum distance endpoint is defined as the endpoint adjacent to the current minimum distance endpoint Pn, that is, the neighboring minimum distance endpoint Pn+1 or Pn-1 is located at both ends of the same line segment as the current minimum distance endpoint Pn; the interval minimum distance endpoint is defined as the endpoint Pn+2 or Pn-2 that is spaced apart from the current minimum distance endpoint Pn by the neighboring minimum distance endpoint Pn+1 or Pn-1.
[0093] It should be noted that in the step of obtaining the line connecting the second nearest minimum distance endpoint Pn-1 and the second corner point of the minimum distance endpoint, it is necessary not only to have the minimum distance endpoint separated from the current minimum distance endpoint Pn, but also to have it adjacent to the second nearest minimum distance endpoint Pn-1.
[0094] Furthermore, since endpoints Pn and Pn-1 are equidistant from vertex PA (having the minimum distance), they are actually the two endpoints of the chamfer. Therefore, in the specific process of obtaining the corner point, only one of endpoints Pn and Pn-1 needs to be considered to obtain the corner point of the design drawing. The following analysis explains the minimum distance endpoint acquisition step from another perspective: when there are two endpoints with the minimum distance from the same vertex of the minimum outer rectangle, only one of these minimum distance endpoints needs to be considered in the corner point acquisition step.
[0095] like Figure 2 and Figure 5As shown, when determining whether the minimum distance endpoint is an irregular corner point, endpoint Pn-1 is considered as the current minimum distance endpoint. The first angle β between the line connecting endpoint Pn-1 and the first adjacent minimum distance endpoint Pn and the Y-axis falls within a preset angle range; simultaneously, the second angle α between the line connecting endpoint Pn-1 and the second adjacent minimum distance endpoint Pn-2 and the Y-axis does not fall within the preset angle range; therefore, the irregular corner point determination result is "yes", and it is necessary to further obtain the corner point of the design drawing through the minimum distance endpoint. Figure 4 As shown, when obtaining the design based on the minimum distance endpoint, the first corner point is obtained by connecting the current minimum distance endpoint Pn-1 with the second nearest minimum distance endpoint Pn-2. At the same time, the second corner point is obtained by connecting the first nearest minimum distance endpoint Pn with the minimum distance endpoint Pn+1. The first corner point line and the second corner point line intersect at the first intersection point Pn'. This first intersection point is the corner point of the design drawing, and the outer dimensions of the design drawing can be marked based on this corner point.
[0096] In this embodiment, endpoint Pn-1 is the current minimum distance endpoint, and the neighboring minimum distance endpoint is defined as the endpoint adjacent to the current minimum distance endpoint Pn-1, that is, the neighboring minimum distance endpoint Pn or Pn-2 is located at both ends of the same line segment as the current minimum distance endpoint Pn-1; the interval minimum distance endpoint is defined as the endpoint Pn+1 or Pn+2 that is separated from the current minimum distance endpoint Pn-1 by the neighboring minimum distance endpoint Pn or Pn-2.
[0097] It should be noted that in the step of obtaining the line connecting the first nearest minimum distance endpoint Pn and the minimum distance endpoint, the line not only needs to be spaced between the minimum distance endpoint and the current minimum distance endpoint Pn-1, but also needs to be adjacent to the first nearest minimum distance endpoint Pn.
[0098] exist Figure 3 and Figure 5 In step S400, the minimum distance endpoints Pn and Pn-1 are used as the current minimum distance endpoints to determine and reconfirm the irregular angles. Since the minimum distance endpoints Pn and Pn-1 are both the two minimum distance endpoints with the smallest and equal distance to the vertex PA of the minimum outer rectangle, the result of determining and reconfirming the irregular angles using either one is the same. Therefore, in step S400, it is not necessary to determine irregular angles for all minimum distance endpoints; only the four minimum distance endpoints corresponding to the vertex of the minimum outer rectangle need to be processed.
[0099] The external dimensions of a design drawing after being annotated using the above-described external dimensioning method, as shown in the figure, are as follows: Figure 6As shown in this embodiment, the corners of the design drawing have chamfers. After processing by the external dimension annotation method of this embodiment, the corners can be accurately reconfirmed and annotated, avoiding errors in external dimension annotation due to the presence of chamfers.
[0100] like Figure 8 As shown, based on the same inventive concept, this application also proposes a dimensioning system, which includes the following modules:
[0101] The design drawing acquisition module is used to acquire the design drawings of parts.
[0102] The minimum bounding rectangle vertex acquisition module is used to obtain the minimum bounding rectangle of the design drawing based on the design drawing, and to obtain the vertices of the minimum bounding rectangle based on the minimum bounding rectangle;
[0103] The minimum distance endpoint acquisition module is used to traverse the distances between the vertices of the minimum outer rectangle and all endpoints of the design drawing, and obtain the minimum distance endpoint that is the smallest distance to the vertex of the minimum outer rectangle.
[0104] The corner point acquisition module is used to determine whether the minimum distance endpoint is an irregular corner point; when the judgment result is "no", the minimum distance endpoint is the corner point of the design drawing; when the judgment result is "yes", the corner point of the design drawing is obtained based on the minimum distance endpoint.
[0105] The external dimension annotation module is used to annotate the external dimensions of the design drawing based on the corner points.
[0106] In this application, the external dimension annotation system corresponds to the external dimension annotation method. It is a functional module that realizes the establishment of each step of the external dimension annotation method. It is applicable to the optional implementation methods of the external dimension annotation method and is also applicable to the external dimension annotation system, and can achieve the corresponding technical effects.
[0107] Based on the same inventive concept, this application also proposes a computer-readable storage medium containing one or more program instructions, which are used by a server to execute the above-described method for marking dimensions.
[0108] Those skilled in the art will understand that all or part of the steps in the methods and systems of the above embodiments can be implemented by specifying related hardware through a program. The program can be stored in a computer-readable storage medium. When executed, the program includes the following steps: a design parameter acquisition step, acquiring the design parameters of the board, the design parameters including at least the design drawing of the board; a minimum outer rectangle size parameter acquisition step, acquiring the minimum outer rectangle of the design drawing according to the design drawing, and acquiring the size parameters of the minimum outer rectangle based on the minimum outer rectangle; a margin rectangle parameter acquisition step, acquiring the margin rectangle parameters of the board based on the size parameters of the minimum outer rectangle and the margin amount of the board; and a margin rectangle parameter reorganization step, reorganizing the margin rectangle parameters to obtain the material lifting rectangle parameters of the board. The storage medium can be ROM / RAM, magnetic disk, optical disk, etc.
[0109] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature being directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature being directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0110] In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", and "counterclockwise" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0111] It should be noted that all directional indications in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a specific posture. If the specific posture changes, the directional indications will also change accordingly.
[0112] In this application, unless otherwise expressly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0113] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0114] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0115] Furthermore, the technical solutions of the various embodiments can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0116] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for marking external dimensions, characterized in that, The method for annotating external dimensions includes the following steps: Steps to obtain design drawings: Obtain the design drawings of the parts; The minimum bounding rectangle vertex acquisition step involves obtaining the minimum bounding rectangle of the design drawing based on the design drawing, and then obtaining the vertices of the minimum bounding rectangle based on the minimum bounding rectangle. The minimum distance endpoint acquisition step involves iterating through the distances between the vertices of the minimum bounding rectangle and all endpoints of the design drawing, and obtaining the minimum distance endpoint that is the smallest distance to the vertices of the minimum bounding rectangle. The corner point acquisition step involves determining whether the minimum distance endpoint is an irregular corner point; when the determination result is "no", the minimum distance endpoint is a corner point of the design drawing; when the determination result is "yes", the corner point of the design drawing is acquired based on the minimum distance endpoint; and... The step of annotating the external dimensions involves annotating the external dimensions of the design drawing based on the corner points.
2. The method for marking external dimensions as described in claim 1, characterized in that, In the step of obtaining the minimum distance endpoint, the endpoint is the endpoint of the border line segment in the design drawing.
3. The method for marking external dimensions as described in claim 2, characterized in that, The border line segments include straight line segments and curved line segments.
4. The method for marking external dimensions as described in any one of claims 1 to 3, characterized in that, The step of determining whether the minimum distance endpoint is an irregular corner point includes the following sub-steps: The first angle acquisition step involves obtaining the first angle between the line connecting the current minimum distance endpoint and the first nearest minimum distance endpoint and the X-axis or Y-axis. The first angle determination step is to determine whether the first angle is within the preset angle range; The second angle acquisition step involves obtaining the second angle between the line connecting the current minimum distance endpoint and the second nearest minimum distance endpoint and the X-axis or Y-axis. The second angle determination step is to determine whether the second angle is within the preset angle range; In the irregular corner point determination step, when both the determination result of the first included angle determination step and the determination result of the second included angle determination step are "no", the determination result of the irregular corner point is "no"; when at least one of the determination results of the first included angle determination step and the determination result of the second included angle determination step is "yes", the determination result of the irregular corner point is "yes". Wherein, the X-axis or Y-axis is parallel to any side of the minimum outer rectangle.
5. The method for marking external dimensions as described in claim 4, characterized in that, When the result of the irregular corner point determination is "yes", the step of selecting one of the corner points of the design drawing based on the minimum distance endpoint is selected from the following sub-steps: When the judgment result of the first angle judgment step is "yes", obtain the first corner point connecting the current minimum distance endpoint and the second nearest minimum distance endpoint, obtain the second corner point connecting the first nearest minimum distance endpoint and the minimum distance endpoint, and obtain the first intersection point of the first corner point connection and the second corner point connection based on the first corner point connection and the second corner point connection. The first intersection point is the corner point of the design drawing. When the judgment result of the second included angle judgment step is "yes", obtain the line connecting the current minimum distance endpoint and the first adjacent minimum distance endpoint, obtain the line connecting the second adjacent minimum distance endpoint and the fourth corner point connecting the minimum distance endpoint, and obtain the second intersection point of the line connecting the third corner point and the line connecting the fourth corner point according to the line connecting the third corner point and the line connecting the fourth corner point. The second intersection point is the corner point of the design drawing.
6. The method for marking external dimensions as described in claim 4, characterized in that, The preset included angle range is 20° to 70°.
7. The method for marking external dimensions as described in claim 4, characterized in that, The irregular corner points include chamfers or through-weld holes.
8. The method for marking external dimensions as described in claim 4, characterized in that, The part in question is a steel structural component for bridges.
9. A system for marking external dimensions, characterized in that, The external dimension marking system includes the following modules: The design drawing acquisition module is used to acquire the design drawings of parts. The minimum bounding rectangle vertex acquisition module is used to acquire the minimum bounding rectangle of the design drawing based on the design drawing, and to acquire the vertices of the minimum bounding rectangle based on the minimum bounding rectangle; The minimum distance endpoint acquisition module is used to traverse the distances between the vertices of the minimum outer rectangle and all endpoints of the design drawing, and obtain the minimum distance endpoint that is the smallest distance to the vertices of the minimum outer rectangle. The corner point acquisition module is used to determine whether the minimum distance endpoint is an irregular corner point; when the determination result is "no", the minimum distance endpoint is the corner point of the design drawing; when the determination result is "yes", the corner point of the design drawing is acquired based on the minimum distance endpoint. The outer dimension annotation module is used to annotate the outer dimensions of the design drawing based on the corner points.
10. A computer-readable storage medium, characterized in that, The computer storage medium contains one or more program instructions, which are used by the server to execute the external dimension annotation method as described in any one of claims 1 to 8.