High-precision three-dimensional repair method based on volume data grid reconstruction and topological optimization
By analyzing polygon connectivity and merging boundaries based on volume data mesh reconstruction and topology optimization, the problem of inconsistent shapes in hole repair in the bone model is solved, and high-precision hole repair effects are achieved.
Patent Information
- Application Number
- CN202410658432.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, when repairing holes in bone models, the surface smoothing method may cause the repaired area to be inconsistent with the shape of the original bone model. In particular, the details around the holes may be distorted, making it difficult to achieve accurate repair.
A high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization is used to obtain the volume data of the skeletal model, perform mesh reconstruction, analyze polygon connectivity, divide triangles, merge boundaries, fill hole spaces, and ensure that triangles share common boundaries. , to achieve hole repair.
This method can more accurately repair holes in the bone model, ensure that the repaired area is consistent with the shape of the original model, and improve the accuracy of detail repair.
Smart Images

Figure CN118657905A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of bone model hole repair, and in particular, relates to a high-precision three-dimensional repair method, device, equipment and computer-readable storage medium based on volume data mesh reconstruction and topology optimization. Background Art
[0002] Currently, the bone model hole repair method is surface smoothing: by using a smoothing algorithm (such as LaplacianSmoothing), the vertices around the hole are smoothed to make them consistent with the surrounding surface.
[0003] However, surface smoothing may result in the repaired area not being completely consistent with the shape of the original bone model, especially in the details around the holes, which may be distorted.
[0004] Therefore, how to more accurately repair holes in bone models is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The embodiments of the present application provide a high-precision three-dimensional repair method, device, equipment and computer-readable storage medium based on volume data mesh reconstruction and topology optimization, which can more accurately repair holes in bone models.
[0006] In a first aspect, the present application provides a high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization, comprising:
[0007] Acquire volume data of a skeleton model; wherein holes exist on the skeleton model;
[0008] Mesh reconstruction is performed based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons;
[0009] Analyze the connectivity of a set of polygons and determine adjacent polygons that share boundaries;
[0010] Divide adjacent polygons into a set of triangles to fill the space between them;
[0011] The boundaries of adjacent triangles are merged so that all triangles share a common set of boundaries to complete the hole repair.
[0012] Optionally, mesh reconstruction is performed based on the volume data to obtain mesh data of the skeleton model, including:
[0013] De-noising and enhancing volume data;
[0014] converting the processed volume data into a three-dimensional mesh structure;
[0015] The mesh data of the skeleton model is obtained by performing mesh smoothing and mesh partitioning operations on the three-dimensional mesh structure.
[0016] Optionally, analyze the connectivity of the polygon collection to determine adjacent polygons that share a boundary, including:
[0017] For each polygon, identify its boundary;
[0018] For each boundary, find other polygons that share that boundary;
[0019] Use graph theory algorithms or depth-first search or breadth-first search methods to analyze the connectivity between polygons and determine their associations and connection methods;
[0020] Based on the above analysis results, the connection relationship between polygons is constructed to determine the relationship between shared boundaries and adjacent polygons.
[0021] Optionally, divide adjacent polygons into a set of triangles to fill the space between them, consisting of:
[0022] Determining adjacent pairs of polygons that share one or more boundaries;
[0023] Find common points between adjacent polygons that lie on their common boundaries; these points will become the endpoints of the horizontal cutting lines;
[0024] Cut adjacent polygons along horizontal lines connecting common points to other points, producing a series of horizontal cutting lines parallel to the common edges;
[0025] Cut the polygon into a set of triangles along the intersection of each horizontal cutting line with an adjacent polygon; wherein the cutting lines are perpendicular to the common edge and divide the polygon into triangles;
[0026] Based on the horizontal and vertical cuts, a set of triangles are generated to fill the space between adjacent polygons.
[0027] Optionally, merge the borders of adjacent triangles so that all triangles share a common set of borders, including:
[0028] Determine adjacent triangle pairs with common boundaries that need to be merged;
[0029] For each pair of adjacent triangles, find the common boundary between them;
[0030] Merge the common boundaries of adjacent triangles into one boundary segment;
[0031] Update the connection relationship between triangles according to the new boundary merging situation;
[0032] After boundary merging, all triangles will share a common set of boundaries, forming a closed boundary.
[0033] Optionally, also include:
[0034] Geometry correction of degenerate elements, self-intersecting polygons, and triangle edge lengths exceeding a threshold;
[0035] The degenerate elements include line segments with an angle of 0 or 180 degrees and a length of 0.
[0036] Optionally, also include:
[0037] The skeleton model is topologically reconstructed to remove outliers and redundant small connected blocks.
[0038] In a second aspect, the embodiment of the present application provides a high-precision three-dimensional repair device based on volume data mesh reconstruction and topology optimization, comprising:
[0039] A volume data acquisition module is used to acquire volume data of a skeleton model; wherein holes exist on the skeleton model;
[0040] A mesh reconstruction module is used to reconstruct the mesh based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons;
[0041] Connectivity analysis module, used to analyze the connectivity of polygon sets and determine adjacent polygons that share boundaries;
[0042] A triangle group partitioning module for partitioning adjacent polygons into a group of triangles to fill the space between them;
[0043] The boundary merging module is used to merge the boundaries of adjacent triangles so that all triangles share a set of common boundaries to complete hole repair.
[0044] In a third aspect, an embodiment of the present application provides an electronic device, characterized in that the electronic device includes: a processor and a memory storing computer program instructions;
[0045] When the processor executes the computer program instructions, a high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization is implemented.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement a high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization.
[0047] The high-precision three-dimensional repair method, device, equipment and computer-readable storage medium based on volume data mesh reconstruction and topology optimization in the embodiments of the present application can more accurately repair holes in bone models.
[0048] The high-precision 3D repair method based on volume data mesh reconstruction and topology optimization includes:
[0049] Acquire volume data of a skeleton model; wherein holes exist on the skeleton model;
[0050] Mesh reconstruction is performed based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons;
[0051] Analyze the connectivity of a set of polygons and determine adjacent polygons that share boundaries;
[0052] Divide adjacent polygons into a set of triangles to fill the space between them;
[0053] The boundaries of adjacent triangles are merged so that all triangles share a common set of boundaries to complete the hole repair. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 It is a flowchart of a high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application;
[0056] Figure 2 This is a schematic diagram of the comparison effect of high-precision three-dimensional restoration based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application;
[0057] Figure 3 This is a schematic diagram of the comparative effect of removing impurities provided by an embodiment of the present application;
[0058] Figure 4 It is a structural schematic diagram of a high-precision three-dimensional repair device based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application;
[0059] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0060] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0061] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0062] In order to solve the problems of the prior art, the embodiments of the present application provide a high-precision three-dimensional repair method, device, equipment and computer-readable storage medium based on volume data mesh reconstruction and topology optimization. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization provided by the embodiments of the present application is first introduced below.
[0063] Figure 1 FIG. 1 is a flow chart of a high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application. Figure 1 As shown, the high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization includes:
[0064] S101, obtaining volume data of a skeleton model; wherein holes exist in the skeleton model;
[0065] S102, performing mesh reconstruction based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons;
[0066] S103, analyzing the connectivity of the polygon set, and determining adjacent polygons that share a boundary;
[0067] S104, dividing adjacent polygons into a group of triangles to fill the space between them;
[0068] S105 . Merge the boundaries of adjacent triangles so that all triangles share a set of common boundaries to complete hole repair.
[0069] In one embodiment, mesh reconstruction is performed based on volume data to obtain mesh data of a skeleton model, including:
[0070] De-noising and enhancing volume data;
[0071] converting the processed volume data into a three-dimensional mesh structure;
[0072] The mesh data of the skeleton model is obtained by performing mesh smoothing and mesh partitioning operations on the three-dimensional mesh structure.
[0073] In one embodiment, analyzing the connectivity of a polygon set to determine adjacent polygons that share a boundary includes:
[0074] For each polygon, identify its boundary;
[0075] For each boundary, find other polygons that share that boundary;
[0076] Use graph theory algorithms or depth-first search or breadth-first search methods to analyze the connectivity between polygons and determine their associations and connection methods;
[0077] Based on the above analysis results, the connection relationship between polygons is constructed to determine the relationship between shared boundaries and adjacent polygons.
[0078] In one embodiment, adjacent polygons are divided into a set of triangles to fill the space between them, including:
[0079] Determining adjacent pairs of polygons that share one or more boundaries;
[0080] Find common points between adjacent polygons that lie on their common boundaries; these points will become the endpoints of the horizontal cutting lines;
[0081] Cut adjacent polygons along horizontal lines connecting common points to other points, producing a series of horizontal cutting lines parallel to the common edges;
[0082] Cut the polygon into a set of triangles along the intersection of each horizontal cutting line with an adjacent polygon; wherein the cutting lines are perpendicular to the common edge and divide the polygon into triangles;
[0083] Based on the horizontal and vertical cuts, a set of triangles are generated to fill the space between adjacent polygons.
[0084] In one embodiment, the boundaries of adjacent triangles are merged so that all triangles share a common set of boundaries, including:
[0085] Determine adjacent triangle pairs with common boundaries that need to be merged;
[0086] For each pair of adjacent triangles, find the common boundary between them;
[0087] Merge the common boundaries of adjacent triangles into one boundary segment;
[0088] Update the connection relationship between triangles according to the new boundary merging situation;
[0089] After boundary merging, all triangles will share a common set of boundaries, forming a closed boundary.
[0090] In one embodiment, it further includes:
[0091] Geometry correction of degenerate elements, self-intersecting polygons, and triangle edge lengths exceeding a threshold;
[0092] The degenerate elements include line segments with an angle of 0 or 180 degrees and a length of 0.
[0093] In one embodiment, it further includes:
[0094] The skeleton model is topologically reconstructed to remove outliers and redundant small connected blocks.
[0095] Figure 2 This is a schematic diagram of the comparison effect of high-precision three-dimensional restoration based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application;
[0096] Figure 3 This is a schematic diagram of the comparative effect of removing impurities provided by an embodiment of the present application;
[0097] Figure 4 1 is a schematic diagram of a high-precision three-dimensional restoration device based on volume data mesh reconstruction and topology optimization provided by an embodiment of the present application; the high-precision three-dimensional restoration device based on volume data mesh reconstruction and topology optimization is characterized in that it includes:
[0098] The volume data acquisition module 401 is used to acquire volume data of a skeleton model; wherein holes exist on the skeleton model;
[0099] A mesh reconstruction module 402 is used to perform mesh reconstruction based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons;
[0100] Connectivity analysis module 403, used to analyze the connectivity of the polygon set and determine adjacent polygons that share a boundary;
[0101] A triangle group division module 404 is used to divide adjacent polygons into a group of triangles to fill the space between them;
[0102] The boundary merging module 405 is used to merge the boundaries of adjacent triangles so that all triangles share a set of common boundaries to complete hole repair.
[0103] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0104] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0105] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0106] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the electronic device. In a particular embodiment, the memory 502 may be a non-volatile solid-state memory.
[0107] In one embodiment, the memory 502 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0108] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement any one of the high-precision three-dimensional repair methods based on volume data mesh reconstruction and topology optimization in the above embodiments.
[0109] In one example, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0110] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0111] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0112] In addition, in combination with the high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization in the above embodiments, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the high-precision three-dimensional repair methods based on volume data mesh reconstruction and topology optimization in the above embodiments is implemented.
[0113] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0114] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0115] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0116] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0117] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A high-precision 3D repair method based on volume data mesh reconstruction and topology optimization. It is characterized in that include: Acquire volume data of a skeleton model; wherein holes exist on the skeleton model; Mesh reconstruction is performed based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons; Analyze the connectivity of a set of polygons and determine adjacent polygons that share boundaries; Divide adjacent polygons into a set of triangles to fill the space between them; The boundaries of adjacent triangles are merged so that all triangles share a common set of boundaries to complete the hole repair.
2. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Mesh reconstruction is performed based on volume data to obtain mesh data of the skeleton model, including: De-noising and enhancing volume data; converting the processed volume data into a three-dimensional mesh structure; The mesh data of the skeleton model is obtained by performing mesh smoothing and mesh partitioning operations on the three-dimensional mesh structure.
3. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Analyze the connectivity of a collection of polygons to determine adjacent polygons that share a boundary, including: For each polygon, identify its boundary; For each boundary, find other polygons that share that boundary; Use graph theory algorithms or depth-first search or breadth-first search methods to analyze the connectivity between polygons and determine their associations and connection methods; Based on the above analysis results, the connection relationship between polygons is constructed to determine the relationship between shared boundaries and adjacent polygons.
4. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Divide adjacent polygons into a set of triangles that fill the space between them, consisting of: Determining adjacent pairs of polygons that share one or more boundaries; Find common points between adjacent polygons that lie on their common boundaries; these points will become the endpoints of the horizontal cutting lines; Cut adjacent polygons along horizontal lines connecting common points to other points, producing a series of horizontal cutting lines parallel to the common edges; Cut the polygon into a set of triangles along the intersection of each horizontal cutting line with an adjacent polygon; wherein the cutting lines are perpendicular to the common edge and divide the polygon into triangles; Based on the horizontal and vertical cuts, a set of triangles are generated to fill the space between adjacent polygons.
5. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Merge the boundaries of adjacent triangles so that all triangles share a common set of boundaries, including: Determine adjacent triangle pairs with common boundaries that need to be merged; For each pair of adjacent triangles, find the common boundary between them; Merge the common boundaries of adjacent triangles into one boundary segment; Update the connection relationship between triangles according to the new boundary merging situation; After boundary merging, all triangles will share a common set of boundaries, forming a closed boundary.
6. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Also includes: Geometry correction of degenerate elements, self-intersecting polygons, and triangle edge lengths exceeding a threshold; The degenerate elements include line segments with an angle of 0 or 180 degrees and a length of 0.
7. The high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization according to claim 1, It is characterized in that Also includes: The skeleton model is topologically reconstructed to remove outliers and redundant small connected blocks.
8. A high-precision 3D repair device based on volume data mesh reconstruction and topology optimization, It is characterized in that The device comprises: A volume data acquisition module is used to acquire volume data of a skeleton model; wherein holes exist on the skeleton model; A mesh reconstruction module is used to reconstruct the mesh based on the volume data to obtain mesh data of the skeleton model; wherein the mesh data is a polygon set, which includes vertex information and connection relationships of multiple polygons; Connectivity analysis module, used to analyze the connectivity of polygon sets and determine adjacent polygons that share boundaries; A triangle group partitioning module for partitioning adjacent polygons into a group of triangles to fill the space between them; The boundary merging module is used to merge the boundaries of adjacent triangles so that all triangles share a set of common boundaries to complete hole repair.
9. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the high-precision three-dimensional repair method based on volume data mesh reconstruction and topology optimization as described in any one of claims 1 to 7.
Citation Information
Cited By
Spatial data quality intelligent inspection method and device
CN122654109A
