Three-dimensional model deformation simulation method and device and storage medium

By distinguishing the vertex weights of the flexible, transitional and rigid regions of the three-dimensional model and controlling the vertex movement according to the interactive force, the problem of poor deformation simulation effect in the existing technology is solved, and a more realistic deformation simulation effect is achieved.

CN120372894AActive Publication Date: 2025-07-25BEIJING YAKEBOT TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510311417.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2025-07-25
Estimated Expiration
2045-03-17

AI Technical Summary

Technical Problem

The prior art fails to effectively distinguish between flexible and rigid areas in three-dimensional model deformation simulation, resulting in distortion of deformation effect and poor overall simulation effect.

Method used

By obtaining the deformation weights and interaction forces of each vertex of the three-dimensional model, we distinguish the vertex weights of the flexible area, transition area and rigid area, and determine the displacement of the vertex according to the weight and interaction force, and control the vertex movement to achieve different degrees of deformation.

Benefits of technology

It improves the fidelity of three-dimensional model deformation simulation, realizes seamless deformation of flexible and rigid regions, avoids hard boundaries and discontinuities, and is suitable for complex simulation needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372894A_ABST
    Figure CN120372894A_ABST
Patent Text Reader

Abstract

The invention provides a three-dimensional model deformation simulation method and device and a storage medium, and belongs to the technical field of three-dimensional model simulation, and the method comprises the steps: obtaining the deformation weight and the interaction force of each vertex of a three-dimensional model; wherein the deformation weights of the vertexes in the flexible area, the transition area and the rigid area of the three-dimensional model are different; determining the displacement of each vertex according to the deformation weight and the interaction force; and controlling each vertex to move according to the displacement. The deformation weights of the vertexes in the flexible area, the transition area and the rigid area of the three-dimensional model are different, so that the flexible area, the transition area and the rigid area of the three-dimensional model can be deformed to different degrees by controlling the movement of the vertexes according to the displacement, and the deformation simulation of the three-dimensional model is more vivid; and the deformation simulation effect of the three-dimensional model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of 3D model simulation, and particularly to a 3D model deformation simulation method, device and storage medium. Background Art

[0002] Flexible physical feedback simulation is applied to multiple fields such as virtual reality, game development, medical simulation, etc. The purpose is to make the 3D model produce a realistic deformation effect during the force application process. In many application scenarios, the 3D model has both flexible and rigid characteristics at the same time. Some regions of the 3D model can respond to interactive operations and deform flexibly, while other regions remain relatively rigid and do not undergo significant deformation. For example, in a human head model, parts such as the cheeks and lips can undergo flexible deformation in the deformation simulation scenario, while the remaining parts remain almost rigid.

[0003] When performing deformation simulation of a 3D model with the prior art, no distinction is made between the flexible region and the rigid region of the 3D model, resulting in distorted deformation effects in some regions and poor overall deformation effects. Summary of the Invention

[0004] The present invention provides a 3D model deformation simulation method, device and storage medium to solve the technical problem of poor deformation simulation effect of 3D models in the prior art.

[0005] The present invention provides a 3D model deformation simulation method, including: Obtaining the deformation weights and interaction forces received by each vertex of the 3D model; wherein, the deformation weights of the vertices in the flexible region, transition region and rigid region of the 3D model are different; Determining the displacement amount of each vertex according to the deformation weight and the interaction force; Controlling the movement of each vertex according to the displacement amount.

[0006] According to the 3D model deformation simulation method provided by the present invention, the step of obtaining the deformation weight includes: Obtaining the texture coordinates of the vertex; Determining the pixel value of the texture map corresponding to the texture coordinates; wherein, the texture map is mapped on the surface of the 3D model, and the pixel value corresponds to the texture coordinates one by one; Determining the deformation weight according to the pixel value.

[0007] According to the 3D model deformation simulation method provided by the present invention, before obtaining the deformation weight, the method further includes: Mapping the surface of the 3D model to a two-dimensional plane and assigning the texture coordinates in the two-dimensional plane to each vertex; Draw the deformation weights of each of the vertices; Generate the texture map according to the deformation weights of each of the vertices; Put each pixel value of the texture map into one-to-one correspondence with each of the texture coordinates; Map the texture map to the three-dimensional model.

