Industrial part model placing method

By constructing and adjusting the topology of industrial part models in a virtual processing platform, the problem of time-consuming and labor-intensive manual placement in existing technologies has been solved, achieving efficient and accurate model placement and improved printing quality.

CN122065359APending Publication Date: 2026-05-19SHANGHAI UNION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI UNION TECH
Filing Date
2026-01-30
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing methods for arranging industrial parts models consume a lot of manpower and time, and a single arrangement may lead to wasted space, over-design of support structures, and printing quality issues.

Method used

By constructing the topology of an industrial part model in a virtual machining platform, calculating translation and rotation matrices, generating a combined transformation matrix, adjusting the topology to fit the platform, optimizing its posture, reducing the consumption of support structures, and making targeted adjustments according to the model type.

Benefits of technology

It achieves efficient and precise model placement without human intervention, reducing labor costs, improving printing efficiency and accuracy, avoiding space waste and over-design of support structures, and ensuring stable fit between the model and the platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122065359A_ABST
    Figure CN122065359A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of industrial part printing, and discloses an industrial part model placing method, which comprises the following steps: constructing an initial topological structure of an industrial part model, and calculating a translation matrix based on the deviation between the initial topological structure and a coordinate origin; a main supporting face is determined, and a rotation matrix is calculated based on the deviation between the main supporting face and the virtual machining platform; generating a combined transformation matrix based on the translation matrix and the rotation matrix, and applying the combined transformation matrix to the initial topological structure to obtain a second topological structure; rotating the second topological structure, and determining a third topological structure based on the volume of the bounding box of the second topological structure; fine-tuning the third topological structure to obtain a fine-tuning topological structure; and adjusting based on the industrial part model type to obtain a target topological structure, and placing the industrial part model according to the target topological structure. Manual participation is not needed, the labor cost is reduced, and the efficiency and the accuracy are improved. The self structural characteristics can be fully adapted, the machining process requirements can be met, and a reliable attitude reference is provided for follow-up efficient and high-precision machining execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial part printing technology, specifically to a method for arranging industrial part models. Background Technology

[0002] The efficient implementation of 3D printing is closely related to the proper placement of industrial part models. Scientific placement can not only maximize the use of processing platform space and reduce the amount of support structure, but also reduce printing defect rate and ensure product accuracy. It is a key link connecting model design and physical manufacturing.

[0003] Currently, the placement of industrial part models is mainly done manually. However, industrial part models have complex structures, and relying on personal experience for manual placement consumes a lot of manpower and time. Furthermore, operators often use a single placement method, which may lead to wasted space due to the model not being aligned with the platform's reference axis, increased material consumption due to over-designed support structures, and even printing quality problems caused by mismatch between the posture and the part's structure. Summary of the Invention

[0004] This invention provides a method for arranging industrial part models to solve the problems of existing manual placement methods that consume a lot of manpower and time, and the single placement method may lead to wasted space due to the model not being aligned with the platform reference axis, increased material consumption due to over-design of the support structure, and even printing quality problems caused by mismatch between the posture and the part structure.

[0005] In a first aspect, the present invention provides a method for arranging industrial part models, the method comprising:

[0006] In the virtual machining platform, an initial topology of the industrial part model is constructed, and the translation matrix is ​​calculated based on the deviation between the initial topology and the coordinate origin of the virtual machining platform. The main support surface of the initial topology is determined. Based on the deviation between the main support surface and the virtual machining platform, the rotation matrix is ​​calculated. The rotation matrix is ​​used to make the main support surface fit the virtual machining platform. A combined transformation matrix is ​​generated based on the translation and rotation matrices. The combined transformation matrix is ​​then applied to the initial topological structure to obtain the second topological structure. Rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology; Fine-tuning the third topology yields the fine-tuned topology. The topology is fine-tuned based on the type of the industrial part model to obtain the target topology, and the industrial part models are then placed according to the target topology.

[0007] This invention constructs the topology of an industrial part model within a virtual machining platform and calculates its translation matrix. The main support surface providing stable load-bearing capacity for the topology is identified, and its rotation matrix is ​​calculated based on its deviation from the platform. A combined transformation matrix is ​​generated based on the translation and rotation matrices and applied to the topology, ensuring that all subsequent adjustments revolve around the reference origin, avoiding space waste caused by misalignment and ensuring a good fit with the virtual machining platform. By changing the bounding box volume during the rotation of the second topology, it is upgraded to a third topology that combines stable load-bearing capacity with compact space, reducing platform resource consumption and the consumption of support structures during subsequent processing. Through finer angle adjustments and multi-dimensional verification, the attitude adaptability of the third topology is further optimized, resulting in a fine-tuned topology. Finally, targeted adjustments are made according to the type of industrial part model, avoiding the limitations of traditional single placement. The entire process requires no manual intervention, reducing labor costs and improving efficiency and accuracy. During actual printing, the industrial part model is placed according to the target topology, fully adapting to its own structural characteristics and matching the processing requirements, providing a reliable attitude reference for subsequent efficient and high-precision processing.

[0008] In one alternative implementation, determining the primary supporting surfaces of the initial topology includes: Traverse each triangular face of the initial topology and determine the coplanarity of triangular faces from their adjacent triangular faces; Multiple coplanar face groups are formed based on the coplanarity of each triangular face; Calculate the area of ​​each coplanar face group, and sort all coplanar face groups in descending order by area; From the sorted coplanar face groups, determine the first candidate support surface and the second candidate support surface, where the area of ​​the first candidate support surface is larger than that of the second candidate support surface; Calculate the area difference between the first candidate support surface and the second candidate support surface; When the area difference is less than a preset area threshold, the number of contour vertices of the first candidate support surface and the second candidate support surface are determined respectively, and the candidate support surface with fewer contour vertices is determined as the main support surface. When the area difference is not less than the preset area threshold, the first candidate support surface is determined as the main support surface.

[0009] This embodiment determines the coplanar surfaces to construct a coplanar surface group, thereby determining the main support surface by the area and the number of contour vertices of the coplanar surface group, so as to provide a more stable load-bearing effect.

[0010] In one alternative implementation, the rotation matrix is ​​calculated based on the deviation between the main support surface and the virtual machining platform, including: The first rotation matrix is ​​determined based on the deviation between the main support surface and the X-axis of the virtual machining platform; The first rotation matrix is ​​applied to the initial topology to simulate rotation, resulting in a simulated topology. The second rotation matrix is ​​determined based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform; A rotation matrix is ​​generated based on the first and second rotation matrices.

[0011] This embodiment calculates rotation matrices to eliminate the deviations between the main support surface and the X and Z axes, and integrates the two rotation matrices into a single rotation matrix in sequence, ensuring the accuracy of multi-directional deviation elimination and achieving precise correction of the topology.

[0012] In one alternative implementation, a first rotation matrix is ​​determined based on the deviation between the main support surface and the X-axis of the virtual machining platform, including: Calculate the normal vector of the first plane of the main support surface; Calculate the first angle between the normal vector of the first plane and the X-axis of the virtual machining platform; Calculate the first cross product of the normal vector of the first plane and the unit vector of the X-axis; The first rotation matrix is ​​generated by using the first cross product vector as the rotation axis and the first included angle as the rotation angle.

[0013] In this embodiment, a first rotation matrix is ​​generated based on the deviation between the main support surface and the X-axis of the virtual machining platform, so as to eliminate the deviation by rotation based on the first rotation matrix.

[0014] In one optional implementation, a second rotation matrix is ​​determined based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform, including: Calculate the second plane normal vector of the main supporting surface of the simulated topology; Calculate the second angle between the normal vector of the second plane and the Z-axis of the virtual machining platform; Calculate the second cross product of the normal vector of the second plane and the unit vector of the Z-axis; Using the second cross product vector as the rotation axis and the second included angle as the rotation angle, generate the second rotation matrix.

[0015] In this embodiment, a second rotation matrix is ​​generated based on the deviation between the main support surface and the Z-axis of the virtual machining platform, so as to eliminate the deviation by rotation based on the second rotation matrix.

