Polytree Examples

Interactive 3D CSG Operations & Spatial Queries for 3D Printing Applications

About Polytree

Polytree is a modern, high-performance Constructive Solid Geometry (CSG) library enhanced with advanced spatial query capabilities. These examples demonstrate real-world applications from basic CSG operations to complex spatial analysis perfect for 3D printing and CAD workflows.

Three.js WebGL CSG Operations Octree Optimization Spatial Queries 3D Printing
View Source on GitHub
🧊
Basic CSG Operations
Interactive demonstration of fundamental CSG operations: Union, Subtraction, and Intersection. Drag objects around and see real-time CSG results with performance metrics.
  • Real-time CSG calculations
  • Interactive transform controls
  • Performance monitoring
  • STL export functionality
  • Multiple primitive shapes
Real-time CSG Demo
Advanced real-time CSG demonstration showing complex mesh interactions with optimized performance. Features dynamic object manipulation and smooth real-time updates.
  • High-performance real-time rendering
  • Complex mesh interactions
  • Advanced transform controls
  • Performance statistics
  • STL model loading
🔍
Spatial Queries & Slicing
Comprehensive spatial analysis demonstration featuring layer slicing for 3D printing, distance calculations, and advanced geometric queries essential for CAD applications.
  • 3D printing layer slicing
  • Distance field calculations
  • Closest point queries
  • Volume analysis
  • Custom spatial operations

Key Features Demonstrated

These examples showcase Polytree's transformation from a pure CSG library into a comprehensive spatial querying tool. The spatial query capabilities are inspired by mature libraries like three-mesh-bvh but optimized for Polytree's octree-based architecture.

🏭 3D Printing Applications

🔬 Technical Advantages