Model hole generation method and device and related equipment

By automatically identifying the grouped data of the inner and outer shells of the model and using a mesh subdivision algorithm to generate holes, the problem of unbalanced air pressure inside and outside the model in photopolymer 3D printing is solved, realizing automatic drilling and air pressure balance, reducing demolding force, and is suitable for various model structures.

CN121018934APending Publication Date: 2025-11-28SHENZHEN CBD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511128546.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-13
Publication Date
2025-11-28

AI Technical Summary

Technical Problem

In photopolymer 3D printing, especially when using LCD photopolymer printers, existing technologies require manual drilling to solve the problem of air pressure imbalance inside and outside the model for models with closed cavities or bowl-shaped models. This results in large demolding forces, and manual drilling is difficult to achieve on complex models.

Method used

A method and apparatus for generating holes by automatically identifying the inner and outer shell grouping data of the model, and using a mesh subdivision algorithm to automatically generate through holes in the model preprocessing stage, ensuring the air pressure balance inside and outside the model and reducing the demolding force.

Benefits of technology

It enables automatic drilling of closed internal cavities and process cavity models, ensuring resin solution discharge and air pressure balance, reducing demolding force, and can generate single or multiple holes as needed to adapt to different model structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121018934A_ABST
    Figure CN121018934A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of 3D printing, and provides a model hole generation method and device and related equipment.The method comprises the steps that outer shell grouped data and inner shell grouped data of a model are obtained; acquiring grouped data of each outer shell and each inner shell, searching triangular meshes from bottom to top from the lowest points of the meshes in each group according to a continuous adjacent and height increasing relationship to acquire continuous adjacent triangular mesh groups, and grouping and determining the inner and outer separated layer shells; determining the group of the outer separation layer shell at the upper layer as a process cavity layer shell; obtaining a triangular mesh in a height range of H millimeters from the lowest point in the process cavity layer shell, and determining the triangular mesh as a punching area; obtaining a triangular mesh in a height range of H mm from the lowest point in the inner separation layer shell, and determining the triangular mesh as a punching area; punching coordinates and vectors are determined in the punching area, and holes are generated; and storing the data. According to the scheme, the closed process cavity and the model body inner cavity formed in the printing process can be recognized, and the through holes can be automatically generated.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of light-curing 3D printing, and particularly relates to a model hole generation method and device and related equipment. BACKGROUND

[0002] At present, in the field of light-curing 3D printing, especially when using an LCD light-curing printer for forming printing, for a model with a closed cavity, manual punching is needed to generate holes on the model in the model preprocessing stage, so that the resin solution closed in the cavity after printing can flow out through the holes, and the air pressure inside and outside the model during printing also needs to be balanced to reduce the demolding force during printing. In addition, for a bowl-shaped model, the model body does not have a closed cavity, but in the process of LCD light-curing printing, the bowl opening is downwardly buckled and closed with a release film to form a process cavity, and manual punching or automatic generation of holes is needed at the bottom of the model cavity to balance the air pressure inside and outside the model during printing to reduce the demolding force during printing. At present, manual punching is generally used to solve the above problems, so for the case that the model has multiple cavities and is not easy to observe, and the case that the bowl-shaped model may have a process cavity, a model hole generation method needs to be proposed to automatically punch holes for the above two types of models. SUMMARY

[0003] The embodiments of the application provide a model hole generation method and device, electronic equipment and a storage medium, which can identify and automatically generate holes for the closed process cavity that may be formed during the printing of the model and the actual cavity of the model in the model preprocessing stage.

[0004] The first aspect of the embodiments of the application provides a model hole generation method, which comprises: traversing the model triangular mesh data and obtaining the shell grouping data of the model and each inner shell grouping data in the model; obtaining each inner shell grouping data, starting from the lowest point of the mesh in each grouping, searching the triangular mesh upwards from the bottom according to the relationship of continuous adjacency and height increase to obtain a group of continuous adjacent triangular meshes, and determining the group as an inner separation layer shell; obtaining the shell grouping data, starting from the lowest point of the mesh in the grouping, searching the triangular mesh upwards from the bottom according to the relationship of continuous adjacency and height increase to obtain a group of continuous adjacent triangular meshes, and determining the group as an outer separation layer shell; obtaining the outer separation layer shell, and determining the group of the outer separation layer shell located at the upper layer as a process cavity layer shell; obtaining the triangular mesh in the height range of H millimeters from the lowest point in the process cavity layer shell and determining the triangular mesh as a punching area; acquire the triangular mesh in the height range of H millimeters from the lowest point in the inner separation layer shell and determine as the punching area; determine the punching coordinates and vectors in the punching area, and generate the through hole and its triangular mesh spatial model according to the hole parameters by using the mesh subdivision algorithm; store the overall three-dimensional data of the model and the hole in the computer storage unit.

[0005] Further, the determination of the punching coordinates and vectors in the punching area and the generation of the through hole and its triangular mesh spatial model according to the hole parameters by using the mesh subdivision algorithm include: acquire the sum S1 of the areas of all the triangular meshes in the punching area; acquire the cross-sectional area S2 of the hole according to the preset hole diameter size; determine the number N of the holes to be generated according to the ratio of S1 and S2; generate the hole distribution positions on the punching area according to the number N of the holes and determine the punching coordinates and vectors of each hole in the punching area; generate the through hole and its triangular mesh spatial model according to each punching coordinate and vector and the hole parameters by using the mesh subdivision algorithm.

[0006] Further, the model hole generation method further includes: slice the overall three-dimensional data and acquire the slice image data.

