Curved surface structure inclination angle evaluation method, device, equipment, medium and product

By constructing a TPMS three-dimensional model and calculating the inclination angle using the nearest neighbor mapping algorithm, the problem of difficult to determine the inclination angle in metal three-dimensional printing is solved, and the printing accuracy and quality are improved.

CN120105731APending Publication Date: 2025-06-06SHANGHAI JIAOTONG UNIV +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510267860.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

During the three-dimensional metal printing process, the inclination angle of the extremely small curved surface structure is difficult to directly determine, resulting in low printing accuracy.

Method used

By constructing a TPMS three-dimensional model, performing slice processing and generating a G-code file, using the nearest neighbor mapping algorithm to determine the coordinates of the central nodes of each layer, calculate the inclination angle between the two nodes, and then determine the optimal placement position of the surface structure.

Benefits of technology

Improves the accuracy of the printing path, ensures the accuracy of inclination angle evaluation, and improves the printing accuracy and quality of the metamaterial structure of extremely small surfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120105731A_ABST
    Figure CN120105731A_ABST
Patent Text Reader

Abstract

The invention discloses a curved surface structure inclination angle evaluation method, device, equipment, medium and product, and relates to the field of metal three-dimensional printing, the method comprises the following steps: constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file; determining a G-code path corresponding to the G-code file layer by layer in the slicing process according to the layer height information; discretization processing is carried out on each layer of G-code path, and discretized units and center node coordinates of each discretized unit are determined; for any midpoint node coordinate in each layer, determining a central node coordinate closest to the central node coordinate in an adjacent layer of the current layer by using a neighbor mapping algorithm; according to the center node coordinate of the current layer, the closest center node coordinate and the layer height information of each layer, the inclination angle of a connecting line between the two nodes relative to the horizontal plane is determined; the inclination angle and the optimal placement position of the curved surface structure are determined according to all the inclination angles, the accuracy of inclination angle evaluation can be ensured, and the printing precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of metal three-dimensional printing, and in particular to a method, device, equipment, medium and product for evaluating the inclination angle of a curved structure. Background Art

[0002] Metal 3D printing (such as PBF-LB / M technology) is widely used in the manufacture of parts with complex structures, especially in the manufacture of metamaterials. However, there is a significant relationship between the printing accuracy and the tilt angle of the object during metal printing, especially for minimal surface metamaterial structures. Traditional research based on rod-shaped metamaterials has established a clear relationship between the tilt angle and printing accuracy, but for minimal surface structures with zero average curvature at each point, the tilt angle is difficult to determine directly.

[0003] In the prior art, the definition of the tilt angle of metamaterials based on rod-shaped structures is relatively simple. As the tilt angle increases, the printing accuracy decreases, and in extreme cases, there is a significant difference in the printing accuracy between the 0° (horizontal) tilt angle and the 90° (vertical) tilt angle. In contrast, the complexity of the minimal surface structure makes the calculation of its tilt angle more difficult, and it cannot be directly optimized by traditional methods. Therefore, the placement and tilt angle of the surface structure cannot be accurately determined before printing, resulting in low printing accuracy. Summary of the invention

[0004] The purpose of this application is to provide a method, device, equipment, medium and product for evaluating the inclination angle of a curved structure to solve the problem of low printing accuracy of the curved structure.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a method for evaluating the inclination angle of a curved surface structure, comprising:

[0007] Constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file;

[0008] According to the layer height information, determine the G-code path corresponding to each layer of the G-code file during the slicing process;

[0009] Discretize each layer of G-code path, determine the discretized units and the center node coordinates of each discretized unit;

[0010] For any midpoint node coordinate in each layer, a nearest neighbor mapping algorithm is used to determine the center node coordinate in the adjacent layer of the current layer that is closest to the center node coordinate; the current layer is the layer where any center node coordinate is located; the closest center node coordinate is the center node coordinate in the adjacent layer that has the shortest distance to the center node coordinate in the current layer;

