Mesh model modeling method and device, equipment and storage medium

By generating geometric data and mesh model configuration files, the mesh model is directly rendered, which solves the problems of cumbersome operation and low generation efficiency of the existing three-dimensional modeling software, and realizes the simplified three-dimensional mesh model generation process and improved efficiency.

CN120163922APending Publication Date: 2025-06-17HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510237787.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing three-dimensional modeling software is cumbersome to operate when creating mesh three-dimensional models, with high learning costs and low generation efficiency.

Method used

By generating geometric data based on the cross-sectional profile and lofting path of the object, obtaining mesh model data, generating mesh model configuration files, and rendering the mesh model based on the configuration file.

Benefits of technology

The generation process of three-dimensional mesh models is simplified, the generation efficiency is improved, and the tedious operation of gradually creating models using three-dimensional design software is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120163922A_ABST
    Figure CN120163922A_ABST
Patent Text Reader

Abstract

The invention provides a mesh model modeling method and device, equipment and a storage medium. The method comprises the following steps: generating geometric data according to a profile contour and a lofting path of an object; obtaining mesh model data according to the geometric data; generating a mesh model configuration file according to the mesh model data; and rendering according to the mesh model configuration file to obtain a mesh model of the object. According to the scheme, the mesh model can be automatically generated according to the two-dimensional profile contour and the stocking path, the tedious operation of gradually creating the three-dimensional mesh model by using three-dimensional design software is avoided, the generation process of the three-dimensional mesh model is simplified, and the efficiency of generating the three-dimensional mesh model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and particularly to the fields of three-dimensional modeling, model rendering, and the like. Background Art

[0002] The process of creating a mesh three-dimensional model using traditional three-dimensional modeling software mainly includes: planning the model structure, creating a basic model, adding a mesh structure, adjusting and optimizing the mesh, and applying materials and textures, etc. This process is relatively cumbersome, the learning cost of three-dimensional modeling software is relatively high, and the generation efficiency is low. Summary of the Invention

[0003] The present disclosure provides a method, apparatus, device, and storage medium for modeling a mesh model to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a method for modeling a mesh model, including:

[0005] Generating geometric data according to the profile contour and lofting path of an object;

[0006] Obtaining mesh model data according to the geometric data;

[0007] Generating a mesh model configuration file according to the mesh model data;

[0008] Rendering the mesh model of the object according to the mesh model configuration file.

[0009] In a second aspect, the present disclosure provides a device for modeling a mesh model, including:

[0010] A geometric generation module, configured to generate geometric data according to the profile contour and lofting path of an object;

[0011] A data acquisition module, configured to obtain mesh model data according to the geometric data;

[0012] A configuration generation module, configured to generate a mesh model configuration file according to the mesh model data;

[0013] A rendering module, configured to render the mesh model of the object according to the mesh model configuration file.

[0014] In a third aspect, an electronic device is provided, including:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0018] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.

[0019] In a fifth aspect, a computer program product is provided, including a computer program which, when executed by a processor, implements any method according to the embodiments of the present disclosure.

[0020] The beneficial effects of the technical solution provided by the present disclosure at least include: a mesh model can be automatically generated according to the two-dimensional profile and the stocking path, avoiding the cumbersome operation of gradually creating a three-dimensional mesh model using three-dimensional design software, simplifying the process of generating the three-dimensional mesh model, and improving the efficiency of generating the three-dimensional mesh model.

[0021] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In the drawings, unless otherwise specified, the same reference numerals throughout the several views denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided by the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0023] Figure 1 is a schematic flowchart of uploading a three-dimensional model according to an embodiment of the present disclosure;

[0024] Figure 2 is a schematic flowchart of a method for modeling a mesh model according to an embodiment of the present disclosure;

[0025] Figure 3 is a schematic diagram of an example of lofting according to the present disclosure;

[0026] Figure 4 is a schematic flowchart of a method for modeling a mesh model according to another embodiment of the present disclosure;

[0027] Figure 5 is a schematic flowchart of model rendering according to an embodiment of the present disclosure;

[0028] Figure 6 is a schematic structural diagram of a device for modeling a mesh model according to an embodiment of the present disclosure;

[0029] Figure 7 is a schematic structural diagram of a mesh model modeling device according to another embodiment of the present disclosure;

[0030] Figure 8 is a block diagram of an electronic device for implementing the embodiments of the present disclosure. Detailed implementation manners

[0031] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings do not have to be drawn to scale unless otherwise specified.