[0007] Preferably, the H is a preset parameter, the H is an integer or a decimal number; the N is an integer; and the S1 and S2 are integers or decimal numbers.

[0008] A second aspect of the embodiment of the application provides a model hole generation device, which includes: a model inner and outer shell grouping data acquisition module, configured to traverse the model triangular mesh data and acquire the outer shell grouping data of the model and each inner shell grouping data in the model; an inner separation layer shell determination module, configured to acquire each inner shell grouping data, search the triangular meshes from the bottom to the top according to the continuous adjacent and height-increasing relationship starting from the lowest point of the meshes in each grouping to acquire the continuous adjacent triangular mesh groups, and determine as the inner separation layer shell by grouping; an inner separation layer shell determination module, configured to acquire the outer shell grouping data, search the triangular meshes from the bottom to the top according to the continuous adjacent and height-increasing relationship starting from the lowest point of the meshes in the grouping to acquire the continuous adjacent triangular mesh groups, and determine as the outer separation layer shell by grouping; a process cavity layer shell determination module, configured to acquire the outer separation layer shell and determine the grouping of the outer separation layer shell at the position of the upper layer as the process cavity layer shell; The process cavity layer shell punch hole region determining module is configured to acquire the triangular meshes in a height range of H millimeters from the lowest point in the process cavity layer shell and determine the punch hole region; The inner separation layer shell punch hole region determining module is configured to acquire the triangular meshes in a height range of H millimeters from the lowest point in the inner separation layer shell and determine the punch hole region; The hole generation module is configured to determine punch hole coordinates and vectors in the punch hole region and generate a through hole and a triangular mesh space model thereof according to hole parameters by using a mesh subdivision algorithm. The three-dimensional data storage module is configured to store the overall three-dimensional data of the model and the hole in a computer storage unit.

[0009] Further, the hole generation module comprises: The area sum acquisition module is configured to acquire the sum S1 of the areas of all the triangular meshes in the punch hole region. The hole cross-sectional area acquisition module is configured to acquire the hole cross-sectional area S2 according to a preset hole diameter size. The hole number determining module is configured to determine the number N of holes to be generated according to the ratio of S1 and S2. The punch hole coordinate and vector determining module is configured to generate punch hole distribution positions on the punch hole region according to the number N of holes and determine punch hole coordinates and punch hole vectors of the holes in the punch hole region. The hole triangular mesh generation module is configured to generate a through hole and a triangular mesh space model thereof according to the punch hole coordinates and vectors and the hole parameters and by using a mesh subdivision algorithm.

[0010] Further, the model hole generation device comprises: The slice image data acquisition module is configured to acquire slice image data by performing slice processing on the overall three-dimensional data.

[0011] A third aspect of the embodiment of the application provides an electronic device, comprising: at least one processing unit; and a storage unit in communication connection with the at least one processing unit; wherein The storage unit stores instructions executable by the at least one processing unit, and the at least one processing unit executes the instructions to implement the model hole generation method in the first aspect.

[0012] A fourth aspect of the embodiment of the application provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processing unit to implement the model hole generation method in the first aspect.

[0013] The fifth aspect of the embodiment of the present application provides a computer program product, the computer program product comprising computer instructions, when the computer instructions are executed by a computer, the model hole generation method of the first aspect is realized.

[0014] Compared with the prior art, the present application has the following beneficial effects: 1. The method provided by the embodiment of the present application can automatically punch one or more closed internal cavities of a model, and the generated holes can be used to communicate the inside and outside of the model, to discharge the resin solution after printing, and to balance the internal and external air pressure during printing, thereby reducing the demolding force during printing. 2. The method provided by the embodiment of the present application can also automatically punch a bowl-shaped model which has no closed internal cavity but forms a closed process cavity with a release film during model printing. 3. The method provided by the embodiment of the present application can also automatically punch a model which may form a process cavity and has a closed internal cavity at the same time. 4. The method provided by the embodiment of the present application can avoid generating holes when a bowl-shaped model which has no closed internal cavity and does not form a closed process cavity does not need to be punched. 5. The method provided by the embodiment of the present application can generate a single hole or multiple uniformly distributed holes in the punching area. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1 The main flowchart of the model hole generation method of the embodiment of the present application; Figure 2 The sub-flowchart of the model hole generation method of the embodiment of the present application; Figure 3 The main structure diagram of the model hole generation device of the embodiment of the present application; Figure 4 The sub-structure diagram of the model hole generation device of the embodiment of the present application; Figure 5 The hollow sphere model for illustrating the model hole generation method of the embodiment of the present application; Figure 6 The bowl-shaped model for illustrating the model hole generation method of the embodiment of the present application; Figure 7 The three-dimensional schematic diagram of the bowl-shaped grid model for illustrating the model hole generation method of the embodiment of the present application; Figure 8 The lateral schematic diagram of the bowl-shaped grid model for searching continuous adjacent triangular grids of the embodiment of the present application; Figure 9Figure 1 is a schematic diagram of the present application for acquiring an outer separate layer shell by continuous adjacent triangular mesh search; Figure 10 Figure 2 is a schematic diagram of the present application for acquiring an inner separate layer shell; Figure 11 Figure 3 is a schematic diagram of the present application for determining a perforated area; Figure 1 ; Figure 12 Figure 4 is a schematic diagram of the present application for determining a perforated area; Figure 2 ; Figure 13 Figure 5 is a schematic diagram of the present application for determining the number and distribution of holes; Figure 1 ; Figure 14 Figure 6 is a schematic diagram of the present application for determining the number and distribution of holes; Figure 2 ; Figure 15 Figure 7 is a schematic diagram of the present application for generating a hole effect for a bowl-shaped model; Figure 1 ; Figure 16 Figure 8 is a schematic diagram of the present application for generating a hole effect for a bowl-shaped model; Figure 2 ; Figure 17 Figure 9 is a schematic diagram of the present application for a process cavity existing in the printing process of a bowl-shaped model; Figure 18 Figure 10 is a schematic diagram of the present application for a process cavity not existing in the printing process of a bowl-shaped model; Figure 19 Figure 11 is a schematic diagram of the present application for the orientation of a model in the pre-processing stage of a bowl-shaped model; Figure 1 ; Figure 20 Figure 12 is a schematic diagram of the present application for the orientation of a model in the pre-processing stage of a bowl-shaped model; Figure 2 ; Figure 21 Figure 13 is a structural block diagram of an electronic device for implementing the model hole generation method of the present application; Figure 22 Figure 14 is a schematic diagram of the present application for the electronic device to slice a model to acquire slice image data; Figure 23 Figure 15 is a structural block diagram of a 3D printing device for implementing the model hole generation method of the present application; Figure 24 Figure 16 is a schematic diagram of the present application for importing image data generated after the hole into a 3D printing device.