[0016] In one optional implementation, a combined transformation matrix is ​​generated based on the translation and rotation matrices, and the combined transformation matrix is ​​applied to the initial topological structure to obtain a second topological structure, including: Generate the combined transformation matrix in the order of translation matrix, rotation matrix, and inverse translation matrix; For each vertex in the initial topology, the combined transformation matrix is ​​applied to the vertex to obtain the transformed coordinates. The second topological structure is obtained based on the transformed coordinates of each vertex.

[0017] This embodiment eliminates the tilt deviation between the main support surface and the X and Z axes by rotation, achieving precise fit with the XY plane of the virtual machining platform. Furthermore, by translating before rotation and then translating in the opposite direction after rotation, it avoids the topological shift during rotation, providing a reference for subsequent adjustments.

[0018] In one alternative implementation, rotating the second topology and determining the third topology based on the volume of the bounding box of the second topology includes: Calculate the first volume of the bounding box of the second topology; Select multiple boundary vertices from the second topology; Based on multiple boundary vertices, form multiple diagonal vertex lines and calculate the average slope of the multiple diagonal vertex lines; The rotation angle is calculated based on the average slope, and a third rotation matrix is ​​generated based on the rotation angle. Apply the third rotation matrix to the second topology and calculate the second volume of the bounding box of the rotated second topology. When the second volume is less than the first volume, return to the step of calculating the first volume of the bounding box of the second topology, until the second volume is not less than the first volume, and then determine the second topology after the last rotation as the third topology.

[0019] This embodiment rotates the topology based on the slope of the line connecting the diagonal vertices, making the line connecting the diagonal vertices nearly parallel to the coordinate axes. This helps eliminate the tilt of the topology in the XY plane, matching the horizontal dimensions of the bounding box with the actual geometric dimensions of the structure, minimizing the horizontal projected area, and thus minimizing the volume of the bounding box. The resulting third topology retains the stability of the second topology's support surface fitting the platform, while minimizing the volume of the bounding box through multiple rounds of rotation optimization, providing a stable and compact reference for subsequent adjustments.

[0020] In one optional implementation, fine-tuning the third topology to obtain the fine-tuned topology includes: For each fine-tuning angle within the angle range, rotate the third topology around the Z-axis of the virtual machining platform by fine-tuning the angle, and calculate the third volume of the bounding box of the rotated third topology. When the fine-tuning angle corresponding to the minimum third volume is located at the boundary of the angle range, adjust the angle range and return to the step of rotating the third topology around the Z-axis of the virtual processing platform by fine-tuning the angle according to each fine-tuning angle in the angle range, and calculate the third volume of the bounding box of the rotated third topology, until the fine-tuning angle corresponding to the minimum third volume is no longer located at the boundary of the angle range, and determine the third topology after the last rotation as the fourth topology. Determine the X-axis, Y-axis, and Z-axis dimensions of the bounding box for the fourth topology; When the X-axis dimension is smaller than the Y-axis dimension, the fourth topology is rotated around the Z-axis by a first preset angle to obtain the fifth topology. Based on the X-axis, Y-axis and Z-axis dimensions, determine whether the industrial part model is a non-thick part; When the industrial part model is a non-thick part, calculate the trap volume of the fifth topology and the virtual machining platform in the XY plane, and determine whether the trap volume is greater than the preset volume threshold. When the trap volume is greater than the preset volume threshold, the fifth topology is rotated around the X-axis or Y-axis of the virtual processing platform by a second preset angle. The trap volume of the fifth topology after rotation is calculated. The process returns to the step of determining whether the trap volume is greater than the preset volume threshold and records the minimum trap volume. This process continues until the trap volume is no greater than the preset volume threshold. The fifth topology corresponding to the minimum trap volume is then determined as the fine-tuning topology.

[0021] This embodiment, by dynamically expanding the angle range while ensuring the basic stability and spatial compactness of the third topology, avoids missing the optimal posture due to the initial range limitation. At the same time, relying on the small angle fine-tuning characteristics, it achieves further compression of the bounding box volume while ensuring the stability of the support surface fit. Furthermore, through cyclic rotation and precise volume detection, it eliminates the overhang gap between non-thick parts and the platform, ensuring the stability of the support surface fit.

[0022] In one alternative implementation, before adjusting the fine-tuned topology based on the type of the industrial part model to obtain the target topology, the method further includes: Determine the maximum area surface of the fine-tuning topology and identify smooth surfaces from the upper and lower surfaces of the fine-tuning topology.

[0023] This embodiment determines the surface with the largest area and the smooth surfaces on the upper and lower surfaces, providing a basis for subsequent targeted placement according to part type.

[0024] In one optional implementation, the topology is fine-tuned based on the type of the industrial part model to obtain the target topology, including: When the industrial part model is square, the smooth surface of the fine-tuning topology is made to fit the XY plane of the virtual machining platform, and rotated by a third preset angle around the X-axis and Y-axis of the virtual machining platform respectively to obtain the target topology. When the industrial part model is a disk, the smooth surface of the fine-tuning topology is made to fit the XY plane, and the surface with the largest area forms a fourth preset angle with the XY plane to obtain the target topology. When the industrial part model is a ring or gear, make the smooth surface of the fine-tuning topology fit the XY plane and make the surface with the largest area parallel to the XY plane to obtain the target topology. When the industrial part model is cylindrical, the smooth surface of the fine-tuning topology is made to fit the XY plane, and the surface with the largest area is made perpendicular to the XY plane to obtain the target topology.

[0025] This embodiment makes targeted adjustments to the fine-tuned topology based on the type of industrial part model, so that the final target topology can adapt to the structural characteristics of different industrial parts, avoiding the limitations of traditional single placement.

[0026] Secondly, the present invention provides an industrial parts model placement device, the device comprising: The first calculation module is used to construct the initial topology of the industrial part model in the virtual machining platform, and calculate the translation matrix based on the deviation between the initial topology and the coordinate origin of the virtual machining platform. The second calculation module is used to determine the main support surface of the initial topology and calculate the rotation matrix based on the deviation between the main support surface and the virtual processing platform. The rotation matrix is ​​used to make the main support surface fit the virtual processing platform. The generation module is used to generate a combined transformation matrix based on the translation and rotation matrices, and then apply the combined transformation matrix to the initial topology to obtain the second topology. The first determining module is used to rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology; The fine-tuning module is used to fine-tune the third topology to obtain the fine-tuned topology. The placement module is used to fine-tune the topology based on the type of the industrial part model to obtain the target topology, so that the industrial part model is placed according to the target topology.

[0027] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the industrial component model placement method of the first aspect or any corresponding embodiment described above.

[0028] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the industrial component model placement method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0029] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0030] Figure 1 This is a flowchart of an industrial parts model placement method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the industrial part model after rotation when it is square, according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the non-supporting plane and the XY plane when the industrial part model is square according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the target topology when the industrial part model is square according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the maximum area surface after rotation when the industrial part model is a disk according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the target topology when the industrial part model is a disk according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a ring; Figure 8 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a gear; Figure 9 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a cylinder; Figure 10 This is a schematic diagram of the target topology when the industrial part model according to an embodiment of the present invention is a ring, gear or cylinder; Figure 11 This is a structural block diagram of an industrial parts model placement device according to an embodiment of the present invention; Figure 12 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0033] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0034] Currently, the placement of industrial part models relies primarily on manual adjustments. However, the complex structures of industrial parts make manual placement based on personal experience extremely time-consuming and labor-intensive. Furthermore, operators often use a single placement method, which can lead to wasted space due to misalignment with the platform's reference axis, increased material waste due to over-designed support structures, and even printing quality issues caused by mismatches between the model's orientation and the part's structure. The placement method provided in this invention requires no manual intervention, reducing labor costs and improving efficiency and accuracy. It fully adapts to the model's structural characteristics and matches the requirements of the machining process, providing a reliable orientation reference for subsequent efficient and high-precision machining.

