3D Model Construction Method, System, Medium and Device Driven by Fabric Simulation
Through the cloth simulation-driven method, the cloth simulation solver is used to generate and optimize the cloth model, which solves the complex and time-consuming problem of building complex models in the existing technology, and realizes simplified operation and efficient generation.
Patent Information
- Application Number
- CN202211336070.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-10-28
AI Technical Summary
In the existing three-dimensional modeling technology, reverse engineering and forward design methods are complex and time-consuming to operate, especially the construction process of complex models is cumbersome, and users need to master a variety of three-dimensional modeling software.
The fabric simulation-driven method is used to perform fabric simulation using a fabric simulation solver, and the fabric model sequence is generated based on the initial parameters. The models with obvious characteristics and small similarity are screened through the principle of initial screening, and smoothing and stability optimization are performed, and finally converted into a volumetric solid model.
The three-dimensional model construction process is simplified, the user's dependence on three-dimensional modeling software is reduced, and the construction efficiency is improved, especially the generation speed of complex models.
Smart Images

Figure CN115618628B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of 3D modeling, and particularly relates to a method, system, medium and device for constructing a 3D model driven by cloth simulation. Background Art
[0002] The statements in this part only provide background technical information related to the present invention, and do not necessarily constitute prior art.
[0003] At present, there are mainly two methods for obtaining 3D models: reverse engineering and forward design. Reverse engineering is to scan an object and then perform 3D reconstruction to convert the object into a digital model. This type of model lacks structural information and is difficult to reuse. Forward design is to use computer-aided design 3D modeling software for modeling, which is the most used modeling method at present. However, the inventor found that when users model through this method, they must master the use of multiple 3D modeling software. For complex 3D models, constructing them by operating basic geometric models is a complex and time-consuming process. Summary of the Invention
[0004] To solve the technical problems in the above background art, the present invention provides a method, system, medium and device for constructing a 3D model driven by cloth simulation, which is simple to operate and less time-consuming.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] The first aspect of the present invention provides a method for constructing a 3D model driven by cloth simulation.
[0007] A method for constructing a 3D model driven by cloth simulation includes:
[0008] Based on the initial parameters of the cloth, force field and model, use a cloth simulation solver to perform cloth simulation to obtain a series of cloth model sequences; wherein, the cloth is used as the basis of the model to reflect the combined action of the force field and the model;
[0009] Based on a preset preliminary screening principle, preliminarily screen the cloth model sequences; wherein, the preliminary screening principle includes retaining the cloth models with obvious features in the model sequence and retaining the cloth models with a similarity less than a preset similarity threshold in the model sequence; the cloth models with obvious features are the cloth models corresponding to the maximum value points on the model evaluation function image;
[0010] Determine the cloth models that meet the preset requirements from the preliminarily screened cloth models;
[0011] Smooth and optimize the stability of the cloth models that meet the preset requirements to obtain optimized cloth models and convert them into solid models with volume for 3D printing.
[0012] As an implementation manner, the image of the model evaluation function is a curve graph of the comprehensive score function of the volume score and the curvature score of the fabric model; wherein, the curvature score of the fabric model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each fabric model, the one with the smallest volume is taken as the volume of the hybrid bounding box and used as the volume score of the corresponding fabric model.
[0013] As an implementation manner, the fabric adopts a spring-particle model.
[0014] As an implementation manner, during the process of using a fabric simulation solver to perform fabric simulation, the Blender simulation solver is used to simulate the fabric model, and the fabric model is output every set time.
[0015] As an implementation manner, during the process of using Laplacian smoothing to perform smoothing optimization on the fabric model that meets the preset requirements.
[0016] As an implementation manner, the process of converting the optimized fabric model into a solid model with volume is as follows:
[0017] The surface feature of the fabric model is offset by a set distance along a certain direction to create a new surface. The offset distance is the thickness of the surface thickening. The new surface is the offset surface, and then the two surfaces are connected to generate a solid model with volume.
[0018] The second aspect of the present invention provides a 3D model construction system driven by fabric simulation.
[0019] A 3D model construction system driven by fabric simulation includes:
[0020] A fabric model sequence acquisition module, which is used to perform fabric simulation using a fabric simulation solver based on the initial parameters of the fabric, force field, and model, and obtain a series of fabric model sequences; wherein, the fabric serves as the basis of the model to reflect the combined action of the force field and the model;
[0021] A fabric model preliminary screening module, which is used to preliminarily screen the fabric model sequence based on preset preliminary screening principles; wherein, the preliminary screening principles include retaining the fabric models with obvious features in the model sequence and retaining the fabric models with a similarity less than a preset similarity threshold in the model sequence; the fabric models with obvious features are the fabric models corresponding to the maximum value points on the image of the model evaluation function;
[0022] A fabric model determination module, which is used to determine the fabric models that meet the preset requirements from the preliminarily screened fabric models;
[0023] The fabric model optimization and printing module is used to smooth and optimize the stability of the fabric model that meets the preset requirements, obtain the optimized fabric model and convert it into a volumetric solid model for 3D printing.
[0024] As an implementation, the image of the model evaluation function is a composite score function curve of the volume score and the curvature score of the fabric model; among them, the curvature score of the fabric model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each fabric model, the one with the smallest volume is taken as the volume of the hybrid bounding box and used as the volume score of the corresponding fabric model.
[0025] As an implementation, the fabric adopts a spring-particle model.
[0026] As an implementation, during the process of using the fabric simulation solver for fabric simulation, the Blender simulation solver is used to simulate the fabric model, and the fabric model is output once every set time.
[0027] As an implementation, during the process of smoothing and optimizing the fabric model that meets the preset requirements by using Laplacian smoothing.
[0028] As an implementation, the process of converting the optimized fabric model into a volumetric solid model is as follows:
[0029] The surface feature of the fabric model is offset by a set distance in a certain direction to create a new surface. The offset distance is the thickness of the surface thickening. The new surface is the offset surface, and then the two surfaces are connected to generate a volumetric solid model.
[0030] The third aspect of the present invention provides a computer-readable storage medium.
[0031] A computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the steps in the fabric simulation-driven 3D model construction method as described above.
[0032] The fourth aspect of the present invention provides an electronic device.
[0033] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps in the fabric simulation-driven 3D model construction method as described above.
[0034] Compared with the prior art, the beneficial effects of the present invention are:
[0035] In the present invention, when a user constructs a complex 3D model, there is no need to master 3D modeling software. The user only needs to clarify the setting requirements of the 3D model, and then can use a cloth simulation solver to perform cloth simulation, obtaining a series of cloth model sequences. After preliminary screening, a cloth model that meets the preset requirements is determined, and then smoothed and optimized for stability. Finally, the optimized cloth model is obtained and converted into a volumetric solid model for 3D printing. For users, the operation process is complex and time-consuming, and the efficiency of constructing 3D models is improved.
[0036] Advantages of additional aspects of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings forming a part of this specification are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention.
[0038] Figure 1 It is a flowchart of a method for constructing a 3D model driven by cloth simulation according to an embodiment of the present invention;
[0039] FIG. 2(a) is a basic model diagram according to an embodiment of the present invention;
[0040] FIG. 2(b) is a cloth model diagram according to an embodiment of the present invention;
[0041] Figure 3 It is a schematic diagram of a model sequence generated by simulation according to an embodiment of the present invention;
[0042] Figure 4 It is a schematic diagram of an evaluation function according to an embodiment of the present invention;
[0043] Figure 5 It is a schematic diagram of a preliminary screening model according to an embodiment of the present invention;
[0044] FIG. 6(a) is a schematic diagram before model smoothing according to an embodiment of the present invention;
[0045] FIG. 6(b) is a schematic diagram of the effect after model smoothing according to an embodiment of the present invention;
[0046] Figure 7 It is a schematic diagram of adding a model support base according to an embodiment of the present invention;
[0047] FIG. 8(a) is a schematic diagram of synthesizing an initial solid model from an open surface model according to an embodiment of the present invention;
[0048] FIG. 8(b) is a schematic diagram of synthesizing an intermediate solid model from an open surface model according to an embodiment of the present invention;
[0049] Figure 8(c) is a schematic diagram of the solid model after the synthesis of the open surface model in the embodiment of the present invention;
[0050] Figure 9(a) shows the rendering result 1 in the embodiment of the present invention;
[0051] Figure 9(b) shows the rendering result 2 in the embodiment of the present invention;
[0052] Figure 9(c) shows the rendering result 3 in the embodiment of the present invention;
[0053] Figure 9(d) shows the rendering result 4 in the embodiment of the present invention;
[0054] Figure 9(e) shows the rendering result 5 in the embodiment of the present invention;
[0055] Figure 9(f) shows the rendering result 6 in the embodiment of the present invention;
[0056] Figure 9(g) shows the rendering result 7 in the embodiment of the present invention;
[0057] Figure 9(h) shows the rendering result 8 in the embodiment of the present invention;
[0058] Figure 9(i) shows the rendering result 9 in the embodiment of the present invention;
[0059] Figure 9(j) shows the rendering result 10 in the embodiment of the present invention;
[0060] Figure 9(k) shows the rendering result 11 in the embodiment of the present invention;
[0061] Figure 9(l) shows the rendering result 12 in the embodiment of the present invention;
[0062] Figure 9(m) shows the rendering result 13 in the embodiment of the present invention;
[0063] Figure 9(n) shows the rendering result 14 in the embodiment of the present invention;
[0064] Figure 9(o) shows the rendering result 15 in the embodiment of the present invention;
[0065] Figure 9(p) shows the rendering result 16 in the embodiment of the present invention;
[0066] Figure 10(a) shows the printing result 1 in the embodiment of the present invention;
[0067] Figure 10(b) shows the printing result 2 in the embodiment of the present invention;
[0068] Figure 10(c) shows the printing result 3 in the embodiment of the present invention;
[0069] Figure 10(d) shows the printing result 4 in the embodiment of the present invention. Detailed implementation manners
[0070] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0071] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which the present invention belongs.
[0072] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular forms are also intended to include the plural forms. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0073] Embodiment 1
[0074] Referring to Figure 1 , this embodiment provides a method for constructing a 3D model driven by cloth simulation, which specifically includes the following steps:
[0075] Step 1: Based on the initial parameters of the cloth, force field, and model, use a cloth simulation solver to perform cloth simulation to obtain a series of cloth model sequences; wherein, the cloth serves as the basis of the model to reflect the combined action of the force field and the model.
[0076] All model generation is based on the changes of the cloth in the force field. The cloth uses the classic "spring-particle" model. The parameters affecting the properties of the cloth mainly include the stiffness coefficients of the shear spring, structural spring, and bending spring, as well as the mass of the particles. In addition, the area and shape of the cloth are also factors affecting the model. These are the set parameters.
[0077] Set the basic model as the boundary condition of the simulation, so that the cloth collides with the basic model, and a cloth model similar to the basic model can be generated. The basic model is shown in Figure 2(a), and the cloth model is shown in Figure 2(b).
[0078] In order to make the cloth and the model collide and contact as much as possible, we use a wind force facing the model and place the cloth in the direction perpendicular to the force, so that the cloth can reflect the basic shape of the model to the greatest extent. And the direction of the force is defined by the user himself.
[0079] Specifically, the Blender simulation solver is used to simulate the cloth model, and the basic principle is Newton's second law. The cloth model is output once every certain period of time. The user can define the output interval time of the cloth model by themselves and freely choose the time to stop the simulation. The output model sequence is as Figure 3 shown.
[0080] Step 2: Preliminarily screen the cloth model sequence based on a preset preliminary screening principle; among them, the preliminary screening principle includes retaining the cloth models with obvious features in the model sequence and retaining the cloth models with a similarity less than the preset similarity threshold in the model sequence; the cloth model with obvious features is the cloth model corresponding to the maximum value point on the model evaluation function image.
[0081] In step 2, the process of preliminarily screening the cloth model sequence based on the preset preliminary screening principle is as follows:
[0082] Step (2-1): Calculate the volume score.
[0083] Calculate the volume score. Use the hybrid bounding box for calculation. First, we solved the geometric center of the object, and then defined this geometric center as the rotation center of the model. The model is rotated 6 times around the rotation center along the X direction, Y direction, and Z direction respectively, 15° each time, for a total of 90°, and all the main directions can be approximately enumerated. A total of 343 models in different directions are enumerated. For each enumerated model, its axis-aligned bounding box is calculated, and then among these 343 axis-aligned bounding boxes, the one with the smallest volume is taken as the volume of the hybrid bounding box. This volume is used as the volume score of the model.
[0084] In order for the volume to be used in the comprehensive evaluation function, the volume score needs to be normalized. The number is changed to a decimal between [0, 1]. For each score x, the normalized score x′ is calculated. The calculation formula is
[0085]
[0086] Step (2-2): Calculate the curvature score. Our purpose is to use curvature to reflect the bending degree of the model. Therefore, the mean curvature is not suitable as our evaluation criterion. Therefore, we use the Gaussian curvature for evaluation. K i is the Gaussian curvature of each vertex, and A i refers to the surface area corresponding to each vertex. is equal to the difference between the sum of the angles after all the triangular meshes connecting the vertices are unfolded onto a two-dimensional plane and 2π.
[0087] The calculation formula is:
[0088]
[0089] A i refers to the surface area corresponding to each vertex. is the sum of the angles of all the patches corresponding to the vertex in question. Our aim is to evaluate the degree of curvature of the surface, and we are not concerned whether the surface is a spherical surface or a hyperbolic surface. Therefore, instead of using the true Gaussian curvature, we only care about the absolute value of the Gaussian curvature. Thus, we use the absolute value of the Gaussian curvature for evaluation. The overall curvature score of this model is defined as the sum of the Gaussian curvatures of each point C i on the model.
[0090]
[0091] In order for the curvature to be used in the comprehensive evaluation function, the curvature score needs to be normalized. The number is changed to a decimal between [0, 1]. For each score x, the normalized score x′ is calculated using the formula
[0092]
[0093] Step (2-3): Calculate the comprehensive score. In order to comprehensively evaluate the volume score and the curvature score of the model, we propose the concept of the comprehensive score for scoring the model as a whole. Denote it as E i Specific calculation method:
[0094] E i = C i + V i
[0095] The curve graphs of the volume, curvature, and comprehensive score are as Figure 4 shown.
[0096] The image of the model evaluation function described above is the curve graph of the comprehensive score function of the volume score and the curvature score of the cloth model; among them, the curvature score of the cloth model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each cloth model, the one with the smallest volume is taken as the volume of the hybrid bounding box and used as the volume score of the corresponding cloth model, as Figure 5 shown.
[0097] Step (2-4): Retain the cloth models with obvious features in the model sequence and retain the cloth models in the model sequence with a similarity less than the preset similarity threshold.
[0098] The similarity in this embodiment can be measured according to the Euclidean distance of each point in the model.
[0099] It should be noted here that those skilled in the art can also choose other existing technologies to implement the similarity of the model according to the actual situation.
[0100] In other embodiments, to exclude similar models, it is stipulated that there should be at least a 10-frame interval between two screened results, and the interval should be greater than the first 5 frames and the last 5 frames.
[0101] Step 3: Determine the fabric models that meet the preset requirements from the preliminarily screened fabric models;
[0102] Step 4: Smooth and optimize the stability of the fabric models that meet the preset requirements to obtain the optimized fabric models and convert them into volumetric solid models for 3D printing.
[0103] In simulation calculations, since each mass point is calculated independently, the surfaces of these fabric simulation models are not smooth, there is a lot of noise on the mesh, and the mesh quality is poor. To ensure the aesthetics of the models, after the models are generated, Laplacian smoothing is performed on each model. The model before processing is shown in Figure 6(a), and the effect after processing is shown in Figure 6(b).
[0104] In this work, the stability of the model mainly refers to the stability of static placement, that is, the model can maintain stable placement on the premise that the main direction is perpendicular to the horizontal plane. The main direction of the model here refers to the direction established during the simulation, and the direction parallel to the Z-axis during the simulation is defined as the main direction of the model.
[0105] In the present invention, the plane at the bottom of the model during simulation is defined as the base plane, and the static stability of the model is related to the ratio of the mass of the object above the base. Geometric estimation of this property is used in this work.
[0106] First, calculate the centroid G0 of the fabric model, then find the bottommost part of the model (all points with the smallest Z value), and find the convex hull of these points. The obtained polygon is the base plane of the current model. Then project the centroid of the fabric model onto the plane where the base plane is located. Since the projected centroid is inside the polygon and far from the boundary of the supporting polygon, the stability is usually better. Therefore, if the mass point is inside the base plane and the shortest distance to the edge of the base plane is greater than 10% of the shortest diameter of the base plane, this model is determined to be stable in this work; otherwise, this model does not meet the stability requirements.
[0107] According to the differences in the edge models and physical models, the base plane of the model may not exist, the number of points at the lowest part may be less than three or more than three but cannot form a plane, and the convex hull cannot be obtained. In this case, this type of model is also classified as an unstable model.
[0108] For an unstable model, including a model without a base surface, a support bottom surface needs to be added to it. The specific addition algorithm is as follows: Let the plane where the base surface is located be P. If there is no base surface, find the lowest mass point Q of the model. Take the plane parallel to the XOY plane where this point is located as the plane P where the base surface is located. Project the center of gravity G of the model onto this plane, and assume this point is G0. If there is a base surface, the point on the base surface farthest from G0 is Q. Connect QG0. Since the projected center of gravity is inside the polygon and far from the boundary of the support polygon, the stability is usually better. Therefore, a stability compensation needs to be made, and the compensation coefficient is set to 10%. Q1 and G1 can be obtained according to the following formula.
[0109]
[0110]
[0111] Take |G1Q1| as the diagonal, and use line segments parallel to the X-axis and Y-axis as sides to construct a rectangle W on P, and W is used as the added support bottom surface. The entire calculation and construction process is as Figure 7 shown.
[0112] During the simulation process, a plane is used for the fabric. The surface of the plane is subdivided and then properties such as spring mass points are added to it, and it is used as the fabric. During the simulation process, this surface is sampled and output, and the result is a series of open surface models. However, in 3D printing, it is required that the model must be closed, that is, the model must have a volume. Therefore, the open surface models obtained in the simulation cannot be directly used for printing, and the models need to be converted into solid models with volume.
[0113] The most common method to convert an open surface model into a solid model with volume is to perform surface offset. Simply put, it is to thicken the surface, increase the thickness of the surface, and generate a solid model with volume. The specific approach is as Figure 8(a) - Figure 8(c) shown: Offset the surface feature in a certain direction by a certain distance to create a new surface. The offset distance is the thickness of the surface thickening, and the new surface is the offset surface. Then connect the two surfaces to generate the model. Figure 9(a) - Figure 9(p) This is a partial rendering result display of this embodiment; Figure 10(a) - Figure 10(d) This is a partial printing result display in this embodiment.
[0114] Embodiment 2
[0115] This embodiment provides a 3D model construction system driven by fabric simulation, which includes:
[0116] (1) Fabric model sequence acquisition module, which is used to perform fabric simulation using a fabric simulation solver based on the fabric, force field, and initial parameters of the model, and obtain a series of fabric model sequences; wherein, the fabric serves as the basis of the model to reflect the combined action of the force field and the model;
[0117] Among them, the fabric adopts a spring-particle model.
[0118] Specifically, during the process of performing fabric simulation using the fabric simulation solver, the Blender simulation solver is used to simulate the fabric model, and the fabric model is output once every set time.
[0119] (2) Preliminary screening module for fabric models, which is used to preliminarily screen the fabric model sequence based on a preset preliminary screening principle; wherein, the preliminary screening principle includes retaining the fabric models with obvious features in the model sequence and retaining the fabric models with a similarity less than a preset similarity threshold in the model sequence; the fabric model with obvious features is the fabric model corresponding to the maximum value point on the image of the model evaluation function.
[0120] Specifically, the image of the model evaluation function is a curve graph of the comprehensive score function of the volume score and curvature score of the fabric model; wherein, the curvature score of the fabric model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each fabric model, the one with the smallest volume is taken as the volume of the hybrid bounding box and used as the volume score of the corresponding fabric model.
[0121] (3) Fabric model determination module, which is used to determine the fabric models that meet the preset requirements from the preliminarily screened fabric models;
[0122] (4) Fabric model optimization and printing module, which is used to perform smoothing and stability optimization on the fabric models that meet the preset requirements, obtain the optimized fabric models, and convert them into volumetric solid models for 3D printing.
[0123] Among them, during the process of performing smoothing optimization on the fabric models that meet the preset requirements using Laplacian smoothing.
[0124] The process of converting the optimized fabric model into a volumetric solid model is as follows:
[0125] The surface feature of the fabric model is offset by a set distance in a certain direction to create a new surface. The offset distance is the thickness of the surface thickening. The new surface is the offset surface, and then the two surfaces are connected to generate a volumetric solid model.
[0126] It should be noted here that each module in this embodiment corresponds to each step in Embodiment 1 one by one, and the specific implementation process is the same, so it will not be repeated here.
[0127] Embodiment 3
[0128] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps in the method for constructing a 3D model driven by cloth simulation as described above are implemented.
[0129] Embodiment 4
[0130] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps in the method for constructing a 3D model driven by cloth simulation as described above are implemented.
[0131] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0132] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing a 3D model driven by fabric simulation, characterized in that Including: Based on the initial parameters of the fabric, force field and model, use a fabric simulation solver to perform fabric simulation to obtain a series of fabric model sequences; among them, the fabric serves as the basis of the model to reflect the combined action of the force field and the model; Based on a preset preliminary screening principle, conduct a preliminary screening on the fabric model sequence; among them, the preliminary screening principle includes retaining the fabric models with obvious features in the model sequence and retaining the fabric models with a similarity less than the preset similarity threshold in the model sequence; the fabric models with obvious features are the fabric models corresponding to the maximum value points on the model evaluation function image; Determine the fabric models that meet the preset requirements from the preliminarily screened fabric models; Smooth and optimize the stability of the fabric models that meet the preset requirements to obtain optimized fabric models and convert them into volumetric solid models for 3D printing; The model evaluation function image is a comprehensive score function curve graph of the volume score and curvature score of the fabric model; among them, the curvature score of the fabric model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each fabric model, take the one with the smallest volume as the volume of the hybrid bounding box and use it as the volume score of the corresponding fabric model; During the process of using the fabric simulation solver to perform fabric simulation, use the Blender simulation solver to simulate the fabric model and output the fabric model once every set time; During the process of using Laplacian smoothing to perform smooth optimization on the fabric models that meet the preset requirements; The process of converting the optimized fabric model into a volumetric solid model is as follows: Offset the surface feature of the fabric model by a set distance in a certain direction to create a new surface. The offset distance is the thickness of the surface thickening. The new surface is the offset surface, and then connect the two surfaces to generate a volumetric solid model.
2. The 3D model construction method driven by fabric simulation according to claim 1, wherein, The fabric adopts a spring-particle model.
3. A 3D model construction system driven by fabric simulation, characterized in that, Including: A fabric model sequence acquisition module, which is used to perform fabric simulation using a fabric simulation solver based on the initial parameters of the fabric, force field and model to obtain a series of fabric model sequences; among them, the fabric serves as the basis of the model to reflect the combined action of the force field and the model; A fabric model preliminary screening module, which is used to conduct a preliminary screening on the fabric model sequence based on a preset preliminary screening principle; among them, the preliminary screening principle includes retaining the fabric models with obvious features in the model sequence and retaining the fabric models with a similarity less than the preset similarity threshold in the model sequence; the fabric models with obvious features are the fabric models corresponding to the maximum value points on the model evaluation function image; A fabric model determination module, which is used to determine the fabric models that meet the preset requirements from the preliminarily screened fabric models; A fabric model optimization and printing module, which is used to smooth and optimize the stability of the fabric models that meet the preset requirements to obtain optimized fabric models and convert them into volumetric solid models for 3D printing; The image of the model evaluation function is a curve graph of the comprehensive score function of the volume score and the curvature score of the fabric model; among them, the curvature score of the fabric model is the sum of the Gaussian curvatures of each point on the model; among all the axis-aligned bounding boxes of each fabric model, the one with the smallest volume is taken as the volume of the hybrid bounding box and used as the volume score of the corresponding fabric model; During the process of using the fabric simulation solver for fabric simulation, the Blender simulation solver is used to simulate the fabric model, and the fabric model is output every set time; During the process of using Laplacian smoothing to smooth and optimize the fabric model that meets the preset requirements; The process of converting the optimized fabric model into a solid model with volume is as follows: The surface feature of the fabric model is offset by a set distance along a certain direction to create a new surface. The offset distance is the thickness of the surface thickening. The new surface is the offset surface, and then the two surfaces are connected to generate a solid model with volume.
4. The 3D model construction system driven by fabric simulation according to claim 3, characterized in that, The fabric adopts a spring-particle model.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps in the fabric simulation-driven 3D model construction method described in any one of claims 1-2.
6. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the fabric simulation-driven 3D model construction method described in any one of claims 1-2.
Citation Information
Patent Citations
Three-dimensional simulation method and system based on virtual reality
CN111192354A
Modeling method and system of periodontal ligament finite element model
CN113408163A