CSGeometry 1.1.0
Create geometry objects from boolean operations.
Install-Package CSGeometry -Version 1.1.0
dotnet add package CSGeometry --version 1.1.0
<PackageReference Include="CSGeometry" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSGeometry --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Constructive solid geometry (CSG)
Create geometry objects from boolean operations.
Support serialization with Mallos.Serialization
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
Contribution directions go here.
License
The project is available as open source under the terms of the MIT License.
Constructive solid geometry (CSG)
Create geometry objects from boolean operations.
Support serialization with Mallos.Serialization
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
Contribution directions go here.
License
The project is available as open source under the terms of the MIT License.
Dependencies
-
.NETStandard 2.0
- System.Numerics.Vectors (>= 4.5.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.