Method and system for acquiring centroid data of structure change in 3D printing process

Through the Grasshopper plug-in, the printing structure model is deconstructed in the Grasshopper software, the printing height and layered slice plane are calculated, and the center data of the printing layer or layered structure are obtained, which solves the problems of low computing efficiency and low accuracy in the prior art. It realizes efficient center-shaped data acquisition and printing path design.

CN119188944APending Publication Date: 2024-12-27CCCC FIRST HIGHWAY CONSULTANTS CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411478580.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The lack of a center-shaped data acquisition method based on the model printing process changes based on the 3D printing modeling and path planning software Grasshopper, resulting in low computational efficiency and low accuracy of center-of-gravity data, making it difficult to realize geometric center computing of complex models.

Method used

Through the Grasshopper plug-in, input the printing structure model and layer thickness data, deconstruct the model to obtain vertex data, calculate the printing height, create a layered slice plane, obtain the center of the printing layer or layered structure, and use the Rhino platform and Grasshopper visual programming The plug-in performs parameterization programming to achieve efficient batch calculation.

Benefits of technology

It significantly improves data acquisition efficiency, avoids cross-software data conversion problems and errors after format conversion, provides accurate center of gravity data, simplifies the printing path design process, and improves the printing success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119188944A_ABST
    Figure CN119188944A_ABST
Patent Text Reader

Abstract

The invention discloses a 3D printing process structure change centroid data acquisition method and system. The acquisition method comprises the steps that model data and printing layer thickness data of a printing structure are input; the input model is deconstructed, vertex data are obtained, the coordinate value range of the model in the lamination direction is obtained, and the printing height is obtained through calculation; layering the model to obtain the coordinate value of each printing layer along the lamination direction, and creating a layered slice plane; then, based on printing structure model data and layered slicing plane data, centroid data of all layers or overall centroid data of the laminated structure are obtained; the method is realized through a Grasshopper plug-in, processing of a changing model, calling of model data and batch calculation of centroid data in the printing process are realized, the data acquisition efficiency is remarkably improved, the problems of difficult data conversion, calculation result deviation and the like existing in cross-software calculation are avoided, and the method is suitable for large-scale popularization and application. And the obtained data can be directly used as a basis data source for subsequent printing path design, the process is simplified, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 3D printing intelligent construction technology, and in particular to a method and system for acquiring centroid data of structural changes during 3D printing. Background Art

[0002] Concrete 3D printing technology is a new construction method in the field of construction. Compared with traditional construction methods, concrete 3D printing technology has the advantages of fast construction speed, high material utilization rate, low construction cost, etc., and can also realize the manufacture of buildings with complex shapes. At present, concrete 3D printing technology has been widely studied and applied in the field of construction.

[0003] Many researchers are committed to improving the printing path, printing performance, increasing printing speed, optimizing structural design and other issues of concrete materials. Due to the particularity of 3D printing concrete materials, special-shaped printed structures with cantilever structures are prone to overall or local instability during the printing process, leading to collapse. According to existing research data, considering that 3D printing construction is a process of dynamic accumulation of structures, for continuously formed structures, their center of gravity will also change continuously with the progress of printing, and the center of gravity position is a major factor affecting the stability of the structure. Therefore, in the process of designing the printing path of such components, some design methods need to combine the center of gravity data of the printed components to complete the printing path design. The centroid refers to the area center of a plane figure or the volume center of a three-dimensional figure, that is, the geometric center of an object. In general, for the theoretical calculation of the center of gravity position of a 3D printed structure, it can be considered that the material is evenly distributed, that is, the center of gravity coincides with the centroid. Therefore, by obtaining the structural centroid data that changes during the printing process to guide the printing path design, the changes in the center of gravity position of the printing layer during the printing process can be fully planned to prevent the collapse of the structure during the printing process, thereby improving the printing success rate of columnar structures with cantilevers and other structures.