[0008] According to a three-dimensional model deformation simulation method provided by the present invention, the steps of obtaining the interaction force include: Obtain the interaction forces received by each control node of the flexible region; Use the interaction force corresponding to the control node closest to the vertex as the interaction force received by the vertex.

[0009] According to a three-dimensional model deformation simulation method provided by the present invention, before obtaining the interaction force, the method further includes: Decompose the flexible region and the transition region into a plurality of polyhedron units; Associate and bind the control node closest to the vertex in the polyhedron unit with the vertex.

[0010] According to a three-dimensional model deformation simulation method provided by the present invention, the step of decomposing the flexible region and the transition region into a plurality of polyhedron units includes: Create a simplified model in the space corresponding to the flexible region and the transition region; Decompose the simplified model into a plurality of polyhedron units.

[0011] According to a three-dimensional model deformation simulation method provided by the present invention, the polyhedron unit is a tetrahedron unit.

[0012] The present invention also provides a three-dimensional model deformation simulation device, including: An acquisition module, configured to acquire the deformation weights and the interaction forces received by each vertex of a three-dimensional model; wherein, the deformation weights of the vertices in the flexible region, the transition region, and the rigid region of the three-dimensional model are different; A determination module, configured to determine the displacement amount of each vertex according to the deformation weight and the interaction force; A control module, configured to control the movement of each vertex according to the displacement amount.