[0011] Determine the inclination angle of the line between two nodes relative to the horizontal plane according to the coordinates of the center node of the current layer, the coordinates of the closest center node and the height information of each layer; the two nodes are the center node of the current layer and the center node of the adjacent layer;

[0012] Determine the inclination angle of the curved structure and the optimal placement according to all inclination angles.

[0013] In a second aspect, the present application provides a device for evaluating the inclination angle of a curved surface structure, comprising:

[0014] A slicing processing module, used for constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file;

[0015] The G-code file determination module is used to determine the G-code path corresponding to each layer of the G-code file during the slicing process according to the layer height information;

[0016] The discretization processing module is used to discretize each layer of the G-code path, determine the discretized units and the center node coordinates of each discretized unit;

[0017] The central node coordinate determination module is used to determine the central node coordinate closest to the central node coordinate in the adjacent layer of the current layer for any midpoint node coordinate in each layer using a nearest neighbor mapping algorithm; the current layer is the layer where any central node coordinate is located; the closest central node coordinate is the central node coordinate in the adjacent layer with the shortest distance to the central node coordinate in the current layer;

[0018] The inclination angle determination module is used to determine the inclination angle of the line between two nodes relative to the horizontal plane according to the coordinates of the center node of the current layer, the coordinates of the closest center node and the height information of each layer; the two nodes are the center node of the current layer and the center node of the adjacent layer;

[0019] The module for determining the inclination angle of the curved surface structure is used to determine the inclination angle and the optimal placement position of the curved surface structure according to all inclination angles.

[0020] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described methods for evaluating the inclination angle of a curved structure.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for evaluating the inclination angle of a curved surface structure.

[0022] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for evaluating the inclination angle of a curved surface structure.

[0023] According to the specific embodiments provided in this application, this application discloses the following technical effects: This application adopts meticulous G-code path subdivision and discretization technology to improve the accuracy of the printing path, and uses the nearest neighbor mapping algorithm to optimize the calculation of each layer unit to ensure the accuracy of the tilt angle evaluation, obtain the best placement position, and further improve the printing accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flow chart of the method for evaluating the tilt angle of a curved surface structure provided in this application;

[0026] Figure 2 A flow chart of the method for evaluating the tilt angle of a minimal surface provided in this application;

[0027] Figure 3 This is a distribution diagram of the tilt angles of the 3etc minimal surface structure provided in this application at different placement positions; wherein, Figure 3 (a) is the distribution diagram of the model tilt angle under normal placement of 3etc; Figure 3 (b) is the distribution diagram of the tilt angle of the model with 3etc placed abnormally;

[0028] Figure 4 This is the distribution diagram of the tilt angle of the Gyroid minimal surface structure provided in this application at different placement positions; wherein, Figure 4 (a) is the distribution diagram of the model tilt angle when the Gyroid is placed normally; Figure 4(b) is the distribution diagram of the model tilt angle under the abnormal placement of Gyroid;

[0029] Figure 5 Schematic diagram of the actual printed sample provided for this application;

[0030] Figure 6 This is a schematic diagram of the CT characterization results of the printed sample provided in this application; wherein, Figure 6 (a) is a CT scan of the printed sample; Figure 6 (b) is a slice image of one layer of the printed sample;

[0031] Figure 7 Schematic diagram of the mechanical compression performance evaluation of the printed samples provided in this application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0034] The present application embodiment provides a method for evaluating the inclination angle of a curved surface structure. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or can be executed by a terminal and a server together. In the present application embodiment, Figure 1 As shown, the method includes the following steps.

[0035] S1: constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file.

[0036] S2: According to the layer height information, determine the G-code path corresponding to each layer of the G-code file during the slicing process;

[0037] S3: Discretize each layer of the G-code path to determine the discretized units and the coordinates of the central node of each discretized unit.