[0004] In the prior art, the centroid of each layer and the stacked structure under different printing progress during the printing process can be obtained by calculating the mathematical method of calculating the geometric center of two-dimensional graphics and three-dimensional structures. However, the number of geometric center calculations of printed layers or stacked structures under different printing processes is large. If the corresponding planes or models required for calculation are extracted separately, and then analyzed and calculated one by one through available mathematical software, there is not only the problem of cross-software model data format conversion, which affects the calculation efficiency and the convenience of data use, but also the converted data format and the original model will have unavoidable shape deviations, which will lead to inaccurate calculation results. In addition, it is difficult to implement conventional methods for calculating the geometric center of complex models. Therefore, this centroid acquisition method has problems such as low calculation and acquisition efficiency, and low accuracy of the obtained center of gravity data. Grasshopper is a commonly used software for 3D printing from modeling, slicing, path planning to printing control information conversion. At present, no method based on this software has been found to obtain the centroid data of the printed structure changes during the printing process. Therefore, it is necessary to develop a method for quickly obtaining the centroid data of the structure changes during 3D printing based on Grasshopper software. Summary of the invention

[0005] The purpose of the present invention is to solve the problem in the prior art that there is a lack of a method for acquiring centroid data of model printing process changes based on the 3D printing modeling and path planning software Grasshopper, and to provide a method and system for acquiring centroid data of structure changes in a 3D printing process.

[0006] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:

[0007] A method for acquiring centroid data of structural changes in a 3D printing process, wherein the acquisition method is implemented through a Grasshopper plug-in and comprises the following steps:

[0008] Input the model data and printing layer thickness data of the printing structure;

[0009] Deconstructing the input printing structure model to obtain vertex data of the deconstructed model, obtaining the coordinate value range of the printing structure model along the printing layer stacking direction according to the vertex data, and calculating the printing height of the printing structure model;

[0010] According to the printing height data and the printing layer thickness data, the coordinate values ​​of each slice plane along the printing layer stacking direction are calculated and obtained, and the coordinate values ​​of each slice plane along the printing layer stacking direction are used to create a plane perpendicular to the printing layer stacking direction, that is, to obtain the layered slice plane data;

[0011] If it is necessary to obtain the centroid data of the printed layer, based on the printed structure model data and the layered slice plane data, the intersection surfaces of each layered slice plane and the printed structure model are obtained, and the geometric center position of each intersection surface is obtained as the centroid data of different printed layers;

[0012] If it is necessary to obtain the overall centroid data of the layered structure, the segmentation plane is obtained based on the printed structure model data and the layered slice plane data, and the printed structure model is segmented using each segmentation plane. Then, the layered structure models that have been printed under different printing progress are screened out, and the volume center position of each layered structure model is obtained as the overall centroid data of different layered structures.

[0013] In the technical solution of the present invention, the input printing structure model is deconstructed to obtain vertex data, which is used to calculate the printing height. The printing structure model is layered according to the printing height and printing layer thickness data, and different layered slicing planes are created to clarify the position of each layered slicing plane. Then, based on the printing structure model data and the layered slicing plane data, the centroid data of the printing layer or the centroid data of the overall stacked structure are obtained respectively. By obtaining the structural centroid data that changes during the printing process, the printing path design of the structure is guided to prevent the structure from collapsing during the printing process, thereby improving the printing success rate of columnar structures with cantilevers and the like.

[0014] Grasshopper is a visual programming plug-in based on the Rhino platform. It is a plug-in that performs calculation processing through parameterized programming algorithms and realizes visualization through the Rhino platform. It is carried out through the basic logic of input parameters, calculation processing and output results. In the printing path design method that needs to consider the change of centroid, the software can be directly used to call the relevant data obtained by the calculation of the model centroid, which provides an efficient and convenient way for obtaining the centroid data of the printing structure during the printing process, and can avoid the problems of low calculation and acquisition efficiency and low accuracy of the obtained center of gravity data in the existing centroid acquisition method. The method of the present invention is implemented by the Grasshopper plug-in, which realizes the processing of the changing model during the printing process, the calling of model data, the batch calculation and visualization of the centroid data, etc., significantly improves the efficiency of data acquisition, avoids the problems of data conversion difficulty in cross-software calculation and the deviation of calculation results caused by the model error brought by the format conversion, and the obtained data can be directly used as the basis data source for subsequent printing path design, simplifying the process.

[0015] It should be noted that the printing layer stacking direction refers to the direction perpendicular to the printing plane during the printing process, and the centroid data of each printed layer refers to the centroid coordinate data of the intersection of each layered slice plane and the printed structure model. The stacked structure refers to the structure formed by the stacked printing layers that have been printed. When all the printing layers are printed, the stacked structure is the entire printed structure. The overall centroid data of the stacked structure refers to the centroid data of the entire printed stacked structure at different layered slice plane heights.

[0016] As a preferred solution of the present invention, the printing structure model is constructed through a Rhino platform or a Grasshopper plug-in.