[0035] According to an embodiment of the present invention, an embodiment of a method for arranging industrial parts models is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0036] This embodiment provides a method for arranging industrial parts models. Figure 1 This is a flowchart of an industrial parts model placement method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps: Step S101: Construct the initial topology of the industrial part model in the virtual machining platform, and calculate the translation matrix based on the deviation between the initial topology and the coordinate origin of the virtual machining platform.

[0037] Specifically, a virtual machining platform is a digital mapping of a rigid worktable in industrial manufacturing equipment (such as a 3D printer). Its size parameters and coordinate system are completely consistent with the physical worktable. It is used to simulate the actual placement of industrial parts models and to provide a unified and standardized spatial coordinate system for subsequent topology adjustments (the default is a right-handed rectangular coordinate system, with the X and Y axes forming a horizontal reference plane and the Z axis perpendicular to the horizontal plane and outward).

[0038] In this virtual machining platform, a topology structure completely identical to that of a real industrial part model is constructed to achieve digital simulation of the placement of the industrial part model. Since the initial position of the model during import is random, the constructed topology structure may deviate from the reference coordinate range of the virtual machining platform. Therefore, this deviation needs to be eliminated by calculating a translation matrix. More specifically, the maximum and minimum coordinate values ​​of the initial topology structure on the X, Y, and Z axes of the virtual machining platform are obtained. The average of the maximum and minimum values ​​for each coordinate axis is calculated, and the coordinates formed by the three averages are used as the coordinates of the center of the bounding box of the initial topology structure. Here, the bounding box refers to the smallest cuboid that can completely enclose the initial topology structure, and its center coordinates directly reflect the geometric center position of the initial topology structure.

[0039] Assuming the coordinates of the center of the packaging box are (a, b, c) and the origin is (0, 0, 0), the translation components (△X, △Y, △Z) are: △X = 0 - a, △Y = 0 - b, △Z = 0 - c. These translation components reflect the magnitude and direction of the displacement required to move the center of the bounding box from its current position to the origin. The standard translation matrix is ​​a general tool for describing translation transformations in three-dimensional space and can be represented by the following equation (1): (1) Substituting the translation components into the fourth column of equation (1) above, △X, △Y, and △Z, yields the translation matrix. Calculating this translation matrix allows the bounding box center of the topology to be translated to the origin, ensuring that all subsequent adjustments are performed around the reference origin, while avoiding wasted space due to misalignment.

[0040] Step S102: Determine the main support surface of the initial topology. Based on the deviation between the main support surface and the virtual machining platform, calculate the rotation matrix. The rotation matrix is ​​used to make the main support surface fit the virtual machining platform.

[0041] Specifically, the main support surface is the surface with a large contact area and high flatness in the topology, providing stable load-bearing capacity for the topology. Due to the randomness of the initial topology's placement, the main support surface often has an tilt deviation from the virtual machining platform, making direct contact impossible. Therefore, this deviation is eliminated by accurately calculating the rotation matrix, enabling the main support surface to achieve a physically tight fit with the virtual machining platform. This provides a stable load-bearing foundation for the model, reducing the risk of offset during machining, and also eliminates the initial tilt deviation of the support surface through rotation correction.

[0042] Step S103: Generate a combined transformation matrix based on the translation and rotation matrices, and apply the combined transformation matrix to the initial topology to obtain the second topology.

[0043] Specifically, by integrating the dual transformation logic of translation and rotation matrices, a combined transformation matrix is ​​constructed to adjust the position and orientation of the initial topology, ultimately obtaining a second topology that fits the virtual machining platform, providing a benchmark for subsequent adjustments.

[0044] Step S104: Rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology.

[0045] Specifically, by rotating the second topology and changing the volume of the bounding box, the second topology is upgraded to a third topology that combines stable load-bearing capacity with compact space. This ensures stable fit between the main support surface and the platform, while minimizing the processing space occupied by the model. This allows for more platform resources to be reserved for subsequent fine-tuning, optimization, and batch placement, while also reducing the design difficulty and material usage of the support structure in subsequent processing.

[0046] Step S105: Fine-tune the third topology to obtain the fine-tuned topology.

[0047] Specifically, given that the third topology already satisfies basic stability and spatial compactness, the attitude adaptability is further optimized through more precise angle adjustments and multi-dimensional verification to obtain a fine-tuned topology.

[0048] Step S106: Adjust the fine-tuning topology based on the type of the industrial part model to obtain the target topology, and place the industrial part model according to the target topology.

[0049] Specifically, the fine-tuning topology is adjusted according to the type of industrial part model, so that the final target topology can adapt to the structural characteristics of different industrial parts, avoiding the limitations of traditional single placement. During actual printing, placing the industrial part model according to the target topology not only fully adapts to its own structural characteristics but also matches the processing requirements, providing a reliable attitude reference for subsequent efficient and high-precision machining.

[0050] This invention constructs the topology of an industrial part model within a virtual machining platform and calculates its translation matrix. The main support surface providing stable load-bearing capacity for the topology is identified, and its rotation matrix is ​​calculated based on its deviation from the platform. A combined transformation matrix is ​​generated based on the translation and rotation matrices and applied to the topology, ensuring that all subsequent adjustments revolve around the reference origin, avoiding space waste caused by misalignment and ensuring a good fit with the virtual machining platform. By changing the bounding box volume during the rotation of the second topology, it is upgraded to a third topology that combines stable load-bearing capacity with compact space, reducing platform resource consumption and the consumption of support structures during subsequent processing. Through finer angle adjustments and multi-dimensional verification, the attitude adaptability of the third topology is further optimized, resulting in a fine-tuned topology. Finally, targeted adjustments are made according to the type of industrial part model, avoiding the limitations of traditional single placement. The entire process requires no manual intervention, reducing labor costs and improving efficiency and accuracy. During actual printing, the industrial part model is placed according to the target topology, fully adapting to its own structural characteristics and matching the processing requirements, providing a reliable attitude reference for subsequent efficient and high-precision processing.

[0051] This embodiment provides a method for arranging industrial parts models, which specifically includes the following steps: Step S201: Construct the initial topology of the industrial part model in the virtual machining platform. Calculate the translation matrix based on the deviation between the initial topology and the coordinate origin of the virtual machining platform. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.

[0052] Step S202: Determine the main support surface of the initial topology. Based on the deviation between the main support surface and the virtual machining platform, calculate the rotation matrix. The rotation matrix is ​​used to make the main support surface fit the virtual machining platform.

[0053] Specifically, step S202 includes: Step S2021: Traverse each triangular face of the initial topology and determine the coplanarity of triangular faces from the adjacent triangular faces of the triangular face.

[0054] Specifically, for each triangular face in the initial topology, all directly adjacent triangular faces are selected, and the normal vector of each triangular face is calculated and standardized. Then, the cosine value of the angle between the triangular face and each adjacent triangular face is calculated using the vector dot product formula. If the cosine value of the angle between two triangular faces is greater than or equal to the cosine value corresponding to a preset angle threshold, then the two triangular faces are considered coplanar; otherwise, they are not coplanar.

[0055] Step S2022: Form multiple coplanar face groups based on the coplanarity corresponding to each triangular face.

[0056] Specifically, suppose triangle A is coplanar with triangles B and C, and triangle C is coplanar with triangle D. These four triangles can be connected by their adjacent coplanar faces, forming a coplanar face group. Similarly, by traversing all triangles and grouping those with direct or indirect coplanar relationships into the same group, we obtain all coplanar face groups in the topological structure. All triangles within each group satisfy the coplanar condition, and there are no coplanar relationships between groups.

[0057] Step S2023: Calculate the area of ​​each coplanar face group, and sort all coplanar face groups in descending order according to their areas.

[0058] Specifically, for each coplanar face group, the sum of the areas of all triangular faces within it is calculated as the area of ​​that coplanar face group. Since one of the characteristics of the main supporting faces is their large area, the coplanar face groups are sorted in descending order of area.

[0059] Step S2024: Determine the first candidate support surface and the second candidate support surface from the sorted coplanar surface group, wherein the area of ​​the first candidate support surface is larger than that of the second candidate support surface.