[0016] Explanation of reference numerals: Electronic device 11; 3D printing device 12; mobile storage device 13; processing unit 111; storage unit 112; computer program 113; controller 121; memory 122; printing control program 123; The model inner and outer shell grouping data acquisition module 100; the inner separation layer shell determination module 200; the inner separation layer shell determination module 300; the process cavity layer shell determination module 400; the process cavity layer shell punching area determination module 500; the inner separation layer shell punching area determination module 600; the hole generation module 700; the area sum acquisition module 710; the hole cross-sectional area acquisition module 720; the hole number determination module 730; the punching coordinate and vector determination module 740; the hole triangular mesh generation module 750; the three-dimensional data storage module 800; the slice image data acquisition module 900; The empty ball model 301; the inner cavity 302; the inner cavity mesh model 303; the platform 304; the bowl-shaped model 305; the concave cavity 306; the bowl-shaped mesh model 401; the triangular mesh 402; the first outer separation layer shell 501; the second outer separation layer shell 502; the punching area 601; the inner separation layer shell 602; the hole 701; the LCD light curing printer 901; the support column 902; the resin tank 903; the release film 904; the molding platform 905; the resin solution 906; the printing process cavity 907. DETAILED DESCRIPTION

[0017] In order to make the purposes, characteristics and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the embodiments described below are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0018] It should be understood that when used in the specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0019] Figure 1 The main flowchart of the model hole generation method of the embodiments of the present application. As shown in the figure, the model hole generation method of the present application comprises the following steps: S100. Traverse the model triangular mesh data and acquire the outer shell grouping data of the model and each inner shell grouping data in the model; S200. Acquire each inner shell grouping data, start from the lowest point of the mesh in each grouping, search the triangular mesh from bottom to top in a continuous adjacent and height increasing relationship to acquire a continuous adjacent triangular mesh group, and determine the group as an inner separation layer shell; S300. Obtain the outer shell group data, search the triangular mesh from bottom to top in a continuous adjacent and height-increasing relationship starting from the lowest point of the mesh in the group, and obtain the continuous adjacent triangular mesh group, and determine the group as the outer separation layer shell; S400. Obtain the outer separation layer shell, and determine the group of the outer separation layer shell located at the upper layer as the process cavity layer shell; S500. Obtain the triangular mesh in the height range of H millimeters from the lowest point in the process cavity layer shell and determine as the punching area; S600. Obtain the triangular mesh in the height range of H millimeters from the lowest point in the inner separation layer shell and determine as the punching area; S700. Determine the punching coordinates and vectors in the punching area, and generate the through hole and its triangular mesh space model according to the hole parameters by using the mesh subdivision algorithm; S800. Store the overall three-dimensional data of the model and the hole in the computer storage unit.

[0020] Wherein, the H is a preset parameter, and the H is an integer or a decimal.

[0021] In addition, it also includes optional steps: S900. Slice the overall three-dimensional data and obtain the slice image data.

[0022] Figure 2 It is a sub-flow chart of the model hole generation method of the embodiment of the application. As shown in the figure, based on Figure 1 Step S700, the step of determining the punching coordinates and vectors in the punching area, and generating the through hole and its triangular mesh space model according to the hole parameters by using the mesh subdivision algorithm, includes the following sub-steps: S710. Obtain the sum S1 of the areas of all triangular meshes in the punching area; S720. Obtain the hole cross-sectional area S2 according to the preset hole diameter size; S730. Determine the number N of holes to be generated according to the ratio of S1 and S2; S740. Generate the hole distribution positions on the punching area according to the number N of holes, and determine the punching coordinates and punching vectors of each hole in the punching area; S750. Generate the through hole and its triangular mesh space model according to the punching coordinates and vectors of each hole and the hole parameters by using the mesh subdivision algorithm.

[0023] Wherein, the S1 and S2 are integers or decimals; and the N is an integer.