[0017] As a preferred solution of the present invention, in the Grasshopper environment, the printing structure model data is input as parameters through the Brep operator, and the printing layer thickness data is input as parameters through the Number Slider operator.

[0018] As a preferred solution of the present invention, in the Grasshopper environment, the printing structure model is deconstructed by the operator Deconstruct Brep, and the output terminal Vertices obtains the vertex data of the deconstructed model.

[0019] As a more preferred embodiment of the present invention, the method for obtaining the printing height of the printing structure model is: in the Grasshopper environment, the Deconstruct operator is used to read the coordinates of the vertex data along the printing layer direction, the Bounds operator is used to count the coordinate value range of the vertex data along the printing layer direction, and the DeconstructDomain operator is used to extract the minimum and maximum values ​​of the coordinate value range, and then the Subtraction operator is used to calculate the difference between the maximum and minimum values, and the difference is used as the printing height data.

[0020] As a preferred embodiment of the present invention, the method for obtaining the coordinate values ​​of each slicing plane along the printing layer accumulation direction is as follows: for printing with equal layer thickness, an arithmetic sequence is established based on the minimum coordinate value in the vertex data and the printing layer thickness data to obtain the coordinate values ​​of each layered slicing plane along the printing layer accumulation direction, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slicing plane is the first term, and an arithmetic sequence is established with the printing layer thickness data as the tolerance, and each term value in the sequence is the coordinate value of each slicing plane along the printing layer accumulation direction; for printing with unequal layer thickness, an unequal sequence is established based on the minimum coordinate value in the vertex data and the printing layer thickness data to obtain the coordinate values ​​of each layered slicing plane along the printing layer accumulation direction, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slicing plane is the first term, and each printing layer thickness data is taken as the difference between two adjacent terms along the printing layer accumulation direction to establish an unequal sequence, and each term in the sequence is the coordinate value of each slicing plane along the printing layer accumulation direction.

[0021] As a preferred embodiment of the present invention, in the Grasshopper environment, for printing with equal layer thickness, based on the printing layer thickness data and the printing height, the number of printing layers is obtained through the Division and Round operators, and the minimum coordinate value in the vertex data, the printing layer thickness data and the number of printing layers are input into the Series operator to realize the construction of an arithmetic sequence with the minimum coordinate value in the vertex data, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slicing plane as the first term and the printing layer thickness as the tolerance, so as to obtain the coordinate value data of each slicing plane along the printing layer accumulation direction corresponding to different printing layers; for printing with unequal layer thickness, based on the printing layer thickness data and the minimum coordinate value in the vertex data, through the MassAddition and Addition operators, the minimum coordinate value in the vertex data is taken as the first term, and the thickness data of each printing layer is respectively constructed as the unequal difference series of the difference between two adjacent terms along the printing layer accumulation direction, so as to obtain the coordinate value data of each slicing plane along the printing layer accumulation direction corresponding to different printing layers.

[0022] As a more preferred embodiment of the present invention, the method for creating the layered slice plane is: the coordinate value z of each slice plane along the printing layer stacking direction is obtained. i Generate a series of points (0,0,z i ), and then use the XYPlane operator to create planes that pass through each point and are perpendicular to the printing layer stacking direction, so as to obtain different layered slicing planes.

[0023] As a preferred solution of the present invention, a method for obtaining the centroid data of the printed layer is as follows: in a Grasshopper environment, based on the printed structure model data and the layered slicing plane data, the intersection surfaces of each layered slicing plane and the printed structure model are obtained through a Brep Plane operator, and then the geometric center coordinate information of each intersection surface is calculated and obtained through an Area operator as the centroid data of different printed layers.

[0024] As a preferred solution of the present invention, a method for obtaining the overall centroid data of a stacked structure is provided: in a Grasshopper environment, based on the input layered slicing plane data and the printed structure model data, a rectangular surface that can wrap the printed structure model is created on each layered slicing plane through a Plane Through Shape operator as a splitting surface, the splitting surface data and the printed structure model data are input into a Split Brep operator to obtain the two-part model after segmentation, which are input into a TreeStatistics operator to return the data path names corresponding to the two-part model data in the data structure, and then based on the data path names returned by the TreeStatistics operator, the printed stacked structure models are screened out through a Split Tree operator, and the volume center coordinate information of each stacked structure model is calculated and obtained.