[0032] In addition, for better illustration of the present disclosure, numerous specific details are given in the following detailed implementation manners. Those skilled in the art should understand that the present disclosure can be implemented without some specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art are not described in detail so as to highlight the gist of the present disclosure.

[0033] Figure 1 is a schematic flowchart of uploading a three-dimensional (3D) model according to an embodiment of the present disclosure, as Figure 1 shown. To upload a 3D gusset plate, it is necessary to first create a 3D model in 3D model rendering software, then export the 3D model, and then upload it from the background. Since many gusset plate models are relatively simple (without engraving, etc.), if such a simple model is created according to the above method, it will result in complex operations and high costs for creating models in 3D model rendering software; the overall process is relatively long and the efficiency is low.

[0034] Figure 2 is a schematic flowchart of a mesh model modeling method according to an embodiment of the present disclosure, as Figure 2 shown. The method includes:

[0035] S201. Generate geometric data according to the sectional profile and lofting path of the object;

[0036] S202. Obtain mesh model data according to the geometric data;

[0037] S203. Generate a mesh model configuration file according to the mesh model data;

[0038] S204. Render the mesh model of the object according to the mesh model configuration file.

[0039] In the embodiments of the present disclosure, the cross-sectional profile may include two-dimensional graphics, such as regular two-dimensional graphics like squares, rectangles, triangles, trapezoids, etc. and irregular two-dimensional graphics. The present disclosure does not limit this. The lofting path may include functions, such as linear functions, quadratic functions, power functions, exponential functions, trigonometric functions, etc. The present disclosure does not limit this. Lofting is a technique for converting 2D graphics into 3D models. By interpolating between two or more 2D cross-sections, a continuous 3D shape can be generated. Through lofting, a two-dimensional object can be used as a cross-section and lofted along a certain path to form a three-dimensional object. For example, as Figure 3 shown, the cross-sectional profile of a square in the y0z plane of a three-dimensional coordinate system, along the lofting path in the coordinate system, a quadrangular prism can be obtained.

[0040] In the embodiments of the present disclosure, the cross-sectional profile and the lofting path can be generated and created through computer-aided design (CAD) tools. The cross-sectional profile and the lofting path of geometric graphics can be obtained by parsing a two-dimensional image configuration file (cad profile). For example, the cross-sectional profile of a triangle and the lofting path of x = y can be obtained by parsing from a cad profile. Each cad profile may include the cross-sectional profile and the lofting path of a geometric graphic.

[0041] In the embodiments of the present disclosure, lofting can be performed in the background of the platform according to the cross-sectional profile and the lofting path of two-dimensional geometric graphics to generate three-dimensional geometric graphics. Geometric data, such as the length, width, height, and coordinates of each vertex of the geometric body, can be obtained based on the three-dimensional geometric graphics. The material data of the three-dimensional geometric graphics can be obtained. The material data may include the material selected by the user at the front end of the platform or the default material of the platform, such as marble, wood board, metal, etc.

[0042] In the embodiments of the present disclosure, a conversion tool in the platform background can be used to obtain mesh model data based on the three-dimensional geometric graphics rendered with the material. Mesh model data can also be referred to as polygon mesh data, which is a data structure used in computer graphics to model various irregular objects. Intuitively, the surfaces of objects in the real world are all composed of curved surfaces; while in the computer world, since only discrete structures can be used to simulate continuous things in reality. Therefore, the curved surfaces in the real world are actually composed of countless small polygon patches in the computer. Mesh model data may include multiple two-dimensional polygons (patches) with aligned corners. The patches can be pentagons, quadrilaterals, triangles, etc. The present disclosure does not limit this.

[0043] In the embodiments of the present disclosure, the mesh model data may include the coordinates of the vertices of each patch, and a mesh model may be composed of multiple patches. For example, for mesh model data with triangular patches, the whole is a set of all triangular patches. In the set, each triangular patch includes three vertices, and each vertex can be represented by (x, y, z) coordinates. For example, a mesh model data can be expressed as {mesh1: [p1(x1, y1, z1), p2(x2, y2, z2), p3(x3, y3, z3)]; mesh2: [p4(x4, y4, z4), p5(x5, y5, z5), p6(x6, y6, z6)]; mesh3: [p7(x7, y7, z7), p8(x8, y8, z8), p9(x9, y9, z9)];...;}, where mesh represents the patch of the model, p represents the vertex of each patch, and (x, y, z) represents the specific coordinates of the vertex.

[0044] In the embodiments of the present disclosure, according to the mesh model data, a data format conversion tool in the platform background can be called to convert it into a mesh model configuration file. If the mesh model data does not meet the format requirements of the mesh model rendering tool, the mesh model cannot be directly rendered based on the mesh model data. In this case, the data format conversion tool can be used to convert the mesh model data into a mesh model configuration file in a standard format.