[0024] Figure 3 It is a main structure diagram of the model hole generation device of the embodiment of the application. As shown in the figure, the model hole generation device of the application comprises: The model outer shell grouping data acquisition module 100 is configured to traverse the model triangular mesh data and acquire outer shell grouping data of the model and each inner shell grouping data in the model. The inner separation layer shell determination module 200 is configured to acquire each inner shell grouping data, and search triangular meshes from bottom to top in a continuous and adjacent relationship and in an increasing height relationship starting from the lowest point of the mesh in each grouping to acquire a continuous and adjacent triangular mesh group, and determine the group as an inner separation layer shell. The inner separation layer shell determination module 300 is configured to acquire outer shell grouping data, and search triangular meshes from bottom to top in a continuous and adjacent relationship and in an increasing height relationship starting from the lowest point of the mesh in each grouping to acquire a continuous and adjacent triangular mesh group, and determine the group as an outer separation layer shell. The process cavity layer shell determination module 400 is configured to acquire the outer separation layer shell, and determine a group of the outer separation layer shell located at an upper layer as a process cavity layer shell. The process cavity layer shell punch region determination module 500 is configured to acquire triangular meshes in a height range of H millimeters from the lowest point in the process cavity layer shell and determine the triangular meshes as a punch region. The inner separation layer shell punch region determination module 600 is configured to acquire triangular meshes in a height range of H millimeters from the lowest point in the inner separation layer shell and determine the triangular meshes as a punch region. The hole generation module 700 is configured to determine a punch coordinate and a vector in the punch region, and generate a through hole and a triangular mesh space model thereof according to a hole parameter by using a mesh subdivision algorithm. The three-dimensional data storage module 800 is configured to store the overall three-dimensional data of the model and the hole in a computer storage unit.

[0025] The H is a preset parameter, and the H is an integer or a decimal.

[0026] In addition, the optional module includes: The slice image data acquisition module 900 is configured to perform slice processing on the overall three-dimensional data and acquire slice image data.

[0027] Figure 4 The sub-structure diagram of the model hole generation device of the embodiment of the application is shown in the figure. As shown in the figure, the hole generation module 700 includes: The area sum acquisition module 710 is configured to acquire a sum S1 of areas of all triangular meshes in the punch region. The hole cross-sectional area acquisition module 720 is configured to acquire a hole cross-sectional area S2 according to a preset hole diameter size. The hole number determination module 730 is configured to determine a number N of holes to be generated according to a ratio of S1 and S2. The punch coordinate and vector determination module 740 is configured to generate the hole distribution positions on the punch region according to the number N of holes and determine the punch coordinates and punch vectors of the holes in the punch region; The hole triangular mesh generation module 750 is configured to generate the through holes and the triangular mesh space model of the holes according to the punch coordinates and vectors and the hole parameters and by using a mesh subdivision algorithm.

[0028] In the formula, S1 and S2 are integers or decimals; and N is an integer.

[0029] Figure 5 As shown in the figure, the hollow sphere model 301 is placed on the platform 304, and the hollow sphere model 301 has an inner cavity 302. The inner cavity mesh model 303 is also shown in the figure. Similarly, the hollow sphere model 301 also has an outer shell mesh model, which is not shown in the figure for the convenience of illustration.

[0030] Specifically, according to the method steps S100 in the embodiment, the model triangular mesh data is traversed to obtain the outer shell group data of the model and each inner shell group data in the model. The outer shell group data of one outer shell and the inner shell group data of one inner shell can be obtained from the hollow sphere model 301 in the figure. Figure 1

[0031] Specifically, according to the continuous adjacent mesh search method in the general common knowledge, the unmarked inner shell mesh group and the unmarked outer shell mesh group can be obtained, and the ray method can be used to determine that any point on the unmarked inner shell mesh group penetrates the unmarked outer shell mesh group in any direction, so that the inner shell group data of the inner shell mesh group and the outer shell group data of the outer shell mesh group can be marked and distinguished. Since this belongs to the general common knowledge, the present application will not be specifically introduced.

[0032] Figure 6 As shown in the figure, the bowl-shaped model 305 is placed on the platform 304, and the bowl-shaped model 305 has a concave cavity 306.

[0033] Figure 7 As shown in the figure, the bowl-shaped mesh model 401 in the figure corresponds to the bowl-shaped model 305 in the embodiment. Figure 6 The bowl-shaped mesh model 401 is composed of triangular meshes 402.

[0034] Specifically, according to the method steps S100 in the embodiment, the model triangular mesh data is traversed to obtain the outer shell group data of the model and each inner shell group data in the model. The outer shell group data of one outer shell and the inner shell group data of one inner shell can be obtained from the hollow sphere model 301 in the figure. Figure 1 ​The method step S100 of the embodiment traverses the model triangle mesh data and obtains the outer shell grouping data of the model and each inner shell grouping data in the model. Only the outer shell grouping data of the outer shell separated from the hollow sphere model 301 in the figure can be obtained.

[0035] In particular, since the bowl-shaped mesh model 401 in the figure actually does not have a closed inner shell, the inner shell grouping data obtained according to the step S100 is empty; therefore, only the outer shell grouping data is obtained.

[0036] Figure 8 A lateral schematic diagram of searching for the continuous adjacent triangle mesh of the bowl-shaped mesh model is shown in the embodiment of the present application. As shown in the figure, the bowl-shaped mesh model 401 in the figure is composed of triangle meshes 402 and has a lowest point P point in the Z axis.

[0037] Specifically, according to Figure 1 The method step S300 of the embodiment obtains the outer shell grouping data, searches the triangle mesh from bottom to top in a continuous adjacent and height-increasing relationship starting from the lowest point of the mesh in the grouping, and determines the continuous adjacent triangle mesh group as the outer separation layer shell.

