Model adjustment method, terminal equipment and computer readable storage medium
By parsing and filling the outermost shell of a 3D model, and automatically identifying and processing the outermost shell, the problem of low efficiency in adjusting 3D models in existing technologies is solved, and the requirements for data security and confidentiality are met.
Patent Information
- Application Number
- CN202510898560.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-11-21
AI Technical Summary
Existing methods for adjusting 3D models are inefficient, cumbersome to operate manually, and costly, making it difficult to meet the requirements for data security and confidentiality.
By obtaining the model file, parsing the model shape to obtain several shells, calculating the volume of the outermost shell, and filling the outermost shell with internal material to hide the internal structure, a closed outermost shell is formed.
It simplifies the model adjustment process, reduces labor costs, improves adjustment efficiency, and ensures data security and confidentiality.
Smart Images

Figure CN120997384A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of 3D modeling technology, and in particular to model adjustment methods, terminal devices, and computer-readable storage media. Background Technology
[0002] With the rapid development of industry and the continuous improvement of technology, enterprises have higher requirements for the design of industrial equipment components. This places higher demands on the structural strength, properties, and thermodynamic behavior of these components. In collaborative business scenarios, enterprise engineers often need to deliver 3D models of components to customers. However, to comply with trade secret protection requirements, engineers often need to manually adjust the 3D models to hide their internal structure or technical details. Manually adjusting the models is cumbersome, time-consuming, and inefficient, resulting in high costs associated with existing model adjustment methods. Summary of the Invention
[0003] To address the aforementioned technical problems, this application provides a model adjustment method, a terminal device, and a computer-readable storage medium.
[0004] To address the aforementioned issues, this application provides a first technical solution: a method for adjusting a three-dimensional model, comprising: acquiring a model file, the model file including a model shape; parsing the model shape to obtain several shells of the model shape; calculating the volume of all shells of the model shape, and taking the shell with the largest volume as the outermost shell; and filling the outermost shell internally to obtain the adjusted model shape.
[0005] Optionally, the above-mentioned parsing of the model shape to obtain several shells of the model shape includes: parsing the model shape to obtain wireframe data of the model shape; and converting the wireframe data into several curved surfaces to obtain several shells.
[0006] Optionally, after the step of converting the wireframe data into several surfaces to combine the several surfaces and obtain several shells, the model adjustment method further includes: converting the several shells into solids.
[0007] Optionally, the model file is in a standard exchange format; or, after the step of obtaining the model file, in which the model file includes the model shape, the model adjustment method further includes converting the model file into a standard exchange format.
[0008] Optionally, after the step of calculating the volume of all shells of the above model shape and taking the shell with the largest volume as the outermost shell, the above model adjustment method further includes: repairing the holes of the outermost shell to obtain a closed outermost shell.
[0009] Optionally, the above-mentioned internal filling of the outermost shell to obtain the adjusted model shape includes: calling 3D modeling software to perform surface closure on the outermost shell to obtain the adjusted model shape.
[0010] Optionally, after the step of filling the outermost shell to obtain the adjusted model shape, the model adjustment method further includes: reading the script file of the 3D modeling software; converting the script file into a code file; encapsulating the code file to obtain an executable file and adjusting the model through the executable file.
[0011] To address the aforementioned issues, this application provides a second technical solution: a terminal device comprising: an acquisition module for acquiring a model file, the model file including a model shape; a parsing module for parsing the model shape to obtain several shells of the model shape; a calculation module for calculating the volume of all shells of the model shape, and selecting the shell with the largest volume as the outermost shell; and a filling module for internally filling the outermost shell to obtain an adjusted model shape.
[0012] To address the aforementioned problems, this application provides a third technical solution: a terminal device including a processor and a memory, wherein the processor is connected to the memory, and the memory stores program instructions; the processor is used to execute the program instructions stored in the memory to implement the above method.
[0013] To address the aforementioned problems, this application provides a fourth technical solution: a computer-readable storage medium storing program instructions that can be executed by a processor to implement the above-described method.
[0014] This application provides a model adjustment method, a terminal device, and a computer-readable storage medium. The model adjustment method involves: acquiring a model file, which includes the model shape; parsing the model shape to obtain several shells; calculating the volume of all shells and selecting the shell with the largest volume as the outermost shell; and filling the outermost shell internally to obtain the adjusted model shape. Therefore, the outermost shell after internal filling hides the original internal structure, preventing the leakage of original technical details when users perform operations such as cutting and separating the adjusted 3D model. This ensures that the adjusted model shape meets data security and confidentiality requirements, is simple to operate, significantly reduces labor costs, and improves the efficiency of model adjustment. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0016] Figure 1 This is a flowchart illustrating the first embodiment of the model adjustment method provided in this application;
[0017] Figure 2 This is a schematic diagram illustrating the adjustment of an embodiment of the model shape provided in this application;
[0018] Figure 3 This is a flowchart illustrating the second embodiment of the model adjustment method provided in this application;
[0019] Figure 4 This is a flowchart illustrating the third embodiment of the model adjustment method provided in this application;
[0020] Figure 5 This is a flowchart illustrating the fourth embodiment of the model adjustment method provided in this application;
[0021] Figure 6 This is a schematic diagram of the structure of the first embodiment of the terminal device provided in this application;
[0022] Figure 7 This is a schematic diagram of the structure of the second embodiment of the terminal device provided in this application;
[0023] Figure 8 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application.
[0024] Among them, 50 is the terminal device; 51 is the processor; 52 is the memory; 53 is the acquisition module; 54 is the parsing module; 55 is the calculation module; 56 is the filling module; and 61 is the program instructions. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0027] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0028] This application first proposes a method for adjusting a 3D model, which is applied to a terminal device. Please refer to... Figure 1 and Figure 2 , Figure 1 This is a flowchart illustrating the first embodiment of the model adjustment method provided in this application. Figure 2 This is a schematic diagram illustrating the adjustment of the shape of an embodiment of the model provided in this application. For example... Figure 1 As shown, the model adjustment method includes the following steps:
[0029] Step S11: Obtain the model file, which includes the model shape.
[0030] Specifically, the model file includes geometric data, topological data, texture data, material information, and attribute data of the 3D model. The model file describes the shape, appearance, material, and position and orientation of the 3D model in space. The model shape describes the appearance, internal structure, and composition of the components indicated by the 3D model. The model shape can be, but is not limited to, composed of parameters related to the positions and connections of vertices, edges, and faces. For example, such as... Figure 2 As shown in A, the original model file contains a model shape with rich surface features, and the complex internal circuits and structures can be obtained by adjusting the model file.
[0031] Step S12: Analyze the model shape to obtain several shells of the model shape.
[0032] Specifically, after obtaining the model shape from the model file, the model shape is parsed. Understandably, the shape of a 3D model typically includes multiple structures, with the shell in the model shape representing the shell corresponding to each structural component. For example, when the model shape is a reducer, it may be composed of at least one structure such as a housing, gears, a motor, or fasteners.
[0033] At this point, the model adjustment method in this embodiment can obtain the shape parameters of each structure in the model shape by parsing the model shape. The shape parameters are used to describe the positions of the vertices, edges, and faces of the structure in the internal coordinate system of the model file. Therefore, the shells of all structures can be defined through the shape parameters. When parsing the model shape, the parameters of the model file can be processed using 3D modeling software, such as CATIA, AutoCAD, Inventor, SolidWorks, etc.; or, the parameters of the model file can be filtered and calculated using algorithms to obtain several shells of the model shape.
[0034] Understandably, after parsing the model shape in the original model file, the surface contours of the model shape are closed, thus concealing the previously exposed surface features and only revealing the contour surface shape on the shell, such as... Figure 2 As shown in B. At this point, when the shells are cut or cross-sectionally analyzed, technical details such as the internal structure, oil passages, and electrical wiring can still be seen inside the shells.
[0035] Step S13: Calculate the volume of all shells of the model shape, and take the shell with the largest volume as the outermost shell.
[0036] After obtaining all the shells of the model shape, all shells are traversed to calculate the volume of each traversed shell. After obtaining the volumes of all shells, the shell with the largest volume is found by sorting, and this shell with the largest volume is used as the outermost shell of the model shape. Understandably, in the 3D model of a mechanical part, the outermost shell usually occupies the largest space. Therefore, the model adjustment method in this embodiment can accurately locate the outermost shell of the model shape by finding the shell with the largest volume.
[0037] Step S14: Fill the outermost shell with internal material to obtain the adjusted model shape.
[0038] After obtaining the outermost shell of the model shape, the outermost shell is filled internally, making its interior a solid structure. Since the outermost shell does not contain other structures, when the filled outermost shell is output to obtain the adjusted model shape, the output model shape does not include the complex internal structure and technical details. The adjusted model shape only presents a model with an outer shell structure, which meets the requirements of model information confidentiality and specific display needs. For example... Figure 2 As shown in C and 2D, Figure 2 C represents the adjusted shape of the model. Figure 2 When the model shape of C is sectioned, it is obtained Figure 2 D, the cross-section of the model shape only shows the internal solid structure, and the original internal structure and details cannot be seen.
[0039] Therefore, in this embodiment, the model adjustment method obtains a model file, which includes the model shape; parses the model shape to obtain several shells; calculates the volume of all shells of the model shape, and takes the shell with the largest volume as the outermost shell; and fills the outermost shell to obtain the adjusted model shape. Thus, the model adjustment method of this embodiment can automatically identify and process the outermost shell in a 3D model, thereby reducing the tedious steps in traditional manual adjustment. The inner part of the outermost shell in the adjusted model shape is filled, hiding the original internal structure. When users perform operations such as cutting and separating the adjusted 3D model, the original technical details will not be leaked, ensuring that the adjusted model shape meets the requirements of data security and confidentiality. The operation is simple, significantly reducing labor costs and improving the efficiency of model adjustment.
[0040] In some embodiments, see Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the model adjustment method provided in this application. Figure 3 As shown, in this embodiment, the model adjustment method includes the following steps:
[0041] Step S21: Obtain the model file, which includes the model shape.
[0042] Step S21 is similar to step S11 above, and will not be repeated here.
[0043] Step S22: Analyze the model shape to obtain the wireframe data of the model shape.
[0044] Specifically, when parsing the model shape, several model parameters that make up the model shape can be obtained. By querying and / or filtering the model parameters, wireframes, contour lines, boundary lines of internal structures, or intersections between different geometric features in the model shape can be obtained, so that the relevant data of all lines in the model shape can be used as wireframe data.
[0045] In a possible implementation, wireframe data can be obtained by operating on the model parameters using functions or algorithms. For example, the `get_all_wires` function can be used to parse the topology of the model shape, and valid wireframes can be found and filtered from the parsed topology to obtain wireframe data. Alternatively, wireframe data of the model shape can be obtained using segmentation tools or AI-based image recognition methods; no specific limitations are imposed here.
[0046] Step S23: Convert the wireframe data into several curved surfaces to obtain several shells.
[0047] Specifically, wireframe data can include one or more connected lines, which can be, but are not limited to, outlines, boundary lines of internal structures, or intersections between different geometric features. The lines in the wireframe data can form one or more closed loops. For example, when defining a rectangular surface, the wireframe can be composed of a closed loop of four lines connected sequentially, end to end, to form the outline of a rectangle.
[0048] The model adjustment method of this embodiment, after obtaining wireframe data, can determine the geometric shape of the generated surface based on the indicated wireframe shape and position in the wireframe data. For example, when the wireframe includes planar polygons, such as triangles or rectangles, the surface generated from the corresponding wireframe data can be understood as the corresponding polygonal surface within the plane. When the wireframe includes a closed contour composed of curves, the surface generated from the corresponding wireframe data may be part of a curved surface, such as generating a part of a simple curved surface like a cylinder or sphere from a circular wireframe, or generating a complex curved surface from a complex curve.
[0049] After obtaining wireframe data, each edge and vertex in the wireframe is used as the boundary elements of newly generated surfaces. The relationships between these boundary elements are established within the pre-defined topology of the model, resulting in the creation of several surfaces based on the wireframe data. Each surface can serve as the shell of a corresponding structure within the model shape. Therefore, by combining the wireframe data of the model shape into several surfaces, the resulting surfaces are closed, thus obtaining the shells of all structures within the model shape. Since the shells of structures are obtained through closed surfaces composed of contour lines, subtle structures not belonging to the contour lines are hidden, but the internal space of the shell still contains several complex structures.
[0050] In possible implementations, wireframe data can be combined into multiple surfaces using the wire_to_face function, or multiple surfaces can be combined using surface reconstruction algorithms, such as planar subdivision surface techniques or mesh optimization algorithms, without being specifically limited here.
[0051] Step S24: Calculate the volume of all shells of the model shape, and take the shell with the largest volume as the outermost shell.
[0052] Step S25: Fill the outermost shell with internal material to obtain the adjusted model shape.
[0053] Steps S24-S25 are similar to steps S13-S14 above, and will not be repeated here.
[0054] In this embodiment, the model adjustment method analyzes the model shape to obtain wireframe data, then converts the wireframe data into several curved surfaces to obtain several shells. Therefore, by decomposing the complex model shape into basic line structures and converting them into curved surfaces to obtain the corresponding shells, the accuracy of the model analysis is ensured. This allows for subsequent volume calculations of the shells and the concealment of internal technical details, thereby improving overall work efficiency.
[0055] In some embodiments, after step S23 or after step S12, the method further includes converting a plurality of shells into solids.
[0056] Specifically, the shells obtained after step S23 or step S12 are composed of curved surfaces. These curved surfaces are actually collections of discontinuous line elements, and their internal regions cannot be directly determined, thus making it impossible to directly calculate the volume of the shells. Therefore, the model adjustment method in this embodiment converts the shells into solids, giving the converted shells closed boundaries, thus allowing the volume of the shells to be obtained by calculating their internal regions.
[0057] In a possible implementation, the step of converting several shells into a solid may further include: performing geometric closure processing on the shells; and structurally reorganizing the closed shells to organize them into a solid data structure. Specifically, the processing steps include, but are not limited to, finding and filling holes, connecting discontinuous edges, and generating missing faces, so that the shells form a geometrically closed whole with a defined internal space. The structural reorganization step may, but is not limited to, integrating and storing the geometric and topological elements of the shells according to the definition of a solid to establish a solid data structure. In other implementations, the above-mentioned step of converting several shells into a solid can be implemented through Boolean operations of 3D modeling software, functions for stitching discontinuous geometric elements into a whole, programming interfaces or scripts, or by creating missing faces or edges and adjusting the position and shape of geometric elements; no specific limitations are made here.
[0058] Optionally, in one embodiment, the model file is in a standard exchange format. Alternatively, in another embodiment, after step S11 or S21, the model adjustment method further includes converting the model file to a standard exchange format.
[0059] Specifically, the Standard for the Exchange of Product Model Data (STEP) is used to exchange product design data between different 3D modeling software to ensure data accuracy and consistency. The original format of the model file can be, but is not limited to, step (stp), catpart, stl, wrl, etc. The format of the model file is related to the model type, the model description information, the modeling software used, etc., and is not specifically limited here.
[0060] This embodiment uses model files in a standard exchange format, or converts non-standard exchange formats to a standard exchange format when necessary, to ensure that the model shape can completely and accurately describe the product's geometry, topology, dimensional tolerances, material properties, and other comprehensive information. It can be used for lossless data transmission and storage of basic component models or multi-component assembly models, offering wide applicability and strong versatility. By using a model file in a standard exchange format as the base data format for subsequent model processing, this embodiment ensures efficient, stable, and accurate operation of the entire processing flow, improving the reliability of the model adjustment method.
[0061] In some embodiments, after step S13 or step S24, the model adjustment method of this embodiment further includes: repairing the holes in the outermost shell to obtain a closed outermost shell.
[0062] Specifically, in possible implementations, after the model file undergoes format conversion—for example, converting it from the initial design format to the common STP format, or to a format required for importing into specific analysis software—data loss may occur in the converted model file due to differences in data parsing and storage methods between different file formats. This data loss is reflected in the outermost entity, potentially manifesting as holes on the entity's surface. Alternatively, because internal components have been removed from the outermost shell, some areas of the outermost shell may exhibit holes.
[0063] Therefore, the model adjustment method in this embodiment can repair the holes in the outermost shell when they exist, thus obtaining a closed outermost shell. The outermost shell has a clearly defined internal region, which facilitates subsequent internal filling of the outermost shell.
[0064] The steps for repairing the holes in the outermost shell may further include: traversing and searching for holes in the outermost shell; obtaining the boundary curve of each hole; calculating the spline surface of each hole according to the constraint energy equation and / or penalty function method; and, when the spline surface meets the tolerance standard, performing boundary trimming on the spline surface to make the hole boundary in the outermost shell disappear, thus repairing the hole. Alternatively, the steps for repairing the holes in the outermost shell may include: identifying the holes in the outermost shell; and removing the faces or edges that form the holes to obtain a closed outermost shell.
[0065] Therefore, the model adjustment method in this embodiment obtains a closed outermost shell by repairing the holes in the outermost shell, which can ensure the integrity and sealing of the outermost shell, guarantee the effect of subsequent filling of the outermost shell, and improve the reliability of the model adjustment method.
[0066] In some embodiments, see Figure 4 , Figure 4 This is a flowchart illustrating the third embodiment of the model adjustment method provided in this application. Figure 4 As shown, the model adjustment method includes the following steps:
[0067] Step S31: Obtain the model file, which includes the model shape.
[0068] Step S32: Analyze the model shape to obtain several shells of the model shape.
[0069] Step S33: Calculate the volume of all shells of the model shape, and take the shell with the largest volume as the outermost shell.
[0070] Steps S31-S33 are similar to steps S11-S13 above, and will not be repeated here.
[0071] Step S34: Use 3D modeling software to close the outermost shell with a curved surface to obtain the adjusted model shape.
[0072] Specifically, when filling the outermost shell, the shell can be filled by using the surface closure function of 3D modeling software. Surface closure specifically includes: identifying the closed boundary of the outermost shell to determine the internal region of the closed boundary; and adjusting and optimizing the topology of the internal region so that the outermost shell forms a closed solid in terms of topology.
[0073] By using 3D modeling software to close curved surfaces, the structural integrity of the model can be ensured, the design efficiency and accuracy of the model can be improved, the operation is convenient and efficient, it can meet the needs of complex shape design, and improve the overall quality of the model.
[0074] In this embodiment, the model adjustment method uses 3D modeling software to create a curved surface closure on the outermost shell, connecting the surfaces of the outermost shell into a complete closed surface. The interior of the outermost shell is filled and becomes a solid, hiding the original internal structure. When the user performs operations such as cutting and separating the adjusted 3D model, the original technical details will not be disclosed. This ensures that the adjusted model shape meets the requirements of data security and confidentiality. The method is simple to operate, significantly reduces labor costs, and improves the efficiency of model adjustment.
[0075] In some embodiments, see Figure 5 , Figure 5 This is a flowchart illustrating the fourth embodiment of the model adjustment method provided in this application. Figure 5 As shown, after step S34, the model adjustment method further includes:
[0076] Step S41: Read the script file of the 3D modeling software.
[0077] Specifically, steps S31-S34 can all be executed in 3D modeling software; alternatively, the steps of parsing the model shape to obtain wireframe data, converting the wireframe data into several surfaces to obtain several shells, calculating the volume of all shells of the model shape, taking the shell with the largest volume as the outermost shell, and filling the outermost shell to obtain the adjusted model shape can all be executed in 3D modeling software. At this time, the commands and instructions used during the execution of the above steps can be recorded using the 3D modeling software to obtain a script file.
[0078] Step S42: Convert the script file into a code file.
[0079] After reading the script file, the commands and instructions within it are converted into code files in a preset format. These code files can be written in languages such as Python, Java, and C#. Understandably, the code files can perform geometric calculations using different databases to achieve the aforementioned operations such as parsing the model file, extracting line segment data, and constructing surfaces.
[0080] Step S43: Package the code file to obtain an executable file and adjust the model using the executable file.
[0081] The code files are encapsulated and integrated into the executable file, so that when users need to adjust the model, they can hide the internal structure of the model shape with one click through the executable file, so that the model only has the outermost shell. The operation is simple.
[0082] Furthermore, unlike related technologies that require engineers to possess specialized and in-depth modeling software skills, typically necessitating a training period of up to three months, which is costly, the solution in this application integrates complex modeling operations into code files. Complex operations are completed through executable files, significantly improving model adjustment efficiency and reducing labor costs.
[0083] Please see Figure 6 , Figure 6 This is a structural schematic diagram of the first embodiment of the terminal device provided in this application. Figure 6 As shown in the embodiments of this application, a terminal device 50 is also proposed, which includes an acquisition module 53, a parsing module 54, a calculation module 55, and a filling module 56.
[0084] Specifically, the acquisition module 53 is used to acquire the model file, which includes the model shape; the parsing module 54 is used to parse the model shape to obtain several shells of the model shape; the calculation module 55 is used to calculate the volume of all shells of the model shape, so that the shell with the largest volume is taken as the outermost shell; and the filling module 56 is used to fill the outermost shell to obtain the adjusted model shape.
[0085] The above module division is merely a logical functional division; in actual implementation, multiple modules can be combined or integrated. Alternatively, the above modules can also be used to execute specific processing flows, without further specific limitations.
[0086] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a second embodiment of the terminal device provided in this application. Figure 7As shown, a terminal device includes a processor and a memory, the processor being connected to the memory, wherein the memory stores program instructions; the processor is used to execute the program instructions stored in the memory to implement the method of any of the above embodiments.
[0087] The processor 51 can also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip with signaling processing capabilities. The processor 51 can also be a general-purpose processor, a digital signaling processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor.
[0088] The memory 52 can be a memory module, TF card, etc., and can store all information from the terminal device 50, including the input raw data, computer program, intermediate running results, and final running results. It stores and retrieves information according to the location specified by the controller. With the memory, the string matching prediction device has a memory function and can ensure normal operation. The memory of the string matching prediction device can be classified according to its purpose into main memory (RAM) and auxiliary memory (external storage), or it can be classified into external memory and internal memory. External storage is usually magnetic media or optical discs, which can store information for a long time. RAM refers to the storage components on the motherboard, used to store currently executing data and programs, but it is only used for temporary storage of programs and data; the data will be lost when the power is turned off.
[0089] In the embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the model adjustment methods described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0090] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0091] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, system server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application.
[0093] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium provided in this application. Figure 8 As shown, the computer-readable storage medium of this application stores program instructions 61 capable of implementing all the above methods. These program instructions 61 can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of each embodiment of this application. The aforementioned storage devices include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.
[0094] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for adjusting a three-dimensional model, characterized in that, include: Obtain the model file, which includes the model shape; The shape of the model is analyzed to obtain several shells of the model shape; Calculate the volume of all shells of the model shape, and take the shell with the largest volume as the outermost shell; The outermost shell is filled internally to obtain the adjusted shape of the model.
2. The model adjustment method according to claim 1, characterized in that, The step of parsing the model shape to obtain several shells of the model shape includes: The model shape is parsed to obtain the wireframe data of the model shape; The wireframe data is converted into several curved surfaces to obtain several housings.
3. The model adjustment method according to claim 2, characterized in that, After the step of converting the wireframe data into several surfaces, and combining the several surfaces to obtain several shells, the model adjustment method further includes: The aforementioned shells are converted into solids.
4. The model adjustment method according to claim 1, characterized in that, The model file is in a standard exchange format; or... After the step of obtaining the model file, which includes the model shape, the model adjustment method further includes: Convert the model file to a standard exchange format.
5. The model adjustment method according to claim 1, characterized in that, After the step of calculating the volume of all shells of the model shape and selecting the shell with the largest volume as the outermost shell, the model adjustment method further includes: Repair the holes in the outermost shell to obtain a sealed outermost shell.
6. The model adjustment method according to claim 1, characterized in that, The process of filling the outermost shell to obtain the adjusted model shape includes: The outermost shell is closed with a curved surface using 3D modeling software to obtain the adjusted model shape.
7. The model adjustment method according to claim 6, characterized in that, After the step of filling the outermost shell to obtain the adjusted model shape, the model adjustment method further includes: Read the script file of the 3D modeling software; Convert the script file into a code file; The code file is packaged to obtain an executable file, and the model is adjusted using the executable file.
8. A terminal device, characterized in that, include: An acquisition module is used to acquire a model file, the model file including the model shape; A parsing module is used to parse the shape of the model to obtain several shells of the model shape; The calculation module is used to calculate the volume of all shells of the model shape, so as to take the shell with the largest volume as the outermost shell; A filling module is used to fill the outermost shell to obtain the adjusted shape of the model.
9. A terminal device, characterized in that, It includes a processor and a memory, wherein the processor is connected to the memory, wherein, The memory stores program instructions; The processor is configured to execute program instructions stored in the memory to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions that can be executed by a processor to implement the method as described in any one of claims 1-7.