[0045] In the embodiments of the present disclosure, a mesh model rendering tool in the platform background can be called to render a mesh model according to the mesh model configuration file.

[0046] According to the embodiments of the present disclosure, a mesh model can be automatically generated based on a two-dimensional profile and a lofting path. Compared with the cumbersome operation of gradually creating a three-dimensional mesh model using three-dimensional design software, the generation process of the three-dimensional mesh model is simplified, and the efficiency of generating the three-dimensional mesh model is improved.

[0047] Figure 4 It is a schematic flowchart of a mesh model modeling method according to another embodiment of the present disclosure. This method may include one or more features of the above-mentioned mesh model modeling method. In one implementation, as Figure 4 shown, S201 generates geometric data according to the profile and lofting path of the object, including:

[0048] S401. Obtain the profile of the object according to a computer-aided design file (cad profile);

[0049] S402. Loft the profile along the lofting path to generate the geometric data.

[0050] In the embodiments of the present disclosure, the cad profile can be input into the background of the platform, and the parsing tool in the background can parse the cross-sectional profile and lofting path included therein from the cad profile. The lofting path can include the direction of the path and the length of the path, etc. The direction of the path can be determined according to the cross-sectional profile. For example, the normal direction of the two-dimensional graph of the cross-sectional profile can be used as the direction of the lofting path. The length of the path can be determined according to the height of the geometric body in the cad profile, or can be determined according to the height of the geometric body set by the user on the platform.

[0051] In the embodiments of the present disclosure, a three-dimensional model can also be created in the graphic design module of the platform, and the cad profile of the three-dimensional model can be generated. The parsing tool in the background can parse the cross-sectional profile and lofting path from the generated cad profile of the three-dimensional model.

[0052] In the embodiments of the present disclosure, lofting can be performed according to the cross-sectional profile and the lofting path to obtain the data of the geometric figure. For example, according to the circular cross-sectional profile and the lofting path of x = 0 parsed from the cad profile, the data of the geometric figure of the cylinder can be lofted.

[0053] In the embodiments of the present disclosure, the geometric figure can not be directly rendered, but the lofting calculation can be performed in the background to obtain the various data of the geometric figure, such as the geometric figure function representation, the various parameters of the geometric figure such as length, width, height, etc.

[0054] According to the embodiments of the present disclosure, the various data of the geometric figure can be obtained through the computer-aided design file, which is convenient for generating the mesh model data according to the geometric data of the geometric figure.

[0055] In one implementation, as Figure 4 shown, S202 obtaining the mesh model data according to the geometric data includes:

[0056] S403, in response to the material selection operation, obtaining the material data of the selected material;

[0057] S404, transforming the geometric data to obtain the patch data, normal data and texture (UV) data.

[0058] In the embodiments of the present disclosure, the material of the three-dimensional model can include the combination of the visible attributes on the surface of the three-dimensional model, and these visible attributes can include the color, pattern, smoothness, transparency, reflectivity, refractive index, luminosity, etc. of the surface. The material can be stored in the material library of the platform, and in response to the user's material selection operation, the material data is transmitted to the background.

[0059] In the embodiments of the present disclosure, geometric data can be converted into mesh model data according to a conversion tool in the background. The mesh model data may include patch data, normal data, texture (UV) data, etc. The patch data may include the type of the patch, the coordinates of each vertex of the patch, etc.; the normal data may include surface normal vectors, vertex normal vectors, etc.; the texture data may include the coordinate representation of the texture bound to the geometry, specifically including texture mapping and projection methods, etc. The projection methods may include planar projection, spherical projection, cylindrical projection, cubic projection, etc.

[0060] According to the embodiments of the present disclosure, the data of a three-dimensional geometric figure can be converted into its corresponding mesh model data, which is convenient for rendering the three-dimensional mesh model.

[0061] In one implementation, as Figure 4 shown, the mesh model configuration file includes a shape file, a material file, and a mapping file. S203 generates a mesh model configuration file according to the mesh model data, including:

[0062] S405. Obtain the shape file according to the patch data, normal data, and texture data;

[0063] S406. Obtain the material file according to the material data;

[0064] S407. Generate a mapping configuration file according to the corresponding relationship between the material data and at least one of the patch data, the normal data, and the texture data.

[0065] In the embodiments of the present disclosure, the standard format of the mesh model configuration file includes a shape file, a material file, and a mapping file. The mapping file may include the corresponding relationship between the shape and the material, such as the material of a certain patch. Based on the shape file, the material file, and the mapping file, a three-dimensional mesh model can be rendered.