[0025] Another aspect of the present invention provides a system for acquiring centroid data of structural changes in a 3D printing process, comprising at least one processor and a memory communicatively connected to the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for acquiring centroid data of structural changes in the 3D printing process.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] 1. The present invention provides a method for acquiring centroid data of structural changes during 3D printing, deconstructing the input printing structure model to obtain vertex data, thereby calculating the printing height, and layering the printing structure model according to the printing height and printing layer thickness data, creating different layered slice planes, and then acquiring the printing layer centroid data or the overall centroid data of the layered structure based on the printing structure model data and layered slice plane data. The acquisition method is implemented through the Grasshopper plug-in, which realizes the processing of the changing model during the printing process, the calling of model data, the batch calculation of centroid data, etc., significantly improving the efficiency of data acquisition, avoiding the difficulty of data conversion in cross-software calculations and the deviation of calculation results caused by the model error after format conversion, and simplifying the process.

[0028] 2. The centroid data obtained by the method of the present invention covers the centroid data of the slices and stacked structures at the corresponding heights of each slice plane in the printing process, and is applicable to different printed structures of parallel slices. The obtained centroid data can be directly used as the data source for the subsequent printing path design, so that the fluctuation of the structural center of gravity position offset can be controlled within a certain range during the path design process, effectively reducing the probability of printing failures such as structural overturning and local collapse during the printing and construction process, so as to achieve the purpose of improving the stability of the printing process and increasing the printing success rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of a method for acquiring centroid data of structural changes in a 3D printing process according to the present invention;

[0030] Figure 2 It is a structural schematic diagram of the columnar printing structure in Example 2;

[0031] Figure 3 A schematic diagram of a visualized process for obtaining centroid data of each printed layer of the printing structure in Example 2;

[0032] Figure 4 Creating a schematic diagram for the layered slicing plane of the columnar printed structure in Example 2;

[0033] Figure 5 A schematic diagram of identifying the centroid position of each printing layer of the columnar printing structure in Example 2;

[0034] Figure 6 This is a schematic diagram of identifying the overall centroid position of the columnar printed structure stacking structure in Example 2. DETAILED DESCRIPTION

[0035] In order to more clearly describe the invention purpose, technical scheme and technical effect advantages in the specific implementation case of the present invention, the scheme in the specific embodiment will be described in detail in combination with the drawings of the specification of the present invention. The specific technical scheme involved in the following specific embodiments is only for a clear and complete description of the innovative technical scheme of the present invention. It is only a part of the specific implementation scheme that can be adopted by the present invention, not all embodiments, and should not be understood as a limitation on the innovative scheme of the present invention. Any scheme adopting the same inventive concept of the present invention should be included in the protection scope of the present invention.

[0036] Secondly, the description of the drawings in the specific embodiments of the present invention is only for the convenience of technical personnel to understand the solution of the present invention. The partial details in the drawings are for the convenience of clearly presenting the technical solution. It should not be considered that all technical features in the drawings must be included in the specific implementation cases, and the detailed features in the drawings should not be identified as additional limitations on the innovative technical solution of the present invention. The components in the various embodiments described and shown in the drawings can be combined and arranged according to different configurations, and these changes in combination and arrangement should be identified as part of the entire embodiment of the innovative solution of the present invention and included in the scope of protection of the present invention.

[0037] In summary, the schemes or descriptions presented in the specific embodiments and drawings of the present invention are not intended to limit the scope of protection claimed, but are merely selected embodiments / cases to help technicians understand the relevant innovative solutions. Based on these embodiments, all other equivalent or parallel embodiments obtained by those skilled in the art without creative work are within the scope of protection claimed by the present invention.

[0038] Example 1

[0039] This embodiment provides a method for obtaining centroid data of structural changes in a 3D printing process, which is implemented through a Grasshopper plug-in, such as Figure 1 As shown, the following steps are included:

[0040] S1. Input the model data and printing layer thickness data of the printing structure.

[0041] The printing structure model is constructed through the Rhino platform or Grasshopper plug-in; in the Rhino software, the model is established according to the printing structure design requirements, and then the printing structure model is selected and given to the Brep operator in the Grasshopper software as the model data input, or the printing structure model can be directly parameterized through the Grasshopper software.

[0042] In the Grasshopper environment, the printing structure model data is input through the Brep operator, and the printing layer thickness data is input through the Number Slider operator.

[0043] S2. Deconstruct the input printing structure model to obtain vertex data of the deconstructed model, obtain the coordinate value range of the printing structure model along the printing layer stacking direction according to the vertex data, and calculate the printing height of the printing structure model.

