A powerful 3D tube generator for makers and engineers
Design custom tubes, pipes, adapters, and connectors for 3D printing with real-time preview
- Round/Circular - Standard pipe profiles
- Square - Perfect for downspouts and ducts
- Rectangular - Custom aspect ratios for any application
Control top and bottom ends independently:
- Flat - Standard straight cut
- Miter - Angled cuts (0-60°) for corner joints
- Chamfer - Beveled edges for easier insertion
- Saddle - Curved fish-mouth cuts for T-joints and branch connections
- Fit Type Presets - Loose (0.3mm) / Snug (0.15mm) / Interference (-0.05mm)
- Custom Clearance - Fine-tune tolerances for your printer
- Lead-in Chamfer - Auto-generated tapers for easier assembly
- Stop Shoulder - Internal step for consistent seating depth
- Anti-Rotation - Add flats or keys to prevent spinning
Build custom connectors like LEGO pieces to join any tubes together.
- Round to Round - Reducers and expanders
- Round to Square - Gutter to downspout connections
- Square to Rectangular - Downspout transitions
- Any combination - Mix and match as needed
- Straight adapters (0°) - Simple transitions
- Elbows (up to 90°) - Corners and offsets
- Real-time bend preview
- Male fitting - Inserts into another tube
- Female fitting - Receives another tube
- Configurable clearance - Adjust for your printer
- Independent settings for each end
- Professional CAD-style metallic rendering
- Interactive dimension indicators
- Grid floor with axis visualization
- Orbit controls (drag to rotate, scroll to zoom)
- Watertight mesh generation (no open edges)
- Compatible with all major slicers
- Optimized for 3D printing
- Downspout Extensions - Square/rectangular tubes for rain gutters
- Pipe Adapters - Connect different diameters with press-fit flares
- T-Joint Connections - Saddle cuts for branch fittings on half-round gutters
- Custom Ducting - Air flow, cable management, vacuum systems
- Modular Assemblies - Print multiple pieces that snap together
- Shape Transitions - Round to square, different sizes, angled connections
# Clone the repository
git clone https://github.com/saschb2b/tubecraft.git
cd tubecraft
# Install dependencies
npm install
# Run development server
npm run devOpen http://localhost:3000 in your browser.
- Select Shape - Choose round, square, or rectangular
- Set Dimensions - Configure inner/outer sizes, wall thickness, length
- Configure Ends - Add miters, chamfers, or saddle cuts as needed
- Enable Press-Fit - Toggle flare and adjust fit tolerance
- Preview - Rotate and inspect your design in 3D
- Download STL - Export for immediate 3D printing
- Switch to Adapters tab
- Configure End A - Set shape and dimensions for the bottom end
- Configure End B - Set shape and dimensions for the top end
- Set Transition - Adjust length and bend angle
- Add Press-Fit - Optional male/female fittings on either end
- Download STL - Export for printing
- Next.js 15 - React framework with App Router
- React Three Fiber - 3D rendering with Three.js
- TypeScript - Type-safe development
- Tailwind CSS v4 - Utility-first styling
- shadcn/ui - Beautiful UI components
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
If you find TubeCraft useful, consider supporting the project:
This project is licensed under the MIT License - see the LICENSE file for details.
Made with care by the open source community