Project

csg

0.05
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A fast library for Constructive Solid Geometry
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

csgtool Build Status

CSGTOOL is a library, Ruby Gem and command line tool for performing Constructive Solid Geometry operations on STL Files using 3D BSP Trees.

The library is written in C99 with performance, portability and readability as primary goals. The ruby gem wraps the library using the ffi gem to provide a friendlier interface to the underlying engine.

Quickstart

$ git clone https://github.com/sshirokov/csgtool.git
$ make test
$ ./csgtool
Usage: ./csgtool <command> [command options]
..
[help snipped]
$ bundle exec ruby ./csgtool.rb tests/fixtures/jaws.stl tests/fixtures/jaws2.stl

This should result in three files: intersect.stl, subtract.stl, and union.stl representing the CSG operations performed on the arguments.

intersect

subtract

union