[0044] In the present invention, the printing layer stacking direction refers to the direction in which the printed structure is stacked during the printing process, that is, the direction perpendicular to the printing plane. For example, an XYZ coordinate system is established for the printed structure model, wherein the length direction of the printed structure is the X-axis direction, the width direction of the printed structure is the Y-axis direction, the height direction of the printed structure is the Z-axis direction, the XY plane is the printing plane, and the printing layer stacking direction is the Z-axis direction. A vertex refers to a corner point of the printed structure model.

[0045] In the Grasshopper environment, the deconstruction of the model is realized through the operator Deconstruct Brep, and the output terminal Vertices obtains the vertex data after the model is deconstructed. The method for calculating the printing height of the printed structure model is: use the operator Deconstruct to read the coordinates of the vertex data along the printing layer direction, use the operator Bounds to count the coordinate value range of the vertex data along the printing layer direction, and use the operator Deconstruct Domain to extract the minimum and maximum values ​​of the coordinate value range, and then use the operator Subtraction to calculate the difference between the maximum and minimum values, and use the difference as the printing height data. For the established XYZ coordinate system, the coordinate value range of the vertex data along the printing layer direction is the Z coordinate value range.

[0046] S3. According to the printing height data and the printing layer thickness data, the printed structure model is layered, and the coordinate value of each slice plane along the printing layer stacking direction is calculated and obtained. The coordinate value of each slice plane along the printing layer stacking direction creates a plane perpendicular to the printing layer stacking direction, that is, the layered slice plane data is obtained.

[0047] For printing with equal layer thickness, an arithmetic sequence is established based on the minimum coordinate value in the vertex data, the printing height data, and the printing layer thickness data, and then the coordinate value of each layered slicing plane along the printing layer accumulation direction is obtained, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slicing plane is the first term, and an arithmetic sequence is established with the printing layer thickness data as the tolerance, and the last term is determined according to the printing height data. The values ​​of each term in the sequence are the coordinate values ​​of each slicing plane along the printing layer accumulation direction; for printing with unequal layer thickness, an unequal sequence is established based on the minimum coordinate value in the vertex data, the printing height data, and the printing layer thickness data, and then the coordinate value of each layered slicing plane along the printing layer accumulation direction is obtained, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slicing plane is the first term, and each printing layer thickness data is taken as the difference between two adjacent terms along the printing layer accumulation direction to establish an unequal sequence, and the terms in the sequence are the coordinate values ​​of each slicing plane along the printing layer accumulation direction. Through the above process, the number series is established to obtain the Z-axis coordinate value data corresponding to each slicing plane. The coordinate value of each layered slicing plane along the printing layer stacking direction is the Z coordinate value. Based on the Z coordinate value of each slicing plane, each XY slicing plane perpendicular to the Z-axis direction is created.

[0048] Equal layer thickness printing means that the thickness of each layer is the same during the printing process, and unequal layer thickness printing means that the thickness of different printed layers are not necessarily the same, that is, there are at least two layers of printing layers with different thicknesses.

[0049] In the Grasshopper environment, for printing with equal layer thickness, based on the layer thickness data and printing height, the number of printing layers is obtained through the Division and Round operators, and the minimum coordinate value in the vertex data, the layer thickness data and the number of printing layers are input into the Series operator to realize the construction of an arithmetic sequence with the minimum coordinate value in the vertex data, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slice plane as the first term and the layer thickness as the tolerance, so as to obtain the coordinate value data of each slice plane along the printing layer accumulation direction corresponding to different printing layers; for printing with unequal layer thickness, based on the layer thickness data and the minimum coordinate value in the vertex data, through the MassAddition and Addition operators, the minimum coordinate value in the vertex data is taken as the first term, and the thickness data of each print layer is respectively constructed as the difference between the two adjacent terms along the printing layer accumulation direction. The coordinate value data of each slice plane along the printing layer accumulation direction corresponding to different printing layers is obtained.

[0050] The above obtained different coordinate value data is used as the Z coordinate value through the Construct Point operator to generate a series of points (0,0,z i ), and then use the XYPlane operator to create XY slice planes that pass through each point and are perpendicular to the Z axis, thus completing the calculation and creation of the layered slice planes.

[0051] S4. Obtain the centroid data of the printed layer and the centroid data of the entire stacked structure.