[0060] Specifically, the coplanar surface group ranked first is determined as the first candidate support surface, and the coplanar surface group ranked second is determined as the second candidate support surface.

[0061] Step S2025: Calculate the area difference between the first candidate support surface and the second candidate support surface.

[0062] Step S2026: When the area difference is less than a preset area threshold, determine the number of contour vertices of the first candidate support surface and the second candidate support surface respectively, and determine the candidate support surface with fewer contour vertices as the main support surface.

[0063] Specifically, when the area difference between the two surfaces is less than a preset area threshold, the number of vertices of the outer contour of each surface is determined. The fewer the number, the more regular the outer contour, and the stronger the fit with the virtual processing platform. Therefore, the candidate support surfaces with fewer vertices are determined as the main support surfaces.

[0064] Step S2027: When the area difference is not less than the preset area threshold, the first candidate support surface is determined as the main support surface.

[0065] Specifically, if the area difference between the two is not less than a preset area threshold, the first candidate support surface with the largest area is directly determined as the main support surface to provide a more stable load-bearing effect.

[0066] Step S2028: Determine the first rotation matrix based on the deviation between the main support surface and the X-axis of the virtual machining platform.

[0067] Specifically, step S2028 above includes: Step a1: Calculate the first plane normal vector of the main support surface.

[0068] Specifically, since the main support surface includes multiple triangular faces, a first plane normal vector is obtained by weighted averaging of the normal vectors of all the triangular faces it includes, which represents the overall plane orientation of the main support surface.

[0069] Step a2: Calculate the first angle between the first plane normal vector and the X-axis of the virtual machining platform.

[0070] Specifically, if the X-axis component of the first plane normal vector is positive, then the first angle between the first plane normal vector and the unit vector in the positive X-axis direction of the virtual machining platform is calculated; if the X-axis component of the first plane normal vector is negative, then the first angle between the first plane normal vector and the unit vector in the negative X-axis direction of the virtual machining platform is calculated. This first angle reflects the degree of offset of the first plane normal vector in the X-axis direction.

[0071] Step a3: Calculate the first cross product vector of the first plane normal vector and the X-axis unit vector.

[0072] Specifically, if the X-axis component of the first plane normal vector is positive, then the first cross product vector of the first plane normal vector and the unit vector in the positive X-axis direction is calculated; if the X-axis component of the first plane normal vector is negative, then the first cross product vector of the first plane normal vector and the unit vector in the negative X-axis direction is calculated. The characteristic of the cross product operation is that the resulting vector is perpendicular to the plane formed by the two input vectors. That is, the first cross product vector is perpendicular to the plane containing the first plane normal vector and the X-axis unit vector. This ensures that subsequent rotations around this axis only eliminate the offset of the normal vector in the X-axis direction, without changing the components of the normal vector on other coordinate axes, thus achieving targeted correction.

[0073] Step a4: Generate the first rotation matrix with the first cross product vector as the rotation axis and the first included angle as the rotation angle.

[0074] Specifically, using the standardized first cross product vector as the rotation axis and the first included angle as the rotation angle, the first rotation matrix is ​​obtained by substituting it into the Rodriguez rotation matrix formula.

[0075] Step S2029: Apply the first rotation matrix to the initial topology to perform simulated rotation, and obtain the simulated topology.

[0076] Specifically, the three-dimensional coordinates of each vertex of the initial topology are multiplied in the order of "vertex coordinates × first rotation matrix" to obtain the vertex coordinates after simulated rotation. After all vertices have undergone simulated rotation, the resulting simulated topology effectively eliminates the deviation of the main support surface in the X-axis direction. It should be noted that this simulated rotation does not actually adjust the orientation of the initial topology, but rather generates a hypothetical rotated topology state through coordinate calculations to provide a reference for subsequent adjustments.

[0077] Step S20210: Determine the second rotation matrix based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform.

[0078] Specifically, step S20210 above includes: Step b1: Calculate the second plane normal vector of the main supporting surface of the simulated topology. See step a1 for details, which will not be repeated here.

[0079] Step b2: Calculate the second angle between the normal vector of the second plane and the Z-axis of the virtual machining platform.

[0080] Specifically, since the main support surface needs to be aligned with the XY plane of the virtual machining platform, its ideal normal vector direction should be the negative Z-axis direction, that is, perpendicularly pointing to the platform surface. Therefore, calculating the second angle between the normal vector of the second plane and the unit vector of the negative Z-axis direction of the virtual machining platform reflects the degree of offset of the normal vector of the second plane in the Z-axis direction.

[0081] Step b3: Calculate the second cross product of the second plane normal vector and the Z-axis unit vector. See step a3 for details; it will not be repeated here.

[0082] Step b4: Using the second cross product vector as the rotation axis and the second included angle as the rotation angle, generate the second rotation matrix. For details, please refer to step a4, which will not be repeated here.

[0083] Step S20211: Generate a rotation matrix based on the first rotation matrix and the second rotation matrix.

[0084] Specifically, the first rotation matrix eliminates the X-axis deviation of the main support surface, and the second rotation matrix eliminates the Z-axis deviation. The two rotations have a logical order. That is, the X-axis tilt must be eliminated first using the first rotation matrix, and then the remaining Z-axis tilt must be eliminated using the second rotation matrix. Therefore, the two matrices are generated in the order of operation: first the first rotation matrix, then the second rotation matrix, to ensure a complete reproduction of the step-by-step correction effect.

[0085] By calculating the rotation matrices to eliminate the corresponding deviations between the main support surface and the X and Z axes, and then integrating the two rotation matrices into a single rotation matrix in sequence, the accuracy of multi-directional deviation elimination is ensured, and precise correction of the topology is achieved.

[0086] Step S203: Generate a combined transformation matrix based on the translation and rotation matrices, and apply the combined transformation matrix to the initial topology to obtain the second topology.

[0087] Specifically, step S203 includes: Step S2031: Generate a combined transformation matrix in the order of translation matrix, rotation matrix, and inverse translation matrix of translation matrix.

[0088] Specifically, Specifically, firstly, a translation matrix is ​​used to translate the center of the bounding box of the initial topology from its original position to the origin of the virtual machining platform to eliminate initial positional deviations and prevent overall offset during rotation due to deviation from the origin. Then, a first rotation matrix is ​​used to eliminate the deviation between the main support surface and the X-axis, followed by a second rotation matrix to eliminate the deviation from the Z-axis, ensuring the main support surface aligns with the XY plane of the virtual machining platform. Finally, an inverse translation matrix is ​​used to translate the rotated topology back from the origin to the initial bounding box center, preserving the posture optimization effect of rotation while avoiding machining position deviations caused by the initial translation to the origin.

[0089] Step S2032: For each vertex in the initial topology, apply the combined transformation matrix to the vertex to obtain the transformed coordinates of the vertex.

[0090] Specifically, for each vertex of the initial topology, multiplication is performed in the order of "vertex coordinates × combined transformation matrix". The operation is performed in the order of operations of the combined transformation matrix, and finally the coordinates of the vertex after transformation are obtained.

[0091] Step S2033: Based on the transformed coordinates of each vertex, the second topological structure is obtained.

[0092] Specifically, after all vertices of the initial topology have undergone coordinate transformation, only the vertex coordinates of the initial topology are updated, maintaining the original topological relationships, to obtain the second topology. This structure eliminates the tilt deviation between the main support surface and the X and Z axes through rotation, achieving precise alignment with the XY plane of the virtual machining platform. Furthermore, it avoids topology shifts during rotation by translating before rotation and then translating in reverse after rotation, providing a reference for subsequent adjustments.

[0093] Step S204: Rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology.

[0094] Specifically, step S204 includes: Step S2041: Calculate the first volume of the bounding box of the second topology.

[0095] Step S2042: Select multiple boundary vertices from the second topology.

[0096] Specifically, from all vertices of the second topology, we extract the vertex V0 with the minimum X-axis coordinate, the vertex V1 with the maximum X-axis coordinate, the vertex V2 with the minimum Y-axis coordinate, and the vertex V3 with the maximum Y-axis coordinate.