[0038] S4: For any midpoint node coordinate in each layer, use the nearest neighbor mapping algorithm to determine the center node coordinate in the adjacent layer of the current layer that is closest to the center node coordinate; the current layer is the layer where any center node coordinate is located; the closest center node coordinate is the center node coordinate in the adjacent layer that is shortest in distance to the center node coordinate in the current layer.

[0039] S5: Determine the inclination angle of the line between two nodes relative to the horizontal plane based on the center node coordinates of the current layer, the coordinates of the closest center node and the height information of each layer; the two nodes are the center node of the current layer and the center node of the adjacent layer.

[0040] S6: Determine the inclination angle and the optimal placement position of the curved structure according to all the inclination angles.

[0041] In an exemplary embodiment, S1 may be replaced by the following steps.

[0042] S11: Surface evolver software was used to establish three-dimensional model structures of a gyroid, a tricontinuous hexagonal structure (3etc(187193)) and a triplyperiodic minimal surface (TPMS) with a thickness approaching 0. The three-dimensional model was pre-processed using Hypermesh software and stretched to a fixed thickness.

[0043] S12: Slice the image using Cura software to generate a G-code file.

[0044] In an exemplary embodiment, S2 may be replaced by the following steps.

[0045] S21: using Python language and taking layer height information as a key parameter, the G-code file is subdivided to determine the G-code path corresponding to each layer of the G-code file during the slicing process.

[0046] In practical applications, the G-code file generated by the slicing process is subdivided into G-code paths corresponding to each layer according to the layer height information to achieve a clear path between layers.

[0047] In an exemplary embodiment, S3 may be replaced by the following steps.

[0048] S31: subdivide each layer of the G-code path into multiple path segments according to the G-code instructions; each path segment contains two nodes.

[0049] S32: Calculate the distance of the path segment.

[0050] S33 determines whether the distance of the path segment exceeds the preset unit size, if so, executes S34, if not, executes S35.

[0051] S34: Discretize the nodes in the path segment to determine the discretized units and the central node coordinates of each discretized unit.

[0052] S35: taking the currently divided path segment as a discretized unit, and determining the coordinates of the central node of the discretized unit.

[0053] In practical applications, each layer of the divided G-code path is subdivided into many tiny path segments; then, according to the preset unit size, these subdivided paths are discretized and further divided into smaller units; then, the central node coordinates of each of these discrete units are calculated.

[0054] The G-code path of each layer is composed of many small paths. The path is subdivided into many tiny path segments according to the G code instructions (such as G0, G01, etc.), and each path segment contains two position coordinates.

[0055] In an exemplary embodiment, S34 may be replaced by the following steps.

[0056] S341: Calculate increments of two nodes in the path segment in the X direction and the Y direction; wherein the X direction is perpendicular to the Y direction.

[0057] S342: Based on the increment, add a new node to the path segment to generate a new path segment.

[0058] S343: Segment the new path segment according to the preset unit size to determine discretized units.

[0059] S344: Calculate the coordinates of the central node of the discretized unit according to the coordinates of the path start node and the path end node in the discretized unit.

[0060] In practical applications, first, the size of the unit size is preset; then, the distance of the path segment is calculated and compared with the preset unit size. If the distance of the path segment exceeds the unit size, it needs to be discretized. Otherwise, there is no need for discretization, and the path segment needs to be discretized.

[0061] The discretization process is as follows:

[0062] First, we calculate the increments of the path segment in the X and Y directions between the two coordinate points; then, we segment along this path segment according to the set unit size.

[0063] The specific method of segmentation is to add new coordinate points at the corresponding position of each increment to realize the discretization of path segments; each layer of G-code path is discretized into a path of preset unit size (the discretized path contains two closer coordinates than the previous path), obtain the two coordinates of the discretized path, and calculate the coordinates of the central node.