[0066] In the embodiments of the present disclosure, the non-standard format of the patch data, normal data, and texture data can be converted into a standard format of the shape file in the data format conversion tool of the platform. The non-standard format of the material data can be converted into a standard format of the material file in the data format conversion tool of the platform. The mapping relationship between the material in the material file and the shape in the shape file can be used to generate a mapping file.

[0067] According to the embodiments of the present disclosure, the non-standard format of the patch data, normal data, texture data, and material data can be converted into a standard format of the mesh model configuration file, which is convenient for rendering the three-dimensional mesh model according to the standard format of the mesh model configuration file.

[0068] In one implementation, as Figure 3As shown, S204 renders the mesh model of the object according to the mesh model configuration file, including:

[0069] S408. Render according to the shape file to obtain an initial model;

[0070] S409. Obtain material information according to the material file;

[0071] S410. Render the material information into the initial model according to the mapping file according to the corresponding relationship to obtain the mesh model of the object.

[0072] In the embodiment of the present disclosure, by using the shape file in the mesh model configuration file, an initial three-dimensional mesh model can be rendered. The initial three-dimensional mesh model mainly includes the shape of three-dimensional geometric figures and does not include the material of three-dimensional geometric figures. Then, through the mapping file, the material corresponding to each patch of the three-dimensional geometric figure is retrieved in the material file. After obtaining the corresponding material, the material is rendered onto the patch. After the material rendering of all patches is completed, a three-dimensional mesh model with material can be obtained for user use.

[0073] According to the embodiment of the present disclosure, a final three-dimensional mesh model with material can be rendered.

[0074] Figure 5 is a schematic flowchart of model rendering according to an embodiment of the present disclosure. As Figure 4 shown, the user can create a mesh model in the background of the platform through the CAD contour.

[0075] S501. Generate geometry by lofting the cad profile and assign materials. Finally, multiple triangular patches (mesh data) expressed by points, lines, faces, normals, UVs, and materials are generated, thus forming a surface or a solid.

[0076] S502. Generate a commonly used three-dimensional model file format in the industry based on the mesh data. The three-dimensional model file includes a shape (Obj) file, a material mapping (Material Map) file, and a material (Material) file.

[0077] S503. Call the Application Programming Interface (API) to generate a mesh model through the Obj file.

[0078] Figure 6 is a schematic structural diagram of a mesh model modeling device according to an embodiment of the present disclosure. In one implementation, the device includes:

[0079] A geometric generation module 601 for generating geometric data according to the cross-sectional profile and lofting path of an object;

[0080] A data acquisition module 602 for acquiring mesh model data according to the geometric data;

[0081] A configuration generation module 603 for generating a mesh model configuration file according to the mesh model data;

[0082] A rendering module 604 for rendering the mesh model of the object according to the mesh model configuration file.

[0083] Figure 7 FIG. is a schematic structural diagram of a mesh model modeling device according to another embodiment of the present disclosure, and the device may include one or more features of the above-mentioned mesh model modeling device. In one embodiment, the geometric generation module 601 includes:

[0084] A profile acquisition sub-module 701 for obtaining the cross-sectional profile of the object according to a Computer Aided Design (CAD) file;

[0085] A lofting sub-module 702 for lofting the cross-sectional profile along the lofting path to generate the geometric data.

[0086] In one embodiment, as Figure 7 shown, the data acquisition module 602 includes:

[0087] A selection sub-module 703 for obtaining the material data of the selected material in response to a material selection operation;

[0088] A conversion sub-module 704 for converting the geometric data to obtain patch data, normal data, and texture (UV) data.

[0089] In one embodiment, the mesh model configuration file includes a shape file, a material file, and a mapping file. As Figure 7 shown, the configuration generation module 603 includes:

[0090] A shape conversion sub-module 705 for converting to obtain the shape file according to the patch data, normal data, and texture data;

[0091] A material conversion sub-module 706 for converting to obtain the material file according to the material data;

[0092] A mapping configuration sub-module 707 for generating a mapping configuration file according to the correspondence between the material data and at least one of the patch data, the normal data, and the texture data.

[0093] In one embodiment, as Figure 7 shown, the rendering module 604 includes:

[0094] A model rendering sub-module 708, configured to perform rendering according to the shape file to obtain an initial model;

[0095] An acquisition sub-module 709, configured to obtain material information according to the material file;

[0096] A material rendering sub-module 710, configured to render the material information into the initial model according to the mapping file according to the corresponding relationship to obtain the mesh model of the object.