[0097] Step S2043: Based on multiple boundary vertices, form multiple diagonal vertex connection lines and calculate the average slope of the multiple diagonal vertex connection lines.

[0098] Specifically, based on the four boundary vertices, two diagonal lines are formed connecting the vertices: V3-V0 and V1-V2. The slopes of these two lines are calculated. It should be noted that if the X-axis coordinate difference is 0 during slope calculation, it must be specially marked as perpendicular to the X-axis to avoid division by zero errors. The average slope of the two lines is calculated, reflecting the overall tilting trend of the second topology in the XY plane. The larger the slope deviation, the more the structure's orientation deviates from the compact state parallel to the coordinate axes.

[0099] Step S2044: Calculate the rotation angle based on the average slope, and generate the third rotation matrix based on the rotation angle.

[0100] Specifically, the rotation angle: , where k represents the average slope. Since the support surface needs to remain in contact with the XY plane, the rotation axis is fixed as the Z-axis of the virtual machining platform. Based on the Rodriguez rotation formula, the Z-axis and rotation angle θ are substituted to generate the third rotation matrix.

[0101] Step S2045: Apply the third rotation matrix to the second topology and calculate the second volume of the bounding box of the rotated second topology.

[0102] Specifically, the third rotation matrix is ​​applied to all vertices of the second topology to obtain the coordinates of the rotated vertices. Based on these new coordinates, the volume of the bounding box is recalculated to obtain the second volume. Rotating using this third rotation matrix makes the line connecting the diagonal vertices nearly parallel to the coordinate axes, helping to eliminate the tilt of the topology in the XY plane. This ensures that the horizontal dimensions of the bounding box match the actual geometric dimensions of the structure, minimizing the horizontal projected area and consequently minimizing the bounding box volume.

[0103] Step S2046: When the second volume is less than the first volume, return to the step of calculating the first volume of the bounding box of the second topology until the second volume is not less than the first volume, and determine the second topology after the last rotation as the third topology.

[0104] Specifically, the second volume is compared with the first volume. If the second volume is smaller than the first volume, the current rotation optimization is effective, and iterations should continue to pursue a smaller volume. The rotated topology is then used as the new second topology, and the process returns to step S2041 to continue rotation optimization. If the second volume is not smaller than the first volume, the current rotation optimization is ineffective, the volume has not decreased or has started to increase, and continued iterations would lead to increased space occupancy. Therefore, rotation is stopped, and the topology after the last rotation is determined as the third topology. This structure retains the stable characteristics of the second topology's support surface fitting the platform, and also achieves the minimization of the bounding box volume through multiple rounds of rotation optimization, providing a stable and compact benchmark for subsequent adjustments.

[0105] Step S205: Fine-tune the third topology to obtain the fine-tuned topology.

[0106] Specifically, step S205 includes: Step S2051: For each fine-tuning angle within the angle range, rotate the third topology around the Z-axis of the virtual machining platform by fine-tuning the angle, and calculate the third volume of the bounding box of the rotated third topology.

[0107] Specifically, taking an angle range of [-2°, 2°] as an example, multiple fine-tuning angles can be obtained by adjusting the angle by a preset step size of 0.5°: {-2°, -1.5°, -1°, -0.5°, 0°, 0.5°, 1°, 1.5°, 2°}. For each fine-tuning angle, a rotation matrix is ​​generated to rotate the virtual machining platform around the Z-axis of that fine-tuning angle. This matrix is ​​then applied to all vertices of the third topology to obtain the rotated topology at that fine-tuning angle, and the third volume of the bounding box of the rotated topology is calculated. It should be noted that the main support surface remains in contact with the XY plane of the platform throughout the rotation process.

[0108] Step S2052: When the fine-tuning angle corresponding to the minimum third volume is located at the boundary of the angle range, adjust the angle range and return to the step of rotating the third topology around the Z-axis of the virtual machining platform by fine-tuning the angle according to each fine-tuning angle in the angle range, and calculate the third volume of the bounding box of the rotated third topology, until the fine-tuning angle corresponding to the minimum third volume is no longer located at the boundary of the angle range, and determine the third topology after the last rotation as the fourth topology.

[0109] Specifically, each fine-tuning angle corresponds to a third volume. The minimum value of this third volume is determined, and the corresponding fine-tuning angle is then identified. If this fine-tuning angle is located at the boundary of the angle range (i.e., -2° or 2°), it indicates that a smaller volume may exist outside the current angle range, and the angle range is adjusted using the current fine-tuning angle. Optionally, the adjustment rule can be to expand the interval by the original step size, using the current fine-tuning angle as the inner endpoint of the new range. For example, if the current fine-tuning angle is -2°, the new angle range is adjusted to [-3°, -1°]. Based on the adjusted angle range, the process returns to step S2051 to rotate again until the fine-tuning angle corresponding to the minimum value in the third volume is no longer located at the boundary. This indicates that the current angle range has covered the globally optimal attitude, and no further adjustment is needed. The topology after the last rotation is then determined as the fourth topology.

[0110] By dynamically expanding the angle range, we avoid missing out on better postures due to initial range limitations. At the same time, relying on the characteristics of small-angle fine-tuning, we can further compress the volume of the enclosure box while ensuring the stability of the support surface.

[0111] Step S2053: Determine the X-axis, Y-axis, and Z-axis dimensions of the bounding box of the fourth topology.

[0112] Specifically, traverse all vertices of the fourth topology, determine the maximum and minimum coordinates of each vertex on each coordinate axis, and calculate the difference between the two extreme coordinates to obtain the dimension corresponding to each coordinate axis.

[0113] Step S2054: When the X-axis dimension is smaller than the Y-axis dimension, rotate the fourth topology around the Z-axis by a first preset angle to obtain the fifth topology.

[0114] Specifically, if the X-axis dimension is smaller than the Y-axis dimension, it means that the current topology's orientation is with the short side along the X-axis and the long side along the Y-axis, which does not conform to the preset placement specification of the long side being along the X-axis. Rotation correction is required, which means rotating the fourth topology around the Z-axis by a first preset angle (e.g., 90°) to turn the long side from the Y-axis direction to the X-axis direction. If the X-axis dimension is not smaller than the Y-axis dimension, it means the orientation meets the requirements, and the fourth topology is directly used as the fifth topology.

[0115] Step S2055: Based on the X-axis dimension, Y-axis dimension, and Z-axis dimension, determine whether the industrial part model is a non-thick part.

[0116] Specifically, the characteristic of non-thick parts is that the vertical height is much smaller than the horizontal span, which can be determined by the following formula (2).

[0117] (2) In the formula, Indicates the Z-axis dimension; m represents the thickness coefficient; Indicates the X-axis dimension; This indicates the Y-axis dimension.

[0118] When the above formula (2) is satisfied, it means that the vertical height of the industrial part model is relatively thin and it is a non-thick part; when the above formula (2) is not satisfied, it means that the vertical height of the industrial part model is equal to or greater than the horizontal span and it is a thick part.

[0119] Step S2056: When the industrial part model is a non-thick part, calculate the trap volume of the fifth topology and the virtual machining platform in the XY plane, and determine whether the trap volume is greater than the preset volume threshold.

[0120] Specifically, the trap volume refers to the total volume of the enclosed suspended space formed by local protrusions and depressions between the main support surface of the fifth topology and the platform. The larger the volume, the less tightly the support surfaces fit together, making the structure prone to displacement during processing due to uneven stress. To calculate this trap volume, the main support surface of the fifth topology can be projected onto the XY plane to generate a projection area. The mesh elements within the projection area are then traversed, and the height difference between each element and the platform is calculated. The suspended volume of each element is calculated by combining the element area with the total suspended volume. The trap volume is obtained by summing the suspended volumes of all elements.

[0121] To explore a better fit posture, the calculated trap volume is compared with a preset volume threshold to determine whether the current support surface fit is up to standard. If the trap volume is greater than the preset volume threshold, rotation optimization is required.