[0038] Figure 9 A schematic diagram of searching for the continuous adjacent triangle mesh to obtain the outer separation layer shell is shown in the embodiment of the present application. As shown in the figure, the above-mentioned Figure 8 It can be known that, starting from the lowest point P point, when the Z axis coordinate value of the triangle vertex gradually increases, the first outer separation layer shell 501 of the first grouping shown in the figure can be obtained by searching the continuous adjacent triangle mesh until the Z axis no longer increases.

[0039] Figure 10 A schematic diagram of obtaining the inner separation layer shell is shown in the embodiment of the present application. As shown in the figure, according to Figure 1 The method step S300 of the embodiment can start from the lowest point P point, search the continuous adjacent triangle mesh once every time the Z axis coordinate value increases by 0.1 millimeter, on the one hand, to ensure the search accuracy; on the other hand, when the bottom lowest point of the cavity 306 shown in Figure 6 is searched, the continuous adjacent search group of the second grouping can be formed, so that the second outer separation layer shell 502 shown in the figure can be obtained; similarly, if the inner cavity mesh model 303 shown in Figure 5 is searched from bottom to top to obtain the continuous adjacent triangle mesh group, the inner separation layer shell 602 shown in Figure 12 can be obtained.

[0040] Figure 11 A schematic diagram of determining the punching region is shown in the embodiment of the present application. Figure 1 As shown in the figure, based on the first outer separation layer shell 501 and Figure 9 the second outer separation layer shell 502, the punching region 601 can be determined. Figure 10The second outer separation shell 502; according to Figure 1 In the example method step S400, the outer separation shell is obtained, and the group of outer separation shells located in the upper layer is determined as the process cavity shell; combined with Figure 6 Based on its current coordinate direction, the bowl-shaped model 305 on platform 304 has its cavity 306 facing upwards; therefore, it can be determined that the second outer separation shell 502 is located above the first outer separation shell 501; thus, the second outer separation shell 502 can be identified as the process cavity shell. Specifically, this process can also be determined using the ray casting method.

[0041] according to Figure 1 In the example method step S500, the triangular mesh within a height range of H mm from the lowest point in the process cavity shell is obtained and determined as the perforation area; combined with this figure, the second outer separation shell 502 is determined as the process cavity shell, so its lowest point Q can be obtained, and according to the preset height H mm, the perforation area 601 composed of the triangular mesh within a height range of H mm can be obtained.

[0042] Figure 12 Schematic diagram of the drilling area for this application Figure 2 As shown in the figure, similarly, based on Figure 5 The internal cavity mesh model 303 of the hollow sphere model 301 is in accordance with this application. Figure 1 In the example method step 100, a set of outer shell grouping data and a set of inner shell grouping data can be obtained; according to the example method steps 200 and 300, one inner separation layer shell and one inner separation layer shell can be obtained respectively; the difference from the bowl-shaped mesh model 401 is that when executing method step 300, the triangular mesh is searched from bottom to top to obtain a continuous group of adjacent triangular meshes, and only one outer separation layer shell can be obtained; when the process cavity layer shell is obtained according to the example method step 400, the result is empty; correspondingly, according to the example method step 500, it can be seen that there is no perforated area on the outer separation layer shell; in addition, since the hollow sphere model 301 is spherical, it can be seen that the hollow sphere model 301 will not form a process cavity during the printing process.

[0043] Continuing with step 400 of the example method, obtain the triangular mesh within a height range of H mm from the lowest point in the process cavity shell and determine it as the drilling area; referring to this figure, Figure 5 The inner cavity mesh model 303 in the figure is the inner separation shell 602 in this figure. Then its lowest point Q can be obtained. According to the preset height H mm, the perforated area 601 composed of triangular mesh within the height range of H mm can be obtained.

[0044] Figure 13 Schematic diagram for determining the number and distribution of holes in this application Figure 1As shown in the figure, the figure illustrates the determination of the number and distribution of holes after the bowl-shaped model 305 obtains the punching area 601. After obtaining the punching area 601, different strategies can be used to generate holes in the punching area 601.

[0045] Preferably, the most concise way to generate holes is to determine the lowest point of the punching area 601 as the hole generation coordinate, and according to the method step S700, determine the punching coordinates and vectors in the punching area, and generate the through holes and their triangular mesh space model according to the hole parameters using the mesh subdivision algorithm; so as to generate only one hole 701 in the example in the figure. Specifically, regarding the punching direction of the hole 701, the resultant vector of the vectors of the triangular mesh planes adjacent to the lowest point can be obtained, and the negative 180-degree direction is taken based on the resultant vector; the radius size of the hole 701 is determined by the parameter preset method.

[0046] In particular, as shown in the inner cavity mesh model 303 of the hollow sphere model 301, the strategy for generating holes is the same as the above process. Figure 5

[0047] Figure 14 To determine the number and distribution of holes of the present application Figure 2 As shown in the figure, the figure illustrates the determination of the number and distribution of holes after the bowl-shaped model 305 obtains the punching area 601. After obtaining the punching area 601, different strategies can be used to generate holes in the punching area 601.

