Lightweight encoding for medical additive manufacturing files

Lagano (lightweight) kodiranje datoteka za aditivnu proizvodnju u medicini

Zhao X, Huang J, Xu M.

2025 · 3D printing in medicine · CC BY-NC-ND

Apstrakt
Uvod: Tehnologija aditivne proizvodnje revolucionisala je medicinsku oblast omogućavajući izradu implantata po meri sa složenim unutrašnjim strukturama koje poboljšavaju mehanička svojstva i biokompatibilnost. Ovi složeni dizajni često dovode do izuzetno velikih datoteka 3D modela zbog visokog nivoa potrebnih detalja. Veliki obim podataka predstavlja značajan izazov za skladištenje, prenos i obradu datoteka. Tradicionalne metode kompresije ne mogu efikasno da kodiraju složene modele bez ugrožavanja tačnosti i kompatibilnosti. Cilj ove studije bio je da se razvije lagana strategija kodiranja za 3D geometrijske datoteke u medicinskoj aditivnoj proizvodnji, koja značajno smanjuje veličinu datoteke, a istovremeno čuva tačnost podataka i kompatibilnost sa postojećim industrijskim standardnim formatima. Metode: Predložili smo metodu klasterovanja zasnovanu na geometrijskim odnosima za topološku rekonstrukciju mrežnih (mesh) modela. Metoda obuhvata neuniformno i višeskalno pojednostavljivanje mreže radi zadržavanja ključnih karakteristika i smanjenja suvišnih podataka. Kodiranjem ovih ponavljajućih karakteristika samo jednom, strategija kodiranja povećava efikasnost kompresije. Implementirali smo kompatibilne šeme kodiranja za formate podataka AMF (Additive Manufacturing File) i 3MF (3D Manufacturing Format), nazvane Lite AMF i Lite 3MF. Eksperimenti na tri modela medicinskih implantata sprovedeni su radi procene efikasnosti predložene metode. Rezultati: Predložena strategija kodiranja postigla je značajno smanjenje veličine datoteka, pri čemu su formati Lite AMF i Lite 3MF smanjili veličinu datoteka za 81,99% odnosno 91,34% u poređenju sa originalnim formatima. Algoritam kompresije je efikasno sačuvao geometrijske karakteristike modela. Hausdorffova udaljenost između originalnih i kompresovanih modela bila je manja od 0,001 za sva tri modela, što ukazuje na visoku vernost i očuvanje tačnosti u okviru prihvatljivih proizvodnih tolerancija savremenih tehnologija medicinske aditivne proizvodnje. Zaključak: Lagana strategija kodiranja efikasno smanjuje veličinu datoteka složenih medicinskih 3D modela za više od 80%, uz očuvanje tačnosti podataka i kompatibilnosti sa postojećim formatima. Efikasnim kodiranjem ponavljajućih struktura i optimizacijom podataka o mreži, metoda poboljšava efikasnost skladištenja i prenosa, i odgovara na izazove velikog obima podataka u medicinskoj aditivnoj proizvodnji. Kompatibilnost sa standardnim formatima AMF i 3MF obezbeđuje da se kodirani modeli mogu direktno koristiti u postojećem softveru za 3D štampu bez izmena.

Prevod na srpski je mašinski (Claude) i prikazan je radi čitljivosti; original je merodavan.

Background Additive manufacturing technology has revolutionized the medical field by enabling the production of customized implants with complex internal structures that enhance mechanical properties and biocompatibility. These intricate designs often result in exceedingly large 3D model files due to the high level of detail required. The substantial data volume poses significant file storage, transmission, and processing challenges. Traditional compression methods cannot encode complex models efficiently without compromising accuracy and compatibility. This study aims to develop a lightweight encoding strategy for 3D geometric files in medical additive manufacturing that significantly reduces file size while preserving data accuracy and compatibility with existing industry-standard formats. Methods We proposed a geometric relationship-based clustering method for the topological reconstruction of mesh models. The method involves non-uniform and multi-scale mesh simplification to retain critical features and reduce redundant data. By encoding these repetitive features only once, the encoding strategy enhances compression efficiency. We implemented compatible encoding schemes for the AMF (Additive Manufacturing File) and 3MF (3D Manufacturing Format) data formats, referred to as Lite AMF and Lite 3MF. Experiments on three medical implant models were conducted to evaluate the effectiveness of the proposed method. Results The proposed encoding strategy achieved significant file size reductions, with Lite AMF and Lite 3MF formats reducing file sizes by 81.99% and 91.34%, respectively, compared to the original formats. The compression algorithm effectively preserved the geometric characteristics of the models. The Hausdorff distance between the original and compressed models was less than 0.001 for all three models, indicating high fidelity and maintaining accuracy within the acceptable manufacturing tolerances of current medical additive manufacturing technologies. Conclusion The lightweight encoding strategy effectively reduces the file size of complex medical 3D models by over 80% while preserving data accuracy and compatibility with existing formats. By efficiently encoding repetitive structures and optimizing mesh data, the method enhances storage and transmission efficiency, addressing the challenges of large data volumes in medical additive manufacturing. The compatibility with standard AMF and 3MF formats ensures that the encoded models can be directly utilized in existing 3D printing software without modification.

Abstract Background Additive manufacturing technology has revolutionized the medical field by enabling the production of customized implants with complex internal structures that enhance mechanical properties and biocompatibility. These intricate designs often result in exceedingly large 3D model files due to the high level of detail required. The substantial data volume poses significant file storage, transmission, and processing challenges. Traditional compression methods cannot encode complex models efficiently without compromising accuracy and compatibility. This study aims to develop a lightweight encoding strategy for 3D geometric files in medical additive manufacturing that significantly reduces file size while preserving data accuracy and compatibility with existing industry-standard formats. Methods We proposed a geometric relationship-based clustering method for the topological reconstruction of mesh models. The method involves non-uniform and multi-scale mesh simplification to retain critical features and reduce redundant data. By encoding these repetitive features only once, the encoding strategy enhances compression efficiency. We implemented compatible encoding schemes for the AMF (Additive Manufacturing File) and 3MF (3D Manufacturing Format) data formats, referred to as Lite AMF and Lite 3MF. Experiments on three medical implant models were conducted to evaluate the effectiveness of the proposed method. Results The proposed encoding strategy achieved significant file size reductions, with Lite AMF and Lite 3MF formats reducing file sizes by 81.99% and 91.34%, respectively, compared to the original formats. The compression algorithm effectively preserved the geometric characteristics of the models. The Hausdorff distance between the original and compressed models was less than 0.001 for all three models, indicating high fidelity and maintaining accuracy within the acceptable manufacturing tolerances of current medical additive manufacturing technologies. Conclusion The lightweight encoding strategy effectively reduces the file size of complex medical 3D models by over 80% while preserving data accuracy and compatibility with existing formats. By efficiently encoding repetitive structures and optimizing mesh data, the method enhances storage and transmission efficiency, addressing the challenges of large data volumes in medical additive manufacturing. The compatibility with standard AMF and 3MF formats ensures that the encoded models can be directly utilized in existing 3D printing software without modification. Supplementary Information The online version contains supplementary material available at 10.1186/s41205-025-00283-w. Keywords: Medical Additive Manufacturing, 3D Geometric Model, Lightweight Encoding, Shape Factor Algorithm, Feature Clustering

