Positioning device arrangement method, apparatus, device and storage medium
Patent Information
- Application Number
- CN202512014685.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2045-12-29
AI Technical Summary
[0005]本申请的目的在于提供一种定位具布置方法、装置、设备及存储介质,通过预设的定位具布置位置,按照对外轮廓边界进行投影和编号确定得到的运动方向,布置定位具,解决现有的定位具布置方法依赖于人工操作而费时费力且效率低下的问题,能够自动化、精确化布置定位具,提高了定位具的布置效率
[0007]本申请提供的定位具布置方法可以实现对定位具进行布置,通过预设的定位具布置位置,按照对外轮廓边界进行投影和编号确定得到的运动方向,布置定位具,解决现有的定位具布置方法依赖于人工操作而费时费力且效率低下的问题,能够自动化、精确化布置定位具,提高了定位具的布置效率。
Smart Images

Figure CN121564085B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of mold design, and more specifically, to a method, apparatus, equipment, and storage medium for arranging positioning devices. Background Technology
[0002] Positioning fixtures are crucial structures in molds. By installing sensor-based positioning fixtures on the mold, the stability of the mold's feeding can be effectively detected, ensuring the safety of the mold and the product during stamping operations. The positioning fixtures need to be placed close to the product boundary, and their orientation must be consistent with the normal direction at the boundary where they are placed.
[0003] Currently, designers in the mold industry typically import positioning fixture models manually when designing positioning fixtures. They then move these models to the product's process surface contours and adjust their height to ensure the positioning points align with the outer edge of the contour boundary. Finally, they rotate the fixtures to align with the normal direction of the contour boundary. Multiple positioning fixtures are usually required consecutively. Manual placement necessitates continuously importing positioning fixture models and moving them to different process surface contours, while also adjusting the orientation of the positioning fixtures according to the contour boundary normal at each placement point. This manual method of positioning fixture placement is time-consuming, labor-intensive, and extremely inefficient, failing to meet the efficiency and precision requirements of modern mold design.
[0004] To address the aforementioned issues, existing technologies urgently need improvement. Summary of the Invention
[0005] The purpose of this application is to provide a positioning device, apparatus, equipment, and storage medium for arranging positioning devices. By determining the direction of movement through projection and numbering of the external contour boundary using a preset positioning device placement position, the positioning devices are arranged. This solves the problem that existing positioning device arrangement methods rely on manual operation, which is time-consuming, labor-intensive, and inefficient. It enables automated and precise positioning of positioning devices, thereby improving the efficiency of positioning device arrangement.
[0006] Firstly, this application provides a method for arranging positioning devices, including: Obtain the mold design drawings; The outer contour boundary of the product's process surface is identified from the mold design drawing; The outer contour boundary is projected and numbered to determine the movement direction of the positioning device; Based on the preset positioning positions, the positioning devices are arranged according to the direction of movement.
[0007] The positioning fixture arrangement method provided in this application can arrange positioning fixtures by determining the movement direction by projecting and numbering the external contour boundary through preset positioning fixture placement positions. This solves the problem that existing positioning fixture arrangement methods rely on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange positioning fixtures automatically and accurately, thus improving the efficiency of positioning fixture arrangement.
[0008] Optionally, the outer contour boundary is projected and numbered to determine the movement direction of the positioning device, including: The outer contour boundary is bridged to ensure its continuity, resulting in a bridged outer contour boundary. The discretized bridged outer contour boundary is projected along the stamping direction to obtain the projected boundary points. The projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device.
[0009] The positioning fixture arrangement method provided in this application can arrange positioning fixtures. By bridging, projecting and numbering the outer contour boundaries, the movement direction of the positioning fixtures can be determined more accurately, providing a precise basis for subsequent automated arrangement and further improving the accuracy of the arrangement.
[0010] Optionally, the outer contour boundary is bridged to ensure its continuity, resulting in a bridged outer contour boundary, including: Determine whether there is a boundary break at the outer contour boundary; If not, then the outer contour boundary is determined to be continuous, and the outer contour boundary is determined as the bridged outer contour boundary. If not, the outer contour boundary is bridged according to the distance between the corresponding endpoints at the boundary break point to obtain the bridged outer contour boundary.
[0011] Optionally, the outer contour boundary is bridged based on the distance between corresponding endpoints at the boundary break, resulting in a bridged outer contour boundary, including: Determine whether the distance between the corresponding endpoints at the boundary break point is greater than a preset bridging distance threshold; If so, it is determined that bridging is not possible, a bridging failure prompt is issued, and a new outer contour boundary is selected before the bridging process is repeated. If not, then a straight line segment is used to bridge the corresponding endpoints at the boundary break to obtain the bridged outer contour boundary.
[0012] Optionally, the discretized bridged outer contour boundary is projected along the stamping direction to obtain projected boundary points, including: Discretize the bridged outer contour boundary to obtain discrete boundary points; A plane parallel to the horizontal plane is constructed at the center point of the mold in the mold design drawing to obtain the projection plane; The discrete boundary points are projected onto the projection plane along the stamping direction to obtain the projected boundary points.
[0013] Optionally, the projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device, including: Select any point as the starting point from the projection boundary points, and number the projection boundary points along the same direction to obtain the arrangement number value of the projection boundary points; Based on the numbering order of the arrangement number values, and in conjunction with the planar coordinate system constructed with the center point of the mold as the origin, the arrangement direction of the boundary points is determined; Based on the arrangement direction of the boundary points, the movement direction of the positioning device is determined.
[0014] Optionally, the boundary point arrangement direction is determined according to the numbering order of the arrangement number values and in conjunction with a planar coordinate system constructed with the center point of the mold as the origin, including: In the projection plane, a planar coordinate system is constructed with the center point of the mold as the origin and any direction as the horizontal coordinate axis; According to the numbering order of the arrangement number values, it is determined whether the ordinate of the corresponding projection boundary point in the plane coordinate system is greater than 0; if not, the corresponding projection boundary point is skipped; if yes, the difference of the abscissa between the next numbered projection boundary point and the current numbered projection boundary point is calculated, and the projection boundary point with the abscissa difference greater than 0 is marked as a clockwise label, the projection boundary point with the abscissa difference less than 0 is marked as a counterclockwise label, and the projection boundary point with the abscissa difference equal to 0 is marked as the label of the previous projection boundary point with the abscissa difference not equal to 0. The number of clockwise and counterclockwise labels is compared, and the rotation direction corresponding to the label with the larger number is determined as the boundary point arrangement direction.
[0015] The positioning device arrangement method provided in this application can arrange positioning devices. By introducing a coordinate system and label marking, it can intelligently determine the clockwise or counterclockwise arrangement trend of boundary points and determine the final boundary point arrangement direction based on the majority principle. This effectively avoids the influence of local noise on the overall direction judgment and improves the accuracy and stability of direction determination.
[0016] Secondly, this application provides a positioning device arrangement apparatus, comprising: The acquisition module is used to acquire the mold design drawings of the mold; The identification module is used to identify the outer contour boundary of the product process surface from the mold design drawing; A determination module is used to project and number the outer contour boundary in order to determine the movement direction of the positioning fixture. The arrangement module is used to arrange the positioning device according to the movement direction based on the preset positioning device arrangement position.
[0017] This positioning device arranges the positioning fixtures by determining the direction of movement through projection and numbering of the outer contour boundary, based on preset positioning fixture placement positions. This solves the problem that existing positioning fixture placement methods rely on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange the positioning fixtures automatically and accurately, thus improving the efficiency of positioning fixture placement.
[0018] Thirdly, this application provides an electronic device including a processor and a memory, the memory storing a computer program executable by the processor, wherein when the processor executes the computer program, it performs the steps in the positioning device arrangement method described above.
[0019] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the positioning device arrangement method described above.
[0020] Beneficial effects: The positioning device, apparatus, equipment and storage medium provided in this application arrange the positioning device by determining the direction of movement by projecting and numbering the external contour boundary according to the preset positioning device arrangement position. This solves the problem that the existing positioning device arrangement method relies on manual operation, which is time-consuming, labor-intensive and inefficient. It can arrange the positioning device automatically and accurately, thus improving the arrangement efficiency of the positioning device. Attached Figure Description
[0021] Figure 1 A flowchart illustrating the positioning device arrangement method provided in this application embodiment.
[0022] Figure 2 This is a schematic diagram of the positioning device provided in the embodiments of this application.
[0023] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0024] Labeling Explanation: 1. Acquisition Module; 2. Identification Module; 3. Determination Module; 4. Layout Module; 301. Processor; 302. Memory; 303. Communication Bus. Detailed Implementation
[0025] 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. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0026] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0027] Please refer to Figure 1 , Figure 1 This application provides a method for arranging positioning devices according to some embodiments, comprising the following steps: Step S101: Obtain the mold design drawing of the mold; Step S102: Identify the outer contour boundary of the product process surface from the mold design drawing; Step S103: Project and number the outer contour boundary to determine the movement direction of the positioning device; Step S104: Based on the preset positioning position, the positioning device is positioned according to the direction of movement.
[0028] This positioning fixture arrangement method uses preset positioning fixture placement positions and determines the movement direction by projecting and numbering the external contour boundary to arrange the positioning fixtures. It solves the problem that existing positioning fixture arrangement methods rely on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange positioning fixtures automatically and accurately, thus improving the efficiency of positioning fixture arrangement.
[0029] Specifically, in step S101, the mold design drawing of the mold is obtained. The mold design drawing is a technical drawing drawn by two-dimensional or three-dimensional software. It contains detailed information such as the geometry, size, and material of the mold and is the basis for subsequent positioning fixture arrangement.
[0030] Specifically, in step S102, the outer contour boundary of the product's process surface is key information for determining the location and orientation of the positioning fixture. It consists of a closed curve enclosing a portion of the mold surface and can be automatically identified using existing image processing or geometric analysis algorithms. For example, the outer contour boundary of the product's process surface can be automatically extracted by analyzing geometric features in the mold design drawing, such as lines and curves. Alternatively, it can be manually selected by the designer directly on the mold design drawing.
[0031] Specifically, in step S103, the outer contour boundary is projected and numbered to determine the movement direction of the positioning device, including: The outer contour boundary is bridged to ensure its continuity, resulting in the bridged outer contour boundary. The discretized and bridged outer contour boundary is projected along the stamping direction to obtain the projected boundary points. The projection boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device.
[0032] Specifically, in step S103, the outer contour boundary is bridged to ensure the continuity of the outer contour boundary, resulting in the bridged outer contour boundary, including: Determine if there is a boundary break at the outer contour boundary; If not, then determine the continuity of the outer contour boundary and define the outer contour boundary as the bridged outer contour boundary; If not, then based on the distance between the corresponding endpoints at the boundary break, the outer contour boundary is bridged to obtain the bridged outer contour boundary.
[0033] In step S103, the geometric data of the outer contour boundary of the product process surface identified from the mold design drawing is analyzed to detect whether there are discontinuous gaps or break points, i.e., boundary breaks. The purpose is to identify the boundary areas that need to be repaired. For example, existing geometric topology analysis algorithms or point cloud analysis methods based on distance thresholds can be used to identify these breaks, which will not be described in detail here.
[0034] If the judgment result is negative, that is, the outer contour boundary itself is already continuous, then no additional bridging operation is needed, and the current outer contour boundary is directly determined as the bridged outer contour boundary. This indicates that the original outer contour boundary has already met the continuity requirement.
[0035] If the judgment result is yes, that is, there is a boundary break in the outer contour boundary, then it is necessary to bridge the outer contour boundary according to the distance between the corresponding endpoints of the boundary break to obtain the bridged outer contour boundary, thereby ensuring the integrity and continuity of the outer contour boundary.
[0036] Specifically, in step S103, the outer contour boundary is bridged based on the distance between the corresponding endpoints at the boundary break, resulting in a bridged outer contour boundary, including: Determine whether the distance between the corresponding endpoints at the boundary break point is greater than the preset bridging distance threshold; If so, it is determined that bridging is not possible, a bridging failure prompt is issued, and a new outer contour boundary is selected before the bridging process is repeated. If not, then a straight line segment is used to bridge the corresponding endpoints at the boundary break to obtain the bridged outer contour boundary.
[0037] In step S103, by comparing the distance between the corresponding endpoints at the boundary break with a preset bridging distance threshold, it is possible to identify break areas that are unsuitable for direct bridging and have excessively large distances. This ensures the rationality and effectiveness of the bridging and avoids bridging results that do not meet actual process requirements due to excessive break distances. The preset bridging distance threshold can be empirically set or determined through simulation analysis based on the mold size, product precision requirements, and the characteristics of the stamping process.
[0038] When the distance between the endpoints at the boundary break point exceeds a preset bridging distance threshold, it is determined that effective bridging is not possible, and a bridging failure message is sent to the user. The user is informed that the current outer contour boundary break exceeds the acceptable bridging range and requires manual intervention or readjustment. In this case, a new outer contour boundary needs to be selected, and the bridging process is repeated to find a more suitable boundary for bridging. This avoids erroneous data caused by blind bridging and ensures the accuracy of subsequent positioning tool movement direction determination. When the distance between the corresponding endpoints at the boundary break is determined to be no greater than a preset bridging distance threshold, a straight line segment is used to bridge the corresponding endpoints at the boundary break. This method is simple, efficient, and can effectively restore the continuity of the outer contour boundary when the distance is small. Its purpose is to connect the broken boundaries in the most direct way to form a complete and continuous outer contour boundary, providing accurate basic data for subsequent projection and numbering.
[0039] Specifically, in step S103, the bridged outer contour boundary after discretization is projected along the stamping direction to obtain projected boundary points, including: Discretize the outer contour boundary after bridging to obtain discrete boundary points; Construct a plane parallel to the horizontal plane at the center point of the mold in the mold design drawing to obtain the projection plane; The discrete boundary points are projected onto the projection plane along the stamping direction to obtain the projected boundary points.
[0040] In step S103, the continuous boundary curve or line segment is transformed into a series of discrete points by a preset discrete distance, resulting in discrete boundary points. These points are uniformly or non-uniformly distributed on the boundary. The purpose is to simplify complex geometries into a computable set of points, facilitating subsequent mathematical processing and computer algorithm operations. The preset discrete distance can be set according to actual needs, but is generally set to 2mm.
[0041] A reference plane parallel to the horizontal plane is created at the center point of the mold, resulting in a projection plane perpendicular to the stamping direction. This projection plane serves as the receiving surface for the projection, providing a unified reference plane so that all discrete boundary points can be accurately projected onto this plane, thereby eliminating height differences in three-dimensional space and facilitating subsequent two-dimensional planar analysis.
[0042] By projecting discrete boundary points along the stamping direction onto the projection plane, the outer contour boundary of the product process surface in three-dimensional space is effectively transformed into a set of projected boundary points on a two-dimensional plane. This simplifies the subsequent process of determining the motion direction of the positioning fixture and avoids the difficulty of performing calculations directly on complex three-dimensional curved surfaces.
[0043] Specifically, in step S103, the projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device, including: Select any point as the starting point from the projection boundary points, and number the projection boundary points along the same direction to obtain the arrangement number value of the projection boundary points; Based on the numbering order of the arrangement numbers, and combined with the planar coordinate system constructed with the center point of the mold as the origin, the arrangement direction of the boundary points is determined; Based on the arrangement of boundary points, the movement direction of the positioning device is determined.
[0044] In step S103, when numbering the projection boundary points, any point can be arbitrarily selected from the set of projection boundary points as the starting point. Subsequently, all projection boundary points are consecutively numbered along the same preset direction (e.g., clockwise or counterclockwise), thereby assigning a unique arrangement number value to each projection boundary point. This arrangement number value reflects the relative order of the points on the projection plane.
[0045] Specifically, in step S103, the boundary point arrangement direction is determined according to the numbering order of the arrangement number values and in conjunction with the planar coordinate system constructed with the center point of the mold as the origin, including: In the projection plane, a planar coordinate system is constructed with the center point of the mold as the origin and any direction as the horizontal axis; According to the numbering order of the arrangement numbers, it is determined whether the ordinate of the corresponding projection boundary point in the plane coordinate system is greater than 0. If not, the corresponding projection boundary point is skipped. If so, the difference between the abscissa of the next numbered projection boundary point and the current numbered projection boundary point is calculated. The projection boundary point with the abscissa difference greater than 0 is marked as clockwise, the projection boundary point with the abscissa difference less than 0 is marked as counterclockwise, and the projection boundary point with the abscissa difference equal to 0 is marked as the label of the previous projection boundary point with the abscissa difference not equal to 0. Compare the number of clockwise and counterclockwise labels, and determine the rotation direction corresponding to the label with the larger number as the boundary point arrangement direction.
[0046] In step S103, when determining the arrangement direction of the boundary points, a planar coordinate system with the center point of the mold as the origin needs to be constructed in the projection plane. The horizontal axis of this coordinate system can be set in any direction, such as horizontal to the right, to facilitate subsequent coordinate analysis of the projected boundary points.
[0047] Following the previously obtained arrangement numbering order, the projected boundary points are traversed. For each projected boundary point, its ordinate is first checked to see if it is greater than 0. The purpose of this step is to filter out points located in the upper half of the coordinate system. These points are more crucial for judging the overall rotation trend and can effectively avoid judgment errors caused by uneven distribution of boundary points on or in the lower half of the coordinate axis. If the ordinate is not greater than 0, the point is skipped and does not participate in subsequent labeling.
[0048] For projected boundary points with a ordinate greater than 0, the difference in the x-coordinate between the next and current projected boundary points is calculated. If this difference is greater than 0, it indicates a rightward movement on the x-coordinate from the current point to the next, which is usually associated with a clockwise rotation trend. Therefore, the current projected boundary point is labeled as clockwise. Conversely, if the difference is less than 0, it indicates a leftward movement, associated with a counter-clockwise rotation trend. The current projected boundary point is labeled as counter-clockwise. If the difference is equal to 0, it indicates no movement on the x-coordinate. In this case, the point is labeled with the tag of the previous projected boundary point whose x-coordinate difference was not equal to 0, to maintain the continuity of direction determination. Since the outer contour boundary corresponding to this projected boundary point is a closed curve, when the calculated difference in the x-coordinate corresponding to the starting point (the difference in the x-coordinate between the next point and the starting point) is 0, the starting point can be marked as pending. After all projected boundary points have been marked, the label of the starting point is determined based on the label of the endpoint.
[0049] After all eligible projected boundary points have been marked, the number of clockwise and counterclockwise labels is counted. By comparing the number of these two types of labels, the rotation direction (clockwise or counterclockwise) corresponding to the label with the larger number of labels will be ultimately determined as the boundary point arrangement direction. This majority-based judgment method can effectively improve the accuracy and robustness of direction determination and reduce the impact of single local point anomalies on the overall direction determination.
[0050] In step S103, once the boundary point arrangement direction is determined, it can be directly used as the movement direction of the positioning fixture. This is because the arrangement direction of the outer contour boundary of the product's process surface on the projection plane directly reflects the movement trajectory and direction that the positioning fixture should follow when it is arranged, ensuring that the positioning fixture can be arranged along the correct path of the product surface.
[0051] Specifically, in step S104, after determining the movement direction of the positioning fixture, it can be automatically positioned according to a preset location. The preset positioning fixture location can be set by the designer based on experience or design specifications; for example, a placement point can be specified on the outer contour boundary of the product's process surface. Then, based on this placement point and the previously determined movement direction of the positioning fixture, a model of the positioning fixture is automatically generated and placed in the corresponding position, while its orientation is adjusted to be consistent with the movement direction.
[0052] As can be seen from the above, this positioning fixture arrangement method obtains the mold design drawing of the mold, identifies the outer contour boundary of the product process surface from the mold design drawing, projects and numbers the outer contour boundary to determine the movement direction of the positioning fixture, and arranges the positioning fixture according to the movement direction based on the preset positioning fixture arrangement position. Thus, by using the preset positioning fixture arrangement position and determining the movement direction according to the projection and numbering of the outer contour boundary, the positioning fixture is arranged, solving the problem that the existing positioning fixture arrangement method relies on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange the positioning fixture automatically and accurately, improving the arrangement efficiency of the positioning fixture.
[0053] refer to Figure 2 This application provides a positioning device for arranging positioning devices, comprising: Module 1 is used to acquire the mold design drawing of the mold; Recognition module 2 is used to identify the outer contour boundary of the product process surface from the mold design drawing; Module 3 is used to project and number the outer contour boundary in order to determine the movement direction of the positioning fixture. Arrangement module 4 is used to arrange the positioning device according to the direction of movement based on the preset positioning device placement position.
[0054] This positioning device arranges the positioning fixtures by determining the direction of movement through projection and numbering of the outer contour boundary, based on preset positioning fixture placement positions. This solves the problem that existing positioning fixture placement methods rely on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange the positioning fixtures automatically and accurately, thus improving the efficiency of positioning fixture placement.
[0055] Specifically, when module 1 is executed, it acquires the mold design drawing of the mold. The mold design drawing is a technical drawing drawn by two-dimensional or three-dimensional software. It contains detailed information such as the geometry, size, and material of the mold and is the basis for subsequent positioning fixture arrangement.
[0056] Specifically, when the recognition module 2 is executed, the outer contour boundary of the product's process surface is key information for determining the location and orientation of the positioning fixture. It consists of a closed curve enclosing a portion of the mold surface and can be automatically identified using existing image processing or geometric analysis algorithms. For example, by analyzing geometric features in the mold design drawing, such as lines and curves, the outer contour boundary of the product's process surface can be automatically extracted. Alternatively, it can be manually selected by the designer directly from the mold design drawing.
[0057] Specifically, when determining the movement direction of the positioning device by projecting and numbering the outer contour boundary of module 3, the following is executed: The outer contour boundary is bridged to ensure its continuity, resulting in the bridged outer contour boundary. The discretized and bridged outer contour boundary is projected along the stamping direction to obtain the projected boundary points. The projection boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device.
[0058] Specifically, module 3 determines that bridging is performed on the outer contour boundary to ensure its continuity. Upon obtaining the bridged outer contour boundary, the following steps are executed: Determine if there is a boundary break at the outer contour boundary; If not, then determine the continuity of the outer contour boundary and define the outer contour boundary as the bridged outer contour boundary; If not, then based on the distance between the corresponding endpoints at the boundary break, the outer contour boundary is bridged to obtain the bridged outer contour boundary.
[0059] When module 3 is executed, it analyzes the geometric data of the outer contour boundary of the product process surface identified from the mold design drawing to detect whether there are discontinuous gaps or break points, i.e., boundary breaks. Its purpose is to identify the boundary areas that need to be repaired. For example, existing geometric topology analysis algorithms or point cloud analysis methods based on distance thresholds can be used to identify these breaks, which will not be described in detail here.
[0060] If the judgment result is negative, that is, the outer contour boundary itself is already continuous, then no additional bridging operation is needed, and the current outer contour boundary is directly determined as the bridged outer contour boundary. This indicates that the original outer contour boundary has already met the continuity requirement.
[0061] If the judgment result is yes, that is, there is a boundary break in the outer contour boundary, then it is necessary to bridge the outer contour boundary according to the distance between the corresponding endpoints of the boundary break to obtain the bridged outer contour boundary, thereby ensuring the integrity and continuity of the outer contour boundary.
[0062] Specifically, when determining the outer contour boundary by bridging the corresponding endpoints at the boundary breakpoints in module 3 to obtain the bridged outer contour boundary, the following steps are executed: Determine whether the distance between the corresponding endpoints at the boundary break point is greater than the preset bridging distance threshold; If so, it is determined that bridging is not possible, a bridging failure prompt is issued, and a new outer contour boundary is selected before the bridging process is repeated. If not, then a straight line segment is used to bridge the corresponding endpoints at the boundary break to obtain the bridged outer contour boundary.
[0063] When module 3 is executed, it compares the distance between the corresponding endpoints at the boundary break with a preset bridging distance threshold. This identifies break areas that are unsuitable for direct bridging due to excessive distance, ensuring the rationality and effectiveness of the bridging and avoiding bridging results that do not meet actual process requirements due to excessive break distance. The preset bridging distance threshold can be set empirically or determined through simulation analysis based on the mold size, product precision requirements, and characteristics of the stamping process.
[0064] When the distance between the endpoints at the boundary break point exceeds a preset bridging distance threshold, it is determined that effective bridging is not possible, and a bridging failure message is sent to the user. The user is informed that the current outer contour boundary break exceeds the acceptable bridging range and requires manual intervention or readjustment. In this case, a new outer contour boundary needs to be selected, and the bridging process is repeated to find a more suitable boundary for bridging. This avoids erroneous data caused by blind bridging and ensures the accuracy of subsequent positioning tool movement direction determination. When the distance between the corresponding endpoints at the boundary break is determined to be no greater than a preset bridging distance threshold, a straight line segment is used to bridge the corresponding endpoints at the boundary break. This method is simple, efficient, and can effectively restore the continuity of the outer contour boundary when the distance is small. Its purpose is to connect the broken boundaries in the most direct way to form a complete and continuous outer contour boundary, providing accurate basic data for subsequent projection and numbering.
[0065] Specifically, when determining the projection of the bridged outer contour boundary after discretization along the stamping direction to obtain the projected boundary points, module 3 performs the following: Discretize the outer contour boundary after bridging to obtain discrete boundary points; Construct a plane parallel to the horizontal plane at the center point of the mold in the mold design drawing to obtain the projection plane; The discrete boundary points are projected onto the projection plane along the stamping direction to obtain the projected boundary points.
[0066] When module 3 is executed, it transforms continuous boundary curves or line segments into a series of discrete points using a preset discrete distance, resulting in discrete boundary points. These points are uniformly or non-uniformly distributed on the boundary. The purpose is to simplify complex geometries into a computable set of points, facilitating subsequent mathematical processing and computer algorithm operations. The preset discrete distance can be set according to actual needs, but is generally set to 2mm.
[0067] A reference plane parallel to the horizontal plane is created at the center point of the mold, resulting in a projection plane perpendicular to the stamping direction. This projection plane serves as the receiving surface for the projection, providing a unified reference plane so that all discrete boundary points can be accurately projected onto this plane, thereby eliminating height differences in three-dimensional space and facilitating subsequent two-dimensional planar analysis.
[0068] By projecting discrete boundary points along the stamping direction onto the projection plane, the outer contour boundary of the product process surface in three-dimensional space is effectively transformed into a set of projected boundary points on a two-dimensional plane. This simplifies the subsequent process of determining the motion direction of the positioning fixture and avoids the difficulty of performing calculations directly on complex three-dimensional curved surfaces.
[0069] Specifically, when determining the movement direction of the positioning device by numbering the projected boundary points along the same direction and determining the arrangement direction of the boundary points according to the numbering order, module 3 performs the following: Select any point as the starting point from the projection boundary points, and number the projection boundary points along the same direction to obtain the arrangement number value of the projection boundary points; Based on the numbering order of the arrangement numbers, and combined with the planar coordinate system constructed with the center point of the mold as the origin, the arrangement direction of the boundary points is determined; Based on the arrangement of boundary points, the movement direction of the positioning device is determined.
[0070] When module 3 is executed, it can arbitrarily select a point from the set of projection boundary points as the starting point when numbering the projection boundary points. Then, it continuously numbers all projection boundary points along the same preset direction (e.g., clockwise or counterclockwise), thus assigning each projection boundary point a unique arrangement number value. This arrangement number value reflects the relative order of the points on the projection plane.
[0071] Specifically, when determining the boundary point arrangement direction based on the numbering order of the arrangement number values and in conjunction with a planar coordinate system constructed with the center point of the mold as the origin, module 3 performs the following: In the projection plane, a planar coordinate system is constructed with the center point of the mold as the origin and any direction as the horizontal axis; According to the numbering order of the arrangement numbers, it is determined whether the ordinate of the corresponding projection boundary point in the plane coordinate system is greater than 0. If not, the corresponding projection boundary point is skipped. If so, the difference between the abscissa of the next numbered projection boundary point and the current numbered projection boundary point is calculated. The projection boundary point with the abscissa difference greater than 0 is marked as clockwise, the projection boundary point with the abscissa difference less than 0 is marked as counterclockwise, and the projection boundary point with the abscissa difference equal to 0 is marked as the label of the previous projection boundary point with the abscissa difference not equal to 0. Compare the number of clockwise and counterclockwise labels, and determine the rotation direction corresponding to the label with the larger number as the boundary point arrangement direction.
[0072] When module 3 is executed, in determining the orientation of the boundary points, it first needs to construct a planar coordinate system with the center point of the mold as the origin in the projection plane. The horizontal axis of this coordinate system can be set in any direction, such as horizontal to the right, to facilitate subsequent coordinate analysis of the projected boundary points.
[0073] Following the previously obtained arrangement numbering order, the projected boundary points are traversed. For each projected boundary point, its ordinate is first checked to see if it is greater than 0. The purpose of this step is to filter out points located in the upper half of the coordinate system. These points are more crucial for judging the overall rotation trend and can effectively avoid judgment errors caused by uneven distribution of boundary points on or in the lower half of the coordinate axis. If the ordinate is not greater than 0, the point is skipped and does not participate in subsequent labeling.
[0074] For projected boundary points with a ordinate greater than 0, the difference in the x-coordinate between the next and current projected boundary points is calculated. If this difference is greater than 0, it indicates a rightward movement on the x-coordinate from the current point to the next, which is usually associated with a clockwise rotation trend. Therefore, the current projected boundary point is labeled as clockwise. Conversely, if the difference is less than 0, it indicates a leftward movement, associated with a counter-clockwise rotation trend. The current projected boundary point is labeled as counter-clockwise. If the difference is equal to 0, it indicates no movement on the x-coordinate. In this case, the point is labeled with the tag of the previous projected boundary point whose x-coordinate difference was not equal to 0, to maintain the continuity of direction determination. Since the outer contour boundary corresponding to this projected boundary point is a closed curve, when the calculated difference in the x-coordinate corresponding to the starting point (the difference in the x-coordinate between the next point and the starting point) is 0, the starting point can be marked as pending. After all projected boundary points have been marked, the label of the starting point is determined based on the label of the endpoint.
[0075] After all eligible projected boundary points have been marked, the number of clockwise and counterclockwise labels is counted. By comparing the number of these two types of labels, the rotation direction (clockwise or counterclockwise) corresponding to the label with the larger number of labels will be ultimately determined as the boundary point arrangement direction. This majority-based judgment method can effectively improve the accuracy and robustness of direction determination and reduce the impact of single local point anomalies on the overall direction determination.
[0076] When module 3 is executed, once the boundary point arrangement direction is determined, it can be directly used as the movement direction of the positioning fixture. This is because the arrangement direction of the outer contour boundary of the product's process surface on the projection plane directly reflects the movement trajectory and direction that the positioning fixture should follow when it is arranged, ensuring that the positioning fixture can be arranged along the correct path of the product surface.
[0077] Specifically, when the placement module 4 is executed, after determining the movement direction of the positioning fixture, it can automatically place the positioning fixture according to the preset placement position. The preset placement position of the positioning fixture can be set by the designer based on experience or design specifications. For example, a placement point can be specified on the outer contour boundary of the product's process surface. Then, based on this placement point and combined with the previously determined movement direction of the positioning fixture, the model of the positioning fixture is automatically generated and placed in the corresponding position, while adjusting its orientation to be consistent with the movement direction.
[0078] As can be seen from the above, this positioning fixture arrangement device obtains the mold design drawing of the mold, identifies the outer contour boundary of the product process surface from the mold design drawing, projects and numbers the outer contour boundary to determine the movement direction of the positioning fixture, and arranges the positioning fixture according to the movement direction based on the preset positioning fixture arrangement position. Thus, by using the preset positioning fixture arrangement position and determining the movement direction according to the projection and numbering of the outer contour boundary, the positioning fixture is arranged, solving the problem that the existing positioning fixture arrangement method relies on manual operation, which is time-consuming, labor-intensive, and inefficient. It can arrange the positioning fixture automatically and accurately, improving the arrangement efficiency of the positioning fixture.
[0079] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device includes a processor 301 and a memory 302. The processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanism (not shown). The memory 302 stores a computer program executable by the processor 301. When the electronic device is running, the processor 301 executes the computer program to execute the positioning fixture arrangement method in any optional implementation of the above embodiment, so as to achieve the following functions: obtaining the mold design drawing of the mold, identifying the outer contour boundary of the product process surface from the mold design drawing, projecting and numbering the outer contour boundary to determine the movement direction of the positioning fixture, and arranging the positioning fixture according to the movement direction based on the preset positioning fixture arrangement position.
[0080] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it performs a positioning fixture arrangement method in any optional implementation of the above embodiments to achieve the following functions: acquiring a mold design drawing of a mold; identifying the outer contour boundary of the product process surface from the mold design drawing; projecting and numbering the outer contour boundary to determine the movement direction of the positioning fixture; and arranging the positioning fixture according to the movement direction based on a preset positioning fixture arrangement position. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0081] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0082] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0083] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0084] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0085] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for arranging positioning devices, characterized in that, Including the following steps: Obtain the mold design drawings; The outer contour boundary of the product's process surface is identified from the mold design drawing; The outer contour boundary is projected and numbered to determine the movement direction of the positioning device; Based on the preset positioning positions, the positioning devices are arranged according to the direction of movement; Projecting and numbering the outer contour boundary to determine the movement direction of the positioning device includes: The outer contour boundary is bridged to ensure its continuity, resulting in a bridged outer contour boundary. The discretized bridged outer contour boundary is projected along the stamping direction to obtain the projected boundary points. The projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device; The projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device, including: Select any point as the starting point from the projection boundary points, and number the projection boundary points along the same direction to obtain the arrangement number value of the projection boundary points; Based on the numbering order of the arrangement number values, and combined with the planar coordinate system constructed with the center point of the mold in the mold design drawing as the origin, the arrangement direction of the boundary points is determined; Based on the arrangement direction of the boundary points, the movement direction of the positioning device is determined; Based on the numbering sequence of the arrangement numbers, and in conjunction with a planar coordinate system constructed with the center point of the mold as the origin, the direction of the boundary point arrangement is determined, including: In the projection plane, a planar coordinate system is constructed with the center point of the mold as the origin and any direction as the horizontal coordinate axis; According to the numbering order of the arrangement number values, it is determined whether the ordinate of the corresponding projection boundary point in the plane coordinate system is greater than 0; if not, the corresponding projection boundary point is skipped; if yes, the difference of the abscissa between the next numbered projection boundary point and the current numbered projection boundary point is calculated, and the projection boundary point with the abscissa difference greater than 0 is marked as a clockwise label, the projection boundary point with the abscissa difference less than 0 is marked as a counterclockwise label, and the projection boundary point with the abscissa difference equal to 0 is marked as the label of the previous projection boundary point with the abscissa difference not equal to 0. The number of clockwise and counterclockwise labels is compared, and the rotation direction corresponding to the label with the larger number is determined as the boundary point arrangement direction.
2. The positioning device arrangement method according to claim 1, characterized in that, The outer contour boundary is bridged to ensure its continuity, resulting in a bridged outer contour boundary, including: Determine whether there is a boundary break at the outer contour boundary; If not, then the outer contour boundary is determined to be continuous, and the outer contour boundary is determined as the bridged outer contour boundary. If so, the outer contour boundary is bridged according to the distance between the corresponding endpoints at the boundary break point to obtain the bridged outer contour boundary.
3. The positioning device arrangement method according to claim 2, characterized in that, Based on the distance between the corresponding endpoints at the boundary break, the outer contour boundary is bridged to obtain the bridged outer contour boundary, including: Determine whether the distance between the corresponding endpoints at the boundary break point is greater than a preset bridging distance threshold; If so, it is determined that bridging is not possible, a bridging failure prompt is issued, and a new outer contour boundary is selected before the bridging process is repeated. If not, then a straight line segment is used to bridge the corresponding endpoints at the boundary break to obtain the bridged outer contour boundary.
4. The positioning device arrangement method according to claim 1, characterized in that, The discretized, bridged outer contour boundary is projected along the stamping direction to obtain projected boundary points, including: Discretize the bridged outer contour boundary to obtain discrete boundary points; A plane parallel to the horizontal plane is constructed at the center point of the mold in the mold design drawing to obtain the projection plane; The discrete boundary points are projected onto the projection plane along the stamping direction to obtain the projected boundary points.
5. A positioning device for arranging positioning devices, characterized in that, include: The acquisition module is used to acquire the mold design drawings of the mold; The identification module is used to identify the outer contour boundary of the product process surface from the mold design drawing; A determination module is used to project and number the outer contour boundary in order to determine the movement direction of the positioning fixture. The arrangement module is used to arrange the positioning device according to the movement direction based on the preset positioning device arrangement position; The determining module is used to project and number the outer contour boundary to determine the movement direction of the positioning fixture, including: The outer contour boundary is bridged to ensure its continuity, resulting in a bridged outer contour boundary. The discretized bridged outer contour boundary is projected along the stamping direction to obtain the projected boundary points. The projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device; The projected boundary points are numbered along the same direction, and the arrangement direction of the boundary points is determined according to the numbering order, so as to determine the movement direction of the positioning device, including: Select any point as the starting point from the projection boundary points, and number the projection boundary points along the same direction to obtain the arrangement number value of the projection boundary points; Based on the numbering order of the arrangement number values, and combined with the planar coordinate system constructed with the center point of the mold in the mold design drawing as the origin, the arrangement direction of the boundary points is determined; Based on the arrangement direction of the boundary points, the movement direction of the positioning device is determined; Based on the numbering sequence of the arrangement numbers, and in conjunction with a planar coordinate system constructed with the center point of the mold as the origin, the direction of the boundary point arrangement is determined, including: In the projection plane, a planar coordinate system is constructed with the center point of the mold as the origin and any direction as the horizontal coordinate axis; According to the numbering order of the arrangement number values, it is determined whether the ordinate of the corresponding projection boundary point in the plane coordinate system is greater than 0; if not, the corresponding projection boundary point is skipped; if yes, the difference of the abscissa between the next numbered projection boundary point and the current numbered projection boundary point is calculated, and the projection boundary point with the abscissa difference greater than 0 is marked as a clockwise label, the projection boundary point with the abscissa difference less than 0 is marked as a counterclockwise label, and the projection boundary point with the abscissa difference equal to 0 is marked as the label of the previous projection boundary point with the abscissa difference not equal to 0. The number of clockwise and counterclockwise labels is compared, and the rotation direction corresponding to the label with the larger number is determined as the boundary point arrangement direction.
6. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program executable by the processor, which, when executing the computer program, performs the steps of the positioning device arrangement method as described in any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it performs the steps of the positioning device arrangement method as described in any one of claims 1-4.
Citation Information
Patent Citations
Positioning model arrangement method and device, equipment and medium
CN117235825A