[0097] For the specific functions and example descriptions of the modules and sub-modules of the device in the embodiments of the present disclosure, reference may be made to the relevant descriptions of the corresponding steps in the above method embodiments, which will not be repeated here.

[0098] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0099] Figure 8 It is a structural block diagram of an electronic device according to an embodiment of the present disclosure. As Figure 8 shown, the electronic device includes: a memory 810 and a processor 820. The memory 810 stores a computer program that can run on the processor 820. The number of the memory 810 and the processor 820 can be one or more. The memory 810 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided in the above method embodiment. The electronic device may further include: a communication interface 830, configured to communicate with external devices and perform data interaction and transmission.

[0100] If the memory 810, the processor 820, and the communication interface 830 are implemented independently, the memory 810, the processor 820, and the communication interface 830 can be interconnected through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 8 only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0101] Optionally, in a specific implementation, if the memory 810, the processor 820, and the communication interface 830 are integrated on a single chip, the memory 810, the processor 820, and the communication interface 830 can communicate with each other through an internal interface.

[0102] It should be understood that the above-mentioned processor can be a central processing unit (CPU), or it can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor can be a processor that supports the advanced reduced instruction set machines (ARM) architecture.

[0103] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may further include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).

[0104] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, Bluetooth, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disc (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), etc. It should be noted that the computer-readable storage medium mentioned in the present disclosure can be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0105] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disc, etc.

[0106] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0107] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" herein is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0108] In the description of the embodiments of the present disclosure, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, "a plurality of" means two or more.

[0109] The foregoing are only exemplary embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. A network modeling method, comprising: Generate geometric data based on the object's profile and lofting path; Acquire mesh model data according to the geometric data; Generate a mesh model configuration file according to the mesh model data; The mesh model of the object is obtained by rendering according to the mesh model configuration file.

2. The method according to claim 1, wherein: Generate geometric data based on the object's profile and lofting path, including: Obtaining the cross-sectional profile of the object according to a computer-aided design file; The cross-section profile is lofted along the lofting path to generate the geometric data.

3. The method according to claim 1 or 2, wherein: Acquiring mesh model data according to the geometric data includes: In response to a material selection operation, obtaining material data of the selected material; The geometric data is transformed to obtain patch data, normal data and texture data.

4. The method according to any one of claims 1 to 3, wherein: The mesh model configuration file includes shape files, material files and mapping files. The mesh model configuration file is generated according to the mesh model data, including: The shape file is obtained by converting the patch data, the normal data and the texture data; Obtaining the material file according to the material data conversion; A mapping configuration file is generated according to a correspondence between the material data and at least one of the patch data, the normal data and the texture data.

5. The method according to claim 4, wherein: Rendering a mesh model of the object according to the mesh model configuration file includes: Rendering is performed according to the shape file to obtain an initial model; Acquire material information according to the material file; The material information is rendered into the initial model according to the corresponding relationship according to the mapping file to obtain the mesh model of the object.

6. A network modeling device, comprising: A geometry generation module is used to generate geometry data according to the cross-section profile and lofting path of the object; A data acquisition module, used for acquiring mesh model data according to the geometric data; A configuration generation module, used for generating a mesh model configuration file according to the mesh model data; A rendering module is used to render a mesh model of the object according to the mesh model configuration file.

7. The device according to claim 6, wherein: The geometry generation module comprises: A contour acquisition submodule, used for obtaining the cross-sectional contour of the object according to a computer-aided design file; The lofting module is used to loft the profile along the lofting path to generate the geometric data.

8. The device according to claim 6 or 7, wherein: The data acquisition module comprises: A selection submodule, for obtaining material data of a selected material in response to a material selection operation; The conversion submodule is used to convert the geometric data to obtain patch data, normal data and texture data.

9. The device according to any one of claims 6 to 8, wherein: The mesh model configuration file includes a shape file, a material file and a mapping file. The configuration generation module includes: A shape conversion submodule, used for converting the shape file according to the patch data, normal data and texture data; The material conversion submodule is used to obtain the material file according to the material data conversion; The mapping configuration submodule is used to generate a mapping configuration file according to the corresponding relationship between the material data and at least one of the patch data, the normal data and the texture data.

10. The device according to claim 9, wherein: The rendering module includes: A model rendering submodule, used for rendering according to the shape file to obtain an initial model; An acquisition submodule, used for acquiring material information according to the material file; The material rendering submodule is used to render the material information into the initial model according to the corresponding relationship based on the mapping file to obtain the mesh model of the object.

11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.