Introduction Musculoskeletal disorders—including osteoarthritis, traumatic bone defects, and bone neoplasms—represent a significant cause of disability among adults globally. According to recent epidemiological studies, the number of individuals affected by knee osteoarthritis alone has surpassed 500 million worldwide. Severe pathological changes or trauma to load-bearing joints such as the hip or knee often necessitate joint replacement surgery. Conventionally, the implants are constructed from metallic alloys, polymers, or ceramic materials [ 1 , 2 ]. 3D printing technology has brought innovative changes to the medical field. With the increasing adoption of this technology, more 3D-printed implants, such as dentures, joint prostheses, and artificial vertebrae, are being widely utilized [ 3 – 6 ]. This technology provides customized implants for patients, demonstrating clear advantages over traditional methods in enhancing the biocompatibility and mechanical properties of medical implants. It allows for manufacturing specific internal structures to achieve lightweight implants. These intricate internal structures can simulate human tissue, enhancing mechanical strength and stability, approximating the elasticity of natural tissues, and contributing to bone integration and vascular regeneration, significantly reducing the risk of rejection. However, the complexity of these internal structures leads to an abundance of detail in 3D printing files. As model precision and complexity increase, so does the data volume. Accurately describing the boundary surfaces of complex geometric models may require up to tens of millions of triangular meshes, which certainly raises higher demands for data storage and computational capabilities. Especially in the context of increasingly widespread remote diagnostics, high-resolution 3D models pose immense pressure on remote storage and transmission. Therefore, the efficient way to encode medical 3D model data has garnered attention from computer graphics and medical fields. The critical issue is finding an encoding method to cope with this complex structure while maintaining data accuracy and lightweight characteristics. Consequently, there is an urgent need to design a novel, targeted data compression algorithm to accommodate the characteristics of 3D printing data in medical additive manufacturing. To address this issue, we propose a lightweight encoding strategy for 3D geometric files suited for medical additive manufacturing based on the characteristics of medical 3D models, which can adapt to the complex structures of biomedical models. This compression algorithm can better match the topological features of medical 3D models topology. For instance, the internal structures of implants often have repetitive and gradient characteristics, typically distributed along several principal directions. Using feature clustering, similar and identical features are identified and encoded once, with only transformation to primary features recorded, significantly enhancing file compression ratios. In handling the repetitive transformation, we incorporate multi-scale mesh simplification and shape factor algorithms for rapid sampling of input models, overcoming the computational intensity and prolonged clustering times associated with traditional methods. Background Lightweight encoding of medical 3D printing files Joint arthroplasty, particularly of the hip and knee, is widely performed to restore mobility and relieve pain in patients with severe joint degeneration or trauma. These traditional implants are often simply designed due to manufacturing process constraints. However, with advancements in medical technology, we can now adjust the internal structures of implants to achieve lightweight designs while enhancing mechanical performance. For instance, replacement surgeries are typically necessary when severe lesions or injuries occur in areas such as the hip or knee. Traditionally, these implants are made from metals, plastics, or ceramics [ 7 , 8 ] and manufactured using CNC machining or injection molding techniques. Given implant designs'complexity and lightweight requirements, 3D printing technology has gradually been applied to produce customized implants for specific patients. Lightweight and high-strength implants can be manufactured by integrating topological optimization techniques. Combining 3D printing technology allows the creation of precise and controlled internal filling structures for implants. Such designs not only reduce the stiffness of the implants but also mitigate the phenomenon of stress shielding [ 9 ]. Traditional implants often exhibit material property discrepancies with bone; for example, the elastic modulus of titanium and its alloys ranges from 100 to 120GPa, while the elastic modulus of bone varies between 0.02 to 30GPa. This discrepancy results in the stiffness of the implant being significantly higher than that of the bone, which causes the implants to bear most of the loads instead of the bone. According to Wolff's Law, this can lead to loosening and failure of the implant [ 10 ]. However, by designing predetermined internal topologies for the implants, such as tetrahedral, honeycomb, or Voronoi structures, we can better facilitate the close integration of the implant with the bone and optimize load transfer within the bone. Figure 1 illustrates hip joint implants'design and application process using additive manufacturing, where the 3D model files typically consist of numerous repetitive structures. By identifying and utilizing these repetitive structures, we can reduce the amount of encoding required, thereby saving storage space and improving processing efficiency. Most medical additive manufacturing 3D models are constructed based on medical imaging data from magnetic resonance imaging (MRI), computed tomography (CT), positron emission tomography (PET), and single-photon emission computed tomography (SPECT). By using specialized tools like Materialise Mimics and DICOM to Print, these medical images are converted to 3D model formats such as Stereolithography (STL), Object (OBJ), Polygon File Format (PLY), and Virtual Reality Modeling Language (VRML). These formats have simple data structures suitable for processing on devices and software with limited computational capabilities. However, as medical additive manufacturing technology rapidly advances, the pursuit of model precision continues to rise, revealing the limitations of the formats above, such as oversized file sizes, slow loading, geometric defects, and data inconsistencies, which may impact the quality of the final product. Fig. 1 Workflow of additive manufacturing design, application, and use of hip prosthesis (modified from Ref. [ 11 ]) Traditional lossless compression methods for 3D geometric files mainly focus on removing redundant data and performing topological reconstruction, aiming to output vertex sequences with minimal bits, suitable for processing smooth surface models composed of dense small triangles. Another compression method achieves this by analyzing the statistical characteristics of file encoding, inputting vertex information into an entropy encoder to generate compressed data, with the compression ratio largely dependent on the entropy encoder. However, in medical additive manufacturing, models often contain numerous non-smooth surfaces and intricate microstructural features. These microstructures may exhibit gradient forms or undergo topological optimization, resulting in model surfaces composed of facets with significantly varying sizes. Given this complexity, traditional lossless compression and statistical-based encoding methods struggle to achieve ideal compression ratios while ensuring model precision. Furthermore, research on optimized data encoding for medical additive manufacturing scenarios remains relatively limited. To address these issues, emerging additive manufacturing data formats, such as AMF and 3MF, are progressively superseding conventional data formats and have already been implemented in some commercial processing platforms for medical additive manufacturing [ 11 , 12 ]. These formats efficiently handle more complex structures with lower computational overhead. The AMF format was first defined and standardized by ASTM in 2011, with the latest official version being ISO/ASTM 52915:2020 (AMF 1.2) [ 13 ]. It supports multiple attributes, including color and material, uses ZIP compression, and employs XML to describe complete CAD models. The 3MF format, introduced by the 3MF Consortium in 2015, currently stands at core specification version v1.3.0 [ 14 ] and supports multiple objects, assemblies, color, texture, and material properties. An overview of the specifications for these two formats is presented in Appendices A and B. The AMF and 3MF formats were developed to overcome the limitations of traditional file formats such as STL and have been widely adopted by numerous 3D printing devices and software platforms. As the demand for cross-system sharing, storage, and analysis of complex 3D models increases in the medical domain, certain Electronic Health Record (EHR) systems have begun to enhance their capabilities in processing 3D data. For example, Cerner’s SkyVue imaging platform integrates TomTec’s 3D visualization components [ 15 , 16 ], which are optimized for real-time volume rendering and multiplanar reconstruction of DICOM datasets—functions distinct from surface mesh processing. Similarly, DrChrono, in collaboration with 3D4Medical [ 17 ], has embedded artist-rendered generic interactive 3D anatomical models into its EHR system. These models serve as standardized visual aids for clinical communication, distinct from the patient-specific, high-resolution meshes required for precision regenerative medicine or custom implant fabrication—a distinction critical to understanding their role in current EHR infrastructure. We posit that future EHR systems will incorporate standardized surface mesh formats (e.g., ISO/ASTM 52915-compliant AMF variants) to support applications in personalized implant fabrication and regenerative medicine. This transition explicitly necessitates innovative encoding strategies, such as the lightweight approach proposed herein, to balance data fidelity with storage efficiency [ 18 ]. It is worth noting that most current medical imaging platforms are designed primarily for visualizing volumetric data rather than surface mesh models. However, surface meshes offer significant advantages in manufacturing compatibility, data storage and transmission efficiency, interactivity, and attribute representation compared to voxel data. Surface meshes are now the standard input format for additive manufacturing workflows, eliminating additional processing steps required by voxel data and reducing the data volume burden on clinical storage and network systems. Moreover, triangular meshes excel in GPU rendering performance and support efficient real-time interaction, annotation, and editing. They also allow rich attribute embedding—such as material, color, and texture—facilitating personalized design and structural optimization. Consequently, surface mesh formats are better suited to the demands of next-generation EHR/RIS/PACS systems for efficient and precise 3D model applications. In the future, to support applications such as custom implant fabrication, precise preoperative planning, and regenerative medicine, we anticipate that future EHR/RIS/PACS systems will natively support complex, patient-specific surface mesh data formats (such as lightweight AMF/3MF and their extensions). This shift will place new demands on encoding and compression efficiency—challenges that this study’s proposed lightweight mesh encoding strategy is specifically designed to address. Moreover, to prevent performance degradation due to high-resolution 3D models, some EHR systems integrate with Picture Archiving and Communication Systems (PACS) [ 19 – 21 ], storing model data on dedicated hardware and retaining only metadata and links within the EHR system. Examples include the Media2DICOM system developed by Rady Children’s Hospital [ 20 ] and the electronic health record architecture of the U.S. Department of Veterans Affairs (VA) [ 21 ], both supporting direct storage and use of patient-specific 3D models, such as DICOM-generated 3D models or customized orthoses. Notably, the 3MF Beam Lattice extension (v1.2.0), released in 2018 [ 14 ], introduces new XML elements—beamlattice, beams, and balls—that encode internal truss structures via a node–beam representation, significantly reducing data volume. Each beam is defined by the indices of its two end nodes with a cylindrical cross-sectional radius, obviating the need to tessellate every strut into many triangular facets and thus preserving high fidelity while maintaining precision. Beam Lattice is particularly well suited to lightweight lattice models with dense interiors that can be represented as node–beam graphs. Nevertheless, this extension has several limitations: (i) cross-sectional geometry is confined to circles, precluding direct representation of polyhedral, elliptical, hollow, or otherwise complex beams; (ii) geometric expressiveness is limited because each beam can be rendered only as a linearly interpolated frustum, making it challenging to model beams with graded cross-sections, curvature, or intricate chamfers; (iii) node types are restricted to spheres, so plate-like, conical, or other diverse connectors cannot be directly described, limiting connectivity options, and (iv) Beam Lattice applies only to lattice structures intentionally embedded during the design phase—structures extracted from DICOM or MRI scans and reconstructed by reverse engineering cannot yet be automatically converted to the Beam Lattice representation. In biomedical applications—particularly patient-specific implant design—internal architectures are often generated through advanced topology optimization and feature-graded, biomimetic, or continuously organic morphologies. For instance, bone implants may incorporate extensive graded truss networks to achieve weight reduction. Consequently, the Beam Lattice extension is not fully adequate for these scenarios. By contrast, the lightweight encoding strategy proposed in this study is agnostic to specific geometric features. It thus provides a more general compression solution for complex biomedical 3D models, simultaneously accommodating surface geometry and intricate internal details. Mesh compression Topological information describes how various elements within a 3D model are interconnected. By identifying and utilizing these repetitive structures among elements, the amount of encoding can be effectively reduced. From the perspective of compression methods, they can be primarily classified into two types: 1) Topological Information Compression: This method focuses on compressing the structural information of mesh models. In medical models, as the internal structures of implants often exhibit certain continuity and regularity, applying this method can significantly enhance compression efficiency. It considers topological relationships such as connectivity, adjacency, and containment in 3D model. The core idea is to reshape the adjacency relationships among vertices, edges, and facets in the model to reduce the data describing these relationships. Point-based representative algorithms such as the TG algorithm [ 22 ] optimize the degree of 3D mesh vertices using entropy encoding, suitable for regular triangular meshes. Edge-based representative algorithms include Face Fixe r [ 23 ], which achieves efficient topological compression through entropy encoding operators, generally resulting in high compression ratios. Facet-based algorithms, such as the four operators in HETS [ 24 ] and the five operators in CLERS [ 25 ], process the sequence of operators through entropy encoding to complete topological compression [ 24 ]. Currently, the compression ratios of such methods have gradually approached theoretical maximum values. Given that implants need to match the complex physiological structures of the human body, their intricate surface features may impact compression effectiveness. Thus, current research attempts to use particular data structures, like graphs or trees, to replace the original facets descriptions to reduce information redundancy further. 2) Geometric Information Compression: This method optimizes the spatial positional information of mesh vertices, aiming to minimize the storage requirements for vertex indices while describing them using the fewest possible bits. The compression process typically consists of three stages: reducing model precision, predictive encoding of vertex positions, and applying entropy encoding. First, due to the limited precision requirements in medical additive manufacturing, the positions of vertices or normals are quantized to reduce coordinate precision, and some facet elements may be deleted or merged to simplify the models. Next, predictive models, such as linear or polynomial predictors, are employed to predict vertex positions, saving only the prediction errors to reduce the data scale further. Finally, entropy encoding is used to reduce storage demands further. Standard methods include vertex removal, vertex pair contraction, and vertex clustering [ 26 , 27 ]. Some researchers focus on the model's visual quality, employing methods like QEM and its variants [ 28 – 30 ] to reduce redundant vertex counts while ensuring the visual effect of the model. Other studies divide the model into multiple sub-blocks for separate compression, achieving model simplification. Moreover, based on the level of data distortion caused by compression, compression technologies can be categorized as lossy, lossless, and near-lossless. Lossless compression methods, such as RLE (Run Length Encoding) [ 31 ], ensure that the decompressed data is identical to the original data, providing high accuracy for medical images. However, this accuracy often comes at the cost of lower compression ratios, making it suitable for scenarios with very high data integrity requirements. On the other hand, lossy compression can achieve higher compression ratios but sacrifices some data by removing less critical details. In medical imaging, the loss of information in certain detail elements may have significant implications for diagnostics and manufacturing processes. Therefore, near-lossless compression has gained increasing attention. It aims to eliminate redundant data within an acceptable error margin while achieving both high compression ratios and good data recovery quality, making it a relatively ideal choice for medical imaging. Geometric file encoding Geometric information primarily describes the positions of vertices in a 3D model. To achieve efficient compression, acceptable encoding of this information is essential. This encoding involves three primary aspects: reducing the amount of encoding, optimizing storage structures, and progressive encoding. 1) Reducing Encoding Amount: The encoding can be decreased by removing or merging certain elements to simplify file information. Edge collapse [ 32 ] is an effective simplification technique that simplifies encoding by removing edges of lower significance from the model. If removing an edge results in minimal shape alteration, it can be considered to have low ‘importance’ and can thus be removed along with its associated facets. Clustering simplification [ 33 ] is another standard method that divides the model into multiple cubic regions, merging all features in each region into a single vertex. This method is straightforward and efficient but may result in losing some model details. Typically, these simplification operations are only applied in areas with minimal visual impact, such as smoothing or internal regions of the model. 2) Optimizing Storage Structures: Optimizing the storage structure can achieve lossless compression and save storage space. This is primarily realized through indexing. For instance, 3D models often have multiple facets sharing vertices; thus, a unique vertex list can be stored, allowing each facet to reference these vertices by index, thereby reducing the amount of vertex data stored. The hash table method uses hash functions to associate data keys with memory addresses, enabling efficient handling of large vertex datasets. Additionally, octrees, balanced binary trees, or KD-trees can further optimize the model's spatial topology structure, enhancing neighborhood searches and collision detection efficiency. 3) Progressive Meshes (PM): This method employs a hierarchical approach, dynamically adjusting the complexity of the mesh model based on real-time application contexts, such as critical areas, visual conditions, and performance requirements, allowing for gradual encoding at different resolutions to achieve smooth visual effects. In the medical field, certain regions may have significantly higher clinical value than others. For example, in a 3D MRI model of the brain, we might focus only on a small region of interest. Therefore, high-quality, low-compression-rate encoding can be applied to these critical regions, while higher compression is used for others. This approach ensures that the region of interest (ROI) [ 34 ] maintains high resolution, allowing for access and storage of the 3D model at different resolution levels. In this study, we explore a novel geometric data compression technique within the context of medical additive manufacturing, combining methods for geometric information compression, reducing the encoding amount, and optimizing storage structures. We introduce the concept of ‘similar facets,’ which are those generated through specific transformations such as translation, rotation, or scaling. Therefore, all similar or identical facets can be represented with a single definition, significantly reducing data redundancy and storage requirements in complex medical models. Furthermore, facets with identical transformation are grouped into clusters for unified processing, further compressing file size. This strategy proves particularly effective for handling 3D models in medical additive manufacturing, such as complex models derived from CT or MRI image data. Materials and methods Based on the mesh characteristics of medical additive manufacturing models, this study proposes a geometric relationship-based clustering method for topological reconstruction of mesh models. By identifying geometric similarities among facets, similar and identical facets are clustered to ensure that repetitive features are uniformly represented as repeated instances of feature meshes, thereby eliminating repetition facet encoding. The facet clustering process utilizes statistical sampling analysis to effectively reduce noise interference by identifying the shape factors of vertices, thereby enhancing the effectiveness and robustness of the clustering method. Analysis of repetition encoding problem A mesh model M can be viewed as a composite structure formed by a series of small facets f . Each cluster S comprises one or more f using encoding methods κ such as translation, rotation, or scaling. Each cluster has an encoding weight of w S κ . Thus, the problem of repetition encoding can be defined as follows: 1 κ ∗ = arg min κ ω M , κ = arg min κ ∑ S ∈ A s w S κ where A s is the partition of mesh M , which comprises all clusters S that exclude repetitive facets f , and A s = 2 F . Here, F denotes the set of facets f , and F = f i , i ∈ N ∗ . The optimization objective is to find an optimal encoding strategy κ ∗ that minimizes the encoding cost ω M , κ . The encoding weight w S κ is defined as: 2 w S κ = w V κ ( V S ) + w F κ ( F S ) + w T κ ( T S ) + w E κ where V S denotes the unique vertices, F S comprises the unique facets, and T S refers to the corresponding transformation processes. In this equation, w S κ represents the total encoding weight, w V κ refers to vertex encoding weight, w F κ refers to facet encoding weight, w T κ refers to transformation encoding weight, and w E κ encompasses other encoding weights. Similar facets can be merged into the cluster for a model containing repetitive structures and transformed uniformly. For any two facets f , f ′ ∈ F 2 within the model, if f ′ = t f → f ′ f , then f ′ is considered a similar facet to f , with f being the reference facet. Here, t f → f ′ includes scaling, rotation, and translation operations. Furthermore, the transformation for the cluster is Γ f = t f → f ′ : f ′ ∈ I , where I = f i ′ , i ∈ N ∗ . Thus, similar and identical facets can be obtained through a series of facet transformations Γ = ∪ f ∈ F Γ f . If a facet possesses a transformation Γ f , then: 3 w S κ ≈ w T κ + w E κ If a facet is unique, i.e., there is no transformation, then: 4 w S κ ≈ w V κ + w E κ The magnitudes of w V κ , w F κ , w T κ , and w E κ depend on the encoding strategy κ . The relevant literature [ 35 ] provides a detailed analysis of the encoding strategy κ and the operation details in the repetition problem. Non-uniform and multi-scale mesh simplification Research in medical additive manufacturing reveals that many regions of the mesh model exhibit non-uniform distributions of meshes. Due to the higher complexity within feature regions, their elements are typically smaller and have a denser distribution, requiring more elements to represent their shapes. In contrast, elements in flat regions are more significant and less numerous. Based on this characteristic, we introduce a local area metric during the volume error calculation process to overcome the limitations of traditional simplification algorithms, which tend to produce uniformly distributed meshes and fail to emphasize important model features. This approach allows for higher simplification efficiency while maintaining high fidelity. For the input model, the first step is to partition it into multiple cells uniformly. To find the vertex within a cell that best represents the overall characteristics, we improve upon the method of Garland et al. [ 36 ]. Garland et al. use quadratic error to capture neighborhood information, employing a 4 × 4 matrix Q to record the coefficients of the squared distances from each vertex's surrounding plane to any vertexes in space. This approach effectively preserves details while ensuring linear runtime. Building upon this, we utilize matrix Q to record and calculate relevant information, further computing the squared volume of tetrahedra formed by any vertex in space and its facets. The optimal representative vertex is determined by minimizing the sum of these squared volumes. To find vertex v within the same cell such that the total squared volume of tetrahedrons formed by triangles t surrounding the cell and vertex v is minimized, let the coordinates v be [ v x , v y , v z , 1 ] T . For each input facet t = v 1 , v 2 , v 3 , we calculate the error matrix Q associated with v and t , represented in block form as follows: 5 Q = A b b T c = n ~ n ~ T 6 n ~ = v 1 × v 2 + v 2 × v 3 + v 3 × v 1 - v 1 , v 2 , v 3 Here, Q is a 4 × 4 symmetric matrix, A is a 3 × 3 matrix, b is a 3 × 1 vector, c is a constant term, and n ~ represents the area-weighted sum of squared volumes. The expression v 1 × v 2 + v 2 × v 3 + v 3 × v 1 denotes the sum of the vector products of the three vertices, equivalent to the area of the facet multiplied by its normal, while [ v 1 , v 2 , v 3 ] denotes the mixed product of the three vertices. Thus, the squared volume of the tetrahedron formed by v and t is given by: 7 Q v = v T Q v = 1 9 v T A v + 2 b T v + c The volume error matrix introduced by the new vertex within the same cell is: 8 ∑ p ∈ p ( v ) Q The resultant volume error is: 9 Δ V ( v ) = ∑ p ∈ p ( v ) v T Q v v The area error is: 10 Δ S v = ∑ p ∈ p ( v ) S p The facets distribution density of the mesh model is typically non-uniform, particularly in regions with a slight curvature radius or critical regions of the model; the facets distribution tends to be dense. Conversely, flat areas have fewer facets with more extensive areas. To better retain details of crucial facets of dense regions during model simplification, the simplification cost is defined as: 11 Δ E v = ∑ p ∈ p ( v ) v T Q v v ∑ p ∈ p ( v ) S p where p is the plane containing the facet that includes vertex v , S p is the area of that facet, and p ( v ) is the set of facets in the cell containing vertex v . Consequently, if the sum of the areas of the neighboring facet of the vertex is small, the simplification cost Δ E v will be relatively high. Since S p is a constant term, solving the vertex problem is equivalent to finding argmin v Δ V ( v ) . Given the expression of Q v , we note that Q v exhibits linear properties, i.e., Q 1 ( v ) + Q 2 ( v ) = ( Q 1 + Q 2 ) ( v ) . Therefore, after obtaining the volume error matrices ∑ Q for each cell, we can calculate the volume error Δ V ( v ) and simplification cost Δ E v . As Δ V ( v ) is a quadratic polynomial, minimizing the volume error requires solving Δ V ′ v = 0 , which essentially resolves the linear equation A v = - b to obtain the optimal vertex v . Notably, if a cell contains two nearly parallel facets, a degenerate system of equations may arise, leading to a solution that close to the intersection vertex extending from these two facets. In this case, the optimal vertex may extend beyond the cell itself, necessitating a restriction on the vertex position. Similar and identical facets clustering As analyzed above, clustering similar and identical facets into the same group can significantly reduce w S κ . The problem of identifying similar facets can be transformed into recognizing pairs of facets in the mesh that have proportional adjacent edges and equal corresponding angles. Assuming the eigenvalues H 1 f 0 and H 1 f 1 of facets f 0 and f 1 are equal, we can consider f 0 and f 1 similar. The eigenvalue H 1 f is calculated based on the internal angles of the triangle, as shown in the formula: 12 H 1 f = ( float ) A 1 ∗ 1 0 6 + ( float ) A 2 ∗ 1 0 3 + ( float ) A 3 where A 1 , A 2 , and A 3 are the three internal angles of the triangle, satisfying 0 ∘ < A 1 ≤ A 2 ≤ A 3 < 18 0 ∘ . In the case of directed polygons with differing numbers of edges, it is essential to account for the ratios between adjacent edges to guarantee the uniqueness of the eigenvalue. For instance, the procedure for calculating the eigenvalues of quadrilateral facets is as follows: 13 H 1 f = float A 1 ∗ P 12 ∗ 1 0 9 + float A 2 ∗ P 23 ∗ 1 0 6 + float A 3 ∗ P 34 ∗ 1 0 3 + float A 4 ∗ P 41 where P 12 , P 23 , P 34 , and P 41 are length ratios of edges 12, 23, 34, and 41. Meanwhile, A 1 , A 2 , A 3 , and A 4 are the four internal angles of the quadrilateral. Assuming there are two transformations f 0 → f 0 ′ and f 1 → f 1 ′ , with transformation functions denoted Γ f 0 and Γ f 1 respectively. If Γ f 0 and Γ f 1 are the same, then f 0 and f 1 are considered to share the same transformation Γ f . In this scenario, both facets should be assigned in the same transformation. By applying the inverse matrix of Γ f ​ to the vertex coordinates with the target facet, we can merge the repetitive transformation if the transformed coordinates align with those of an existing facet in the mesh. The formula for verifying this process is: 14 v 1 ′ , v 2 ′ , v 3 ′ , 1 = Γ f - 1 · v 1 , v 2 , v 3 , 1 We perform uniform sampling on the input model to enhance clustering efficiency and calculate the statistical information about the original model’s features. We utilize shape factors to sample the model uniformly. First, the vertices without curvature and the umbilical vertices are removed from the vertex set, forming the sampling vertex set S . For any sampling vertex, its mean curvature is denoted as H i and Gaussian curvature as K i . The shape factor of the sampling vertex is defined as ξ i = H i 2 / K i , which is independent of Γ f . Next, we calculate the shape factor ξ i for each sampling vertex in S and classify similar shape factors into the same group Ω i , where Ω i ∈ Ω . In subsequent calculations, only one vertex from Ω i must be considered, avoiding costly searches through the entire vertex set. According to pre-cluster Ω , clusters are constructed in descending order. A random seed vertex v i is selected from Ω i , corresponding to a pair of vertices v i , v j where v i overlaps with v j by transformation Γ f . For a vertex v i ∗ in the connected neighborhood of v i , compute the corresponding vertex v j resulting from the transformation Γ f ​ applied to the facet containing v j ; similarly, we obtain v j ∗ . When the Euclidean distance D between v j and v j ∗ is below the threshold, v i ∗ is merged into the cluster containing v i . During this process, all visited vertices are marked, forming a set of clusters. This operation is repeated three times by changing the facet’s vertex v i , the largest cluster surrounded by v i ∗ corresponds to a detected pair of repetitive structures, with Γ f as the transformation for this repetitive structure. To detect remaining small-scale repetitive structures in the model, we can further add the sampling vertices, treating the undetected vertices as new inputs and rerunning the algorithm to identify smaller-scale repetitive structures. This process continues until no additional repetitive structures are detected. Construction of repetition transformation The scaling factor C s is determined as follows: First, the circumcenter of the reference facet is used to calculate the distance between the circumcenter and the coordinate origin. Subsequently, the circumcenter is moved to the origin. Next, we multiply the coordinates of the vertices by the scaling matrix S ( C s ) to determine the scaling relative to the coordinate origin. Finally, the facet is translated back to its original position. In this process, C s is defined as the ratio between the distance from this circumcenter to a given vertex, given by C s = v r f 0 ′ v c f 0 ′ → / v r f 0 ′ v c f 0 ′ → . Additionally, the normal direction is encoded into the scaling factor C s . If the normal of the reference facet opposes that of the target facet, C s is assigned a negative value. After scaling, we use the Iterative Closest Point (ICP) algorithm to construct the rotation and translation matrices. ICP is a 3D matching technique to find the optimal alignment between two sets of vertices. It iteratively adjusts the data to minimize the differences between the two vertex sets progressively. However, when the number of facets is large, the convergence speed of ICP may be slow and prone to local optima. Therefore, pre-alignment is necessary. This study uses the principal axis alignment method as the preprocessing strategy. By determining the primary direction of variation within the vertex set and performing initial alignment, we ensure that the principal axis directions of the two facet sets are consistent. We calculate the covariance matrix for the vertex sets of two groups of facets. For the vertex set p in f 0 , the covariance matrix is defined as follows: 15 C p = 1 n ∑ i = 1 n ( p i - μ p ) ( p i - μ p ) T where p i is the i -th vertex in the vertex set p , μ p is the centroid of the vertex set p , and n is the number of vertices. Performing eigenvalue decomposition on the covariance matrix, C p gives us C p v = λ v , where λ represents the eigenvalue and v represents the principal direction of the vertex set. These eigenvalues are arranged in descending order, with the v corresponding to the maximum eigenvalue representing the principal axis of vertex set p . Similarly, we obtain the principal axis for vertex set q . Let c p and c q denote the principal axes of p and q , respectively; the rotation matrix R can be calculated as: 16 R = v q v p T By applying this rotation matrix, we achieve an approximate alignment of two vertex sets, providing a suitable initial state for the subsequent ICP algorithm. The next step is utilizing the ICP algorithm to precisely align the two sets of facets. Given an initial set of facets f 0 and target facets f 0 ′ , the goal of the algorithm is to find a transformation Γ that minimizes the distance between f 0 ′ and Γ f 0 . Specifically, this problem can be described by the following optimization equation: 17 min T , S , R ∑ i = 1 N ‖ q i - R s ∙ p i + t ‖ 2 where p i is a vertex in f 0 , q i is the closest vertex in f 0 ′ to p i . Meanwhile, T , S , and R represent the translation, scaling, and rotation transformations, respectively. Our objective is to find the nearest vertex q i in f 0 ′ for each vertex p i in f 0 while minimizing the error. We first centralize the vertex sets by calculating the average coordinates: 18 p ¯ = 1 N ∑ i = 1 N p i 19 q ¯ = 1 N ∑ i = 1 N q i The translation transformation is calculated as t = q ¯ - p ¯ . Based on this, we align the vertex sets according to their centroids, obtaining the new vertex set p i ~ = p i + t . Next, we use the centralized vertex sets to calculate the covariance matrix H : 20 H = ∑ i = 1 N p i ~ - p ¯ q i - q ¯ T By Performing singular value decomposition on H , we can decompose it as H = UDV T , where U and V are orthogonal matrices, and D is a diagonal matrix. From this, we can derive the rotation matrix R and translation matrix T : 21 R = VU T 22 T = q ¯ - R p i Using the calculated parameters, we update f 0 to align it with f 0 ′ . This process is iteratively repeated until the error falls below an acceptable threshold. To ensure the accuracy meets practical application requirements, the threshold should be set below the typical manufacturing error ε in 3D printing. It is important to note that stitching errors may be introduced between facets due to rotation and scaling transformations during this process. These typically manifest as minor gaps or connection errors after restoring the facets. These errors are several orders of magnitude smaller than the lowest manufacturing tolerances attainable with current medical additive manufacturing technology; therefore, they do not significantly impact the final results in most cases. Numerous established strategies are available to ensure data accuracy and reliability for common facet errors, such as self-intersections and overlaps. Typical solutions repair these errors through vertex adjustments after identifying self-intersecting and overlapping areas. Research in this field is relatively mature [ 37 , 38 ], with many robust algorithms and tools available to address practical issues, which will not be discussed further in this paper. Mesh data management For complex models, the efficiency of locating facets and vertices is crucial. Hash tables provide an efficient data structure solution, particularly when handling large-scale data, characterized by constant insertion, deletion, and search times. The core of the hash table consists of hash values and their corresponding data items. Before storing vertex and facet data, we first calculate the hash value of the input objects using a simple hash function, which allows direct access to relevant data based on this hash value, thereby avoiding iterative queries and comparisons. During the generation of files, vertex and facet data are initially organized within a hash table, mapping their relationships to the corresponding clusters. By utilizing the hash list's high query speed and low collision rate, we can rapidly identify existing vertices and facets within the list, minimizing data redundancy and enhancing overall efficiency. The capabilities of this data structure in terms of storage and querying will be explored from four aspects. Inserting Vertices A mesh model representing a shape comprises numerous discrete vertices, often requiring substantial storage capacity. To address this, the hash list data structure efficiently manages and stores the topological relationships between vertex elements. The process of vertex insertion is outlined as follows: Input: Inserting vertices. Output: Vertex Container CVertex. Step 1: First, retrieve the vertex coordinates v 1 i , v 2 i , v 3 i ​ of the i -th facet. For each vertex v i v x i , v y i , v z i , compute its hash value D v . To minimize hash collisions, D v ​ is generated by scaling the vertex coordinates with a specific factor, ensuring the integer parts are distinct and preventing duplication: 23 D v i = int v x i · 10 3 / 23 + int v y i · 10 3 / 19 + int v z i · 10 3 / 17 mod p where p represents the smallest prime that is nearest to the length of the hash table. Step 2: Check whether D v is already in the vertex container CVertex. If it is, no further action is taken. Step 3: If D v does not exist, instantiate a new vertex object v new within CVertex, storing the vertex coordinates v i and the index D v i in the object’s v p and D v , respectively. Step 4: Traverse all mesh vertices and repeat Steps 1–3. Inserting Facets and Edges Inserting a facet is constructing a facet in the mesh topological data structure based on the input of three vertex coordinates. The traversal search is conducted in CVertex to check for overlapping vertices with stored vertices. If there are overlapping vertices, only the index of that vertex needs to be recorded. Input: Vertex of the facet or edge to be inserted. Output: Facet Container CFacet. Step 1: Construct index D f i of the facet based on the three internal angles of the i -th facet. Step 2: Input the three vertices of this facet to create a new facet object, denoted as f new ; perform the vertex lookup operation for the input vertices v 1 i , v 2 i , and v 3 i . Step 3: Determine if the vertex is redundant for each vertex v i . The redundancy criterion is based on traversing the spatial distance between v i and its neighboring vertices v j in CVertex, given explicitly by: 24 h = v x i - v x j 2 + v y i - v y j 2 + v z i - v z j 2 where i and j are the indices of two vertices in the CVertex container. v x , v y , and v z are the spatial coordinates of the vertices, with h representing the distance between them. This step addresses gaps between facets and can repair common errors, such as self-intersection or overlaps. Step 4: If h from Step 3 is less than the threshold 10 - 5 , v i is considered a repetitive vertex. The index D v corresponding to v j is stored in the vertex index array D f → v i of f new , while the object containing v i is deleted from CVertex. Otherwise, the vertex index of v i is stored in D f → v i of f new . Step 5: If edge data needs to be created, define the indices of the three edges of the i -th facet as D e 1 i , D e 2 i , and D e 3 i . Look up these three indices in the implicit edge container _CEdge. Create the edge index D e and vertex index D e → v in _CEdge for new edges. Store D e 1 i , D e 2 i , and D e 3 i in the vertex index array D e → v i of f new . Step 6: Save f new in the CFacet container. Traverse all facets and repeat Steps 1–5. Inserting Clusters Identifying similar and identical facets aims to merge them for efficient storage while establishing the transformation relationship. The process of inserting clusters is as follows stages: Input: Facet Container CFacet. Output: Cluster Container CCluster. Step 1: Read the index D f i of the i -th facet in the CFacet container. Step 2: Determine whether D f i is in the CCluster container D c → f . If it does not exist, construct a new object for this facet, denoted as C new , with the reference facet index D c → f equal to D f i . Step 3: If D f i exists in the CCluster container, read the reference facet index D c → f from the cluster object, calculate the scaling factor C s , rotation matrix R , and translation matrix T between D f i and D c → f , and append this information to the corresponding object containing the repetition facet. Delete the corresponding CFacet object for this facet. Step 4: Read the next facet and repeat Steps 1–3 until all facets are traversed. Mesh Modification In geometric mesh processing, various operations, including mesh Boolean operations, often frequently require the editing and modification of the mesh. This necessitates that the mesh's topological data be easily adaptable for modification and reconstruction. The following example demonstrates the reconstruction capabilities of the proposed topology through a typical vertex insertion operation during mesh refinement. When inserting a vertex in the middle of a facet f , the facet is subdivided into f 1 , f 2 , and f 3 , necessitating modification and reconstruction of the existing mesh data. The steps for modification are as follows: Input: Cluster Container CCluster and the vertex to be inserted. Output: Updated cluster Container CCluster. Step 1: Get the index D f with facet f and search for this index in the CCluster. Step 2: Identify the cluster object containing facet f and determine the transformation between this facet and the reference facet. Delete this facet from the object and place the remaining facets into the CFacet container. Step 3: Insert the newly subdivided facet f 1 and search for similar and identical facets in the CCluster. If similar or identical facets exist, insert f 1 into this cluster; otherwise, append this facet to the end of CFacet. Step 4: Repeat Step 3, inserting the newly subdivided facets f 2 and f 3 . Step 5: Delete the object f . Experimental analysis Based on the abovementioned methods, we implemented compatible encoding for AMF and 3MF data formats to validate the framework's effectiveness. First, we explored the storage and computational efficiency of encoding files in these two formats. Next, we performed topological reconstruction tests on three different models and compared the resulting files with those produced by two commercial 3D printing software using similar formats. Finally, based on the experimental results, we discussed the advantages of the algorithms in this study and potential issues. Discussion on encoding methods The choice and design of encoding methods directly affect the quality of the final product and printing efficiency. AMF and 3MF are two advanced additive manufacturing data formats that employ strategies such as indexing, vertex reuse, object copying, and transformations, which further enhance the support for object copying and vertex indexing methods, significantly alleviating the low storage efficiency issues of traditional additive manufacturing file formats such as STL, OBJ, and PLY. Based on the specifications of AMF and 3MF file formats, this study proposes variant encodings, Lite AMF and Lite 3MF, to optimize file sizes further. Importantly, our encoding process adheres to standard development specifications, ensuring that the generated files are highly compatible with existing commercial software, thereby guaranteeing the universality and compatibility of the generated encoding. This means that models are imported as separate and segmented components in some software environments, allowing different constellations or elements to be considered independent components. Hence, these components can be dragged and separated. To adjust the model as a whole within the software, these discrete facets must be merged first. However, during practical testing and usage, we can implement automatic merging of discrete facets by modifying the code of slicer software, meaning this problem will not affect subsequent tests. Furthermore, to ensure the immediate usability of the generated files, the Lite 3MF and Lite AMF data structures developed in this study strictly adhere to the encoding specifications of the original 3MF and AMF formats, preserving essential metadata such as XML version identifiers. Construction examples In this section, we implement and test the algorithms using Python and the OpenGL platform. All experiments were performed in the following environment: Windows 10 (64-bit), Intel i9-9900 K CPU (3.6 GHz), and 32 GB of RAM. We selected three models for topological reconstruction experiments. The first experimental model is a knee joint implant model. Total knee arthroplasty (TKA) is a typical orthopedic surgery, and recent advances in 3D printing technology have significantly improved its success rate [ 39 ]. Considering the substantial pressure the knee joint must withstand, the model's strength must be high. Therefore, we filled the model's interior with a dodecahedral lattice structure of 9,180,478 facets. Due to the geometric symmetry of the dodecahedron, this filling structure helps to distribute stress evenly, thereby enhancing the lifespan and durability of the knee joint implant. This model contains 9,797,622 facets, with dimensions of 56.16 mm × 54.96 mm × 214.02 mm, as shown in Fig. 2 . Fig. 2 Knee Joint Implant Test Model: ( a ) Mesh Model, ( b ) Cross-section, ( c ) Local Perspective The second experimental model is a hip joint implant, as shown in Fig. 3 . Traditional manufacturing processes for hip joint implants often encounter stress-shielding problems [ 10 ]. To address this, we created a tetrahedral lattice structure within the implant model to eliminate stress shielding while maintaining good mechanical strength. The model's interior is filled with tetrahedral filling units composed of 4,618,282 facets, effectively achieving lightweight design while ensuring structural stability and pressure-bearing capacity, thus enhancing patient comfort. This model contains 4,727,820 facets, with dimensions of 31.44 mm × 21.08 mm × 127.95 mm. Fig. 3 Hip Joint Implant Test Model: ( a ) Mesh Model, ( b ) Cross-section, ( c ) Local Perspective The third experimental model is a scapula model. The scapula must support the shoulder and upper limb load while maintaining sufficient flexibility to accommodate a wide range of shoulder movements. In designing this model, we considered the implant's strength, flexibility, and biocompatibility, filling the interior with a hexagonal profile structure composed of 3,783,386 facets. This hexahedral structure allows the model to withstand pressure while maintaining elasticity, making it suitable for the scapula, which requires a wide range of motion. This model contains 3,843,320 facets, with dimensions of 107.91 mm × 109.43 mm × 165.89 mm, as shown in Fig. 4 . Notably, in actual clinical practice, most bone replacement surgeries only involve partial bone replacement. However, to comprehensively assess the effectiveness and stability of the algorithms, this study selected the full bone model as a test case. Theoretically, if the algorithm performs well on the full bone test model, it will also perform adequately in partial bone mode. Fig. 4 Scapula Test Model: ( a ) Mesh Model, ( b ) Cross-section, ( c ) Local Perspective Test results and discussion Table 1 provides a comparison of the file size reduction achieved by Lite Enc32 and Lite AMF generated by our algorithm, against AMF and 3MF files produced by Meshmixer and Ultimaker Cura, all utilizing the same encoding precision. The results indicate that the proposed encoding strategy significantly reduces the file size. Lite AMF and Lite 3MF achieved reductions of 81.99% and 91.34%, respectively, compared to 78.34% for OBJ and STL formats. The results demonstrate the advantage of the proposed framework. The algorithm offers substantial compression advantages, particularly for geometric models with extensive mesh data or numerous repetitive features, particularly in complex biological tissues and fine-filling structures commonly found in the medical field. As the number of repetitive structures in the model increases, along with the number of similar or identical facets, the algorithm's compression efficiency becomes even more pronounced. Additionally, the experiment revealed that storing model transformation occupies a significant amount of space; thus, effectively clustering for transformation is crucial for enhancing model compression ratios. Future research will focus on the preprocessing stage to identify and extract similar and repetitive features within the model. Table 1 File size comparison with different encoding strategies File Format Encoding Type Knee Joint Implant Model Hip Joint Implant Model Scapula Implant Model Uncompressed Compressed Uncompressed Compressed Uncompressed Compressed Average AMF ASCII 1,618,963 KB 113,214 KB 777,428 KB 50,322 KB 633,129 KB 43,377 KB Lite AMF ASCII 181,809 KB 20,020 KB 59,051 KB 5,896 KB 152,495 KB 15,517 KB Reduction − 88.77% − 82.32% − 92.40% − 88.28% − 75.91% − 64.23% − 81.99% 3MF ASCII 2,342,924 KB 263,090 KB 1,125,904 KB 88,096 KB 907,227 KB 76,676 KB Lite 3MF ASCII 108,499 KB 19,727 KB 34,546 KB 5,643 KB 90,018 KB 15,679 KB Reduction − 95.37% − 92.50% − 96.93% − 93.59% − 90.08% − 79.55% − 91.34% STL ASCII 2,532,324 KB 187,073 KB 1,217,767 KB 69,394 KB 976,339 KB 63,398 KB STL BIN 478,400 KB 182,607 KB 230,851 KB 64,057 KB 187,663 KB 69,026 KB OBJ BIN 1,966,530 KB 232,596 KB 939,130 KB 93,062 KB 747,801 KB 82,350 KB Reduction − 77.32% − 89.20% − 85.04% − 91.19% − 52.03% − 75.27% − 78.34% Table 2 presents the primary geometric characteristics of the initial and compatible encodings for the three models. Four metrics were evaluated for each model: the average aspect ratio of the facets, the average area, mesh skewness, and Hausdorff distance. The results indicate that after compression, the meshes'average aspect ratio and mesh skewness change minimally, indicating that the compression algorithm successfully preserves the amount of data with the model. Furthermore, Hausdorff distance results demonstrate the accuracy of the compatible encoding, showing that the Hausdorff distances for all three models before and after compression are less than 0.001. While the highest manufacturing precision achievable with current mainstream additive manufacturing technologies, such as Stereolithography Apparatus (SLA) and Selective Laser Melting (SLM), is 0.02 mm, further illustrates that the accuracy of the compressed models in this study meets the requirements of current medical additive manufacturing. Table 2 Error analysis for three encoding strategies Implant Model Encoding Type Average Aspect Ratio of Mesh Average Area of Elements Mesh Skewness Hausdorff Distance Knee Joint Initial Model 1.3614936 0.00685151 5.10491251 Compatible Encoding 1.3615496 0.00685162 5.10628397 0.000858993 Hip Joint Initial Model 1.3560400 0.00381858 6.12165662 Compatible Encoding 1.3561392 0.00381863 6.12439755 0.00086996 Scapula Initial Model 1.3568376 0.01932811 6.17532723 Compatible Encoding 1.3568672 0.01932815 6.17676164 0.000861218 Conclusion In conclusion, this study introduces an efficient lightweight encoding method tailored for medical 3D printing models, particularly those with intricate internal topologies and repetitive geometric features commonly encountered in orthopedic, maxillofacial, and reconstructive surgical applications. Currently, many hospitals use 3D imaging scans as routine examinations, allowing for the initiation of the 3D printing production process with minimal adjustments and optimizations to the scan results. However, these medical models often possess complex internal topological structures and repetitive geometric features, such as honeycomb patterns. Therefore, this study proposes a lightweight encoding for medical 3D printing files that can significantly enhance the compression ratios of such medical models. This method fully utilizes the relative positional relationships of facets and vertices of meshes, encoding repetitive structures in the model as the repetition of single features, thus creating a more concise and efficient data structure. The unique clustering technique for repetitive features does not rely on prior knowledge and can automatically merge repetitive features. This approach can substantially reduce file sizes by optimizing the relationships among vertices, facets, and clusters while ensuring model accuracy meets the required standards. The algorithms have achieved compatible encoding for AMF and 3MF file formats, which can be directly utilized in existing 3D printing software without requiring source code modification. It is noteworthy that although the current research primarily focuses on triangular meshes, the proposed method can be adapted for use with other polygonal meshes through suitable modifications. Additionally, the study is currently limited to manifold meshes; future research will explore the applicability of this method to more complex geometric shapes and topological structures. We will further investigate the application of lightweight encoding schemes in medical additive manufacturing, particularly in the high-precision printing of complex biocompatible organ structures. We will also research how to more effectively encode and decode data to achieve higher printing accuracy and efficiency. Concurrently, we will continue to refine and optimize these lightweight encoding methods to meet the rapid advancements and increasing demands in medical additive manufacturing. Finally, future research will aim to extend this encoding strategy to high-resolution biocompatible organ models used in precision regenerative medicine, patient-specific implant fabrication, and preoperative planning. In particular, we will explore the integration of this technique with clinical imaging pipelines and investigate advanced encoding–decoding mechanisms to enhance spatial resolution, structural accuracy, and print efficiency. These efforts are expected to contribute substantially to the standardization and scalability of 3D printing technologies in modern medical practice, supporting the transition toward digitally driven, personalized, and data-efficient healthcare solutions. Supplementary Information Supplementary Material 1 Supplementary Material 1 Acknowledgements We sincerely thank the editors and the reviewers for their valuable suggestions on this paper. Authors’ contributions Conceptualization: X.Z. and M.X.; Methodology: X.Z. and J.H.; Software: X.Z.; Validation: X.Z.; Formal analysis: X.Z.; Investigation: X.Z. and M.X.; Visualization: X.Z.; Writing—original draft prepa-ration: X.Z.; Writing—review and editing: J.H. and M.X.; Supervision: J.H.; Funding acquisition: J.H.; Project administration: M.X.; Resources: M.X.; Data curation: M.X. All authors read and approved the final manuscript. Funding This work was supported by the National Natural Science Foundation of China (No. 61305001); and the Natural Science Foundation of Heilongjiang (No. F201222). Data availability No datasets were generated or analysed during the current study. Declarations Ethics approval and consent to participate Non applicable. Consent for publication Not applicable. Competing interests The authors declare no competing interests. Footnotes Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References 1. Manzur OA, Valencia A, Samade R, Callan A, Weinschenk RC. Implementing three-dimensional printed pelvises with idealized acetabular fractures to improve resident education. J Clin Orthop Trauma. 2025;66:102996. 2. Zhang Y, Yang J, Wan W, Zhao Q, Di M, Zhang D, Liu G, Chen C, Sun X, Zhang W. Evaluation of biological performance of 3D printed trabecular porous tantalum spine fusion cage in large animal models. J Orthop Transl. 2025;50:185–95. 3. Wang Y, Zhang X, Zhang Y, Zhang H, Sun H, Hao D, Wang B. One-stage posterior en-bloc spondylectomy following reconstruction with individualized 3D printed artificial vertebrae for multi-segment thoracolumbar metastases: case report and literature review. Am J Transl Res. 2021;13:115–123. https://pmc.ncbi.nlm.nih.gov/articles/PMC7847514/ . 4. Honigmann P, Sharma N, Schumacher R, Rueegg J, Haefeli M, Thieringer F. In-hospital 3D printed scaphoid prosthesis using medical-grade polyetheretherketone (PEEK) biomaterial. Biomed Res Int. 2021;2021. 10.1155/2021/1301028. 5. Keskinis A, Paraskevopoulos K, Diamantidis DE, Ververidis A, Fiska A, Tilkeridis K. The role of 3D-printed patient-specific instrumentation in total knee arthroplasty: a literature review. Cureus. 2023;15:e43321–e43321. 10.7759/cureus.43321. 6. Liang X, Liao W, Cai H, Jiang S, Chen S. 3D-printed artificial teeth: accuracy and application in root canal therapy. J Biomed Nanotechnol. 2018;14:1477–85. 10.1166/jbn.2018.2599. 7. Lu X, Hao W, Kuang S, Zhang Y, Wu M, Zhao Y. High-strength, high-toughness SiCp reinforced Mg matrix composites manufactured by semisolid injection molding. J Mater Res Technol Jmr & T. 2023;26:4219–28. 10.1016/j.jmrt.2023.08.142. 8. K K, Karuppudaiyan S, Roy S. Design and analysis of multi-material structures of 3D printed implants of mandible. Biomed Phys Eng Express. 2023;9:1. 10.1088/2057-1976/ad004f. 9. Mi ZR, Shuib S, Hassan A, Shorki A, Ibrahim M. Problem of stress shielding and improvement to the hip Implat designs: a review. J Med Sci. 2007;7:460–7. 10.3923/jms.2007.460.467. 10. Safavi S, Yu Y, Robinson DL, Gray HA, Ackland DC, Lee PVS. Additively manufactured controlled porous orthopedic joint replacement designs to reduce bone stress shielding: a systematic review. J Orthop Surg Res. 2023;18. 10.1186/s13018-022-03492-9. 11. Lee BN, Pei E, Um J. An overview of information technology standardization activities related to additive manufacturing. Prog Addit Manuf. 2019;4:345–54. 10.1007/s40964-019-00087-5. 12. Wolfaardt J, King B, Bibb RJ, Verdonck H, de Cubber J, Sensen CW, Soh J. Digital technology in maxillofacial rehabilitation. In: Beumer J, Esposito S, Marunick M, editors. Maxillofacial rehabilitation: prosthodontic and surgical management of cancer-related, acquired and congenital defects of the head and neck. Hanover Park, Illinois: Quintessence Publishing; 2011. p. 355–73. 13. International Organization for Standardization. ISO/ASTM 52915:2020 Specification for additive manufacturing file format (AMF) Version 1.2. 2020. https://www.iso.org/standard/74640.html . Accessed 20 May 2025. 14. 3MF Consortium. Specification - 3MF Consortium. 2025. https://3mf.io/spec . Accessed 20 May 2025. 15. Imaging Technology News. Cerner Corporation Advanced Visualization. 2013. https://www.itnonline.com/content/cerner-corporation-advanced-visualization . Accessed 20 May 2025. 16. U.S. Department of Veterans Affairs. EHRM Skyvue Diagnostic Image Viewer VA Central Offices (VACO). 2024. https://department.va.gov/privacy/wp-content/uploads/sites/5/2024/11/FY25EHRMSkyvueDiagnosticImageViewerPIA.pdf . Accessed 20 May 2025. 17. DrChrono. These companies are bringing 3D modeling to the EHR. 2019. https://www.drchrono.com/blog/2019/03/these-companies-are-bringing-3d-modeling-to-the-ehr/ . Accessed 20 May 2025. 18. Dentrix Ascend. Dentrix Ascend Imaging USER'S GUIDE. 2023. https://hsps.pro/DentrixAscend/w_imaging.html . Accessed 20 May 2025. 19. CureMD. Orthopedic EHR / EMR Software with AI-Powered Charting. 2025. https://www.curemd.com/orthopedics-emr . Accessed 20 May 2025. 20. Rady Children’s Hospital-San Diego. Rady Children’s Develops Industry-First 3D Model DICOM Conversion Soft-ware. 2022. https://www.rchsd.org/about-us/newsroom/press-releases/rady-childrens-develops-industry-first-3d-model-dicom-conversion-software/ . Accessed 20 May 2025. 21. U.S. Department of Veterans Affairs. 3D Printing Enterprise Design Pattern Cloud-based 3D Printing Services. 2019. https://digital.va.gov/wp-content/uploads/2022/12/3DPEDP_CloudbasedServices_v2.pdf . Accessed 20 May 2025. 22. Alliez P, Desbrun M. Valence‐driven connectivity encoding for 3D meshes. Computer graphics forum. Wiley Online Library.2001. pp. 480–489. 10.1111/1467-8659.00541. 23. Isenburg M, Snoeyink J. Face Fixer: Compressing polygon meshes with properties. Proceedings of the 27th annual conference on Computer graphics and interactive techniques. 2000. pp. 263–270;10.1145/344779.344919. 24. Jie Z, Jiaze W, Changwen Z, Xiaohui H. Connectivity compression of triangle meshes based on hamiltonian cycle. J Comput Aided Design Comput Graph. 2013;25:697–707. https://www.jcad.cn/en/article/id/f226bb94-8b97-4b64-92b1-1472630e97ff . 25. Rossignac J. Edgebreaker: Connectivity compression for triangle meshes. IEEE transactions on visualization and computer graphics. 1999;5.47–61. 10.1109/2945.764870. 26. Luo G, Deng Z, Zhao X, Jin X, Zeng W, Xie W, Seo H. Spatio-temporal Segmentation Based Adaptive Compression of Dynamic Mesh Sequences. Acm Transactions on Multimedia Computing Communications and Applications. 2020;16. 10.1145/3377475. 27. Maglo A, Courbet C, Alliez P, Hudelot C. Progressive compression of manifold polygon meshes. Comput Graph Uk. 2012;36.349–359. 10.1016/j.cag.2012.03.023. 28. Shijun L, Xiaotong J, Hui T. High-quality simplified algorithm of texture model for detailed features preserving. Appl Res Comput. 2020;37:300–303+312. 10.19734/j.issn.1001-3695.2018.04.0481. 29. Liu H-TD, Gillespie M, Chislett B, Sharp N, Jacobson A, Crane K. Surface simplification using intrinsic error metrics. Acm Transactions on Graphics. 2023;42. 10.1145/3592403. 30. CHU S, NIU Z, SON Z, NIU B. Progressive mesh simplification algorithm for mobile devices. J Comput Appl. 2020;40:806. 10.3724/SP.J.1087.2008.01225. 31. Aldemir E, Tohumoglu G, Selver MA. Binary medical image compression using the volumetric run-length approach. Imaging Sci J. 2019;67:123–35. 10.1080/13682199.2019.1565695. 32. Vidal V, Dubouchet L, Lavoué G, Alliez P. Progressive compression of triangle meshes. Image Process Line. 2023;13.1–21. 10.5201/ipol.2023.418. 33. Chen J, Li J, Li M. Progressive visualization of complex 3D models over the internet. Trans Gis. 2016;20:887–902. 10.1111/tgis.12185. 34. Moon JH, Ha Y, Park S, Kim MS, Yoon SH. ROI scissor: interactive segmentation of feature region of interest in a triangular mesh. Computer Graphics Forum. 2023;42. 10.1111/cgf.14803. 35. Xin Z, Jinjie H. Lightweight Geometric compression encoding for additive manufacturing. Computer-Aided Design. 2023;165. 10.1016/j.cad.2023.103612. 36. Garland M, Heckbert PS. Surface simplification using quadric error metrics. Proceedings of the 24th annual conference on Computer graphics and interactive techniques. 1997. pp. 209–216;10.1145/258734.258849. 37. Charton J, Baek S, Kim Y. Mesh repairing using topology graphs. J Comput Des Eng. 2021;8:251–67. 10.1093/jcde/qwaa076. 38. Oh S. A new triangular mesh repairing method using a mesh distortion energy minimization-based mesh flattening method. Adv Eng Softw. 2019;131:48–59. 10.1016/j.advengsoft.2019.03.004. 39. Meng M, Wang J, Huang H, Liu X, Zhang J, Li Z. 3D printing metal implants in orthopedic surgery: methods, applications and future prospects. J Orthop Transl. 2023;42:94–112. 10.1016/j.jot.2023.08.004. Associated Data Supplementary Materials Supplementary Material 1 Supplementary Material 1 Data Availability Statement No datasets were generated or analysed during the current study.

Otvoreni pristup preko Europe PMC / PubMed. Dentopedia prikazuje literaturu u istraživačko-edukativne svrhe; nije zamena za klinički pregled. PMC12323226
Ružica
RužicaAI asistentkinja Dentopedije
Ceo prozor ↗
Zdravo! Postavite mi pitanje o stomatologiji — odgovoriću Vam iz leksikona i stručne biblioteke i navešću izvore.