[0052] The centroid position data is divided into two categories: one is the centroid data of the printed layer; the other is the centroid data of the entire printed stacked structure. In the process of obtaining the centroid, the printed structure is assumed to be an object with uniform material mass distribution in the theoretical calculation process, and the center of gravity position is the centroid (geometric center) position. The centroid data of each printed layer refers to the centroid coordinate data of the intersection surface of each layered slicing plane and the designed printing structure model. The stacked structure refers to the structure formed by the stacking of the currently printed layers. When all the printed layers are printed, the stacked structure is the entire printed structure. The overall centroid data of the stacked structure refers to the centroid data of the entire printed stacked structure at different layered slicing plane heights.

[0053] (1) Centroid data of each printed layer

[0054] A method for obtaining the centroid data of a printed layer: based on the printed structure model data and the layered slice plane data, the intersection surfaces of each layered slice plane and the printed structure model are obtained, and the geometric center position of each intersection surface is obtained as the centroid data of different printed layers;

[0055] The acquisition process is as follows: in the Grasshopper environment, based on the printing structure model data and the layered slicing plane data, the Brep Plane operator is used to obtain the intersection surfaces of each layered slicing plane and the printing structure model, and then the Area operator is used to calculate and obtain the geometric center coordinate information of each intersection surface.

[0056] (2) Overall centroid data of the stacked structure

[0057] A method for obtaining the overall centroid data of the stacked structure: based on the layered slice plane data and the printed structure model data, a segmentation plane is obtained, each segmentation plane is used to segment the printed structure model, and then the stacked structure models that have been printed under different printing progress are screened out, and the geometric center position of each stacked structure model is obtained as the overall centroid data of different stacked structures;

[0058] The acquisition process is as follows: based on the input layered slicing plane data and printed structure model data, a rectangular surface that can wrap the printed structure model is created on each layered slicing plane through the PlaneThrough Shape operator as a split surface, and the split surface data and the printed structure model data are input into the Split Brep operator to obtain the two-part model after segmentation, which is then input into the Tree Statistics operator to return the data path name corresponding to the two-part model data in the data structure, and then based on the data path name returned by the Tree Statistics operator, the Split Tree operator is used to filter out the printed layered structure model, and the Volume operator is input to calculate and obtain the volume center coordinate information of each layered structure model.

[0059] The above-mentioned centroid data acquisition method is applicable to concrete printing structures based on the lamination process. The shape of the printed structure is not limited. Solid, hollow, thin-walled and other printed structures can all adopt the method of the present invention. It has a wide range of applications, high versatility and high data acquisition efficiency.

[0060] The method of the present invention relies on the Rhino three-dimensional modeling platform and the parametric programming design software Grasshopper running in the Rhino environment. By calling the recognized model data and tree data structure, the processing of the changing model in the printing process, the calling of model data, the batch calculation and visualization of the centroid data are realized, and the data extraction and export links of the switching software are omitted, that is, the extra cost and error risk required for data circulation are avoided; if the centroid data of the structure that changes during the printing process is calculated without the platform, it is necessary to go through the links of data extraction and conversion. The present invention is based on the calculation function of the centroid data of the structure of the printing process developed by Grasshopper, which significantly improves the efficiency of data acquisition and further improves the efficiency of printing path design.

[0061] Example 2

[0062] The printing structure model of this embodiment is as follows Figure 2 As shown, it is a columnar printing structure, and the method of Example 1 is used to obtain the centroid data of the printing layer and the centroid data of the whole stacked structure, as shown in FIG. Figure 3 As shown, the following steps are included:

[0063] S1. The printing structure model data is input as parameters through the Brep operator, and the printing layer thickness data is input as parameters through the Number Slider operator;

[0064] S2. Deconstruct the printing structure model through the operator Deconstruct Brep, and obtain the vertex data of the deconstructed model at the output terminal Vertices; use the operator Deconstruct to read the coordinates along the Z axis in the vertex data, use the operator Bounds to count the coordinate value range of the vertex data along the Z axis, and use the operator DeconstructDomain to extract the minimum and maximum values ​​of the Z coordinate value range, and then use the operator Subtraction to calculate the difference between the maximum and minimum values, and use the difference as the printing height data; establish the XYZ coordinate system, and the printing layer stacking direction is the Z axis direction.