[0048] Preferably, the second selection method for generating holes is to use the method steps in Figure 2 , according to step S710, obtain the sum S1 of the areas of all triangular meshes in the punching area; according to step S720, obtain the cross-sectional area S2 of the hole according to the preset hole diameter size; according to step S730, determine the number N of holes to be generated according to the ratio of S1 and S2; The purpose of the above three steps is to ensure that the resin solution can flow out quickly under the condition that the model is printed and the closed inner cavity or process cavity is filled with resin solution, and to increase the number of holes under the condition that the hole radius is determined, thereby shortening the resin solution outflow time; in order to reduce the complexity of the algorithm, the volume of the closed inner cavity or process cavity is not calculated, but the sum S1 of the areas is used as a reference. Specifically, if the hole radius preset value is large, the number N of holes may be only one, and the effect will be equivalent to the above most concise method; if the hole radius preset value is large, the number N of holes may be multiple, and the positions of the multiple holes need to be considered and optimized.

[0049] ​According to step S740, holes are evenly distributed in the punching area according to the number of holes N, and the punching coordinates and punching vectors of each hole in the punching area are determined. Specifically, after determining the number of holes N, it is easy to achieve a uniform arrangement of holes. If N is even, a circular or double-circular arrangement can be used. If N is odd, the lowest point can be determined as one of the punching coordinate points, and the remaining holes continue to be arranged in a circular or double-circular manner. Alternatively, they can be arranged according to a grid pattern. As shown in this figure, N is five, so one punching coordinate point is determined at its lowest point, and the other four punching coordinate points are evenly distributed in a circular pattern.

[0050] According to S750, a through-hole and its triangular mesh spatial model are generated based on the coordinates and vectors of each hole and the hole parameters using a mesh subdivision algorithm. Specifically, regarding the drilling direction of multiple holes 701, the coordinates of each drilling point can be obtained, and the negative 180-degree direction of the normal vector of the mesh where that point is located can be taken; or the resultant vector of the plane vectors of each triangular mesh adjacent to that point can be taken, and the negative 180-degree direction can be taken from it; the radius of the hole 701 is set using a parameter preset method.

[0051] In particular, such as Figure 5 The strategy for generating holes in the inner cavity mesh model 303 of the hollow sphere model 301 shown is the same as the above process.

[0052] Figure 15 Generate hole effects for the bowl-shaped model in this application. Figure 1 As shown in the figure, this image illustrates the actual effect of generating holes in the model using the preprocessing software employing the method described in this application. Figure 1 and with Figure 13 Correspondingly, specifically, it can be seen that the bowl-shaped model 305 in the figure has a cavity 306, and a hole 701 is generated at the bottom of the cavity 306. There is one hole 701, and the hole radius of the hole 701 is relatively large.

[0053] The corresponding is shown below Figure 16 Generate hole effects for the bowl-shaped model in this application. Figure 2 As shown in the figure, this image illustrates the actual effect of generating holes in the model using the preprocessing software employing the method described in this application. Figure 2 and with Figure 14 Correspondingly, specifically, it can be seen that the bowl-shaped model 305 in the figure has a cavity 306, and a hole 701 is generated at the bottom of the cavity 306. There are five holes 701, and the radius of the holes 701 is relatively small.

[0054] Figure 17Figure 1 is a schematic diagram of the process cavity existing in the printing process of the bowl-shaped model of the present application. As shown in the figure, the figure illustrates an LCD photocuring printer 901, which has a resin tank 903, a release film 904, a forming platform 905, etc. The resin tank 903 also contains a resin solution 906. When the LCD photocuring printer 901 prints the bowl-shaped model 305, and the bowl opening is attached to the release film 904, it can be seen that the cavity of the bowl-shaped model 305 will form a printing process cavity 907 with the release film 904. That is, the body of the bowl-shaped model 305 does not have a closed cavity, but during printing, a closed cavity will be formed due to the printing and solidification of the release film 904. In order to reduce the release force during the printing process of the model, it is necessary to punch the bowl-shaped model 305 to connect the internal and external air pressures and reduce the release force. Correspondingly, the punching position needs to be located at the top of the bowl-shaped model 305 in the figure. It should be noted that when the bowl-shaped model 305 is printed with the bowl opening downward in the figure, the bowl-shaped model 305 is attached to the platform 304 with the bowl opening upward during the model pretreatment stage. Therefore, the hole generation position needs to be located at the bottom of the bowl-shaped model 305 as shown in Figure 2. Figure 6 Generally, support columns are usually added to the bottom of the model during the model pretreatment stage. Therefore, the forming platform 905 and the bowl-shaped model 305 are connected by the support columns 902 in the figure. Therefore, even if the hole is generated at the top of the bowl-shaped model 305, due to the spacing between the support columns 902, compared with the model directly attached to the forming platform 905, the hole can be prevented from being blocked, which causes the imbalance between the internal and external air pressures. In addition, if the support columns are not added, the hole can be generated at an eccentric position away from the lowest point. The size of the hole can be adjusted to generate multiple holes at positions away from the lowest point to ensure that the hole is not blocked when the model is printed with the bottom attached.

[0055] Figure 18 Figure 3 is a schematic diagram of the process cavity not existing in the printing process of the bowl-shaped model of the present application. As shown in the figure, the figure also illustrates an LCD photocuring printer 901, which has a resin tank 903, a release film 904, a forming platform 905, etc. The resin tank 903 also contains a resin solution 906. When the LCD photocuring printer 901 prints the bowl-shaped model 305, and the bowl opening is attached to the release film 904, it can be seen that the cavity of the bowl-shaped model 305 will form a printing process cavity 907 with the release film 904. That is, the body of the bowl-shaped model 305 does not have a closed cavity, but during printing, a closed cavity will be formed due to the printing and solidification of the release film 904. In order to reduce the release force during the printing process of the model, it is necessary to punch the bowl-shaped model 305 to connect the internal and external air pressures and reduce the release force. Correspondingly, the punching position needs to be located at the top of the bowl-shaped model 305 in the figure. It should be noted that when the bowl-shaped model 305 is printed with the bowl opening downward in the figure, the bowl-shaped model 305 is attached to the platform 304 with the bowl opening upward during the model pretreatment stage. Therefore, the hole generation position needs to be located at the bottom of the bowl-shaped model 305 as shown in Figure 2.

