Three-dimensional model processing method and device

By creating different types of point cloud data and using Boolean modeling techniques, diverse 3D model fracturing effects are generated, solving the problem of monotonous fracturing effects in existing technologies and achieving rich fracturing model representations.

CN117635894BActive Publication Date: 2026-12-04ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311597449.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2026-12-04
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to generate diverse 3D model fracturing effects based on user needs, particularly lacking in detail representation of overall and local fracturing effects.

Method used

By acquiring the target fragmentation task, different types of point cloud data are created, including gradient, noisy, and curved point cloud data. The overall fragmentation model is generated by combining the Boolean modeling toolkit (Boolean) and bounding box (bounding box) technology. For local fragmentation, the local fragmentation effect is achieved by generating bounding model distortion, merging fragments, adding gaps to select models, etc.

Benefits of technology

It enables the generation of diverse 3D model fracturing effects based on user needs, improving the richness and realism of fracturing models, and is suitable for fracturing scene simulation in film, television, games and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117635894B_ABST
    Figure CN117635894B_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for processing three-dimensional models. The method includes: acquiring a target fragmentation task, wherein the target fragmentation task includes a three-dimensional model to be processed and a target fragmentation type for the three-dimensional model to be processed; if the target fragmentation type is an overall fragmentation type, creating point cloud data for the overall fragmentation type, and generating a target overall fragmentation model corresponding to the three-dimensional model to be processed based on the point cloud data; if the target fragmentation type is a partial fragmentation type, acquiring display effect information for the partial fragmentation type, determining a target processing strategy corresponding to the display effect information based on the display effect information, and generating a target partial fragmentation model corresponding to the three-dimensional model to be processed based on the target processing strategy. This enables the generation of different types of fragmentation models according to different user needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method for processing three-dimensional models. This application also relates to a three-dimensional model processing apparatus, and a computer-readable storage medium. Background Technology

[0002] With the development and advancement of science and technology, 3D models have been applied to various fields, such as film and television, and gaming, demonstrating their wide range of applications. Whether in animation or games, scenes of objects colliding or breaking frequently occur, requiring corresponding breaking effects. As user demands continue to increase, the requirements for the breaking effects generated by 3D models also rise, such as overall or partial breaking of objects. Therefore, to meet diverse user needs, it is necessary to generate corresponding breaking models based on those specific requirements.

[0003] Therefore, a solution to the aforementioned technical problems is urgently needed. Summary of the Invention

[0004] In view of this, embodiments of this application provide a method for processing three-dimensional models. This application also relates to a three-dimensional model processing apparatus, a computing device, and a computer-readable storage medium, to solve the aforementioned problems existing in the prior art.

[0005] According to a first aspect of the embodiments of this application, a three-dimensional model processing method is provided, including: Obtain a target crushing task, wherein the target crushing task includes a 3D model to be processed and a target crushing type for the 3D model to be processed; If the target fragmentation type is the overall fragmentation type, point cloud data for the overall fragmentation type is created, and a target overall fragmentation model corresponding to the three-dimensional model to be processed is generated based on the point cloud data. When the target fragmentation type is a local fragmentation type, the display effect information for the local fragmentation type is obtained, the target processing strategy corresponding to the display effect information is determined according to the display effect information, and the target local fragmentation model corresponding to the three-dimensional model to be processed is generated according to the target processing strategy.

[0006] According to a second aspect of the embodiments of this application, a three-dimensional model processing apparatus is provided, comprising: The acquisition module is configured to acquire a target crushing task, wherein the target crushing task includes a three-dimensional model to be processed and a target crushing type for the three-dimensional model to be processed; The first generation module is configured to, when the target fragmentation type is the overall fragmentation type, create point cloud data for the overall fragmentation type, and generate the target overall fragmentation model corresponding to the three-dimensional model to be processed based on the point cloud data; The second generation module is configured to, when the target fragmentation type is a local fragmentation type, acquire display effect information for the local fragmentation type, determine the target processing strategy corresponding to the display effect information based on the display effect information, and generate the target local fragmentation model corresponding to the three-dimensional model to be processed based on the target processing strategy.

[0007] According to a third aspect of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the computer instructions to implement the steps of the three-dimensional model processing method.

[0008] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the three-dimensional model processing method.

[0009] In one embodiment of this application, by determining the target fragmentation type corresponding to the three-dimensional model to be processed, and performing fragmentation processing on the three-dimensional model to be processed with overall fragmentation type and local fragmentation type according to different implementation methods, it is possible to generate different types of fragmentation models according to different user needs. Attached Figure Description

[0010] Figure 1a This is a schematic diagram illustrating an application scenario of the first three-dimensional model processing method provided in an embodiment of this application; Figure 1b This is a schematic diagram illustrating an application scenario of the second three-dimensional model processing method provided in an embodiment of this application; Figure 2 This is a flowchart of a three-dimensional model processing method provided in an embodiment of this application; Figure 3 This is a schematic diagram of a three-dimensional model to be processed according to an embodiment of this application; Figure 4 This is a schematic diagram of a target wireframe model provided in an embodiment of this application; Figure 5a This is a schematic diagram of a plane to be processed after being divided into multiple surfaces, according to an embodiment of this application; Figure 5b This is a schematic diagram of a plurality of target planes provided in an embodiment of this application; Figure 6This is a comparative schematic diagram of gradient point cloud data density adjustment before and after one embodiment of this application; Figure 7 This is a schematic diagram of a three-dimensional model to be processed after adding noise, provided in an embodiment of this application; Figure 8 This is a schematic diagram comparing noise point cloud data and target noise point cloud data according to an embodiment of this application; Figure 9 This is a schematic diagram illustrating the generation of curved point cloud data based on a preset point cloud curve, provided in an embodiment of this application. Figure 10 This is a schematic diagram illustrating the effect of a target overall fracture model corresponding to a gradual fracture type, provided in an embodiment of this application. Figure 11a This is a schematic diagram of an initial enclosure model provided in an embodiment of this application; Figure 11b This is a schematic diagram of a target enclosure model provided in an embodiment of this application; Figure 12a This is a schematic diagram of an internal model corresponding to a three-dimensional model to be processed, provided in an embodiment of this application; Figure 12b This is a schematic diagram of the effect of a target local fracturing model corresponding to a surface fracturing effect provided in an embodiment of this application; Figure 13 This is a schematic diagram illustrating the selection of fragments to be merged according to an embodiment of this application; Figure 14 This is a schematic diagram of the effect of a target localized fragmentation model corresponding to a partial fragmentation effect provided in an embodiment of this application; Figure 15a This is a schematic diagram of a notch selection model provided in an embodiment of this application; Figure 15b This is a schematic diagram of a bent, deformable line provided in an embodiment of this application; Figure 16 This is a schematic diagram of the effect of a target local fracture model corresponding to a notch fracture effect provided in an embodiment of this application; Figure 17a This is a schematic diagram of dividing lines to be processed according to an embodiment of this application; Figure 17b This is a schematic diagram of an initial reinforcement model provided in one embodiment of this application; Figure 18a This is a schematic diagram of a first type of target reinforcement model provided in an embodiment of this application; Figure 18b This is a schematic diagram of a second type of target reinforcement model provided in an embodiment of this application; Figure 18cThis is a schematic diagram of a third type of target reinforcement model provided in an embodiment of this application; Figure 18d This is a schematic diagram of a fourth type of target reinforcement model provided in an embodiment of this application; Figure 19 This is a schematic diagram of the structure of a three-dimensional model processing device provided in one embodiment of this application; Figure 20 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation

[0011] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0012] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.

[0013] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0014] First, the terms and concepts involved in one or more embodiments of this application will be explained.

[0015] Houdini is a 3D computer graphics software.

[0016] Boolean: This is Houdini's real-time Boolean modeling toolkit, which allows you to perform Boolean modeling operations on polygon meshes within the Houdini viewport.

[0017] A bounding box is a geometric shape used to describe the boundaries of objects in point cloud data. It is typically a cube or cylinder that can be used to enclose objects in point cloud data and facilitates the calculation of information such as the position, size, and shape of objects in the point cloud data.

[0018] In real life, 3D models are widely used in various fields, such as film and television, and gaming. Whether in animation or games, scenes of objects colliding or breaking frequently occur, requiring corresponding breakage effects. As user demands increase, the requirements for breakage effects generated by 3D models also rise. For example, the size of the broken fragments from the 3D model should vary, or in addition to overall breakage, the effect of partial breakage should also be generated.