[0065] S3. For printing with equal layer thickness, based on the printing layer thickness data and printing height, the number of printing layers is obtained through the Division and Round operators, and the minimum coordinate value in the vertex data, the printing layer thickness data and the number of printing layers are input into the Series operator to realize the construction of an arithmetic sequence with the minimum coordinate value in the vertex data, that is, the coordinate value along the printing layer accumulation direction corresponding to the first slice plane as the first term and the printing layer thickness as the tolerance, so as to obtain the coordinate value data of each slice plane along the Z axis direction corresponding to different printing layers; for printing with unequal layer thickness, based on the printing layer thickness data and the minimum coordinate value in the vertex data, the MassAddition and Addition operators are connected to realize the construction of an unequal series with the minimum coordinate value in the vertex data as the first term and the thickness data of each print layer as the difference between two adjacent terms along the printing layer accumulation direction, so as to obtain the coordinate value data of each slice plane along the Z axis direction corresponding to different printing layers; the obtained different coordinate value data are used as the Z coordinate value through the Construct Point operator to generate a series of points (0,0,z i ), and then use the XYPlane operator to create XY slice planes that pass through each point and are perpendicular to the Z axis, such as Figure 4 As shown;

[0066] S4, based on the printed structure model data and the layered slice plane data, the Brep Plane operator is used to obtain the intersection surface of each layered slice plane and the printed structure model, and then the geometric center coordinate information of each intersection surface is calculated by the Area operator as the centroid data of different printed layers, such as Figure 5 As shown;

[0067] Based on the input layered slice plane data and printed structure model data, a rectangular surface that can wrap the printed structure model is created on each layered slice plane through the Plane Through Shape operator as a split surface. The split surface data and the printed structure model data are input into the Split Brep operator to obtain the two-part model after segmentation. The split surface data and the printed structure model data are input into the Tree Statistics operator to return the data path name corresponding to the two parts of the model data in the data structure. Then, based on the data path name returned by the Tree Statistics operator, the printed layered structure model is filtered out through the Split Tree operator, and the volume center coordinate information of each layered structure model is calculated and obtained as the overall centroid data of different layered structures, such as Figure 6 shown.

[0068] Example 3

[0069] The present embodiment provides a system for acquiring centroid data of structural changes in a 3D printing process, comprising at least one processor and a memory communicatively connected to the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for acquiring centroid data of structural changes in the 3D printing process of embodiment 1.

[0070] For those skilled in the art, when understanding the solutions described in the specific embodiments of the present invention, they can refer to the conventional technical manuals in the field. At the same time, for the places where the above-mentioned terms appear, they can make appropriate understandings or adjustments for reference, and deduce the implementation of the same or similar technical solutions without paying any creative work.

[0071] The above embodiments describe only the basic principles, main features and / or advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and the invention content of the specification only describe the principles or specific cases of the present invention. Without departing from the essence of the innovative idea of ​​the present invention, the innovative scheme of the present invention may be subject to various changes and improvements, and these changes and improvements all fall within the scope of protection required by the present invention.

Claims

1. A method for obtaining centroid data of structural changes in a 3D printing process, characterized in that: The acquisition method is implemented through a Grasshopper plug-in, including the following steps: Input printing structure model data and printing layer thickness data; Deconstructing the input printing structure model to obtain vertex data of the deconstructed model, obtaining the coordinate value range of the printing structure model along the printing layer stacking direction according to the vertex data, and calculating the printing height of the printing structure model; According to the printing height data and the printing layer thickness data, the coordinate values ​​of each slice plane along the printing layer stacking direction are calculated and obtained, and the coordinate values ​​of each slice plane along the printing layer stacking direction are used to create a plane perpendicular to the printing layer stacking direction to obtain layered slice plane data; If it is necessary to obtain the centroid data of the printed layer, based on the printed structure model data and the layered slice plane data, the intersection surfaces of each layered slice plane and the printed structure model are obtained, and the geometric center position of each intersection surface is obtained as the centroid data of different printed layers; If it is necessary to obtain the overall centroid data of the layered structure, the segmentation plane is obtained based on the printed structure model data and the layered slice plane data, and the printed structure model is segmented using each segmentation plane. Then, the layered structure models that have been printed under different printing progress are screened out, and the volume center position of each layered structure model is obtained as the overall centroid data of different layered structures.

2. The method for obtaining centroid data of structural changes in a 3D printing process according to claim 1, characterized in that: In the Grasshopper environment, the printing structure model data is input as parameters through the Brep operator, and the printing layer thickness data of the printing structure is input as parameters through the Number Slider operator.