[0064] In an exemplary embodiment, according to the path subdivided by the G-code, the digital form is expressed as the path starting coordinate m 0 (x 0 ,y 0 ) and the path end point coordinates m 1 (x 1 ,y 1 ), the subdivided paths need to be discretized according to the set unit size; unit size e, minimum unit size e min , the number of path discrete units n.

[0065] S341 can be replaced by the following steps.

[0066] use Calculate the delta between two nodes in the X direction.

[0067] use Calculate the increment of the two nodes in the Y direction; where dx is the increment of the two nodes in the X direction; dy is the increment of the two nodes in the Y direction; (x 0 ,y 0 ) is the starting node coordinate of the path segment; (x 1 ,y 1 ) is the coordinate of the end node of the path segment; L is the distance of the path segment; e is the preset unit size.

[0068] Path distance If L>e, discretization is required; then n is rounded down.

[0069] A path is discretized into n segments, and the corresponding end point coordinates are as follows:

[0070] (x n1 =x 0 +n1*dx,y n1 =y 0 +n1*dy),……,(x ni =x 0 +ni*dx,y ni =y 0 +ni*dy); wherein, i=1, 2, ..., n; ni is the coordinate of the end point in the ni-th discrete path after the path is discretized.

[0071] For each layer of the path in the G-code file, the above operation is repeated to gradually discretize the entire G-code file into small units, and the coordinates of the central nodes of all these small units are accurately calculated.

[0072] Here, each of the discretized small units includes two coordinates. The midpoint distance formula is used to calculate the center coordinate point. The midpoint coordinate calculation formula is repeatedly executed, and finally the corresponding midpoint coordinates of all discretized units are calculated.

[0073] The center node coordinates are calculated as follows:

[0074] If the starting coordinate of the path is m 0 (x 0 ,y 0 ), the coordinates of the end point of the path are m 1 (x 1 ,y 1 ), then the center node coordinate m c for

[0075] The distance between layers will be used in the neighbor mapping algorithm later, which belongs to the spatial coordinates. Therefore, the coordinate m c It needs to be expanded into three-dimensional space node coordinates, that is, the layer height h where the current center node coordinates are located m Introduced as the z coordinate, for example,

[0076] In an exemplary embodiment, a neighbor mapping algorithm is introduced. This is an algorithm for data mapping or classification based on the nearest neighbor principle. The core idea is that for a new coordinate node, the algorithm will find the point closest to it in the existing data set, and then make decisions or perform calculations based on these "nearest neighbor" points. The algorithm can calculate the distance from the center node of the target unit to the center nodes of each unit in the next layer, thereby finding the nearest center node.

[0077] In practical applications, after each layer of paths in the G-code file is discretized into small units and the coordinates of the central nodes of all small units are calculated, the nearest neighbor mapping algorithm is introduced into the calculated layer-by-layer separated central nodes, and the nearest neighbor mapping algorithm is applied to each node in turn to calculate the closest node between the central node and the next layer of nodes. After traversing and calculating the distance from the central node to all the central nodes of the next layer, the central node with the shortest distance is taken.

[0078] P j is the coordinate set of all three-dimensional central nodes of the next layer, P j = {P j |P j =(x j ,yj ,z c -h),m=1,2…,M},C(x c ,y c ,z c ) is the coordinate of the current three-dimensional center node, d j is the Euclidean distance from the current point to multiple points, d j is a set of arrays, h is the height of each layer after the model is sliced, then the z coordinate h of point m m It is the value obtained by superimposing multiple layers of height h.

[0079]

[0080] Select the smallest value in an array.

[0081] In practical applications, the distance between two nodes and the height of each layer can be used to calculate the inclination angle of the line between the two nodes relative to the horizontal plane using inverse trigonometric functions.