[0019] This application provides a three-dimensional model processing method, and also relates to a three-dimensional model processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0020] See Figure 1a , Figure 1a A schematic diagram illustrating an application scenario of the first three-dimensional model processing method provided according to an embodiment of this application is shown. For example... Figure 1a As shown, the user is playing game A on the computer, and the corresponding game screen is as follows. Figure 1a As shown in the image. In the game screen of game A, a flowerpot is falling from a height to the ground (i.e., Figure 1a As shown by the arrow, if a flowerpot falls to the ground, it will break. The degree of breakage will vary depending on the height from which the flowerpot falls. For example, if a flowerpot falls from a high position, it may break completely; if it falls from a low position, it may only break part of the pot, such as the bottom. Therefore, it is necessary to simulate different breaking effects of the flowerpot depending on the location from which it falls.

[0021] For the aforementioned game scenario, the shattering effect caused by a flowerpot falling can be achieved using the 3D model processing method provided in this application. Specifically, to display the overall shattering effect of the flowerpot, the user's requirements can be determined first, including their needs for the size of the broken pieces and the specific broken parts. Based on these requirements, the target overall shattering type of the flowerpot is determined. If the target overall shattering type is a gradual shattering type (i.e., the user requires variations in the size of the broken pieces), since the flowerpot falls from a height to the ground, gradual point cloud data with density increasing or decreasing from high to low can be generated based on the height of the flowerpot's 3D model. Then, corresponding cutting surfaces are generated based on the gradual point cloud data. These cutting surfaces are used to cut the 3D model of the flowerpot, thereby obtaining the corresponding overall shattering model.

[0022] When the overall breakage type of the target is random breakage (i.e., the user has a need for changes in the shape of the broken pieces of the flowerpot), noise can be added to the surface or interior of the 3D model of the flowerpot. Noise point cloud data of different shapes can be generated according to the type of noise. Then, corresponding cutting surfaces can be generated based on the noise point cloud data. The generated cutting surfaces can be used to cut the 3D model of the flowerpot to obtain the corresponding overall breakage model.

[0023] When the target overall fracture model type is a specified fracture type (i.e., the user has a requirement for the fracture path of the flowerpot), multiple additional preset point cloud curves can be added to the 3D model of the flowerpot. These preset point cloud curves will randomly pass through the 3D model of the flowerpot and generate curve point cloud data around them. Then, a corresponding cutting surface will be generated based on the curve point cloud data. The generated cutting surface will be used to cut the 3D model of the flowerpot, thereby obtaining the corresponding overall fracture model.

[0024] In addition to the overall fragmentation effect that can be generated as described above, the three-dimensional model processing method provided in this application can also generate local fragmentation effects.

[0025] Furthermore, if a partially broken effect of the flowerpot needs to be displayed, the user's requirements must first be determined, i.e., the desired display effect information. Then, the 3D model of the flowerpot can be partially broken. If the display effect information is surface breakage, an additional bounding model can be generated based on the obtained 3D model of the flowerpot. This bounding model can then be distorted to segment the 3D model of the flowerpot. This segmentation results in an internal model with a distorted and broken surface and a surface model. Therefore, only the surface model needs to be broken to obtain the target partially broken model corresponding to the 3D model of the flowerpot.

[0026] If the displayed effect is a partially broken effect, you can select model fragments for merging from the fragments of the target overall broken model and glue the selected fragments together to achieve partial breaking of the flowerpot's 3D model and obtain a target locally broken model.

[0027] When the displayed effect is a broken or chipped effect, multiple notch selection models can be generated on the surface of the 3D model of the flowerpot. The notch selection models are used to select the location where the notch needs to be generated, and the selected part is deleted to obtain the 3D model of the flowerpot with the notch, i.e., the target local broken model.

[0028] In practical applications, the processing method for displaying broken or gapped effects can also be applied to architectural scenes to achieve the effect of a building being damaged, causing the steel bars inside to break or have gaps.

[0029] See Figure 1b , Figure 1b A schematic diagram illustrating an application scenario of the second three-dimensional model processing method provided according to an embodiment of this application is shown. For example... Figure 1b As shown, the user is playing game B on their computer, and the corresponding game screen is as follows. Figure 1b As shown in the image. In the game screen of game B, there is a house, and cannonballs are placed at a distance from the house. If the cannonballs fire at the house (i.e., Figure 1b If the arrow in the image points to the direction of the house, the house will be attacked and damaged, causing the steel reinforcement inside the house to break or have gaps.

[0030] For the above scenarios, the effect of broken or gapped steel bars inside the house can also be achieved using the 3D model processing method provided in this application. Specifically, a steel bar model corresponding to the house is obtained, multiple gap selection models are generated on the surface of the steel bar model, the steel bar lines selected by the gap selection models are deleted, and the remaining parts of the steel bar lines are bent to obtain the steel bar model after breakage and gaps, thus simulating the generation of breakage and gaps in the steel bar model.

[0031] The 3D model processing method provided in this application can be applied to different application scenarios and generate corresponding fracture models according to different user needs. The fracture effects that can be achieved are no longer singular, thus improving the richness of the generated fracture models.

[0032] Figure 2 The flowchart illustrates a three-dimensional model processing method according to an embodiment of this application, which specifically includes the following steps: Step 202: Obtain the target crushing task, wherein the target crushing task includes a 3D model to be processed and a target crushing type for the 3D model to be processed.

[0033] The target fragmentation task refers to the task of fragmenting the 3D model to be processed. The 3D model to be processed refers to the 3D model that needs to be fragmented; the 3D model to be processed can be the 3D model corresponding to any object that needs to be fragmented, such as the 3D model of a flower pot, the 3D model of a cup, etc.

[0034] The target fragmentation type refers to the fragmentation type of the 3D model to be processed, which can be further divided into overall fragmentation type and partial fragmentation type. Overall fragmentation type involves fragmenting the entire 3D model to achieve the desired visual effect of overall fragmentation. Partial fragmentation type involves fragmenting a specific area of ​​the 3D model to achieve the desired visual effect of partial fragmentation.

[0035] Specifically, by acquiring the target crushing task, one can obtain the 3D model to be processed for the target crushing task and the target crushing type for the 3D model to be processed. In the subsequent crushing process, the 3D model to be processed is crushed according to the target crushing type to achieve the corresponding display effect.

[0036] Step 204: If the target fragmentation type is the overall fragmentation type, create point cloud data for the overall fragmentation type, and generate the target overall fragmentation model corresponding to the three-dimensional model to be processed based on the point cloud data.

[0037] Among them, the overall broken target model refers to the three-dimensional model after the three-dimensional model to be processed has been subjected to overall broken processing, and the display effect of the overall broken target model is overall broken.

[0038] Specifically, after determining that the target fragmentation type of the 3D model to be processed is the overall fragmentation type, the overall fragmentation processing of the 3D model to be processed can be achieved by creating point cloud data corresponding to the 3D model to be processed and generating cutting surfaces for cutting the 3D model to be processed based on the point cloud data.

[0039] In practical applications, the overall fragmentation effect of an object may vary depending on the collision or attack it receives. Therefore, the 3D model processing method provided in this application can achieve different types of overall fragmentation effects. Thus, the point cloud data corresponding to the 3D model to be processed can be created according to different overall fragmentation types.

[0040] In one specific embodiment provided in this application, creating point cloud data for the overall fragmentation type includes: Determine the target overall crushing type corresponding to the overall crushing type; Based on the overall fragmentation type of the target, determine the point cloud data creation method corresponding to the overall fragmentation type of the target; Create point cloud data according to the point cloud data creation method described above.

[0041] Among them, the overall fragmentation type of the target refers to the fragmentation type to be displayed after the overall fragmentation of the 3D model to be processed, that is, the display effect type corresponding to the overall fragmentation model of the target, which can include gradient fragmentation type, random fragmentation type and specified fragmentation type.

[0042] Gradual fragmentation refers to a type of model fragmentation where the resulting fragments gradually increase or decrease in size after overall fragmentation. Specifically, this can be based on the height or width of the 3D model being processed. In other words, gradual fragmentation allows the fragments of the fragmented model (i.e., the target overall fragmented model) to exhibit differences in size based on either the model's height or width.

[0043] Random fragmentation refers to a type of model fragmentation where, after overall fragmentation, the resulting fragments are randomly distributed based on noise information. Specifically, this can involve generating model fragments of different shapes depending on the type of noise.

[0044] Specifying the fragmentation type refers to the type of model fragments generated after overall fragmentation that are located on the specified path.

[0045] Point cloud data creation method refers to the method used to create point cloud data. Different target overall fragmentation types correspond to different point cloud data creation methods.

[0046] Specifically, to display different overall fragmentation effects of the 3D model being processed, the point cloud data creation methods differ depending on the fragmentation type. Therefore, it is necessary to first determine the target overall fragmentation type of the 3D model being processed, and then determine the corresponding point cloud data creation method based on the target overall fragmentation type, so as to create point cloud data according to the point cloud data creation method. The implementation process of determining the point cloud data creation method based on the target overall fragmentation type is as follows: In one specific embodiment provided in this application, determining the point cloud data creation method corresponding to the overall fragmentation type of the target includes: When the overall fragmentation type of the target is a gradual fragmentation type, the point cloud data creation method corresponding to the gradual fragmentation type is determined to be gradual point cloud creation; When the overall fragmentation type of the target is random fragmentation, the point cloud data creation method corresponding to the random fragmentation type is determined to be noisy point cloud creation; When the overall fragmentation type of the target is a specified fragmentation type, the point cloud data creation method corresponding to the specified fragmentation type is determined to be curve point cloud creation.

[0047] Among them, gradient point cloud creation refers to creating gradient point cloud data; noisy point cloud creation refers to creating point cloud data by adding noise; and curve point cloud creation refers to creating point cloud data based on a preset point cloud curve.

[0048] Specifically, if the overall fragmentation type of the target is determined to be gradual fragmentation, then the point cloud data creation method can be determined to be gradual point cloud creation; if the overall fragmentation type of the target is determined to be random fragmentation, then the point cloud data creation method can be determined to be noisy point cloud creation; if the overall fragmentation type of the target is determined to be specified fragmentation, then the point cloud data creation method can be determined to be curved point cloud creation. The following sections explain gradual point cloud creation, noisy point cloud creation, and curved point cloud creation respectively.

[0049] In one specific embodiment provided in this application, the point cloud data creation method includes gradient point cloud creation; Creating point cloud data according to the aforementioned point cloud data creation method includes: Create an initial wireframe model corresponding to the 3D model to be processed, and determine the division direction of the initial wireframe model; Based on the division direction, the initial wireframe model is divided to obtain the target wireframe model; Based on the target wireframe model, the 3D model to be processed is divided into multiple planes to be processed; Each plane to be processed is distorted to obtain the target plane corresponding to each plane to be processed. Generate gradient point cloud data corresponding to each target plane.

[0050] The initial wireframe model refers to the model used to enclose the 3D model to be processed; specifically, it can be understood as the wireframe bounding box of the 3D model to be processed. The partitioning direction refers to the direction in which the initial wireframe model is partitioned. For example, if the partitioning direction is the vertical axis, the initial wireframe model needs to be partitioned along the vertical axis; if the partitioning direction is the horizontal axis, the initial wireframe model needs to be partitioned along the horizontal axis. The target wireframe model refers to the wireframe model after the initial wireframe model has been partitioned.

[0051] Specifically, see each Figure 3 and Figure 4 , Figure 3A schematic diagram of a three-dimensional model to be processed according to an embodiment of this application is shown. Figure 4 A schematic diagram of a target wireframe model according to an embodiment of this application is shown. The explanation is based on an example of a cube as the 3D model to be processed. Figure 3 As shown, the 3D model to be processed is a cube, and its corresponding initial wireframe model ( Figure 3 (Not shown in the image) is the corresponding wireframe bounding box, used to enclose the 3D model to be processed, and its shape is a cube.

[0052] like Figure 4 As shown, the target wireframe model has been divided along its vertical axis. That is, the initial wireframe model ( Figure 4 (Not shown in the image) The division direction is the vertical axis, and the initial wireframe model was divided along the vertical axis, resulting in the following: Figure 4 The target wireframe model is shown. It should be noted that in practical applications, the initial wireframe model is not limited to being divided along its vertical axis; it can also be divided along its horizontal axis. For example, if the model fragments need to be differentiated in size based on the height of the 3D model to be processed, the initial wireframe model can be divided along its vertical axis; if the model fragments need to be differentiated in size based on the width of the 3D model to be processed, the initial wireframe model can be divided along its horizontal axis. The specific division depends on the actual application and is not limited in this application.

[0053] The plane to be processed refers to the model plane obtained after dividing the 3D model to be processed. The target plane refers to the plane to be processed after distortion, and the height of the target plane is irregular.

[0054] Gradient point cloud data refers to point cloud data generated based on the gradient point cloud creation method.

[0055] Specifically, after determining that the point cloud data creation method is gradient point cloud creation, that is, after determining that the overall fragmentation type of the target 3D model to be processed is gradient fragmentation, an initial wireframe model corresponding to it is created based on the 3D model to be processed, and the division direction of the initial wireframe model is determined. Dividing the initial wireframe model according to the division direction yields the target wireframe model. Then, based on the target wireframe model, the 3D model to be processed is divided into multiple planes to be processed. Subsequently, each plane to be processed is distorted to obtain multiple target planes. Gradient point cloud data is generated based on each target plane. The method for distorting each plane to be processed is as follows: In one specific embodiment provided in this application, the distortion process for each plane to be processed includes: The target plane to be processed is divided into multiple planes to be processed, wherein the target plane to be processed is any one of the planes to be processed; Noise is added to each surface to be processed to obtain the noise information corresponding to each surface. Based on the noise information corresponding to each surface to be processed, determine the deformation value corresponding to each surface to be processed; The deformation value corresponding to the target surface to be processed is determined as the displacement to be processed of the target surface to be processed, wherein the target surface to be processed is any one of the surfaces to be processed; Based on the displacement to be processed, move the target surface to be processed.

[0056] Here, the target plane to be processed is any one of the various planes to be processed. The surfaces to be processed refer to the multiple surfaces obtained after dividing the plane to be processed into surfaces, which are used for subsequent processing. Specifically, it can be understood as multiple sub-surfaces obtained by subdividing the plane to be processed. The shape of the surfaces to be processed is not limited.

[0057] Noise information can specifically include the noise value corresponding to the surface to be processed. The noise value refers to the numerical value of the noise added to the surface to be processed. The noise value can be between 0 and 1, or between -1 and 1.

[0058] The deformation value corresponding to the surface to be processed refers to the parameter value that causes the surface to produce a distortion effect, and is used to characterize the degree of distortion of the surface. In practical applications, in order to achieve uniformity between the color and distortion of the surface to be processed, the color value corresponding to each surface to be processed can also be determined as the deformation value corresponding to each surface. Since each surface to be processed, each point on each surface, and the corresponding vertex of each surface will inherit the added noise information after noise is added, the color value corresponding to each surface to be processed is consistent with the noise value corresponding to each surface. That is, the deformation value corresponding to each surface to be processed can specifically be the noise value or the color value corresponding to each surface. The noise value or color value corresponding to each surface to be processed can be between 0 and 1, or between -1 and 1.

[0059] Furthermore, the deformation values ​​corresponding to the surfaces to be processed can be stored as vertex colors in each vertex of the surface to be processed, or they can be stored in other forms in the surface to be processed or other points of the surface to be processed. For example, the deformation values ​​can be stored as a data list on the surface to be processed. In this way, when performing distortion deformation processing on any surface to be processed, it is only necessary to obtain the data list corresponding to the surface to be processed (the data list stores the deformation values ​​corresponding to each surface to be processed) to determine the corresponding deformation value, and then perform distortion deformation processing on the surface to be processed based on the obtained deformation value.

[0060] The target surface to be processed can be any one of the various surfaces to be processed. The displacement to be processed refers to the displacement that the target surface to be processed needs to move. It can also be the displacement that each vertex of the target surface to be processed needs to move, or the displacement that other points in the target surface to be processed need to move.

[0061] Specifically, after obtaining the target plane to be processed, since it is only a single plane with a small number of faces, directly generating point cloud data from it may result in a poorly fragmented model in the final presentation. Therefore, the target plane to be processed can be divided into multiple surfaces to be processed. When dividing the target plane to be processed, the Remsh node in Houdini can be used to divide it, thereby obtaining multiple surfaces to be processed.

[0062] See Figure 5a , Figure 5a A schematic diagram of a plane to be processed after being divided into multiple surfaces according to an embodiment of this application is shown. Figure 5a As shown, Figure 5a The multiple planes in the diagram are the planes to be processed after dividing the area into planes to be processed.

[0063] After obtaining multiple planes to be processed after dividing them into multiple planes to be processed, one-dimensional noise is added to the planes to be processed. That is, one-dimensional noise is added to multiple planes to be processed, and the noise information corresponding to each plane to be processed is obtained.

[0064] Taking the storage of added noise at the vertices corresponding to each surface to be processed as an example, the noise value corresponding to each vertex of the target surface to be processed is determined, and the noise value corresponding to each vertex is determined as the color value corresponding to each vertex. For example, if the noise value of a vertex of the surface to be processed S is 0.5, then the color value corresponding to that vertex is also 0.5.

[0065] Furthermore, the color value of the target vertex (any one of the vertices of the target surface to be processed) is determined as the displacement to be processed for the target vertex, and the target vertex is moved according to the displacement to be processed. During the movement of the target vertex, in order to obtain a target plane with an irregular shape in height, the target vertex can be moved in the opposite direction to the surface normal of each surface to be processed, or it can be moved in the positive direction to the surface normal of each surface to be processed. After all the vertices corresponding to the target surface to be processed have been moved, it is said that the movement of the target surface to be processed is complete. After all the surfaces to be processed on the target surface to be processed have been moved, the corresponding target plane can be obtained.

[0066] See Figure 5b , Figure 5b A schematic diagram of a plurality of target planes according to an embodiment of this application is shown. Figure 5b As shown, Figure 5bThe multiple irregularly shaped planes in the image represent the target planes corresponding to each plane to be processed. Based on these target planes, as shown in Figure 5b, corresponding gradient point cloud data can be generated.

[0067] Furthermore, to make the overall fragmentation model of the target appear more natural, the density of the generated gradient point cloud data can be adjusted, as follows: In one specific embodiment provided in this application, after generating the gradient point cloud data corresponding to each target plane, the method further includes: Adjust the density of the gradient point cloud data; Clean the gradient point cloud data according to the adjusted density of the gradient point cloud data.

[0068] Specifically, after generating the gradient point cloud data, its density can be adjusted. During this adjustment, a density adjustment curve can be used to obtain the density changes in the gradient point cloud data. After the density adjustment is complete, since the spacing between points in the gradient point cloud data may be too close, data cleaning can be performed on the overly close points. For example, closely spaced points can be merged or deleted.

[0069] See Figure 6 , Figure 6 A comparative schematic diagram showing the difference before and after a gradient point cloud data density adjustment according to an embodiment of this application is shown. Figure 6 As shown, Figure 6 The left part shows the gradient point cloud data before density adjustment. Figure 6 The right side shows the density-adjusted gradient point cloud data. Compared to the unadjusted gradient point cloud data, the adjusted data has a more uniform density distribution.

[0070] The three-dimensional model processing method provided in this application can perform gradual fragmentation processing on the three-dimensional model to be processed with a gradual fragmentation type. By taking into account the height or width of the three-dimensional model to be processed, the generated gradual point cloud data can be distributed according to the height or width of the three-dimensional model to be processed, thereby generating a target overall fragmentation model with a corresponding distribution.

[0071] In another specific embodiment provided in this application, the point cloud data creation method includes noisy point cloud creation; Creating point cloud data according to the aforementioned point cloud data creation method includes: The surface of the 3D model to be processed is divided to obtain multiple surfaces to be processed; Add noise to each surface to be processed; Based on the noise, generate noise point cloud data corresponding to the three-dimensional model to be processed.

[0072] Specifically, using the same method as described above for dividing the planes to be processed, the surface of the 3D model to be processed is divided into multiple planes to be processed. One-dimensional noise is added to the surface of the 3D model to be processed. That is, one-dimensional noise is added to multiple planes to be processed on the surface of the 3D model to be processed, and corresponding noise point cloud data is generated based on the added noise.

[0073] The 3D model to be processed after adding noise can be found in [reference needed]. Figure 7 , Figure 7 A schematic diagram of a three-dimensional model to be processed after adding noise is shown according to an embodiment of this application.

[0074] After generating the noise point cloud data, users can adjust the generated noise point cloud data according to their own needs, so that different overall fragmentation models with different fragmentation effects can be generated in subsequent processes.

[0075] Based on this, in a specific embodiment provided in this application, after generating the noise point cloud data corresponding to the three-dimensional model to be processed according to the noise, the method further includes: Obtain the noise information and preset point cloud range corresponding to each surface to be processed; Based on the noise information and the preset point cloud range, target noise point cloud data is extracted from the noise point cloud data.

[0076] The noise information includes the noise and color values ​​corresponding to the surface to be processed, which can be understood as the noise and color values ​​corresponding to each point and vertex in the surface to be processed. The preset point cloud range refers to the pre-set data range used to extract the target noise point cloud data, specifically the range of noise or color values ​​for each point and vertex in the surface to be processed. The target noise point cloud data is the noise point cloud data within the preset point cloud range.

[0077] Specifically, after generating the noisy point cloud data, the noise value or color value of each point and vertex in each surface to be processed is obtained, as well as the preset point cloud range. For example, if the preset point cloud range is (0.5, 1), then the point cloud data with noise value or color value within (0.5, 1) is extracted as the target noisy point cloud data.

[0078] See Figure 8 , Figure 8 A comparative schematic diagram of noise point cloud data and target noise point cloud data provided according to an embodiment of this application is shown. Figure 8 As shown, Figure 8 The left part is the noise point cloud data generated based on the added noise. Figure 8 The right part is the target noise point cloud data extracted from the noise point cloud data based on the preset point cloud range.

[0079] The 3D model processing method provided in this application adds noise to the surface of the 3D model to be processed and generates corresponding noise point cloud data based on the noise. Furthermore, it can extract the target noise point cloud range from the noise point cloud data based on a preset point cloud range, thereby creating noise point cloud data as required by the user.

[0080] In another specific embodiment provided in this application, the point cloud creation method includes curve point cloud creation; Creating point cloud data according to the aforementioned point cloud data creation method includes: Obtain at least one preset point cloud curve; Pass each preset point cloud curve through the three-dimensional model to be processed; Generate curve point cloud data along each preset point cloud curve.

[0081] The preset point cloud curve is used to determine the location and generation of the curve point cloud data. The preset point cloud curve can be generated by the user, and this application does not limit the direction or number of preset point cloud curves.

[0082] Specifically, at least one preset point cloud curve is obtained, and each preset point cloud curve is randomly passed through the 3D model to be processed to generate curve point cloud data around the preset point cloud curve. It should be noted that the preset point cloud curve can pass through each model surface or vertex of the 3D model to be processed.

[0083] See Figure 9 , Figure 9 This diagram illustrates a method for generating curved point cloud data based on a preset point cloud curve, according to an embodiment of this application. Figure 9 As shown, a preset point cloud curve will be used as an example for explanation. (The following is a more detailed explanation.) Figure 9 The preset point cloud curve shown passes through the 3D model to be processed, and curve point cloud data is generated along the direction of the preset point cloud curve.

[0084] The 3D model processing method provided in this application can generate curve point cloud data by using additional preset point cloud curves, so as to realize the generation of curve point cloud data on a specified path.

[0085] Furthermore, after generating the corresponding point cloud data based on the above three point cloud data creation methods, it is also necessary to process the generated point cloud data to generate the target overall broken model.

[0086] In one specific embodiment provided in this application, generating a target overall fragmentation model corresponding to the three-dimensional model to be processed based on the point cloud data includes: Multiple cutting surfaces are generated based on the point cloud data; The three-dimensional model to be processed is cut using various cutting surfaces to obtain the target overall broken model corresponding to the three-dimensional model to be processed.

[0087] The cutting surface is used to cut the 3D model to be processed.

[0088] Specifically, multiple cutting surfaces are generated based on the generated point cloud data. The Voronoi algorithm can be used to generate cutting surfaces based on the point cloud data. Then, each cutting surface is used to cut the 3D model to be processed, thereby obtaining the overall broken model of the target after cutting, that is, the overall broken model corresponding to the 3D model to be processed.

[0089] It should be noted that in practical applications, the above three point cloud data creation methods can be used independently or in combination, depending on the specific application.

[0090] Further, see Figure 10 , Figure 10 This diagram illustrates the effect of a target overall fracture model corresponding to a gradual fracture type according to an embodiment of this application. For example... Figure 10 The image shown is a schematic diagram of the overall fragmentation effect of the 3D model to be processed, that is, a schematic diagram of the overall fragmentation effect of the target model. Figure 10 As shown, the fragments of the target overall fracture model gradually increase in size from high to low. This achieves the effect of varying fragment sizes in terms of height within the target overall fracture model.

[0091] The 3D model processing method provided in this application offers three point cloud data creation methods for the overall fragmentation of the 3D model to be processed. Different point cloud data can be generated according to different point cloud data creation methods, so the target overall fragmentation model generated according to different point cloud data can present different overall fragmentation effects.

[0092] Step 206: If the target fragmentation type is a local fragmentation type, obtain the display effect information for the local fragmentation type, determine the target processing strategy corresponding to the display effect information based on the display effect information, and generate the target local fragmentation model corresponding to the three-dimensional model to be processed based on the target processing strategy.

[0093] The display effect information refers to the effect information that needs to be displayed after the 3D model to be processed has undergone localized fracturing. Specifically, it can include surface fracturing effect, partial fracturing effect, and notched fracturing effect.

[0094] Surface fracturing effect refers to the display effect corresponding to the fracturing of the surface of the 3D model to be processed.

[0095] Partially broken effect refers to the display effect corresponding to the partial breakage of a 3D model to be processed.

[0096] The notch / fragmentation effect refers to the visual effect of creating notches / fragments in a 3D model.

[0097] Target processing strategy refers to the strategy used to perform local fragmentation processing on the 3D model to be processed based on the display effect information. Different display effect information corresponds to different target processing strategies.

[0098] The target locally broken model refers to the 3D model after the 3D model to be processed has undergone local broken processing, and the display effect of the target locally broken model is local broken.

[0099] Specifically, after determining that the target fragmentation type corresponding to the 3D model to be processed is the local fragmentation type, the display effect information for the local fragmentation type is obtained, and the corresponding target processing strategy is determined based on the display effect information, so as to generate the target local fragmentation model corresponding to the 3D model to be processed according to the target processing strategy.

[0100] In one specific embodiment provided in this application, determining the target processing strategy corresponding to the display effect information based on the display effect information includes: If the displayed effect information is a surface breakage effect, the target processing strategy corresponding to the surface breakage effect is determined to be a surface breakage processing strategy. If the displayed effect information is a partially broken effect, the target processing strategy corresponding to the partially broken effect is determined to be a merged broken processing strategy; If the displayed effect information is a notch breakage effect, the target processing strategy corresponding to the notch breakage effect is determined to be the box selection breakage processing strategy.

[0101] Among them, the surface fragmentation processing strategy refers to the strategy used to perform local fragmentation processing on the 3D model to be processed, so that the fragmented 3D model to be processed (i.e. the target locally fragmented model) presents a surface fragmentation display effect.

[0102] The merged fragmentation processing strategy refers to the strategy used to perform local fragmentation processing on the 3D model to be processed, so that the fragmented 3D model to be processed (i.e. the target locally fragmented model) presents a partially fragmented (non-surface fragmentation) display effect.

[0103] The box selection and fragmentation strategy refers to a strategy used to perform local fragmentation on the 3D model to be processed, so that the fragmented 3D model (i.e. the target locally fragmented model) presents a notched fragmentation display effect.

[0104] Specifically, if the display effect information of the 3D model to be processed is determined to be a surface fracture effect, then the target processing strategy can be determined as a surface fracture processing strategy; if the display effect information of the 3D model to be processed is determined to be a partial fracture effect, then the target processing strategy can be determined as a merged fracture processing strategy; if the display effect information of the 3D model to be processed is determined to be a notched fracture effect, then the target processing strategy can be determined as a bounding box fracture processing strategy. The following sections explain the surface fracture processing strategy, the merged fracture processing strategy, and the notched bounding box processing strategy, respectively.

[0105] In one specific embodiment provided in this application, the target processing strategy includes a surface fragmentation processing strategy; Generate a target locally fragmented model corresponding to the 3D model to be processed according to the target processing strategy, including: Based on the 3D model to be processed, generate an initial bounding model corresponding to the 3D model to be processed; The initial bounding model is distorted to obtain the target bounding model corresponding to the initial bounding model; The 3D model to be processed is segmented based on the target bounding model to obtain the surface model and internal model corresponding to the 3D model to be processed. The surface model is broken to obtain the skin broken model corresponding to the three-dimensional model to be processed; Based on the internal model and the epidermal fragmentation model, the target local fragmentation model is obtained.

[0106] The initial bounding model refers to a model with the same shape as the 3D model to be processed, but slightly larger in size. The initial bounding model can be a hollow model or a solid model. It can be generated from the 3D model to be processed or created by the user.

[0107] See Figure 11a , Figure 11a A schematic diagram of an initial enclosure model provided according to an embodiment of this application is shown. Figure 11a As shown, the initial enclosing model is a hollow or solid model with thickness, and the initial enclosing model can be a mesh model.

[0108] A target bounding model refers to the bounding model obtained after distorting the initial bounding model. See also Figure 11b , Figure 11b A schematic diagram of a target enclosure model according to an embodiment of this application is shown. Figure 11b As shown, the surface of the model surrounding the target is distorted and exhibits an uneven and irregular shape.

[0109] The surface model refers to the outer surface of the 3D model being processed, after dividing it from the inside out. The internal model refers to the internal part of the 3D model being processed, after dividing it from the inside out. See also Figure 12a , Figure 12a A schematic diagram of an internal model corresponding to a three-dimensional model to be processed, according to an embodiment of this application, is shown. For example... Figure 12a As shown, Figure 12a The rectangular outline in the image represents the size of the 3D model to be processed, while the model inside the rectangular outline is the internal model after the surface model has been extracted. The surface of the internal model is irregular and uneven.

[0110] A surface-fractured model refers to a model after the surface model has been fractured.

[0111] Specifically, after determining the target processing strategy as a surface fragmentation strategy, an initial bounding model is generated based on the 3D model to be processed, or the user can create the initial bounding model themselves. The initial bounding model is then distorted to obtain the target bounding model. This target bounding model is used to segment the 3D model to be processed, yielding the surface model and the internal model. To achieve the surface fragmentation effect of the 3D model, only the surface model needs to be fragmented separately to obtain the corresponding surface fragmentation model. In this way, the internal model and the surface fragmentation model constitute the target local fragmentation model corresponding to the 3D model to be processed, and the display effect of this target local fragmentation model is the surface fragmentation effect.

[0112] See Figure 12b , Figure 12b This illustration shows a schematic diagram of the effect of a target local fracturing model corresponding to a surface fracturing effect according to an embodiment of this application. For example... Figure 12b As shown, the surface model of the 3D model to be processed has been broken (i.e., the surface is broken), but its corresponding internal model has not been broken, thus presenting a broken surface effect.

[0113] In practical applications, when an object's surface breaks, the internal parts in contact with the surface also exhibit an uneven and irregular shape. To better reflect real-life situations, the 3D model processing method provided in this application can also achieve this effect, and this effect is achieved through a target bounding model. Based on this, to achieve this effect, the initial bounding model used to obtain the target bounding model is actually composed of two bounding models. The method for generating the initial bounding model is as follows: In one specific embodiment provided in this application, generating an initial bounding model corresponding to the three-dimensional model to be processed, based on the three-dimensional model to be processed, includes: Enlarge the three-dimensional model to be processed to obtain a first bounding model; The 3D model to be processed is reduced in size to obtain a second bounding model; The first enclosing model and the second enclosing model are merged to obtain the initial enclosing model.

[0114] The first bounding model refers to a model whose size is larger than the size of the 3D model to be processed. The second bounding model refers to a model whose size is smaller than the size of the 3D model to be processed.

[0115] Specifically, by enlarging the 3D model to be processed, a first bounding model can be obtained; by shrinking the 3D model to be processed, a second bounding model can be obtained; and by merging the first and second bounding models, an initial bounding model can be obtained.

[0116] Since the size of the first bounding model is larger than the size of the 3D model to be processed, and the size of the second bounding model is smaller than the size of the 3D model to be processed, the size of the first bounding model will also be larger than the size of the second bounding model. Therefore, after merging the first bounding model and the second bounding model, there will be a gap between the first bounding model and the second bounding model. That is, the initial bounding model is a bounding model with thickness.

[0117] In practical applications, the 3D model to be processed may be a relatively simple model. In the process of generating the corresponding initial bounding model, the 3D model to be processed can be directly enlarged or reduced, and the enlarged or reduced model can be converted into a mesh model to obtain the first bounding model and the second bounding model.

[0118] However, the 3D model to be processed may be a model with a relatively complex structure. In this case, directly converting the enlarged or reduced model into a mesh model may cause structural flaws to be visible in the enlarged or reduced model. To avoid this problem, the 3D model to be processed can be converted into a voxel model first, and then the voxel model can be enlarged or reduced, or converted into a mesh model.

[0119] Since the initial bounding model is composed of the first bounding model and the second bounding model, and in order to achieve the uneven and irregular shape presented by the internal model, it is necessary to process both the first bounding model and the second bounding model during the distortion process of the initial bounding model.

[0120] Based on this, in a specific embodiment provided in this application, the initial enclosure model is distorted, including: The model surfaces of the first enclosing model and the second enclosing model are respectively divided into multiple surfaces to be processed; Noise is added to each surface to be processed in the first bounding model to obtain noise information corresponding to each surface to be processed in the first bounding model. Noise is added to each surface to be processed in the second bounding model to obtain noise information corresponding to each surface to be processed in the second bounding model. Based on the noise information corresponding to each surface to be processed in the first bounding model, the deformation value corresponding to each surface to be processed in the first bounding model is determined; based on the noise information corresponding to each surface to be processed in the second bounding model, the deformation value corresponding to each surface to be processed in the second bounding model is determined. The deformation value corresponding to the target surface to be processed is determined as the displacement to be processed of the target surface to be processed, wherein the target surface to be processed is any one of the surfaces to be processed in the first enclosing model or the second enclosing model; Based on the displacement to be processed, move the target surface to be processed.

[0121] Specifically, the initial bounding model is distorted, which means distorting the first bounding model and the second bounding model respectively. The following explanation focuses on distorting the first bounding model: Similar to the method described above for distorting each plane to be processed, firstly, the model surface of the first enclosing model is divided into multiple planes to be processed. This division can be achieved using the Remsh node in Houdini, resulting in multiple planes to be processed. Next, one-dimensional noise is added to the model surface of the first enclosing model; that is, one-dimensional noise is added to each plane to be processed. The noise information corresponding to each plane is then obtained, and the deformation value of each plane is determined based on this noise information. For example, the added noise is stored at the vertices corresponding to each plane to be processed, and the noise value at each vertex is used to determine the deformation value of that vertex. Then, the deformation value of the target vertex (any one of the vertices of the target plane to be processed) is determined as the displacement to be processed for that target vertex, and the target vertex is moved according to this displacement. During the movement of target vertices, to obtain a model surface with an irregular height, the target vertices can be moved either in the opposite direction to the surface normals of each surface to be processed, or in the positive direction to the surface normals of each surface to be processed. Once all vertices corresponding to the target surface to be processed have been moved, the movement of the target surface to be processed is considered complete. After all the surfaces to be processed on the model surface of the first enclosing model have been moved, the distorted first enclosing model is obtained.

[0122] Similar to the method for distorting the first enclosing model described above, the method for distorting the second enclosing model can be found in the method for distorting the first enclosing model described above, and will not be repeated here.

[0123] The 3D model processing method provided in this application, after determining that the display effect information of the 3D model to be processed is a surface fracture effect, can perform local fracture processing on the 3D model to be processed according to the corresponding surface fracture processing strategy to achieve the surface fracture effect of the 3D model to be processed.

[0124] In another specific embodiment provided in this application, the target processing strategy includes a merging and fragmentation processing strategy; Generate a target locally fragmented model corresponding to the 3D model to be processed according to the target processing strategy, including: Obtain the overall fracture model of the target, wherein the overall fracture model of the target is obtained according to the above-described three-dimensional model processing method; In the target overall fragmentation model, select multiple fragments to be merged; By bonding the individual fragments to be merged, a target local model for merging is obtained; Based on the unselected model fragments in the target merging local model and the target overall fragmentation model, the target local fragmentation model is obtained, wherein the unselected model fragments are model fragments in the target overall fragmentation model that were not selected as fragments to be merged.

[0125] Among them, "fragments to be merged" refers to model fragments in the overall target fragmentation model that are used as non-fragmented parts. "Target merged local model" refers to the merged model constructed based on the fragments to be merged. "Unselected model fragments" refers to model fragments in the overall target fragmentation model that are used as fragmented parts; that is, model fragments in the overall target fragmentation model that were not selected as fragments to be merged, i.e., model fragments in the overall target fragmentation model other than those to be merged.

[0126] Specifically, a target overall fragmentation model is obtained, which can be generated using any one or a combination of the three methods described above. Multiple fragments to be merged are selected from the target overall fragmentation model and then glued together to form a target merging local model. In this way, the target merging local model and the model fragments in the target overall fragmentation model, excluding the fragments to be merged, together constitute the target local fragmentation model.

[0127] See Figure 13 , Figure 13 A schematic diagram illustrating the selection of fragments to be merged according to an embodiment of this application is shown. Figure 13 As shown, Figure 13The selected model fragments in the lower half are the fragments to be merged. In the actual selection process, the Group node in Houdini can be used. It should be noted that during the selection process, each model fragment is considered selected as a fragment to be merged if at least one point is selected.

[0128] See Figure 14 , Figure 14 This diagram illustrates the effect of a target localized fragmentation model corresponding to a partial fragmentation effect according to an embodiment of this application. For example... Figure 14 As shown, the upper part of the target local fracture model exhibits a fractured effect, while the lower part exhibits a merged effect. That is, in the target local fracture model, only a portion is in a fractured state, achieving a partial fracture effect on the 3D model to be processed.

[0129] During the process of bonding the fragments to be merged, multiple overlapping surfaces will be generated. Therefore, it is necessary to delete the overlapping surfaces generated after bonding.

[0130] Based on this, in a specific embodiment provided in this application, the process of bonding the fragments to be merged to obtain a target merged local model includes: Adhere the individual fragments to be merged to obtain an initial merged local model; Identify at least one model overlapping surface in the initial merged local model, wherein the model overlapping surface is the overlapping surface of each fragment to be merged; Delete the overlapping surfaces of each model in the initial merged local model to obtain the target merged local model.

[0131] The initial merged local model refers to the merged model obtained after the fragments to be merged are glued together. At this time, the initial merged local model contains a large number of overlapping surfaces.

[0132] The model overlap surface refers to the overlapping surface of the various fragments to be merged generated within the initial merged local model. For example, if fragment 1 and fragment 2 to be merged are stacked one on top of the other, with fragment 1 on top and fragment 2 on the bottom, then the lower surface of the model of fragment 1 will overlap with the upper surface of the model of fragment 2. The overlapping surface obtained based on the lower surface of the model of fragment 1 and the upper surface of the model of fragment 2 is the model overlap surface.

[0133] The target merged local model is the hollow initial merged local model after deleting the overlapping surfaces of the models.

[0134] Specifically, by gluing together multiple selected fragments to be merged, an initial merged local model can be obtained. The overlapping surfaces within this initial merged local model are then identified and deleted to obtain the target merged local model. During the deletion of overlapping surfaces, the Boolean modeling toolkit in Houdini can be used to remove multiple overlapping surfaces from the initial merged local model.

[0135] It should be noted that since the target merging local model is formed by bonding together fragments that have already been broken, the wiring on the surface of the target merging local model caused by the breakage will not be eliminated, and the retained wiring can be used to simulate the breakage traces of the non-broken parts, making the breakage effect more realistic and natural.

[0136] The 3D model processing method provided in this application, after determining that the display effect information of the 3D model to be processed is a partially broken effect, can perform local broken processing on the 3D model to be processed according to the corresponding merged broken processing strategy, so as to achieve the partially broken effect of the 3D model to be processed.

[0137] In practical applications, the fracture effect is often applied to architectural models, which typically have internal steel reinforcement structures. If these internal steel reinforcement models are subjected to sufficiently strong external forces, they may also fracture and break.

[0138] In yet another specific embodiment provided in this application, the target processing strategy includes a box-selection crushing processing strategy; Generate a target locally fragmented model corresponding to the 3D model to be processed according to the target processing strategy, including: Obtain the target steel reinforcement model corresponding to the three-dimensional model to be processed; At least one notch-selected model is generated on the surface of the target rebar model; The lines selected by the notch-shaped model are identified as the lines to be deleted. Each line to be deleted is removed from the target rebar model to obtain the target locally broken model.

[0139] The target rebar model refers to the rebar model that needs to be broken. The notch selection model is used to select the location where a notch will be created on the surface of the target rebar model. The notch selection model can be a sphere, cube, etc., and can be set according to the actual application. The number of notch selection models can also be set according to the actual application.

[0140] The lines to be deleted are those selected by the notch selection model.

[0141] Specifically, the target rebar model corresponding to the 3D model to be processed is obtained. Here, the 3D model to be processed is any building model containing rebar. Multiple notch selection frames are generated on the surface of the target rebar model. (See [link to relevant documentation]). Figure 15a , Figure 15a The diagram illustrates a method for generating a notch selection model according to an embodiment of this application. Figure 15a The explanation will use a sphere model as an example, with the notch selection model as an example. Figure 15a As shown, multiple spherical models (i.e., the notch selection model) are generated on the surface of the target rebar model. Each spherical model overlaps with the target rebar model (i.e., the selected model lines). The selected model lines are identified as the lines to be deleted. Then, deleting the lines to be deleted from the target rebar model yields the target locally broken model.

[0142] It should be noted that this application does not impose specific limitations on the size of the gap selection model; the size of the gap selection model only needs to be smaller than the size of the target rebar model.

[0143] To better reflect the actual scenario, the steel bars after the gap is created will not be straight, but slightly curved. Therefore, after deleting the lines to be deleted, the remaining lines need to be curved.

[0144] In one specific embodiment provided in this application, after deleting each line to be deleted from the target rebar model, the method further includes: The remaining lines corresponding to each line to be deleted are identified as lines to be deformed, and each line to be deformed is bent.

[0145] Among them, the line to be deformed refers to the line used for bending processing later. The line to be deformed and the line to be deleted constitute a line.

[0146] Specifically, after deleting the lines to be deleted, the remaining portion corresponding to the deleted lines, i.e., the lines to be deformed, can be bent to achieve the effect of bending reinforcing bars. See also Figure 15b , Figure 15b A schematic diagram of a bent, deformable line according to an embodiment of this application is shown. Figure 15b As shown, the line to be deformed is defined, and then bent. In practice, the Bend node in Houdini can be used to perform the bending operation. The degree of bending of the line can be set by the user.

[0147] In practical applications, the operations of deleting lines to be deleted and bending lines to be deformed can be performed directly on the target rebar model, or the lines to be deleted and the lines to be deformed can be extracted from the target rebar model separately, and then the corresponding operations can be performed. After the operations are completed, the lines can be put back into the target rebar model.

[0148] See Figure 16 , Figure 16 This diagram illustrates the effect of a target local fracturing model corresponding to a notch fracturing effect according to an embodiment of this application. For example... Figure 16 As shown, the three arrows point to the locations where gaps are generated. By processing the target rebar model using the method described above, the following can be obtained: Figure 16 The notch and broken effect shown.

[0149] In practical applications, the above-mentioned gap breaking process can be performed directly on the target rebar model, or the corresponding line frame of the target rebar model can be processed. After processing, the target rebar model can be restored by thickening the line frame.

[0150] In addition to generating a corresponding target local fracture model for the target reinforcement model, a corresponding target reinforcement model can also be generated for the building model, i.e., the target reinforcement model can be obtained. The implementation method is as follows: In one specific embodiment provided in this application, obtaining the target rebar model corresponding to the three-dimensional model to be processed includes: Create a wireframe model corresponding to the 3D model to be processed; The lines of the wireframe model are divided into multiple lines to be processed; Thicken the lines to be processed to obtain the initial steel reinforcement model; The steel reinforcement lines located outside the three-dimensional model to be processed in the initial steel reinforcement model are deleted to obtain the target steel reinforcement model.

[0151] In this context, the wireframe model refers to the model used to enclose the 3D model to be processed; specifically, it can be understood as the wireframe bounding box of the 3D model. The lines to be processed refer to the lines obtained after dividing the wireframe model. See also... Figure 17a , Figure 17a A schematic diagram illustrating a method for dividing lines to be processed according to an embodiment of this application is shown. Figure 17a As shown, the wireframe model was divided along both the horizontal and vertical axes. Each line to be processed after division represents a reinforcing bar.

[0152] The initial reinforcement model refers to the reinforcement model generated based on the wireframe model after the lines to be processed have been divided. See also Figure 17b , Figure 17bA schematic diagram of an initial reinforcement model according to an embodiment of this application is shown, as follows. Figure 17b As shown, the initial reinforcement model is in Figure 17a The wireframe model shown is obtained by thickening and extruding the wireframe model after dividing the lines to be processed.

[0153] Specifically, a wireframe model of the 3D model to be processed is created. The wireframe model is then divided along both the horizontal and vertical axes to obtain multiple lines to be processed. Each line is thickened to obtain an initial rebar model. Finally, rebar lines that extend beyond the 3D model to be processed are deleted to obtain the target rebar model. Deleting rebar lines that extend beyond the 3D model can also be done using the Boolean modeling toolkit in Houdini.

[0154] See Figure 18a , Figure 18a A schematic diagram of a first type of target reinforcement model according to an embodiment of this application is shown, as follows: Figure 18a As shown, the target rebar model is a rebar model corresponding to a regular shape.

[0155] The 3D model processing method provided in this application, after determining that the display effect information of the 3D model to be processed is a notch-broken effect, can perform local broken processing on the 3D model to be processed according to the corresponding box selection broken processing strategy to achieve the notch-broken effect of the 3D model to be processed.

[0156] In practical applications, there are many more rebar models with specific orientations. See also Figure 18b , Figure 18b A schematic diagram of a second type of target reinforcement model according to an embodiment of this application is shown. Figure 18b As shown, the target rebar model is a fan-shaped rebar model. In generating this type of target rebar model, an additional guide curve can be added to the above-described target rebar model generation process. This guide curve sets the direction of the rebar model's shape, resulting in the desired shape. Figure 18b The target reinforcement model is shown.

[0157] See Figure 18c , Figure 18c A schematic diagram of a third type of target reinforcement model according to an embodiment of this application is shown. Figure 18c As shown, the target rebar model has a sloping structure. In generating this type of target rebar model, the Divide node in Houdini can be used to cut horizontal and vertical wires along the 3D model to be processed, convert these wires into wireframes, and then the wireframes can be thickened and extruded to obtain the desired result. Figure 18c The target reinforcement model is shown.

[0158] See Figure 18d , Figure 18d A schematic diagram of a fourth type of target reinforcement model according to an embodiment of this application is shown. Figure 18d As shown, the target rebar model has a spliced ​​structure, composed of multiple triangular plates. In generating this type of target rebar model, the adjacent points of the triangular plates can be merged, the merged wiring can be converted into a wireframe, the wireframe can be thickened and extruded, and finally, the rebar lines exceeding the dimensions of the 3D model to be processed can be deleted to obtain the desired result. Figure 18d The target reinforcement model is shown.

[0159] The 3D model processing method provided in this application can also generate steel reinforcement models with different shapes and structures, providing convenience for generating internal steel reinforcement structures of various building models.

[0160] The 3D model processing method provided in this application includes: acquiring a target fragmentation task, wherein the target fragmentation task includes a 3D model to be processed and a target fragmentation type for the 3D model to be processed; if the target fragmentation type is an overall fragmentation type, creating point cloud data for the overall fragmentation type, and generating a target overall fragmentation model corresponding to the 3D model to be processed based on the point cloud data; if the target fragmentation type is a partial fragmentation type, acquiring display effect information for the partial fragmentation type, determining a target processing strategy corresponding to the display effect information based on the display effect information, and generating a target partial fragmentation model corresponding to the 3D model to be processed based on the target processing strategy.

[0161] In one embodiment of this application, by determining the target fragmentation type corresponding to the three-dimensional model to be processed, and performing fragmentation processing on the three-dimensional model to be processed with overall fragmentation type and local fragmentation type according to different implementation methods, it is possible to generate different types of fragmentation models according to different user needs.

[0162] Corresponding to the above method embodiments, this application also provides embodiments of a three-dimensional model processing apparatus. Figure 19 A schematic diagram of a three-dimensional model processing device according to an embodiment of this application is shown. Figure 19 As shown, the device includes: The acquisition module 1902 is configured to acquire a target crushing task, wherein the target crushing task includes a three-dimensional model to be processed and a target crushing type for the three-dimensional model to be processed; The first generation module 1904 is configured to, when the target fragmentation type is an integral fragmentation type, create point cloud data for the integral fragmentation type, and generate a target integral fragmentation model corresponding to the three-dimensional model to be processed based on the point cloud data. The second generation module 1906 is configured to, when the target fragmentation type is a local fragmentation type, acquire display effect information for the local fragmentation type, determine the target processing strategy corresponding to the display effect information based on the display effect information, and generate the target local fragmentation model corresponding to the three-dimensional model to be processed based on the target processing strategy.

[0163] Optionally, the first generation module 1904 is further configured to: Determine the target overall crushing type corresponding to the overall crushing type; Based on the overall fragmentation type of the target, determine the point cloud data creation method corresponding to the overall fragmentation type of the target; Create point cloud data according to the point cloud data creation method described above.

[0164] Optionally, the first generation module 1904 is further configured to: When the overall fragmentation type of the target is a gradual fragmentation type, the point cloud data creation method corresponding to the gradual fragmentation type is determined to be gradual point cloud creation; When the overall fragmentation type of the target is random fragmentation, the point cloud data creation method corresponding to the random fragmentation type is determined to be noisy point cloud creation; When the overall fragmentation type of the target is a specified fragmentation type, the point cloud data creation method corresponding to the specified fragmentation type is determined to be curve point cloud creation.

[0165] Optionally, the point cloud data creation method includes gradient point cloud creation; The first generation module 1904 is further configured as follows: Create an initial wireframe model corresponding to the 3D model to be processed, and determine the division direction of the initial wireframe model; Based on the division direction, the initial wireframe model is divided to obtain the target wireframe model; Based on the target wireframe model, the 3D model to be processed is divided into multiple planes to be processed; Each plane to be processed is distorted to obtain the target plane corresponding to each plane to be processed. Generate gradient point cloud data corresponding to each target plane.

[0166] Optionally, the first generation module 1904 is further configured to: The target plane to be processed is divided into multiple planes to be processed, wherein the target plane to be processed is any one of the planes to be processed; Noise is added to each surface to be processed to obtain the noise information corresponding to each surface. Based on the noise information corresponding to each surface to be processed, determine the deformation value corresponding to each surface to be processed; The deformation value corresponding to the target surface to be processed is determined as the displacement to be processed of the target surface to be processed, wherein the target surface to be processed is any one of the surfaces to be processed; Based on the displacement to be processed, move the target surface to be processed.

[0167] Optionally, the first generation module 1904 is further configured to: Adjust the density of the gradient point cloud data; Clean the gradient point cloud data according to the adjusted density of the gradient point cloud data.

[0168] Optionally, the point cloud data creation method includes creating a noisy point cloud; The first generation module 1904 is further configured as follows: The surface of the 3D model to be processed is divided to obtain multiple surfaces to be processed; Add noise to each surface to be processed; Based on the noise, generate noise point cloud data corresponding to the three-dimensional model to be processed.

[0169] Optionally, the first generation module 1904 is further configured to: Obtain the noise information and preset point cloud range corresponding to each surface to be processed; Based on the noise information and the preset point cloud range, target noise point cloud data is extracted from the noise point cloud data.

[0170] Optionally, the point cloud creation method includes curve point cloud creation; The first generation module 1904 is further configured as follows: Obtain at least one preset point cloud curve; Pass each preset point cloud curve through the three-dimensional model to be processed; Generate curve point cloud data along each preset point cloud curve.

[0171] Optionally, the first generation module 1904 is further configured to: Multiple cutting surfaces are generated based on the point cloud data; The three-dimensional model to be processed is cut using various cutting surfaces to obtain the target overall broken model corresponding to the three-dimensional model to be processed.

[0172] Optionally, the second generation module 1906 is further configured to: If the displayed effect information is a surface breakage effect, the target processing strategy corresponding to the surface breakage effect is determined to be a surface breakage processing strategy. If the displayed effect information is a partially broken effect, the target processing strategy corresponding to the partially broken effect is determined to be a merged broken processing strategy; If the displayed effect information is a notch breakage effect, the target processing strategy corresponding to the notch breakage effect is determined to be the box selection breakage processing strategy.

[0173] Optionally, the target processing strategy includes a surface fragmentation processing strategy; The second generation module 1906 is further configured as follows: Based on the 3D model to be processed, generate an initial bounding model corresponding to the 3D model to be processed; The initial bounding model is distorted to obtain the target bounding model corresponding to the initial bounding model; The 3D model to be processed is segmented based on the target bounding model to obtain the surface model and internal model corresponding to the 3D model to be processed. The surface model is broken to obtain the skin broken model corresponding to the three-dimensional model to be processed; Based on the internal model and the epidermal fragmentation model, the target local fragmentation model is obtained.

[0174] Optionally, the second generation module 1906 is further configured to: Enlarge the three-dimensional model to be processed to obtain a first bounding model; The 3D model to be processed is reduced in size to obtain a second bounding model; The first enclosing model and the second enclosing model are merged to obtain the initial enclosing model.

[0175] Optionally, the second generation module 1906 is further configured to: The model surfaces of the first enclosing model and the second enclosing model are respectively divided into multiple surfaces to be processed; Noise is added to each surface to be processed in the first bounding model to obtain noise information corresponding to each surface to be processed in the first bounding model. Noise is added to each surface to be processed in the second bounding model to obtain noise information corresponding to each surface to be processed in the second bounding model. Based on the noise information corresponding to each surface to be processed in the first bounding model, the deformation value corresponding to each surface to be processed in the first bounding model is determined; based on the noise information corresponding to each surface to be processed in the second bounding model, the deformation value corresponding to each surface to be processed in the second bounding model is determined. The deformation value corresponding to the target surface to be processed is determined as the displacement to be processed of the target surface to be processed, wherein the target surface to be processed is any one of the surfaces to be processed in the first enclosing model or the second enclosing model; Based on the displacement to be processed, move the target surface to be processed.

[0176] Optionally, the target processing strategy includes a merging and fragmentation processing strategy; The second generation module 1906 is further configured as follows: Obtain the overall fracture model of the target, wherein the overall fracture model of the target is obtained according to the above-described three-dimensional model processing method; In the target overall fragmentation model, select multiple fragments to be merged; By bonding the individual fragments to be merged, a target local model for merging is obtained; Based on the unselected model fragments in the target merging local model and the target overall fragmentation model, the target local fragmentation model is obtained, wherein the unselected model fragments are model fragments in the target overall fragmentation model that were not selected as fragments to be merged.

[0177] Optionally, the second generation module 1906 is further configured to: Adhere the individual fragments to be merged to obtain an initial merged local model; Identify at least one model overlapping surface in the initial merged local model, wherein the model overlapping surface is the overlapping surface of each fragment to be merged; Delete the overlapping surfaces of each model in the initial merged local model to obtain the target merged local model.

[0178] Optionally, the target processing strategy includes a box-selection crushing processing strategy; The second generation module 1906 is further configured as follows: Obtain the target steel reinforcement model corresponding to the three-dimensional model to be processed; At least one notch-selected model is generated on the surface of the target rebar model; The lines selected by the notch-shaped model are identified as the lines to be deleted. Each line to be deleted is removed from the target rebar model to obtain the target locally broken model.

[0179] Optionally, the second generation module 1906 is further configured to: The remaining lines corresponding to each line to be deleted are identified as lines to be deformed, and each line to be deformed is bent.

[0180] Optionally, the second generation module 1906 is further configured to: Create a wireframe model corresponding to the 3D model to be processed; The lines of the wireframe model are divided into multiple lines to be processed; Thicken the lines to be processed to obtain the initial steel reinforcement model; The steel reinforcement lines located outside the three-dimensional model to be processed in the initial steel reinforcement model are deleted to obtain the target steel reinforcement model.

[0181] The 3D model processing apparatus provided in this application includes: an acquisition module configured to acquire a target fragmentation task, wherein the target fragmentation task includes a 3D model to be processed and a target fragmentation type for the 3D model to be processed; a first generation module configured to, when the target fragmentation type is an overall fragmentation type, create point cloud data for the overall fragmentation type and generate a target overall fragmentation model corresponding to the 3D model to be processed based on the point cloud data; and a second generation module configured to, when the target fragmentation type is a partial fragmentation type, acquire display effect information for the partial fragmentation type, determine a target processing strategy corresponding to the display effect information based on the display effect information, and generate a target partial fragmentation model corresponding to the 3D model to be processed based on the target processing strategy.

[0182] In one embodiment of this application, by determining the target fragmentation type corresponding to the three-dimensional model to be processed, and performing fragmentation processing on the three-dimensional model to be processed with overall fragmentation type and local fragmentation type according to different implementation methods, it is possible to generate different types of fragmentation models according to different user needs.

[0183] The above is a schematic scheme of a three-dimensional model processing device according to this embodiment. It should be noted that the technical solution of this three-dimensional model processing device and the technical solution of the above-described three-dimensional model processing method belong to the same concept. For details not described in detail in the technical solution of the three-dimensional model processing device, please refer to the description of the technical solution of the above-described three-dimensional model processing method.

[0184] Figure 20 A structural block diagram of a computing device 2000 according to an embodiment of this application is shown. The components of the computing device 2000 include, but are not limited to, a memory 2010 and a processor 2020. The processor 2020 is connected to the memory 2010 via a bus 2030, and a database 2050 is used to store data.

[0185] The computing device 2000 also includes an access device 2040, which enables the computing device 2000 to communicate via one or more networks 2060. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 2040 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0186] In one embodiment of this application, the aforementioned components of the computing device 2000 and Figure 20 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 20 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0187] The computing device 2000 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 2000 can also be a mobile or stationary server.

[0188] The processor 2020 executes the computer instructions to implement the steps of the three-dimensional model processing method.

[0189] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above-described three-dimensional model processing method belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-described three-dimensional model processing method.

[0190] An embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the three-dimensional model processing method described above.

[0191] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above-described three-dimensional model processing method belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-described three-dimensional model processing method.

[0192] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0193] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0194] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0195] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0196] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.