Skip to content

erictuvesson/CSG

Repository files navigation

Constructive solid geometry (CSG)

NuGet Badge Codacy Badge

Create geometry objects from boolean operations.

Sample

var shape1 = new Cube(position: new Vector3(0, 0, 0), size: new Vector3(0.50f, 0.50f, 0.50f));
var shape2 = new Cube(position: new Vector3(1, 1, 0), size: new Vector3(0.50f, 0.50f, 0.50f));
var result = shape1.Intersect(shape2);

// result.Vertices => Vertex[];
// result.Indices => ushort[];
// then you have the vertices and indices in result.

Contributing

Contributions are always welcome.

License

The project is available as open source under the terms of the MIT License.

About

Create geometry objects from boolean operations.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages