Part nesting data determination method, device, equipment and storage medium
By acquiring and converting the shape description information of 3D model data, the problem of inconsistent nesting information formats between different design software is solved, nesting data can be quickly generated, and nesting efficiency and unified management capabilities are improved.
Patent Information
- Application Number
- CN202111526284.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2041-12-14
AI Technical Summary
The nesting information formats of sheet metal parts output by different design software vary greatly, which makes it difficult to unify the nesting process, resulting in low nesting efficiency and is not conducive to the unified nesting management of sheet metal parts.
By obtaining the three-dimensional model data of the target part, it is determined whether the shape description information matches the nesting data conversion interface. If it does not match, the format conversion is performed. The nesting data conversion interface is used to generate shape description compatible information that matches the input data format of the second application, and the nesting data is determined in combination with the part attribute information.
It realizes the rapid generation of nesting data, improves the efficiency of the nesting process, avoids human intervention, shortens the generation time, and supports the unified management of nesting data.
Smart Images

Figure CN114186301B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of nesting technology, and in particular to a method, device, equipment and storage medium for determining part nesting data. Background Art
[0002] Nesting is a method of using limited materials to make as much material as possible for production. By applying nesting, the utilization rate of materials can be improved and waste can be reduced.
[0003] Currently, nesting calculations for sheet metal parts are primarily performed using design software. However, the formats of nesting information for sheet metal parts output by different design software vary significantly. When nesting software and auxiliary design software are incompatible, the nesting process is often difficult to unify, resulting in low nesting efficiency and hindering the unified nesting management of sheet metal parts. Summary of the Invention
[0004] The embodiments of the present invention solve the technical problem of low efficiency of the nesting process in the prior art by providing a method, device, equipment and storage medium for determining part nesting data.
[0005] In the first aspect, the present invention provides a method for determining part nesting data through an embodiment of the present invention, comprising: obtaining three-dimensional model data of a target part generated by a first application, determining part attribute information and shape description information of the target part based on the three-dimensional model data, and judging whether the shape description information matches the nesting data conversion interface defined by a second application; if not, performing format conversion on the shape description information through the nesting data conversion interface to obtain shape description compatibility information that matches the input data format of the second application; and using the second application to process the part attribute information and the shape description compatibility information to determine the nesting data of the target part.
[0006] Preferably, the part attribute information includes: part name, part material, number of components and part thickness; the shape description information includes: outer cutting edge, inner cutting loop, marking line and text description information; wherein, the outer cutting edge represents the cutting shape of the target part; the inner cutting loop represents the internal opening of the target part; the marking line is used to mark the positioning line, processing line, residual line and cut of the target part; the text description information includes the name, processing allowance and value of the target part.
[0007] Preferably, the determining whether the shape description information matches the nesting data conversion interface defined by the second application includes: reading key character information related to the outer cutting edge line, the inner cutting loop line, the marking line and the text description information in the shape description information, and determining whether the key character information matches the check character information in the nesting data conversion interface; if the key character information matches the check character information, the shape description information matches the nesting data conversion interface; otherwise, the shape description information does not match the nesting data conversion interface.
[0008] Preferably, the line types of the outer cutting edge line, the inner cutting loop line and the marking line include: one or more of a straight line, a circular arc line and a spline curve; the format conversion of the shape description information using the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application includes: using the nesting data conversion interface to determine the radius value between the first coordinate point and the second coordinate point in the shape description information; if the radius value is not 0, determining that the line type in the shape description compatible information includes a circular arc line; using the first coordinate point and the second coordinate point to determine the center coordinates of the circular arc line to obtain the shape description compatible information.
[0009] Preferably, the shape description compatible information includes: the center coordinates, starting angle, ending angle and direction of the arc line; using the first coordinate point and the second coordinate point to determine the center coordinates of the arc line to obtain the shape description compatible information, including: calculating the center coordinates, starting angle and ending angle of the arc line based on the first coordinate point, the second coordinate point and the radius value; using the positive or negative of the radius value to determine the direction of the arc line.
[0010] Preferably, before determining the nesting data of the target part using the part attribute information and the shape description compatibility information, the method further includes: visualizing the shape description compatibility information; wherein different line shapes in the shape description compatibility information are represented by different colors.
[0011] In a second aspect, the present invention provides a device for determining part nesting data through an embodiment of the present invention, comprising:
[0012] an information acquisition and matching unit, configured to acquire three-dimensional model data of a target part generated by a first application, determine part attribute information and shape description information of the target part based on the three-dimensional model data, and determine whether the shape description information matches a nesting data conversion interface defined by a second application;
[0013] an information conversion unit, configured to, when the shape description information does not match the nesting data conversion interface, convert the format of the shape description information through the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application;
[0014] The nesting data generating unit is configured to process the part attribute information and the shape description compatibility information using the second application to determine the nesting data of the target part.
[0015] Preferably, the information acquisition and matching unit is specifically used to:
[0016] Reading key character information related to the outer cutting edge line, the inner cutting loop line, the marking line, and the text description information in the shape description information, and determining whether the key character information matches the check character information in the nesting data conversion interface;
[0017] If the key character information matches the check character information, then the shape description information matches the nesting data conversion interface;
[0018] Otherwise, the shape description information does not match the nesting data conversion interface.
[0019] In a third aspect, the present invention provides an electronic device for determining part nesting data through an embodiment of the present invention, wherein the electronic device includes a memory, a processor, and a code stored on the memory and executable on the processor, wherein the processor implements any one of the embodiments when executing the code.
[0020] In a fourth aspect, the present invention provides a computer-readable storage medium through an embodiment of the present invention, on which a computer program is stored, and when the program is executed by a processor, any implementation method in the aspect is implemented.
[0021] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
[0022] By obtaining the three-dimensional model data of the target part generated by the first application, the part attribute information and shape description information of the target part are determined based on the three-dimensional model data, and it is determined whether the shape description information matches the nesting data conversion interface defined by the second application.
[0023] If the shape description information cannot be directly used by the second application, the existing technology requires technicians to manually calculate it, resulting in an inability to quickly convert the format of the target part's shape description information. However, the embodiment of the present invention can directly convert the format of the shape description information through the nesting data conversion interface, obtain shape description compatibility information that matches the input data format of the second application, and use the second application to process the part attribute information and shape description compatibility information to determine the nesting data of the target part. Therefore, even if the determined shape description information is incompatible with the second application, the embodiment of the present invention can quickly obtain the shape description compatibility information of the target part through format conversion without human intervention, thereby shortening the time to generate nesting data and improving the efficiency of the nesting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 Flowchart of a method for determining part nesting data in an embodiment of the present invention;
[0026] Figure 2 Schematic diagram of the nesting parts structure in an embodiment of the present invention;
[0027] Figure 3 Schematic diagram of the structure of a device for determining part nesting data in an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention;
[0029] Figure 5 Schematic diagram of a computer-readable storage medium structure in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The embodiments of the present invention solve the technical problem of low efficiency of the nesting process in the prior art by providing a method, device, equipment and storage medium for determining part nesting data.
[0031] The technical solution provided by the embodiments of the present invention is to solve the above technical problems, and the overall idea is as follows:
[0032] By obtaining the three-dimensional model data of the target part generated by the first application, the part attribute information and shape description information of the target part are determined based on the three-dimensional model data, and it is determined whether the shape description information matches the nesting data conversion interface defined by the second application.
[0033] If there is no match, the shape description information is formatted through the nesting data conversion interface to obtain shape description compatibility information that matches the input data format of the second application. The second application is used to process the part attribute information and the shape description compatibility information to determine the nesting data of the target part.
[0034] If the shape description information cannot be directly used by the second application, the existing technology requires technicians to perform manual calculations, resulting in the inability to quickly convert the format of the shape description information of the target part; however, the embodiment of the present invention can quickly obtain the shape description compatibility information of the target part through format conversion without the need for human intervention, thereby shortening the time for generating nesting data and improving the efficiency of the nesting process.
[0035] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.
[0036] First, the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.
[0037] It should be noted that the terms "first," "second," and the like in the specification and claims of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.
[0038] In the first aspect, the present invention provides a method for determining part nesting data through an embodiment of the present invention, which can extract part attribute information and shape description information of a target part from three-dimensional design software, such as CADDS5 or SPD (Schiff Design-System, ship structure design system), etc., and convert the shape description information of the target part through a nesting data conversion interface defined by computer-aided design software, such as AutoCAD, and determine the nesting data based on the converted shape description information, so that the target part can be drawn using the computer-aided design software.
[0039] At the same time, data format conversion lays the foundation for unified nesting management of nested parts, effectively avoiding the purchase of multiple nesting software and saving procurement costs.
[0040] Currently, after the 3D model design of the target part is completed, the 3D design software needs to extract the part attribute information and shape description information of the target part from the 3D model.
[0041] See Figure 1 As shown, the method includes the following steps S101 to S103:
[0042] Step S101: Obtain the three-dimensional model data of the target part generated by the first application, determine the part attribute information and shape description information of the target part based on the three-dimensional model data, and determine whether the shape description information matches the nesting data conversion interface defined by the second application.
[0043] Specifically, part attribute information may include: part name, part material, component quantity, and part thickness. Shape description information may include: outer cutting edge, inner cutting loop, marking line, and text description information.
[0044] Among them, the outer cutting edge represents the cutting shape of the target part; the inner cutting loop represents the internal opening of the target part; the marking line is used to mark the positioning line, processing line, residual line and cut of the target part; the text description information includes the name of the target part, processing allowance and value.
[0045] In a specific implementation process, the line types of the outer cutting edge line, the inner cutting loop line and the marking line include: one or more of a straight line, an arc line and a spline curve.
[0046] It should be noted that the shape description information must include the outer cutting edge, and other line shapes may not be included. Only with the outer cutting edge can the outer contour of the target part be depicted, and then the nesting process of the target part can be carried out.
[0047] As an optional embodiment, the target part may be a ship part, and the first application may be CADDS5. Accordingly, after the 3D model of the ship part is designed using CADDS5, a ".dat" format file may be directly obtained from CADDS5. The ".dat" file includes at least part attribute information and shape description information.
[0048] For example, a ".dat" file obtained from CADDS5 may include the following data:
[0049]
[0050]
[0051] In the ".dat" file, each part corresponds to a data segment for recording. The symbol "{}" indicates that the data segment can appear multiple times, and the number after the symbol "{}" indicates the number of times the data segment can appear. For example, the format of the ".dat" file can be referred to as follows:
[0052]
[0053] Among them, the OUT data segment represents the outer cutting edge; the TEXT data segment represents the text description information used for annotation, such as machining allowance; the IN data segment represents the inner cutting loop; the MARK data segment represents the marking line; X1 and Y1 are the coordinates of the first point of the straight line or curve, and when they are text, they represent the insertion point; X2 and Y2 are the coordinates of the second point of the straight line or curve; Xc and Yc are the coordinates of the midpoint of the straight line or the center point of the arc; Radius represents the radius value.
[0054] As another optional embodiment, the target part may be a ship part, and the first application may be SPD. Accordingly, after the 3D model of the ship part is designed using SPD, a ".lst" format file may be directly obtained from the SPD. The ".lst" file includes at least part attribute information and shape description information.
[0055] For example, a file in the ".lst" format obtained from SPD may include the following data:
[0056]
[0057] In the ".lst" file, each part corresponds to a data segment for recording. The symbol "{}" indicates that the data segment can appear multiple times, and the number after the symbol "{}" indicates the number of times the data segment can appear. For example, the format of the ".lst" file can be referred to as follows:
[0058]
[0059]
[0060] Among them, <internal object name> can be the identifier of the part in the hull design system; <production part name> can be used to name the part according to the factory part coding rules; <position> is an integer. In particular, if <position> is 0, it means two symmetrical parts on the left and right; if <position> is 1, it means only on the left; if <position> is 12, it means only on the right; if <position> is 3, it means one part in the middle; <coordinate system information> contains a total of 7 real numbers, which can be expressed in the following four forms:
[0061] The first type: x 0.0.0.0.0. The cross-sectional part is positioned at the ship's length coordinate x.
[0062] The second type: y 0.0.0.0.0. The longitudinal section part is positioned at the width coordinate y.
[0063] The third type: z 0.0.0.0.0. Horizontal parts positioned at height coordinate z.
[0064] The fourth type: xyz a1 a2 a3: The parts are positioned in any plane with origin xyz and Euler angles a1 a2 a3.
[0065] The OUTCONTOUR data segment represents the outer cutting edge; the NOTE data segment represents the text description information used for annotation, such as machining allowance; the INNER HOLE data segment represents the inner cutting loop. In particular, if the <inner hole attribute> is 0, it means no distinction between left and right; if it is 1, it means only the left side; if it is 2, it means only the right side; <spline> gives the shape of the inner cutting loop; the MARKING LINE data segment represents the marking line. In particular, if the <line attribute> is 1, it means drawing on the front side; if it is 2, it means drawing on the back side, and <spline> represents the shape of the line.
[0066] It should be noted that the part attribute information and shape description information generated for nesting using 3D design software such as SPD, CATIA and CADDS5 can include the above data. In the absence of a file format description, using the above graphic data information in computer-aided design software such as AutoCAD can only depict a rough outline.
[0067] Regarding how to determine whether the shape description information matches the nesting data conversion interface defined by the second application, specifically, the key character information related to the outer cutting edge, inner cutting loop, marking line and text description information in the shape description information can be read, and it can be determined whether the key character information matches the verification character information in the nesting data conversion interface.
[0068] If the key character information matches the check character information, the shape description information matches the nesting data conversion interface; otherwise, the shape description information does not match the nesting data conversion interface.
[0069] In practice, a mismatch between the key character information and the check character information can generally be caused by a discrepancy between the text or information in the key character information and the text or information in the check character information. Once the key character information and the check character information do not match, the shape description information and the nesting data conversion interface also do not match, and therefore, the shape description information needs to be converted.
[0070] Step S102: If there is no match, the shape description information is formatted through the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application.
[0071] Before format conversion is performed on the shape description information, the format conversion of the shape description information may be performed based on the correspondence between key character information in the shape description information and verification character information in the nesting data conversion interface.
[0072] For example, if the key character information comes from a ".dat" file and the check character information comes from a ".lst" file, although the formats of the ".dat" file and the ".lst" file are different, the key character information includes key text and key information, so the correspondence between the two formats can be inferred, as shown in Table 1 and Table 2 below:
[0073] Table 1. Key word correspondence
[0074] LST file (SPD design) DAT file Correspondence of occurrences Outer contour OUTCONTOUR OUT (1:1) inner hole INNER HOLE IN (N:0-1) Marking Line MARKING LINE MARK (N:0-1) Word NOTE TEXT (0-1:0-1)
[0075] Table 2. Key information correspondence
[0076]
[0077] The part attribute information of the LST file can be obtained at the corresponding location in the file, while the shape description information needs to be converted. The following issues need to be resolved during the format conversion process:
[0078] 1): Xc and Yc information are not available in the LST file and need to be calculated;
[0079] 2) The information of multiple inner holes and marking lines of LST needs to be merged into one marking information when converted to DAT.
[0080] For the specific format conversion process, specifically, the nesting data conversion interface can be used to determine the radius value between the first coordinate point and the second coordinate point in the shape description information; if the radius value is not 0, it is determined that the line shape in the shape description compatibility information includes an arc line; the first coordinate point and the second coordinate point are used to determine the center coordinates of the arc line to obtain the shape description compatibility information.
[0081] In specific implementations, shape description compatibility information may include the arc's center coordinates, starting angle, ending angle, and direction. To determine the arc's center coordinates and obtain the shape description compatibility information, the arc's center coordinates, starting angle, and ending angle can be calculated based on the first and second coordinate points and the radius. The arc's direction can be determined using the positive or negative sign of the radius.
[0082] As an optional implementation, a nesting part class can be pre-built, such as Figure 2 As shown, the nested part class has the following properties and functions:
[0083] This nested part class can be used to store part attribute information and shape description information in the ".lst" file. In this nested part class, name, amount, material, and depth can be used to store part attribute information, while outList, inList, markList, and textList can be used to store shape description information, and stifCode can be used to represent the plate information category used to process the target part.
[0084] When converting the shape description information stored in the "lst" file, each line represents a point. The radius between two points is calculated and used to represent the connection between them. If the radius is 0, the two points are connected by a straight line; otherwise, the two points are connected by an arc with a radius of that value. The positive or negative value of the radius indicates the direction of the arc. Using geometric operations, a circular arc with a radius of that value can be calculated, passing through the two points, and the coordinates of the arc's center can also be calculated.
[0085] Step S103: Using the second application to process the part attribute information and the shape description compatibility information, and determine the nesting data of the target part.
[0086] Specifically, the second application can be computer-aided design software, such as AutoCAD. After obtaining the part attribute information and shape description compatibility information of the target part, the computer-aided design software can be used to obtain the nesting data of the target part, and then the outer contour and inner contour of the target part can be drawn, and the layout of the target part can be completed to maximize the efficiency of the nesting.
[0087] As an optional implementation, in order to draw arc lines more accurately and improve the efficiency of nesting, before using part attribute information and shape description compatibility information to determine the nesting data of the target part, the shape description compatibility information can also be visualized, wherein different line shapes in the shape description compatibility information are represented by different colors.
[0088] In the specific implementation process, drawing a straight line in the computer-aided design software only requires entering the starting point and ending point to complete the drawing. For drawing an arc line, the arc line can be drawn based on the above-calculated starting point coordinates, ending point coordinates, starting angle, ending angle, and center coordinates of the arc line.
[0089] In the specific implementation process, since the parts are drawn according to their coordinates, there will be interference between the graphics of different parts. Therefore, when drawing the parts, the parts can be laid out according to a certain rule based on the envelope size and centroid of the parts. That is, the graphics and text information of the parts can be moved and rotated and arranged in order to facilitate the inspection of the parts and improve the utilization rate of the nesting.
[0090] In the second aspect, the present invention provides a device for determining part nesting data through an embodiment of the present invention, see Figure 3 As shown, the device may include:
[0091] The information acquisition and matching unit 301 is used to obtain the three-dimensional model data of the target part generated by the first application, determine the part attribute information and shape description information of the target part based on the three-dimensional model data, and determine whether the shape description information matches the nesting data conversion interface defined by the second application.
[0092] The information conversion unit 302 is configured to convert the shape description information into a format that matches the input data format of the second application by using the nesting data conversion interface when the shape description information does not match the nesting data conversion interface.
[0093] The nesting data generating unit 303 is configured to process the part attribute information and the shape description compatibility information using the second application to determine the nesting data of the target part.
[0094] As an optional implementation manner, the information acquisition and matching unit 301 is specifically configured to:
[0095] Read the key character information related to the outer cutting edge, inner cutting loop, marking line and text description information in the shape description information, and determine whether the key character information matches the check character information in the nesting data conversion interface; if the key character information matches the check character information, the shape description information matches the nesting data conversion interface; otherwise, the shape description information does not match the nesting data conversion interface.
[0096] As an optional implementation manner, the information conversion unit 302 includes:
[0097] The radius value calculation subunit is used to determine the radius value between the first coordinate point and the second coordinate point in the shape description information by using the nesting data conversion interface.
[0098] The arc line determination subunit is used to determine that the line shape in the shape description compatible information includes an arc line when the radius value is not 0, and to determine the center coordinates of the arc line using the first coordinate point and the second coordinate point to obtain the shape description compatible information.
[0099] As an optional implementation manner, the arc line determination subunit is specifically configured to:
[0100] Calculate the center coordinates, starting angle, and ending angle of the arc line based on the first coordinate point, the second coordinate point, and the radius value;
[0101] Use the positive or negative value of the radius to determine the direction of the arc.
[0102] As an optional embodiment, the device further includes:
[0103] The drawing adjustment unit 304 is used to perform visualization processing on the shape description compatibility information based on the part attribute information; wherein different line shapes in the shape description compatibility information are represented by different colors.
[0104] Since the method for determining parts nesting data described in this embodiment is the method used to implement the device for determining parts nesting data in the embodiment of the present invention, those skilled in the art will be able to understand the specific implementation methods and various variations of the method of this embodiment based on the method for determining parts nesting data described in the embodiment of the present invention. Therefore, how this method implements the method in the embodiment of the present invention will not be described in detail here. As long as those skilled in the art implement the method used by the device for determining parts nesting data in the embodiment of the present invention, it falls within the scope of protection of the present invention.
[0105] In a third aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device for determining part nesting data.
[0106] refer to Figure 4 As shown, the electronic device provided by the embodiment of the present invention includes: a memory 401, a processor 402 and a code stored in the memory and executable on the processor 402. When executing the code, the processor 402 implements any implementation of the above-mentioned method for determining part nesting data.
[0107] Among them, Figure 4In the embodiment of the present invention, a bus architecture (represented by bus 400) is shown. Bus 400 may include any number of interconnected buses and bridges, and bus 400 links together various circuits including one or more processors represented by processor 402 and memory represented by memory 401. Bus 400 may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. Bus interface 405 provides an interface between bus 400 and receiver 403 and transmitter 404. Receiver 403 and transmitter 404 may be the same component, namely a transceiver, which provides a unit for communicating with various other devices over a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 401 may be used to store data used by processor 402 when performing operations.
[0108] Fourthly, based on the same inventive concept, Figure 5 As shown, this embodiment provides a computer-readable storage medium 500 on which a computer program 501 is stored. When the program 501 is executed by a processor, any implementation method of the above-mentioned part nesting data determination method is implemented.
[0109] The technical solutions in the above embodiments of the present invention have at least the following technical effects or advantages:
[0110] By obtaining the three-dimensional model data of the target part generated by the first application, the part attribute information and shape description information of the target part are determined based on the three-dimensional model data, and it is determined whether the shape description information matches the nesting data conversion interface defined by the second application.
[0111] If the shape description information cannot be directly used by the second application, the existing technology requires technicians to manually calculate it, resulting in an inability to quickly convert the format of the target part's shape description information. However, the embodiment of the present invention can directly convert the format of the shape description information through the nesting data conversion interface, obtain shape description compatibility information that matches the input data format of the second application, and use the second application to process the part attribute information and shape description compatibility information to determine the nesting data of the target part. Therefore, even if the determined shape description information is incompatible with the second application, the embodiment of the present invention can quickly obtain the shape description compatibility information of the target part through format conversion without human intervention, thereby shortening the time to generate nesting data and improving the efficiency of the nesting process.
[0112] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable code.
[0113] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as combinations of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer instructions. These computer instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0114] These computer instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0115] These computer instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0116] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0117] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A method for determining part nesting data, characterized in that: include: Obtaining three-dimensional model data of a target part generated by the first application, determining part attribute information and shape description information of the target part based on the three-dimensional model data, and determining whether the shape description information matches a nesting data conversion interface defined by the second application; If not, performing format conversion on the shape description information through the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application; Processing the part attribute information and the shape description compatibility information using the second application to determine nesting data for the target part; include: The part attribute information includes: part name, part material, part quantity, and part thickness; The shape description information includes: outer cutting edge line, inner cutting loop line, marking line and text description information; The outer cutting edge represents the cutting shape of the target part; the inner cutting loop represents the internal opening of the target part; the marking line is used to mark the positioning line, processing line, residual material line and cut of the target part; the text description information includes the name of the target part, processing allowance and value; The determining whether the shape description information matches the nesting data conversion interface defined by the second application includes: Reading key character information related to the outer cutting edge line, the inner cutting loop line, the marking line, and the text description information in the shape description information, and determining whether the key character information matches the check character information in the nesting data conversion interface; If the key character information matches the check character information, then the shape description information matches the nesting data conversion interface; Otherwise, the shape description information does not match the nesting data conversion interface; The line types of the outer cutting edge line, the inner cutting loop line and the marking line include: one or more of a straight line, an arc line and a spline curve; The converting the format of the shape description information using the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application includes: Determine the radius value between the first coordinate point and the second coordinate point in the shape description information by using the nesting data conversion interface; If the radius value is not 0, determining that the line shape in the shape description compatible information includes an arc line; The coordinates of the center of the arc are determined using the first coordinate point and the second coordinate point to obtain the shape description compatibility information.
2. The method according to claim 1, wherein The shape description compatibility information includes: The coordinates of the center of the arc, the starting angle, the ending angle and the direction; The determining the coordinates of the center of the arc using the first coordinate point and the second coordinate point to obtain the shape description compatibility information includes: Calculating the center coordinates, starting angle, and ending angle of the arc according to the first coordinate point, the second coordinate point, and the radius value; The direction of the arc is determined by the positive or negative value of the radius.
3. The method according to claim 1, wherein Before determining the nesting data of the target part by using the part attribute information and the shape description compatibility information, the method further includes: Performing visualization processing on the shape description compatibility information; Different line shapes in the shape description compatibility information are represented by different colors.
4. A device for determining part nesting data, the device being used to implement the method according to any one of claims 1 to 3, characterized in that: include: an information acquisition and matching unit, configured to acquire three-dimensional model data of a target part generated by a first application, determine part attribute information and shape description information of the target part based on the three-dimensional model data, and determine whether the shape description information matches a nesting data conversion interface defined by a second application; an information conversion unit, configured to, when the shape description information does not match the nesting data conversion interface, convert the format of the shape description information through the nesting data conversion interface to obtain shape description compatible information that matches the input data format of the second application; The nesting data generating unit is configured to process the part attribute information and the shape description compatibility information using the second application to determine the nesting data of the target part.
5. The device according to claim 4, characterized in that The information acquisition and matching unit is specifically used to: Reading key character information related to the outer cutting edge line, the inner cutting loop line, the marking line, and the text description information in the shape description information, and determining whether the key character information matches the check character information in the nesting data conversion interface; If the key character information matches the check character information, then the shape description information matches the nesting data conversion interface; Otherwise, the shape description information does not match the nesting data conversion interface.
6. An electronic device for determining part nesting data, the device comprising a memory, a processor, and a code stored in the memory and executable on the processor, characterized in that: When executing the code, the processor implements the method according to any one of claims 1 to 3.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.