[0082] Specifically, according to the calculated center node of the shortest distance from the target node to the next layer, the triangle formed by the layer height (perpendicular to the plane direction) of each layer and the calculated shortest distance and horizontal distance (plane direction), the calculated shortest distance is the hypotenuse of the triangle, the layer height and the horizontal distance are two right-angled sides, based on this, the inverse trigonometric function arcsin (layer height / shortest distance) is used to calculate the inclination angle of the target center node to the next layer, this angle approximately represents the inclination angle of each small unit to the next layer, based on this, all nodes are repeatedly calculated to obtain the inclination angle of the small units in the entire G-code file.

[0083] S5 can be replaced by the following steps.

[0084] S51: Exploitation Determine the inclination angle of the line between the two nodes relative to the horizontal plane; where θ is the inclination angle; h is the floor height; d min is the distance between the center node coordinates of the current layer and the closest center node coordinates.

[0085] Based on this, all calculated angles are visualized by color differentiation, and the proportion of angles in different intervals ((0-15), (15-30), (30-45), (45-60), (60-75), (75-90)) is counted. Since the closer the inclination angle is to 0° (horizontal), the lower the processing accuracy is, and the closer the inclination angle is to 90° (vertical plane), the more continuous the processing process is, the higher the processing accuracy is. Through this inclination angle calculation model, the proportion of inclination angles of different placement angles can be calculated, and the model can be used to adjust the placement position that is closer to 0°, optimize the best placement position of the model, optimize the printing process, and improve the printing accuracy and quality of minimal surface metamaterial structures, such as Figure 2 The figure shows the steps of the entire evaluation process from G-code generation to tilt angle calculation.

[0086] Step 1: Use Surface evolver software to build a TPMS three-dimensional model structure with Gyroid and 3etc thickness approaching 0, use Hypermesh to pre-process the three-dimensional model, and stretch it to fix the thickness.

[0087] Step 2: Slice the 3D model in step 1 using Cura software to generate a gcode file.

[0088] Step 3: Subdivide the G-code file generated by the slicing process into corresponding G-code paths layer by layer according to the layer height information to achieve a clear path between layers.

[0089] This application can well determine the tilt angle of the minimal curved surface structure at different placement positions, such as Figure 3 As shown, the relationship between the change of tilt angle and structural performance is shown. Figure 4 As shown, the effect of the tilt angle evaluation model is further verified. It can be seen that the present application can provide a reference for the placement of minimal curved surface structures during printing.

[0090] As a verification method for this application, the Gyroid pure copper structure was prepared using laser powder bed printing technology. After evaluation of this application, the 3D printing placement and actual printing samples were determined, such as Figure 5 shown.

[0091] All samples were manufactured using a Trump TruPrint 1000 laser powder bed fusion (LPBF) system with the following process parameters: laser power 95W, layer thickness 20μm, scan speed 1200mm / s, scan line spacing 80μm, and Hatch vector filter threshold 0.1μm. A 67° zigzag Hatch pattern was used with a 90° rotation between layers. Argon gas atomized pure copper powder with a particle size of 20-45μm was used. All samples were manufactured on a Ti-6Al-4V printed substrate preheated to 100°C.

[0092] like Figure 6 As shown in the figure, the printed sample is consistent with the CAD model and has a defect-free structure. It is characterized by computed tomography (CT) and analyzed using a μ-CT scanner (ZEISS Xradia 520Versa) with an operating voltage of 140 kV, a power of 10 W, and a voxel size of 19.7 μm. The image was reconstructed using Dragonfly software (Object Research Systems Inc.). Its minimal curved wall is dense and defect-free, and it is consistent with the CAD model well, as shown in the figure. Figure 7 shown.

[0093] Furthermore, the structure was subjected to mechanical testing. The uniaxial compression test was conducted on a SANS electronic mechanical universal testing machine with a displacement rate of 1 mm / min. Its strength reached about 18 MPa, which can meet the self-support requirements of the structure in scenarios such as radiators and implants.