[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, it implements the three-dimensional model deformation simulation method as described in any one of the above.

[0014] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the three-dimensional model deformation simulation method as described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the three-dimensional model deformation simulation method as described in any one of the above is implemented.

[0016] For the three-dimensional model deformation simulation method, device and storage medium provided by the present invention, the deformation weights of the respective vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different, and the displacement amount of the vertex is positively correlated with the deformation weight. Therefore, controlling the movement of each vertex according to the displacement amount can cause different degrees of deformation in the flexible region, transition region, and rigid region of the three-dimensional model, making the deformation simulation of the three-dimensional model more realistic and improving the effect of the three-dimensional model deformation simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 It is a flowchart of the three-dimensional model deformation simulation method provided by the present invention.

[0019] Figure 2 It is a schematic diagram of the effect of drawing the deformation weight provided by the present invention.

[0020] Figure 3 It is a schematic diagram of a tetrahedral element provided by the present invention.

[0021] Figure 4 It is a schematic diagram of the structure of the three-dimensional model deformation simulation device provided by the present invention.

[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0023] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention with reference to the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments in the present invention fall within the protection scope of the present invention.

[0024] It should be noted that in the description of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the presence of additional identical elements in the process, method, article or device including the said element. The orientation or positional relationship indicated by terms such as "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be construed as a limitation on the present invention. Unless otherwise expressly stipulated and defined, the terms "mount", "connect" and "couple" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0025] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and do not limit the number of objects. For example, the first object may be one or more. In addition, "and / or" indicates at least one of the connected objects, and the character " / ", generally indicates that the associated objects before and after are in an "or" relationship.

[0026] The following will be combined with Figures 1-5 to describe the three-dimensional model deformation simulation method, device and storage medium provided by the present invention.

[0027] As Figure 1 shown, the three-dimensional model deformation simulation method of the present invention includes: Step S1, obtaining the deformation weights and interaction forces received by each vertex of the three-dimensional model; wherein, the deformation weights of the vertices in the flexible region, transition region and rigid region of the three-dimensional model are different.

[0028] In some embodiments, the three-dimensional model may be a three-dimensional model of a human head.

[0029] Among them, the vertices of the three-dimensional model determine the shape and structure of the model, and the polygons formed by connecting the vertices with each other constitute the surface of the model.

[0030] In some embodiments, the deformation weights of the respective vertices can be set according to the read vertex indices.

[0031] In flexible simulation, a skeleton structure is used to represent the deformable body. The skeleton consists of a series of control nodes (mass points) and springs connecting these control nodes. A series of control nodes and spring connections form a spring-mass system, providing a structural basis for simulating the mechanical behavior inside the object. The interaction force is generated after the force feedback device collides with the control node. The acting force generated by the collision between the force feedback device and the control node is transmitted to other control nodes through the spring-mass system, causing the entire skeleton to move and deform.

[0032] In some embodiments, the respective control nodes and the spring connections between the respective control nodes can be set manually.

[0033] Among them, the interaction force received by the vertex depends on the interaction forces received by the surrounding control nodes. It can be understood that the greater the interaction force, the greater the displacement of the vertex should be to make the deformation of the model more realistic.

[0034] For the human head model, the flexible region can include regions where the deformation is obvious when stressed, such as the cheeks and lips. The rigid region is the region that hardly deforms when stressed, and the transition region is the connection area between the flexible region and the rigid region.

[0035] In one embodiment, the deformation weights of the vertices in different regions can be set differently. The deformation weights of the vertices in this region can be set according to the actually detected stiffness, or can be roughly decreased in turn from the vertices in the flexible region, the transition region, and the rigid region. Exemplarily, the deformation weight of the vertices in the flexible region can be close to 1, such as greater than 0.9; the deformation weight of the vertices in the transition region can gradually change or change step by step between 0.1 - 0.9; the deformation weight of the vertices in the rigid region can be close to 0, such as less than 0.1.

[0036] Step S2, determine the displacement of each vertex according to the deformation weight and the interaction force.

[0037] Among them, if the deformation weights of the vertices in the flexible region, the transition region, and the rigid region decrease in turn, then step S2 can determine the displacement of each vertex based on the principle that the displacement of the vertex is positively correlated with the deformation weight. For example, the greater the deformation weight, the greater the displacement of the vertex. Determining the displacement of each vertex according to the deformation weight and the interaction force can be to first determine a basic displacement according to the interaction force, and then multiply the basic displacement by the deformation weight to obtain the displacement.

[0038] Step S3: Control the movement of each vertex according to the displacement amount.

[0039] Each vertex has its original position coordinates. The new position coordinates can be obtained by "new position coordinates = original position coordinates + displacement amount". Controlling the movement of the vertex means controlling the vertex to move from the original position coordinates to the new position coordinates. Microscopically, the movement of each vertex constitutes the deformation of the model macroscopically.

[0040] As can be seen from the above, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model of the present invention are different. Then the displacement amounts of the flexible region, transition region, and rigid region are different. Therefore, controlling the movement of each vertex according to the displacement amount can cause different degrees of deformation in the flexible region, transition region, and rigid region of the three-dimensional model, making the deformation simulation of the three-dimensional model more realistic and improving the effect of the deformation simulation of the three-dimensional model. And when the displacement amount of the vertex in the flexible region, transition region, and rigid region is positively correlated with the deformation weight, the deformation of the flexible region of the three-dimensional model can be the most obvious, the transition region is the second, and the rigid region basically does not deform, making the deformation simulation of the three-dimensional model more realistic.

[0041] In addition, the three-dimensional model of the present invention realizes seamless deformation between the flexible region and the rigid region through smooth transition of the deformation weight, which can avoid hard boundaries and discontinuities; the present invention allows independent assignment of deformation weights to each vertex, providing precise control of local deformation and being applicable to complex simulation requirements.

[0042] In some embodiments, in step S1, the step of obtaining the deformation weight may include: Obtain the texture coordinates of the vertex; Determine the pixel value of the texture map corresponding to the texture coordinates; wherein, the texture map is mapped on the surface of the three-dimensional model, and the pixel value corresponds to the texture coordinates one by one; Determine the deformation weight according to the pixel value.

[0043] That is to say, the texture map is pre-mapped to the surface of the three-dimensional model, and a one-to-one correspondence between the pixel values of the texture map and the texture coordinates is established in advance, and texture coordinates are assigned to each vertex in advance. Thus, each vertex has a corresponding pixel value. During simulation, the corresponding pixel value can be determined according to the texture coordinates, and then the deformation weight can be determined according to the pixel value.

[0044] In some embodiments, the corresponding pixel value of the vertex can be directly used as the deformation weight of the vertex. Thus, the deformation weight can also be obtained without the way of the texture map.

[0045] As mentioned above, obtaining the deformation weights through texture mapping requires prior preparation. Therefore, in some embodiments, before obtaining the deformation weights, the 3D model deformation simulation method of the present invention may further include: Mapping the surface of the 3D model to a 2D plane and assigning texture coordinates in the 2D plane to each vertex; Drawing the deformation weights of each vertex; Generating a texture map according to the deformation weights of each vertex; Establishing a one-to-one correspondence between each pixel value of the texture map and each texture coordinate; Mapping the texture map to the 3D model.

[0046] In some embodiments, the surface of the 3D model can be mapped to a 2D plane by UV unwrapping technology. Among them, the texture coordinates are also UV coordinates.

[0047] Among them, drawing the deformation weights can be manually completed by a weight painting tool in 3D modeling software or automatically generated according to geometric attributes by a procedural method. Exemplarily, if the 3D model is a human head model, the effect of drawing the deformation weights is as Figure 2 shown. In the figure, the red area is the flexible area, the blue area is the rigid area, and the middle color area is the transition area.

[0048] In this way, a texture map can be generated in advance according to the weight painting result, texture coordinates can be assigned to each vertex, a one-to-one correspondence between the pixel values of the texture map and the texture coordinates can be established, and the texture map can be mapped to the surface of the 3D model, so that the deformation weights of each vertex can be determined according to the pixel values of the texture map during simulation.

[0049] In some embodiments, in step S1, the step of obtaining the interaction force may include: Obtaining the interaction forces received by each control node in the flexible area; Taking the interaction force corresponding to the control node closest to the vertex as the interaction force received by the vertex.

[0050] Among them, the method for obtaining the interaction forces received by each control node can be as follows: First, ensure that the force feedback device and the control node are in the same coordinate system, otherwise perform coordinate transformation; then obtain the position coordinates of the force feedback device in the virtual simulation environment and the position coordinates of the control node, calculate the vector pointing from the position of the control node to the position of the force feedback device, and judge the distance between the force feedback device and the control node according to the length of this vector; if this distance is greater than the sum of the radius of the force feedback device and the radius of the control node (the force feedback device and the control node in the virtual scene are usually represented by spheres), it means that the two do not intersect, and at this time, return the interaction force as zero and end the calculation; if this distance is less than the sum of the radius of the force feedback device and the radius of the control node, it means that the force feedback device and the control node intersect, then calculate the penetration depth (the sum of the radius of the force feedback device and the radius of the control node minus this distance); the magnitude of the interaction force is the product of the penetration depth and the set stiffness coefficient, and the set stiffness coefficient is a known value.

[0051] Since the control node closest to the vertex has the greatest influence on the model vertex, taking the interaction force received by the control node closest to each vertex as the interaction force of the vertex can make the interaction force received by the vertex closer to the actual force situation, which is beneficial to improving the effect of model deformation simulation.

[0052] As mentioned above, the spring connections between each control node and between each control node can be set manually. However, the manually set control nodes may be unevenly or unreasonably distributed, resulting in abnormal simulation results (such as excessive or too small local deformation); and manually setting the spring connections requires clarifying the connection relationship between each control node. For complex geometric shapes, clarifying these connection relationships is very cumbersome and error-prone.

[0053] In order to ensure the stability and accuracy of the model deformation simulation, in some embodiments, before obtaining the interaction force, the three-dimensional model deformation simulation method of the present invention may further include: Decompose the flexible region and the transition region into multiple polyhedron units; Associate and bind the control node closest to the vertex in the polyhedron unit with the vertex.

[0054] Exemplarily, the polyhedron unit can be a tetrahedron unit or a hexahedron unit.

[0055] The three-dimensional model is usually represented in the form of a surface mesh, such as a triangular mesh. This representation only describes the external contour of the object and lacks internal volume information. In physical simulation, only relying on the surface information cannot accurately simulate the mechanical behavior inside the object, such as elasticity, plasticity, or stress distribution. Therefore, further processing is required to obtain a volume representation.

[0056] After decomposing the flexible region and the transition region into multiple polyhedron units, these polyhedron units fill the internal space of the model, forming a complete volume representation. Each polyhedron unit consists of multiple vertices and multiple edges. In flexible simulation, the vertices of the polyhedron unit serve as control nodes, with parameters such as mass, position damping, and rotational damping, and the edges (connections) of the polyhedron unit simulate spring behavior, with parameters such as tensile, bending, and torsional stiffness. These control nodes are interconnected through the edges of the polyhedron unit, forming a spring-mass system.

[0057] Through polyhedron processing, uniformly distributed and reasonable control nodes can be automatically generated, which is beneficial to ensuring the stability and accuracy of the simulation; and the control nodes and connection relationships can be automatically generated, improving the generation efficiency.

[0058] Of course, for the rigid region, it can not be decomposed into polyhedron units. In this way, only the flexible region and the transition region are decomposed into multiple polyhedron units, which can simplify the calculation. The vertices of the rigid region can be not associated with control nodes or also associated with the nearest control nodes.

[0059] In some embodiments, the polyhedron unit of the present invention can be a tetrahedron unit. Compared with a hexahedron unit, the tetrahedron has a simple structure and is easy to decompose. As shown in Figure 3 , each tetrahedron unit consists of four vertices and six edges. The vertices of the tetrahedron serve as control nodes, and the edges of the tetrahedron simulate spring behavior. Among them, the Delaunay triangulation method can be used to decompose the flexible region without manually setting control nodes, which not only improves the generation efficiency but also ensures the accuracy of the results.

[0060] In some embodiments, decomposing the flexible region and the transition region into multiple polyhedron units may further include: Creating a simplified model in the space corresponding to the flexible region and the transition region; Decomposing the simplified model into multiple polyhedron units.

[0061] In order to efficiently generate tetrahedron units in the flexible region and achieve precise deformation control, the present invention creates a simplified three-dimensional model with basically the same geometric shape in the space corresponding to the flexible region and the transition region, reduces the complexity by reducing the number of vertices and faces, and generates a tetrahedron mesh with this as the input.

[0062] The purpose of creating the simplified model is to retain the main geometric features of the flexible region, and at the same time provide a simpler input for tetrahedron generation, reducing the subsequent calculation amount. Compared with directly tetrahedralizing the original complex model, this method significantly improves the efficiency of the generation process.

[0063] As Figure 4As shown in the figure, a three-dimensional model deformation simulation device provided by the present invention includes: An acquisition module, configured to acquire the deformation weights and interaction forces received by each vertex of the three-dimensional model; among them, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; A determination module, configured to determine the displacement amount of each vertex according to the deformation weight and the interaction force; A control module, configured to control the movement of each vertex according to the displacement amount.

[0064] In some embodiments, the acquisition module may specifically be configured to: Acquire the texture coordinates of the vertex; Determine the pixel values of the texture map corresponding to the texture coordinates; wherein, the texture map is mapped on the surface of the three-dimensional model, and the pixel values correspond one-to-one with the texture coordinates; Determine the deformation weight according to the pixel values.

[0065] In some embodiments, the three-dimensional model deformation simulation device may further include: A mapping module, configured to map the surface of the three-dimensional model to a two-dimensional plane and assign texture coordinates in the two-dimensional plane to each vertex; A drawing module, configured to draw the deformation weights of each vertex; A generation module, configured to generate a texture map according to the deformation weights of each vertex; An association module, configured to correspond each pixel value of the texture map with each texture coordinate one-to-one; The mapping module is further configured to map the texture map to the three-dimensional model.

[0066] In some embodiments, the acquisition module may specifically be configured to: Acquire the interaction forces received by each control node in the flexible region; Use the interaction force corresponding to the control node closest to the vertex as the interaction force received by the vertex.

[0067] In some embodiments, the three-dimensional model deformation simulation device may further include: A decomposition module, configured to decompose the flexible region and the transition region into multiple polyhedron units; An association module, configured to associate and bind the control node closest to the vertex in the polyhedron unit with the vertex.

[0068] In some embodiments, the decomposition module may specifically be configured to: Create a simplified model in the space corresponding to the flexible region and the transition region; Decompose the simplified model into multiple polyhedron units.

[0069] In some embodiments, the polyhedral unit may be a tetrahedral unit.

[0070] It should be noted that the three-dimensional model deformation simulation device provided by the present invention, when specifically operating, can execute the three-dimensional model deformation simulation method described in any of the above embodiments, and this embodiment will not be elaborated herein.

[0071] Figure 5 is a schematic structural diagram of the electronic device provided by the present invention. As Figure 5 shown, the electronic device may include: a processor, a communications interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus. The processor can call the logical instructions in the memory to execute the three-dimensional model deformation simulation method, which includes: obtaining the deformation weights and interaction forces received by each vertex of the three-dimensional model; wherein, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; determining the displacement amount of each vertex according to the deformation weight and the interaction force; and controlling the movement of each vertex according to the displacement amount.

[0072] In addition, when the logical instructions in the above-mentioned memory are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs, etc., which can store program codes.

[0073] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the three-dimensional model deformation simulation method provided in each of the above embodiments, which includes: obtaining the deformation weights and interaction forces received by each vertex of the three-dimensional model; wherein, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; determining the displacement amount of each vertex according to the deformation weight and the interaction force; and controlling the movement of each vertex according to the displacement amount.

[0074] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the three-dimensional model deformation simulation method provided in the above embodiments. The method includes: obtaining the deformation weights and interaction forces received by each vertex of the three-dimensional model; wherein, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; determining the displacement amount of each vertex according to the deformation weights and interaction forces; and controlling the movement of each vertex according to the displacement amount.

[0075] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

[0076] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A three-dimensional model deformation simulation method, characterized in that Including: Obtain the deformation weights and interaction forces received by each vertex of the three-dimensional model; among them, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; Determine the displacement amount of each vertex according to the deformation weight and the interaction force; Control the movement of each vertex according to the displacement amount.

2. The three-dimensional model deformation simulation method according to claim 1, wherein The step of obtaining the deformation weight includes: Obtain the texture coordinates of the vertex; Determine the pixel value of the texture map corresponding to the texture coordinates; among them, the texture map is mapped to the surface of the three-dimensional model, and the pixel value corresponds to the texture coordinates one by one; Determine the deformation weight according to the pixel value.

3. The three-dimensional model deformation simulation method according to claim 2, wherein, Before obtaining the deformation weight, the method further includes: Map the surface of the three-dimensional model to a two-dimensional plane, and assign the texture coordinates in the two-dimensional plane to each vertex; Draw the deformation weights of each vertex; Generate the texture map according to the deformation weights of each vertex; Make each pixel value of the texture map correspond to each texture coordinate one by one; Map the texture map to the three-dimensional model.

4. The three-dimensional model deformation simulation method according to claim 1, wherein The step of obtaining the interaction force includes: Obtain the interaction forces received by each control node in the flexible region; Use the interaction force corresponding to the control node closest to the vertex as the interaction force received by the vertex.

5. The three-dimensional model deformation simulation method according to claim 4, characterized in that Before obtaining the interaction force, the method further includes: Decompose the flexible region and the transition region into a plurality of polyhedron units; Associate and bind the control node closest to the vertex in the polyhedron unit with the vertex.

6. The three-dimensional model deformation simulation method according to claim 5, wherein The decomposition of the flexible region and the transition region into a plurality of polyhedron units includes: Create a simplified model in the space corresponding to the flexible region and the transition region; Decompose the simplified model into a plurality of polyhedron units.

7. The three-dimensional model deformation simulation method according to claim 5 or 6, characterized in that, The polyhedron unit is a tetrahedron unit.

8. A three-dimensional model deformation simulation device, characterized in that, Including: An acquisition module for obtaining the deformation weights and interaction forces received by each vertex of the three-dimensional model; among them, the deformation weights of the vertices in the flexible region, transition region, and rigid region of the three-dimensional model are different; A determination module for determining the displacement amount of each vertex according to the deformation weight and the interaction force; A control module for controlling the movement of each vertex according to the displacement amount.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the three-dimensional model deformation simulation method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the three-dimensional model deformation simulation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Deformation method based on control meshes

    CN101587595A

  • Three-dimensional grid model deformation method and system based on texture

    CN101794462A

  • Method for rigid deformation of three-dimensional model

    CN107221033A

  • Soft tissue simulation method with force feedback equipment

    CN118230967A

  • Ship drainage volume constraint space construction method

    CN118306540A