[0122] Step S2057: When the trap volume is greater than the preset volume threshold, rotate the fifth topology around the X-axis or Y-axis of the virtual processing platform by a second preset angle, calculate the trap volume of the fifth topology after rotation, return to the step of determining whether the trap volume is greater than the preset volume threshold and record the minimum trap volume, until the trap volume is not greater than the preset volume threshold, and determine the fifth topology after rotation corresponding to the minimum trap volume as the fine-tuning topology.

[0123] Specifically, if the trap volume is greater than a preset volume threshold, the fifth topology is rotated by a second preset angle around the X-axis or Y-axis of the virtual processing platform, and the rotated trap volume is recalculated to determine whether further optimization is needed. Optionally, before rotation, the bounding box center of the fifth topology can be translated to the origin of the coordinate system to facilitate the rotation operation. Returning to the above steps, the threshold judgment is re-performed, and the minimum trap volume is selected in real time from all calculated trap volumes. When the trap volume after a rotation is not greater than the preset volume threshold, the rotation posture corresponding to the minimum trap volume is used to determine the topology under that posture as the fine-tuning topology.

[0124] By using cyclic rotation and precise volume detection, the gap between non-thick parts and the platform is eliminated, ensuring the stability of the support surface fit.

[0125] Step S206: Determine the maximum area surface of the fine-tuning topology and determine the smooth surface from the upper and lower surfaces of the fine-tuning topology.

[0126] Specifically, the process iterates through all surfaces of the fine-tuned topology. For each surface, the area of ​​all its contained mesh cells is summed to obtain the total area of ​​that surface. The surface with the largest area is then selected as the maximum area surface. This surface is typically the geometric datum of the industrial part model and directly determines the orientation and orientation of the model.

[0127] Furthermore, by traversing all surfaces of the fine-tuned topology, the surface with the smallest Z-axis coordinate is defined as the lower surface, and the surface with the largest Z-axis coordinate is defined as the upper surface. The normal vectors of all mesh elements on each of the two surfaces are calculated separately. If the directional deviation between the normal vectors of all mesh elements on a certain surface is less than a preset angle threshold, and the surface is flat, i.e., without obvious protrusions, depressions, or openings (judged by the height difference between adjacent mesh elements; a height difference ≤ 0.1 mm is considered flat), then the surface is determined to be a smooth surface.

[0128] Step S207: Adjust the fine-tuning topology based on the type of the industrial part model to obtain the target topology, and place the industrial part model according to the target topology.

[0129] Specifically, step S207 includes: Step S2071: When the industrial part model is square, make the smooth surface of the fine-tuning topology fit the XY plane of the virtual machining platform, and rotate it around the X-axis and Y-axis of the virtual machining platform by a third preset angle to obtain the target topology.

[0130] Specifically, a smooth surface (typically a large, flat end face of a square part, without protrusions, openings, or other interfering structures) is used as the main support surface, ensuring it aligns with the XY plane of the virtual machining platform to prevent part misalignment during machining due to uneven force. Simultaneously, based on the X and Y axes of the virtual machining platform, a third preset angle rotation (e.g., 45°) is performed on the aligned, fine-tuned topology structure, resulting in the following... Figure 2 The diagram shown is a rotated representation of a square industrial part model. Figure 3 This is a schematic diagram of the non-supporting plane and the XY plane when the industrial part model according to an embodiment of the present invention is square, as shown below. Figure 3 As shown, after rotation, the non-supported plane of the square part forms a 45° angle with the XY plane, which reduces the obstruction of the functional surfaces of the part by the supporting structure, ultimately resulting in the following... Figure 4 The diagram shown illustrates the target topology when the industrial component model is square.

[0131] Step S2072: When the industrial part model is a disk, make the smooth surface of the fine-tuning topology fit the XY plane, and make the surface with the largest area form a fourth preset angle with the XY plane to obtain the target topology.

[0132] Specifically, the smooth surface (mostly the circular end face of a disc-shaped part) is aligned with the XY plane of the virtual machining platform to reduce vibration amplitude and deformation error during the machining of thin disc-shaped parts. Furthermore, Figure 5 This is a schematic diagram of the maximum area surface after rotation when the industrial part model according to an embodiment of the present invention is a disk, as shown below. Figure 5 As shown, by rotating around the X-axis or Y-axis, the surface with the largest area (i.e., the circular reference end face of the disk part) forms a fourth preset angle (e.g., 45°) with the XY plane. This solves the problem of the disk part's central depression caused by gravity when placed flat, ultimately resulting in the following... Figure 6 The diagram shown is a schematic of the target topology when the industrial component model is a disk.

[0133] Step S2073: When the type of industrial part model is a ring or a gear, make the smooth surface of the fine-tuning topology fit the XY plane and make the surface with the largest area parallel to the XY plane to obtain the target topology.

[0134] Specifically, the smooth surfaces (the annular end face of the ring-shaped part and the non-tooth end face of the gear part) are aligned with the XY plane of the virtual machining platform to provide a stable bearing reference for the part and avoid reference offset during machining. Furthermore, Figure 7 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a ring. Figure 8 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a gear, as shown below. Figure 7 and Figure 8 As shown, making the surface with the largest area (the annular end face of the ring component and the circular reference surface of the gear component) parallel to the XY plane ensures that the central axis of the annular end face of the ring component is perpendicular to the XY plane, which facilitates subsequent processing, ensures the coaxiality of the inner hole and the outer circle, and ensures that the processing reference of the gear tooth surface is consistent with the design reference, thus obtaining the target topology of the ring component and the gear component.

[0135] Step S2074: When the industrial part model is cylindrical, make the smooth surface of the fine-tuning topology fit the XY plane and make the surface with the largest area perpendicular to the XY plane to obtain the target topology.

[0136] Specifically, by aligning smooth surfaces (often the simple end faces of cylindrical parts) with the XY plane of the virtual machining platform, the design of the support structure can be simplified, reducing material waste. Furthermore, Figure 9 This is a schematic diagram of the maximum area surface when the industrial part model according to an embodiment of the present invention is a cylinder, as shown below. Figure 9 As shown, the surface with the largest area (i.e. the sidewall of the cylindrical part) is made perpendicular to the XY plane to facilitate subsequent processing, and finally the target topology of the cylindrical part is obtained.

[0137] In some alternative implementations, Figure 10 This is a schematic diagram of the target topology when the industrial part model according to an embodiment of the present invention is a ring, gear, or cylinder, such as... Figure 10 As shown, after targeted adjustments based on the different types of industrial parts models, the smooth surfaces of the ring parts and gear parts are aligned with the XY plane, and the surface with the largest area is parallel to the XY plane; the smooth surfaces of the cylindrical parts are aligned with the XY plane, and the surface with the largest area is perpendicular to the XY plane.

[0138] This invention constructs the topology of an industrial part model within a virtual machining platform and calculates its translation matrix. The main support surface providing stable load-bearing capacity for the topology is identified, and its rotation matrix is ​​calculated based on its deviation from the platform. A combined transformation matrix is ​​generated based on the translation and rotation matrices and applied to the topology, ensuring that all subsequent adjustments revolve around the reference origin, avoiding space waste caused by misalignment and ensuring a good fit with the virtual machining platform. By changing the bounding box volume during the rotation of the second topology, it is upgraded to a third topology that combines stable load-bearing capacity with compact space, reducing platform resource consumption and the consumption of support structures during subsequent processing. Through finer angle adjustments and multi-dimensional verification, the attitude adaptability of the third topology is further optimized, resulting in a fine-tuned topology. Finally, targeted adjustments are made according to the type of industrial part model, avoiding the limitations of traditional single placement. The entire process requires no manual intervention, reducing labor costs and improving efficiency and accuracy. During actual printing, the industrial part model is placed according to the target topology, fully adapting to its own structural characteristics and matching the processing requirements, providing a reliable attitude reference for subsequent efficient and high-precision processing.