[0094] High-precision tilt angle assessment: This application accurately assesses the tilt angle of extremely small curved surface structures, which can effectively improve the printing quality; it solves the tilt angle problem of extremely small curved surface metamaterials in 3D printing, and provides a theoretical basis for the printing of complex structures.

[0095] Optimize the printing process: The printing process is more optimized, reducing printing defects and instability caused by inappropriate tilt angles.

[0096] Verification of effectiveness: The effectiveness of the method was verified through actual printing and CT characterization, ensuring the printing accuracy and mechanical properties.

[0097] Based on the same inventive concept, the embodiment of the present application also provides a curved surface structure tilt angle assessment device for implementing the curved surface structure tilt angle assessment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more curved surface structure tilt angle assessment device embodiments provided below can refer to the limitations of the curved surface structure tilt angle assessment method above, and will not be repeated here.

[0098] In an exemplary embodiment, a device for evaluating an inclination angle of a curved surface structure is provided, comprising:

[0099] The slicing processing module is used to construct a TPMS three-dimensional model and perform slicing processing on the TPMS three-dimensional model to generate a G-code file.

[0100] The G-code file determination module is used to determine the G-code path corresponding to each layer of the G-code file during the slicing process according to the layer height information.

[0101] The discretization processing module is used to discretize each layer of the G-code path, determine the discretized units and the center node coordinates of each discretized unit.

[0102] The central node coordinate determination module is used to determine the central node coordinate closest to the central node coordinate in the adjacent layer of the current layer for any midpoint node coordinate in each layer using a nearest neighbor mapping algorithm; the current layer is the layer where any central node coordinate is located; the closest central node coordinate is the central node coordinate in the adjacent layer with the shortest distance to the central node coordinate in the current layer.

[0103] The inclination angle determination module is used to determine the inclination angle of the line between two nodes relative to the horizontal plane based on the central node coordinates of the current layer, the coordinates of the closest central node and the layer height information of each layer; the two nodes are the central node of the current layer and the central node of the adjacent layer.

[0104] The module for determining the inclination angle of the curved surface structure is used to determine the inclination angle and the optimal placement position of the curved surface structure according to all inclination angles.

[0105] In an exemplary embodiment, a computer device is provided, which may be a server or a terminal. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store curved structure inclination angle assessment data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a curved structure inclination angle assessment method is implemented.

[0106] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the above method is implemented when the processor executes the computer program.

[0107] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the above method when executed by a processor.

[0108] In an exemplary embodiment, a computer program product is provided, including a computer program, which implements the above method when executed by a processor.

[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ReadOnlyMemory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (Magnetoresistive RandomAccess Memory, MRAM), ferroelectric random access memory (Ferroelectric RandomAccess Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (RandomAccess Memory, RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0110] In this application, all actions to obtain signals, information or data are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0111] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0112] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0113] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for evaluating the inclination angle of a curved surface structure, characterized in that: The method for evaluating the inclination angle of a curved surface structure comprises: Constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file; According to the layer height information, determine the G-code path corresponding to each layer of the G-code file during the slicing process; Discretize each layer of G-code path, determine the discretized units and the center node coordinates of each discretized unit; For any midpoint node coordinate in each layer, a nearest neighbor mapping algorithm is used to determine the center node coordinate in the adjacent layer of the current layer that is closest to the center node coordinate; the current layer is the layer where any center node coordinate is located; the closest center node coordinate is the center node coordinate in the adjacent layer that has the shortest distance to the center node coordinate in the current layer; Determine the inclination angle of the line between two nodes relative to the horizontal plane according to the coordinates of the center node of the current layer, the coordinates of the closest center node and the height information of each layer; the two nodes are the center node of the current layer and the center node of the adjacent layer; Determine the inclination angle of the curved structure and the optimal placement according to all inclination angles.