3. The method for obtaining centroid data of structure change in a 3D printing process according to claim 1, characterized in that: In the Grasshopper environment, the printing structure model is deconstructed through the operator Deconstruct Brep, and the output terminal Vertices obtains the vertex data of the deconstructed model.

4. The method for obtaining centroid data of structure change in a 3D printing process according to claim 3, characterized in that: The method for calculating the printing height of the printing structure model is as follows: using the operator Deconstruct to read the coordinates of the vertex data along the printing layer direction, using the operator Bounds to count the coordinate value range of the vertex data along the printing layer direction, and using the operator Deconstruct Domain to extract the minimum and maximum values ​​of the coordinate value range, and then using the operator Subtraction to calculate the difference between the maximum and minimum values, and using the difference as the printing height data.

5. The method for obtaining centroid data of structure change in a 3D printing process according to claim 1, characterized in that: The method for obtaining the coordinate value of each slice plane along the printing layer stacking direction is as follows: for printing with equal layer thickness, an arithmetic progression is established based on the minimum coordinate value in the vertex data and the printing layer thickness data to obtain the coordinate value of each layered slice plane along the printing layer stacking direction; For printing with unequal layer thickness, an unequal difference series is established based on the minimum coordinate value in the vertex data and the printing layer thickness data to obtain the coordinate value of each layered slice plane along the printing layer stacking direction.

6. The method for obtaining centroid data of structural changes in a 3D printing process according to claim 5, characterized in that: In the Grasshopper environment, for printing with equal layer thickness, based on the layer thickness data and printing height, the number of printing layers is obtained through the Division and Round operators, and the minimum coordinate value in the vertex data, the layer thickness data and the number of printing layers are input into the Series operator to realize the construction of an arithmetic sequence with the minimum coordinate value in the vertex data as the first term and the layer thickness as the tolerance, and the coordinate value data of each slice plane corresponding to different printing layers along the printing layer stacking direction are obtained; for printing with unequal layer thickness, based on the layer thickness data and the minimum coordinate value in the vertex data, the MassAddition and Addition operators are connected to realize the construction of an unequal series with the minimum coordinate value in the vertex data as the first term, and the thickness data of each print layer are respectively taken as the difference between two adjacent terms along the printing layer stacking direction, and the coordinate value data of each slice plane corresponding to different printing layers along the printing layer stacking direction are obtained.

7. The method for obtaining centroid data of structure change in 3D printing process according to claim 6, characterized in that: The method of creating layered slice planes is: the coordinate values ​​z of each slice plane along the printing layer stacking direction are obtained i Generate a series of points (0,0,z i ), and then use the XYPlane operator to create planes that pass through each point and are perpendicular to the printing layer stacking direction to obtain different layered slicing planes.

8. A method for acquiring centroid data of structural changes in a 3D printing process according to any one of claims 1 to 7, characterized in that: Method for obtaining centroid data of printed layers: In the Grasshopper environment, based on the printed structure model data and the layered slicing plane data, the Brep Plane operator is used to obtain the intersection surfaces of each layered slicing plane and the printed structure model, and then the geometric center coordinate information of each intersection surface is calculated and obtained through the Area operator.

9. A method for acquiring centroid data of structural changes in a 3D printing process according to any one of claims 1 to 7, characterized in that: Method for obtaining the overall centroid data of the layered structure: In the Grasshopper environment, based on the input layered slicing plane data and the printed structure model data, a rectangular surface that can wrap the printed structure model is created on each layered slicing plane through the Plane Through Shape operator as a split surface, and the split surface data and the printed structure model data are input into the Split Brep operator to obtain the two-part structure model after segmentation, which is then input into the Tree Statistics operator to return the data path name corresponding to the two-part model in the data structure, and then based on the data path name returned by the Tree Statistics operator, the printed layered structure model is filtered out through the Split Tree operator, and the volume center coordinate information of each layered structure model is calculated and obtained.

10. A system for acquiring centroid data of structural changes during 3D printing, comprising at least one processor and a memory in communication with the at least one processor; the memory stores instructions that can be executed by the at least one processor, characterized in that: The instructions are executed by at least one processor so that the at least one processor can execute the method for acquiring centroid data of structural changes in a 3D printing process as described in any one of claims 1-9.

Citation Information

Cited By

  • 3D printing method for concrete thin-wall component

    CN121973308A

  • A method for 3D printing thin-walled concrete components

    CN121973308B