[0139] This embodiment also provides an industrial part model placement device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0140] This embodiment provides an industrial parts model placement device, such as... Figure 11 As shown, it includes: The first calculation module 1101 is used to construct the initial topology of the industrial part model in the virtual machining platform and calculate the translation matrix based on the deviation between the initial topology and the coordinate origin of the virtual machining platform.

[0141] The second calculation module 1102 is used to determine the main support surface of the initial topology and calculate the rotation matrix based on the deviation between the main support surface and the virtual machining platform. The rotation matrix is ​​used to make the main support surface fit the virtual machining platform.

[0142] The generation module 1103 is used to generate a combined transformation matrix based on the translation matrix and the rotation matrix, and apply the combined transformation matrix to the initial topology to obtain the second topology.

[0143] The first determining module 1104 is used to rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology.

[0144] The fine-tuning module 1105 is used to fine-tune the third topology to obtain the fine-tuned topology.

[0145] The placement module 1106 is used to fine-tune the topology based on the type of the industrial part model to obtain the target topology, so that the industrial part model is placed according to the target topology.

[0146] In some alternative implementations, the second computing module 1102 includes: The first determining unit is used to traverse each triangular face of the initial topology and determine the coplanarity of triangular faces from the adjacent triangular faces of the triangular face.

[0147] Forming unit, used to form multiple coplanar face groups based on the coplanarity corresponding to each triangular face.

[0148] The sorting unit is used to calculate the area of ​​each coplanar face group and sort all coplanar face groups in descending order according to their area.

[0149] The second determining unit is used to determine the first candidate support surface and the second candidate support surface from the sorted coplanar surface group, wherein the area of ​​the first candidate support surface is larger than that of the second candidate support surface.

[0150] The first calculation unit is used to calculate the area difference between the first candidate support surface and the second candidate support surface.

[0151] The third determining unit is used to determine the number of contour vertices of the first candidate support surface and the second candidate support surface respectively when the area difference is less than a preset area threshold, and to determine the candidate support surface with fewer contour vertices as the main support surface.

[0152] The fourth determining unit is used to determine the first candidate support surface as the main support surface when the area difference is not less than a preset area threshold.

[0153] In some alternative implementations, the second computing module 1102 includes: The fifth determining unit is used to determine the first rotation matrix based on the deviation between the main support surface and the X-axis of the virtual machining platform.

[0154] The simulation unit is used to apply the first rotation matrix to the initial topology to simulate rotation and obtain a simulated topology.

[0155] The sixth determining unit is used to determine the second rotation matrix based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform.

[0156] The first generation unit is used to generate a rotation matrix based on the first rotation matrix and the second rotation matrix.

[0157] In some optional implementations, the fifth determining unit includes: The first calculation sub-unit is used to calculate the first plane normal vector of the main support surface.

[0158] The second calculation subunit is used to calculate the first angle between the first plane normal vector and the X-axis of the virtual machining platform.

[0159] The third calculation subunit is used to calculate the first cross product vector of the first plane normal vector and the X-axis unit vector.

[0160] The first generating subunit is used to generate the first rotation matrix with the first cross product vector as the rotation axis and the first included angle as the rotation angle.

[0161] In some optional implementations, the sixth determining unit includes: The fourth computational subunit is used to calculate the second plane normal vector of the main supporting surface of the simulated topology.

[0162] The fifth calculation subunit is used to calculate the second angle between the normal vector of the second plane and the Z-axis of the virtual machining platform.

[0163] The sixth calculation subunit is used to calculate the second cross product vector of the second plane normal vector and the Z-axis unit vector.

[0164] The second generating subunit is used to generate the second rotation matrix with the second cross product vector as the rotation axis and the second included angle as the rotation angle.

[0165] In some alternative implementations, the generation module 1103 includes: The second generation unit is used to generate a combined transformation matrix in the order of translation matrix, rotation matrix, and inverse translation matrix of translation matrix.

[0166] The transformation unit is used to apply a combined transformation matrix to each vertex in the initial topology to obtain the transformed coordinates of the vertex.

[0167] The seventh determining unit is used to obtain the second topological structure based on the transformed coordinates of each vertex.

[0168] In some alternative implementations, the first determining module 1104 includes: The second computing unit is used to calculate the first volume of the bounding box of the second topology.

[0169] A filtering unit is used to filter multiple boundary vertices from the second topology.

[0170] The third calculation unit is used to form multiple diagonal vertex lines based on multiple boundary vertices and calculate the average slope of the multiple diagonal vertex lines.

[0171] The third generation unit is used to calculate the rotation angle based on the average slope and generate the third rotation matrix based on the rotation angle.

[0172] The fourth computational unit is used to apply the third rotation matrix to the second topology and calculate the second volume of the bounding box of the rotated second topology.

[0173] The eighth determining unit is used to return to the step of calculating the first volume of the bounding box of the second topology when the second volume is less than the first volume, until the second volume is not less than the first volume, and to determine the second topology after the last rotation as the third topology.

[0174] In some alternative implementations, the fine-tuning module 1105 includes: The fifth calculation unit is used to rotate the third topology around the Z-axis of the virtual machining platform by fine-tuning the angle for each fine-tuning angle within the angle range, and to calculate the third volume of the bounding box of the rotated third topology.

[0175] The fine-tuning unit is used to adjust the angle range when the fine-tuning angle corresponding to the minimum third volume is located at the boundary of the angle range, return to the step of rotating the third topology around the Z-axis of the virtual machining platform by fine-tuning the angle according to each fine-tuning angle in the angle range, and calculate the third volume of the bounding box of the rotated third topology, until the fine-tuning angle corresponding to the minimum third volume is no longer located at the boundary of the angle range, and determine the third topology after the last rotation as the fourth topology.

[0176] The ninth determining unit is used to determine the X-axis, Y-axis, and Z-axis dimensions of the bounding box of the fourth topology.

[0177] The rotation unit is used to rotate the fourth topology around the Z-axis by a first preset angle when the X-axis dimension is smaller than the Y-axis dimension, so as to obtain the fifth topology.

[0178] The first judgment unit is used to determine whether an industrial part model is a non-thick part based on the X-axis dimension, Y-axis dimension, and Z-axis dimension.

[0179] The second judgment unit is used to calculate the trap volume of the fifth topology and the virtual processing platform in the XY plane when the industrial part model is a non-thick part, and to determine whether the trap volume is greater than the preset volume threshold.

[0180] The tenth determining unit is used to rotate the fifth topology around the X-axis or Y-axis of the virtual processing platform by a second preset angle when the trap volume is greater than the preset volume threshold, calculate the trap volume of the fifth topology after rotation, return to the step of determining whether the trap volume is greater than the preset volume threshold and record the minimum trap volume, until the trap volume is not greater than the preset volume threshold, and determine the fifth topology after rotation corresponding to the minimum trap volume as the fine-tuning topology.

[0181] In some alternative embodiments, the device further includes, prior to placing module 1106: The second determining module is used to determine the maximum area surface of the fine-tuning topology and to determine the smooth surface from the upper and lower surfaces of the fine-tuning topology.

[0182] In some alternative implementations, the placement module 1106 includes: The first adjustment unit is used to make the smooth surface of the fine-tuning topology fit the XY plane of the virtual machining platform when the industrial part model is square, and rotate it around the X-axis and Y-axis of the virtual machining platform by a third preset angle to obtain the target topology.

[0183] The second adjustment unit is used to make the smooth surface of the fine-tuning topology fit the XY plane when the industrial part model is a disk, and to make the surface with the largest area form a fourth preset angle with the XY plane to obtain the target topology.

[0184] The third adjustment unit is used to make the smooth surface of the fine-tuning topology fit the XY plane when the industrial part model is a ring or gear, and to make the surface with the largest area parallel to the XY plane, so as to obtain the target topology.

[0185] The fourth adjustment unit is used to make the smooth surface of the fine-tuning topology fit the XY plane when the industrial part model is cylindrical, and to make the surface with the largest area perpendicular to the XY plane, so as to obtain the target topology.

