项目作者: erictuvesson

项目描述 :
Create geometry objects from boolean operations.
高级语言: C#
项目地址: git://github.com/erictuvesson/CSG.git
创建时间: 2018-04-28T16:31:00Z
项目社区:https://github.com/erictuvesson/CSG

开源协议:MIT License

下载


Constructive solid geometry (CSG)

NuGet Badge Codacy Badge

Create geometry objects from boolean operations.

Sample

  1. var shape1 = new Cube(position: new Vector3(0, 0, 0), size: new Vector3(0.50f, 0.50f, 0.50f));
  2. var shape2 = new Cube(position: new Vector3(1, 1, 0), size: new Vector3(0.50f, 0.50f, 0.50f));
  3. var result = shape1.Intersect(shape2);
  4. // result.Vertices => Vertex[];
  5. // result.Indices => ushort[];
  6. // 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.