[0056] ​It should be noted that the bowl-shaped model 305 in the figure has the bowl opening facing downward on the platform 304 during the model preprocessing stage, corresponding to the bowl opening facing upward during the printing process. Therefore, it can be known that the same bowl-shaped model 305 has different punching requirements when the bowl opening faces upward or downward. The method shown in the present application can generate holes for the bowl-shaped model 305 with the bowl opening facing upward and the printing process cavity, and does not need to generate holes for the bowl-shaped model 305 with the bowl opening facing downward and without the printing process cavity. Figure 1

[0057] Figure 19 The orientation of the model during the model preprocessing stage of the present application is shown in Figure 1 . As shown in the figure, the bowl-shaped model 305 has the bowl opening facing upward and is connected to the platform 304 through the support column 902 during the model preprocessing stage. When the LCD photocuring printer 901 shown in Figure 17 is used for printing, it will form a printing process cavity 907 in combination with the release film 904. It can be noted that during the printing process, the release film 904 will form a new printing process cavity 907 when it is moved layer by layer during curing. Therefore, it is necessary to generate holes in the bottom of the bowl-shaped model 305 in the figure during the model preprocessing stage.

[0058] Figure 20 The orientation of the model during the model preprocessing stage of the present application is shown in Figure 2 . As shown in the figure, the bowl-shaped model 305 has the bowl opening facing downward and is connected to the platform 304 through the support column 902 during the model preprocessing stage. When the LCD photocuring printer 901 shown in Figure 18 is used for printing, it can be noted that during the printing process, the release film 904 will not form a printing process cavity 907 as shown in Figure 19 due to the spacing between the support columns. Therefore, it is not necessary to generate holes in the top of the bowl-shaped model 305 in the figure during the model preprocessing stage.

[0059] Figure 21 The structure block diagram of an electronic device for implementing the model hole generation method of the embodiment of the present application is shown in the figure. As shown in the figure, the electronic device 11 in the figure takes the processing unit 111 as an example. As shown in the figure, the electronic device 11 includes a processing unit 111 and a storage unit 112. The storage unit 112 stores a computer program 113 or instructions that can be executed by the processing unit 111. The computer program 113 or instructions are executed by the processing unit 111, so that the processing unit 111 can execute the steps in Figure 1 , Figure 2 .

[0060] ​The storage unit 112 is a non-transitory computer readable storage medium according to the third aspect of the present application. The storage unit 112 stores instructions executable by the at least one processing unit 111, so that the at least one processing unit 111 performs the steps of the method according to the first aspect of the present application and / or the steps of the method according to the second aspect of the present application when executing the instructions. Figure 1 Figure 2

[0061] The storage unit 112 is a non-transitory computer readable storage medium, which can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the steps of the method according to the first aspect of the present application and / or the steps of the method according to the second aspect of the present application. The processing unit 111 executes various functions and data processing of the server by running the non-transitory computer programs 113, instructions and modules stored in the storage unit 112, i.e. implements the steps of the method according to the first aspect of the present application and / or the steps of the method according to the second aspect of the present application. Figure 1 Figure 2 Figure 1 Figure 2