[0186] The industrial part model placement device provided in this embodiment of the invention can execute the industrial part model placement method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0187] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0188] The following is a detailed reference. Figure 12 The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1202 or a program loaded from memory 1208 into random access memory (RAM) 1203. The RAM 1203 also stores various programs and data required for the operation of the electronic device. The processor 1201, ROM 1202, and RAM 1203 are interconnected via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0189] Typically, the following devices can be connected to I / O interface 1205: input devices 1206 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1207 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 1208 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1209. Communication device 1209 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 12 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0190] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 1209, or installed from a memory 1208, or installed from a ROM 1202. When the computer program is executed by the processor 1201, it performs the functions defined in the industrial part model placement method of the embodiments of the present invention.

[0191] Figure 12 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0192] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the industrial component model placement method shown in the above embodiments is implemented.

[0193] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0194] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for arranging industrial component models, characterized in that, The method includes: An initial topology of an industrial part model is constructed in a virtual machining platform, and a translation matrix is ​​calculated based on the deviation between the initial topology and the coordinate origin of the virtual machining platform. The main support surface of the initial topology is determined, and a rotation matrix is ​​calculated based on the deviation between the main support surface and the virtual machining platform. The rotation matrix is ​​used to make the main support surface fit the virtual machining platform. A combined transformation matrix is ​​generated based on the translation matrix and the rotation matrix, and the combined transformation matrix is ​​applied to the initial topology to obtain the second topology. Rotate the second topology and determine the third topology based on the volume of the bounding box of the second topology; Fine-tuning the third topology yields the fine-tuned topology. The fine-tuning topology is adjusted based on the type of the industrial part model to obtain the target topology, so that the industrial part model is placed according to the target topology.

2. The method according to claim 1, characterized in that, Determining the main supporting surfaces of the initial topology includes: Traverse each triangular face of the initial topology and determine the coplanarity of the triangular faces from the adjacent triangular faces of the triangular face; Multiple coplanar face groups are formed based on the coplanarity of each triangular face; Calculate the area of ​​each coplanar face group, and sort all coplanar face groups in descending order by area; From the sorted coplanar face groups, determine the first candidate support surface and the second candidate support surface, wherein the area of ​​the first candidate support surface is larger than that of the second candidate support surface; Calculate the area difference between the first candidate support surface and the second candidate support surface; When the area difference is less than a preset area threshold, the number of contour vertices of the first candidate support surface and the second candidate support surface are determined respectively, and the candidate support surface with fewer contour vertices is determined as the main support surface. When the area difference is not less than the preset area threshold, the first candidate support surface is determined as the main support surface.

3. The method according to claim 1, characterized in that, The calculation of the rotation matrix based on the deviation between the main support surface and the virtual processing platform includes: The first rotation matrix is ​​determined based on the deviation between the main support surface and the X-axis of the virtual machining platform; The first rotation matrix is ​​applied to the initial topology to simulate rotation, resulting in a simulated topology. The second rotation matrix is ​​determined based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform; The rotation matrix is ​​generated based on the first rotation matrix and the second rotation matrix.

4. The method according to claim 3, characterized in that, Determining the first rotation matrix based on the deviation between the main support surface and the X-axis of the virtual machining platform includes: Calculate the first plane normal vector of the main support surface; Calculate the first angle between the first plane normal vector and the X-axis of the virtual machining platform; Calculate the first cross product vector between the first plane normal vector and the X-axis unit vector; The first rotation matrix is ​​generated by using the first cross product vector as the rotation axis and the first included angle as the rotation angle.

5. The method according to claim 3, characterized in that, The second rotation matrix is ​​determined based on the deviation between the main support surface of the simulated topology and the Z-axis of the virtual machining platform, including: Calculate the second plane normal vector of the main support surface of the simulated topology; Calculate the second angle between the second plane normal vector and the Z-axis of the virtual machining platform; Calculate the second cross product vector of the second plane normal vector and the Z-axis unit vector; The second rotation matrix is ​​generated by using the second cross product vector as the rotation axis and the second included angle as the rotation angle.

6. The method according to claim 1, characterized in that, The step of generating a combined transformation matrix based on the translation matrix and the rotation matrix, and applying the combined transformation matrix to the initial topology to obtain a second topology includes: Generate a combined transformation matrix in the order of the translation matrix, the rotation matrix, and the inverse translation matrix of the translation matrix; For each vertex in the initial topology, the combined transformation matrix is ​​applied to the vertex to obtain the transformed coordinates of the vertex; The second topological structure is obtained based on the transformed coordinates of each vertex.

7. The method according to claim 1, characterized in that, The step of rotating the second topology and determining the third topology based on the volume of the bounding box of the second topology includes: Calculate the first volume of the bounding box of the second topology; Select multiple boundary vertices from the second topology; Based on the multiple boundary vertices, form multiple diagonal vertex connection lines, and calculate the average slope of the multiple diagonal vertex connection lines; The rotation angle is calculated based on the average slope, and a third rotation matrix is ​​generated based on the rotation angle. Apply the third rotation matrix to the second topology to calculate the second volume of the bounding box of the rotated second topology; When the second volume is smaller than the first volume, return to the step of calculating the first volume of the bounding box of the second topology until the second volume is not smaller than the first volume, and determine the second topology after the last rotation as the third topology.

8. The method according to claim 1, characterized in that, The fine-tuning of the third topology to obtain the fine-tuned topology includes: For each fine-tuning angle within the angle range, the third topology is rotated around the Z-axis of the virtual processing platform by the fine-tuning angle, and the third volume of the bounding box of the rotated third topology is calculated. When the fine-tuning angle corresponding to the minimum third volume is located at the boundary of the angle range, adjust the angle range and return to the step of rotating the third topology around the Z-axis of the virtual processing platform according to each fine-tuning angle in the angle range, and calculate the third volume of the bounding box of the rotated third topology, until the fine-tuning angle corresponding to the minimum third volume is no longer located at the boundary of the angle range, and determine the third topology after the last rotation as the fourth topology. Determine the X-axis, Y-axis, and Z-axis dimensions of the bounding box of the fourth topology; When the X-axis dimension is smaller than the Y-axis dimension, the fourth topology is rotated around the Z-axis by a first preset angle to obtain the fifth topology. Based on the X-axis dimension, the Y-axis dimension, and the Z-axis dimension, determine whether the industrial part model is a non-thick part; When the industrial part model is a non-thick part, calculate the trap volume of the fifth topology and the virtual processing platform in the XY plane, and determine whether the trap volume is greater than a preset volume threshold. When the trap volume is greater than a preset volume threshold, the fifth topology is rotated around the X-axis or Y-axis of the virtual processing platform by a second preset angle. The trap volume of the rotated fifth topology is calculated, and the process returns to the step of determining whether the trap volume is greater than the preset volume threshold and recording the minimum trap volume. This process continues until the trap volume is not greater than the preset volume threshold, and the rotated fifth topology corresponding to the minimum trap volume is determined as the fine-tuning topology.

9. The method according to claim 1, characterized in that, Before adjusting the fine-tuned topology based on the type of the industrial component model to obtain the target topology, the method further includes: Determine the maximum area of ​​the fine-tuned topology and identify smooth surfaces from the upper and lower surfaces of the fine-tuned topology.

10. The method according to claim 9, characterized in that, The step of adjusting the fine-tuned topology based on the type of the industrial component model to obtain the target topology includes: When the industrial part model is square, the smooth surface of the fine-tuning topology is made to fit the XY plane of the virtual machining platform, and rotated by a third preset angle around the X-axis and Y-axis of the virtual machining platform respectively to obtain the target topology. When the industrial part model is a disk, the smooth surface of the fine-tuning topology is made to fit the XY plane, and the surface with the largest area forms a fourth preset angle with the XY plane to obtain the target topology. When the type of the industrial part model is a ring or a gear, the smooth surface of the fine-tuning topology is made to fit the XY plane, and the surface with the largest area is made to be parallel to the XY plane to obtain the target topology. When the industrial part model is cylindrical, the smooth surface of the fine-tuning topology is made to fit the XY plane, and the surface with the largest area is made perpendicular to the XY plane to obtain the target topology.