2. The method for evaluating the inclination angle of a curved surface structure according to claim 1, characterized in that: According to the layer height information, determine the G-code path corresponding to each layer of the G-code file during the slicing process, including: The Python language is used to subdivide the G-code file with layer height information as the key parameter, and the G-code path corresponding to each layer of the G-code file during the slicing process is determined.

3. The method for evaluating the inclination angle of a curved surface structure according to claim 1, characterized in that: Discretize each layer of G-code path to determine the discretized units and the coordinates of the central nodes of each discretized unit, including: Each layer of G-code path is subdivided into multiple path segments according to the G-code instructions; each path segment contains two nodes; calculating the distance of the path segment; Determine whether the distance of the path segment exceeds the preset unit size; If yes, discretize the nodes in the path segment to determine the discretized units and the coordinates of the central nodes of each discretized unit; If not, the currently divided path segment is used as a discretized unit, and the coordinates of the central node of the discretized unit are determined.

4. The method for evaluating the inclination angle of a curved surface structure according to claim 3, characterized in that: Discretizing the nodes in the path segment to determine the discretized units and the coordinates of the central nodes of each discretized unit specifically includes: Calculate the increments of two nodes in the path segment in the X direction and the Y direction; wherein the X direction is perpendicular to the Y direction; Based on the increment, adding a new node to the path segment to generate a new path segment; Segmenting the new path segment according to the preset unit size to determine the discretized unit; The coordinates of the central node of the discretized unit are calculated according to the coordinates of the path start node and the path end node in the discretized unit.

5. The method for evaluating the inclination angle of a curved surface structure according to claim 3, characterized in that: Calculating the increments of two nodes in the path segment in the X direction and the Y direction, specifically including: use Calculate the increments of the two nodes in the X direction; use Calculate the increment of two nodes in the Y direction; where dx is the increment of two nodes in the X direction; dy is the increment of two nodes in the Y direction; (x0, y0) is the coordinate of the starting node of the path segment; (x1, y1) is the coordinate of the ending node of the path segment; L is the distance of the path segment; e is the preset unit size.

6. The method for evaluating the inclination angle of a curved surface structure according to claim 1, characterized in that: Determining the inclination angle of the line between two nodes relative to the horizontal plane according to the center node coordinates of the current layer, the coordinates of the closest center node and the layer height information of each layer, specifically includes: use Determine the inclination angle of the line between the two nodes relative to the horizontal plane; where θ is the inclination angle; h is the floor height; d min is the distance between the center node coordinates of the current layer and the closest center node coordinates.

7. A device for evaluating the inclination angle of a curved surface structure, characterized in that: The curved surface structure inclination angle assessment device comprises: A slicing processing module, used for constructing a TPMS three-dimensional model, and slicing the TPMS three-dimensional model to generate a G-code file; The G-code file determination module is used to determine the G-code path corresponding to each layer of the G-code file during the slicing process according to the layer height information; The discretization processing module is used to discretize each layer of the G-code path, determine the discretized units and the center node coordinates of each discretized unit; The central node coordinate determination module is used to determine the central node coordinate closest to the central node coordinate in the adjacent layer of the current layer for any midpoint node coordinate in each layer using a nearest neighbor mapping algorithm; the current layer is the layer where any central node coordinate is located; the closest central node coordinate is the central node coordinate in the adjacent layer with the shortest distance to the central node coordinate in the current layer; The inclination angle determination module is used to determine the inclination angle of the line between two nodes relative to the horizontal plane according to the coordinates of the center node of the current layer, the coordinates of the closest center node and the height information of each layer; the two nodes are the center node of the current layer and the center node of the adjacent layer; The module for determining the inclination angle of the curved surface structure is used to determine the inclination angle and the optimal placement position of the curved surface structure according to all inclination angles.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for evaluating the inclination angle of a curved surface structure according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for evaluating the inclination angle of a curved surface structure described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for evaluating the inclination angle of a curved surface structure described in any one of claims 1 to 6 is implemented.