This directory contains detailed documentation for the Polyslice slicer library. The documentation is organized to mirror the source code structure in /src for easy navigation.
- Main README - Installation and quick start
- API Reference - Complete API documentation
- Examples - Practical usage examples
docs/
├── README.md # This file
├── api/
│ └── API.md # Complete API reference
├── examples/
│ └── EXAMPLES.md # Usage examples
├── development/
│ └── DEVELOPMENT.md # Development guide
├── tools/
│ └── TOOLS.md # G-code visualizer and sender
├── loaders/
│ └── LOADERS.md # File loading API
├── exporters/
│ └── EXPORTERS.md # G-code export API
├── config/
│ ├── PRINTER.md # Printer configuration
│ └── FILAMENT.md # Filament configuration
└── slicer/ # Slicing engine documentation
├── SLICING.md # Main slicing functionality
├── IMPLEMENTATION_SUMMARY.md # Implementation details and architecture
├── POLYTREE_INTEGRATION.md # Polytree spatial query integration
├── gcode/
│ └── GCODE.md # G-code generation methods
├── geometry/ # Geometry utilities
│ ├── GEOMETRY_HELPERS.md # Helper functions analysis
│ └── COMBING.md # Travel path optimization
├── infill/
│ └── INFILL.md # Infill patterns
├── preprocessing/
│ └── PREPROCESSING.md # Mesh preprocessing and subdivision
├── skin/ # Skin layer generation
│ ├── SKIN.md # Main skin generation
│ └── EXPOSURE_DETECTION.md # Adaptive skin layer algorithm
├── support/
│ └── SUPPORT.md # Support structure generation
├── adhesion/
│ └── ADHESION.md # Build plate adhesion (skirt, brim, raft)
├── utils/
│ └── UTILS.md # Utility functions
└── walls/
└── WALLS.md # Wall perimeter generation
- API Reference - Complete API documentation with all options and methods
- Examples - Practical usage examples for Node.js and browser
- Development Guide - Setting up for development and contributing
- Tools - G-code visualizer and web G-code sender
- Loaders - Loading 3D models (STL, OBJ, 3MF, PLY, GLTF, DAE, AMF)
- Exporters - Saving G-code files and serial port streaming
- Printer - Pre-configured 3D printer profiles (44 printers)
- Filament - Pre-configured filament profiles (35 materials)
- Slicing - Main slicing functionality, usage examples, and configuration options
- Implementation Summary - Implementation details, file structure, and architecture overview
- Polytree Integration - Polytree spatial query integration for optimized slicing
- G-code - G-code generation methods and Marlin command reference
- Geometry Helpers - Geometry helper functions and Polytree contribution analysis
- Combing - Travel path optimization to avoid crossing holes
- Infill - Infill patterns (grid, triangles, hexagons) and density settings
- Preprocessing - Mesh analysis and subdivision for sparse geometries
- Skin - Solid fill generation for top and bottom surfaces
- Exposure Detection - Adaptive skin layer generation for exposed surfaces
- Support - Automatic support generation for overhanging geometry
- Adhesion - Build plate adhesion structures (skirt, brim, raft)
- Utils - Core utility functions (bounds, clipping, paths, extrusion)
- Walls - Wall perimeter generation and travel optimization
- Marlin G-code Documentation - G-code command reference
- three.js Documentation - three.js mesh and geometry API
- Polytree Repository - Spatial query library
When adding new documentation:
- Place files in the appropriate subdirectory matching the source code structure
- Update this README with links to new documentation
- Follow existing documentation style and formatting conventions
- Include code examples that are tested and working
- Reference Marlin G-code documentation when documenting G-code commands