erictuvesson / CSG

Create geometry objects from boolean operations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:C# 100.0%