[0062] The storage unit 112 can include a program storage area and a data storage area. The program storage area can store an operating system and application programs required by at least one function. The data storage area can store data created when the electronic device 11 is used, etc. In addition, the storage unit 112 can include a high-speed random access memory unit, and can further include a non-transitory storage unit, such as at least one disk storage unit, a flash memory device, or other non-transitory solid-state storage unit. In some embodiments, the storage unit 112 can optionally include storage units remotely located with respect to the processing unit 111, and these remote storage units can be connected to the electronic device performing model support classification generation through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0063] Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processing unit, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0064] ​​​​​​These computer programs (also known as programs, software, software applications or code) include machine instructions for programmable processing unit, and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus and / or device (e.g., magnetic discs, optical disks, memory

[0065] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from, without departing from the scope of the present disclosure. For example, the steps recited in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions disclosed in the present application can be achieved, which are not limited herein.

[0066] Figure 22 The schematic diagram of the electronic device of the embodiment of the present application for slicing the model to obtain slice image data is shown. As shown in the figure, the user runs the 3D slicing program on the electronic device 11 to generate a hole on the hollow sphere model and add a support column, and then performs slicing processing on the stored overall three-dimensional data to obtain slice image data.

[0067] Figure 23 The structure block diagram of the 3D printing device for implementing the model hole generation method of the present application is shown. As shown in the figure, a 3D printing device 12 includes a controller 121 and a memory 122; wherein the memory 122 stores a printing control program 123 or instructions executable by the controller 121, and the printing control program 123 or instructions is executed by the controller 121 to enable the controller 121 to perform the steps in Figure 1 Figure 2 The printing control program 123 or instructions is executed by the controller 121 to enable the controller 121 to perform the steps in

[0068] Figure 24 The schematic diagram of the 3D printing device for importing the image data generated after the hole of the present application is shown. As shown in the figure, the user uses a mobile storage device 13 to import the slice image data obtained after slicing processing into the 3D printing device 12 for exposure printing, and then obtains the model with a hole generated by the present application and successfully completed printing.

[0069] ​The foregoing detailed description has set forth various embodiments of the devices and / or processes via the use of specific terminology. However, embodiments thereof can be practiced with the exact description not being set forth but with the same essence. Therefore, embodiments cannot be limited to the specific embodiments described. Rather, it is intended that the description embodied herein be considered in a descriptive sense only and not limiting.

Claims

1. A method for generating holes in a model, characterized in that, include: Traverse the model's triangular mesh data and obtain the outer shell grouping data and the individual inner shell grouping data within the model; Obtain data for each inner shell group. Starting from the lowest point of the grid in each group, search the triangular grid from bottom to top according to the relationship of continuous adjacent and increasing height to obtain continuous adjacent triangular grid groups, and group them to determine the inner separated shell layer. Obtain the shell grouping data. Starting from the lowest point of the grid in this group, search the triangular grid from bottom to top according to the relationship of continuous adjacent and increasing height to obtain continuous adjacent triangular grid groups, and group them to determine the outer separated shell layer. Obtain the outer separation shell, and determine the group of outer separation shells located in the upper layer as the process cavity shell; The triangular grid within a height range of H mm from the lowest point in the hollow shell layer is obtained and identified as the drilling area; Obtain the triangular mesh within a height range of H mm from the lowest point in the inner separation shell and determine it as the perforation area; Determine the drilling coordinates and vectors in the drilling area, and generate the through hole and its triangular mesh spatial model using a mesh subdivision algorithm based on the hole parameters; The overall three-dimensional data of the model and holes is stored in a computer storage unit.

2. The method for generating model holes according to claim 1, characterized in that, The process of determining the drilling coordinates and vectors in the drilling area, and generating a through-hole and its triangular mesh spatial model using a mesh subdivision algorithm based on the hole parameters, includes: Get the sum of the areas S1 of all triangular meshes in the punched area; The cross-sectional area S2 of the hole is obtained according to the preset hole diameter; The required number of holes N to be generated is determined based on the ratio of S1 to S2; In the punching area, the hole distribution positions are uniformly generated according to the number of holes N, and the punching coordinates and punching vectors of each hole in the punching area are determined. Based on the coordinates and vectors of each punch and the hole parameters, a through hole and its triangular mesh spatial model are generated using a mesh subdivision algorithm.

3. The method for generating model holes according to claim 1, characterized in that, Also includes: The overall 3D data is sliced ​​and slice image data is obtained.

4. The method for generating model holes according to claim 1 or 2, characterized in that, H is a preset parameter, and H is an integer or a decimal; N is an integer; S1 and S2 are integers or decimals.

5. A device for generating holes in a model, characterized in that, include: The model inner and outer shell grouping data acquisition module is used to traverse the model triangular mesh data and acquire the model's outer shell grouping data and the individual inner shell grouping data in the model; The inner separated shell determination module is used to obtain data of each inner shell group. Starting from the lowest point of the grid in each group, it searches the triangular grid from bottom to top according to the relationship of continuous adjacent and increasing height to obtain continuous adjacent triangular grid groups, and determines the group as the inner separated shell. The inner separation shell determination module is used to obtain the outer shell grouping data. Starting from the lowest point of the grid in this group, it searches the triangular grid from bottom to top according to the relationship of continuous adjacent and increasing height to obtain continuous adjacent triangular grid groups, and determines the group as the outer separation shell. The process cavity shell determination module is used to obtain the outer separation shell and determine the group of outer separation shells located in the upper layer as the process cavity shell; The process cavity shell perforation area determination module is used to obtain the triangular mesh within a height range of H mm from the lowest point in the process cavity shell and determine it as the perforation area. The inner separation shell perforation area determination module is used to obtain the triangular mesh within a height range of H mm from the lowest point in the inner separation shell and determine it as the perforation area. The hole generation module is used to determine the hole coordinates and vectors in the hole area, and to generate a through hole and its triangular mesh spatial model using a mesh subdivision algorithm based on the hole parameters. The 3D data storage module is used to store the overall 3D data of the model and holes in a computer storage unit.

6. The model hole generation device according to claim 5, characterized in that, The hole generation module 7 includes: The area sum acquisition module is used to obtain the sum of the areas S1 of all triangular meshes in the punched area; A hole cross-sectional area acquisition module is used to obtain the hole cross-sectional area S2 according to a preset hole diameter size; The hole quantity determination module is used to determine the required number of holes N to be generated based on the ratio of S1 and S2; The module for determining the drilling coordinates and vectors is used to uniformly generate the distribution positions of holes in the drilling area according to the number of holes N, and to determine the drilling coordinates and drilling vectors of each hole in the drilling area. The hole triangular mesh generation module is used to generate a through hole and its triangular mesh spatial model based on the coordinates and vectors of each hole and the hole parameters, using a mesh subdivision algorithm.

7. The model hole generation device according to claim 5, characterized in that, Also includes: The slice image data acquisition module is used to slice the overall 3D data and acquire slice image data.

8. An electronic device, characterized in that, include: At least one processing unit; and a storage unit communicatively connected to the at least one processing unit; wherein, The storage unit stores instructions that can be executed by the at least one processing unit. When the at least one processing unit executes the instructions, it implements the steps of the model hole generation method as described in any one of claims 1-3.

9. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores a computer program, which, when executed by the processing unit, implements the steps of the model hole generation method as described in any one of claims 1-3.

10. A computer program product, characterized in that, The computer program product includes computer instructions, which, when executed by a computer, implement the steps of the model hole generation method as described in any one of claims 1-3.