TL;DR
PrintAnything is a novel, mesh-free framework that generates executable 3D printing G-code directly from unoriented 3D point clouds. By introducing an intermediate 2D representation called a Geometric Plan (G-plan) map, it completely bypasses traditional, error-prone mesh reconstruction steps, resulting in a 3D printing pipeline that is dramatically faster, more robust to sensor noise, and free from geometric artifacts.
What Problem Does This Paper Address?
Standard 3D printing pipelines are built on a fundamental assumption: the input must be a watertight 3D mesh (like an STL file). Slicing software then takes this mesh and cuts it into layer-by-layer toolpaths, encoded as G-code.
However, real-world 3D sensors—like LiDAR, RGB-D cameras, and even modern 3D generative AI models—natively produce point clouds, not meshes. The traditional workaround is to reconstruct a mesh from the point cloud before slicing it. Unfortunately, surface reconstruction from raw, unoriented point clouds is an ill-posed problem. It frequently introduces severe artifacts like holes, inverted faces, or topological inconsistencies. When fed into a slicer, these defects propagate and cause catastrophic printing failures.
The authors of this paper ask a radical question: Why reconstruct a 3D mesh at all? They propose a pipeline that goes directly from raw point clouds to fabrication-ready G-code.
Methods
PrintAnything eliminates the mesh dependency by breaking the problem down into three distinct stages:
- Slice-wise Point Projection & Multi-Slice Conditioning (MSC): To align unstructured 3D point clouds with the layer-by-layer nature of 3D printing, the framework projects points onto 2D slices corresponding to the printer's XY plane. To ensure vertical continuity between layers, MSC samples points from adjacent bins above and below the target slice height, capturing crucial local geometric context.
- Geometric Plan (G-plan) Map Prediction: The core innovation is the G-plan map, a compact 2D intermediate representation predicted for each slice by a neural network (GPNet, utilizing a Point Transformer V3 encoder and a 2D U-Net decoder). The G-plan map consists of three components:
- Occupancy Map ($M$): Specifies printed vs. empty space.
- Region Map ($R$): Encodes structural categories required for toolpath planning (e.g., perimeter walls, infill, supports, or skirts).
- Flow Map ($Q$): Encodes extrusion-related properties, controlling exactly how much material the nozzle should deposit at any given coordinate.
- Infill Pattern Generation & G-code Compilation: Rather than forcing the neural network to learn complex infill geometry from scratch, the framework uses a lightweight recommender system. It selects an optimal infill pattern (e.g., grid, gyroid, honeycomb) and scale from a predefined dictionary by balancing structural strength against fabrication cost along a Pareto frontier. Finally, a slice-wise compiler translates these complete maps into ordered nozzle paths and standard G-code instructions.
Datasets
- Slice-100K: A large-scale multimodal dataset for extrusion-based 3D printing. Each sample contains a 3D shape, its CAD model, and the corresponding ground-truth G-code. This was used as the primary training and evaluation benchmark.
- ShapeNet: A standard 3D asset dataset used to evaluate how well the framework generalizes to unseen, complex geometries (such as airplanes, chairs, and mechanical parts) not present in the training set.
Key Insights and Ideas
- The Mesh is an Unnecessary Middleman: The key conceptual breakthrough is realizing that G-code generation doesn't actually require a continuous 3D surface mesh. It only requires discrete, layer-by-layer 2D geometric and extrusion plans.
- The Importance of Extrusion Flow: Geometry alone isn't enough to print successfully. Introducing the Flow Map ($Q$) allows the network to dynamically modulate material deposition rates. Ablation studies showed that adding the flow map reduced extrusion variability ($\rho$-CV) by 14.2% and improved flow smoothness by 56.8%, which is critical for preventing under- or over-extrusion on real hardware.
- Robustness Through Local Context: By conditioning the slice generation on neighboring slices (via MSC), the model successfully resolves geometric ambiguities and enforces inter-layer continuity, preventing issues like delamination or floating features.
Key Results
- State-of-the-Art Accuracy: On the Slice-100K dataset, PrintAnything achieved a Chamfer Distance (CD) of 0.047, significantly outperforming traditional Poisson surface reconstruction (0.088) and learning-based mesh generators like MeshAnything (0.157).
- Massive Speedups: Because it bypasses expensive optimization and mesh-generation steps, PrintAnything boasts an average inference time of just 0.33 seconds per object. In comparison, Poisson reconstruction takes 123.97 seconds, and MeshAnything takes 113.62 seconds—a speedup of over 300x.
- Resilience to Scan Artifacts: The framework proved highly robust against imperfect data. When evaluated on point clouds corrupted with heavy Gaussian noise or large missing sections (simulating sensor occlusion), it still generated clean, stable occupancy maps and printable toolpaths.
- Real-World Validation: The authors successfully printed parts directly from the generated G-code on a commercial Bambu Lab X1-Carbon printer without any manual post-processing, producing high-quality physical objects with functional, intricate mechanical details (like gear teeth).
Limitations and Future Work
Despite its impressive performance, the authors note a few key limitations:
- Lack of Explicit Physics Biases: The model relies entirely on geometric reasoning. It does not explicitly simulate material behaviors, thermal shrinkage, or physical forces (like gravity acting on overhangs) during fabrication.
- Dataset Bottlenecks: Supervised training is constrained by the limited availability of massive, high-quality 3D printing datasets. Exploring self-supervised learning strategies is a high-priority direction for future work to help the model scale.
- Hardware Constraints: The current implementation is tailored to standard multi-layer fused deposition modeling (FDM). Future iterations will need to expand the framework to support more diverse printer configurations, multi-material printing, and non-planar slicing techniques.
Summary updated