mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
130
Brutal.Jolt/Generated/Classes/EPAConvexHullBuilder.gen.cs
Normal file
130
Brutal.Jolt/Generated/Classes/EPAConvexHullBuilder.gen.cs
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A convex hull builder specifically made for the EPA penetration depth calculation. It trades accuracy for
|
||||
/// speed and will simply abort of the hull forms defects due to numerical precision problems.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L24">Jolt/Geometry/EPAConvexHullBuilder.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>class EPAConvexHullBuilder : public NonCopyable</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct EPAConvexHullBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Initialize the hull with 3 points
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L234">Jolt/Geometry/EPAConvexHullBuilder.h:234</see>
|
||||
/// <br/>
|
||||
/// <c>void Initialize(int inIdx1, int inIdx2, int inIdx3)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void Initialize(int idx1, int idx2, int idx3) =>
|
||||
Jolt.PInvoke.EPAConvexHullBuilder_Initialize(this, idx1, idx2, idx3);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Check if there's another triangle to process from the queue
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L262">Jolt/Geometry/EPAConvexHullBuilder.h:262</see>
|
||||
/// <br/>
|
||||
/// <c>bool HasNextTriangle() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool HasNextTriangle() => Jolt.PInvoke.EPAConvexHullBuilder_HasNextTriangle(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Max triangles in hull
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L36">Jolt/Geometry/EPAConvexHullBuilder.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr int cMaxTriangles = 256</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Due to the Euler characteristic (https://en.wikipedia.org/wiki/Euler_characteristic) we know that Vertices - Edges + Faces = 2
|
||||
/// In our case we only have triangles and they are always fully connected, so each edge is shared exactly between 2 faces: Edges = Faces * 3 / 2
|
||||
/// Substituting: Vertices = Faces / 2 + 2 which is approximately Faces / 2.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public static int GetMaxTriangles() => Jolt.PInvoke.EPAConvexHullBuilder_GetMaxTriangles();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Max number of points in hull
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L37">Jolt/Geometry/EPAConvexHullBuilder.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr int cMaxPoints = cMaxTriangles / 2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetMaxPoints() => Jolt.PInvoke.EPAConvexHullBuilder_GetMaxPoints();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Max number of edges in FindEdge
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L40">Jolt/Geometry/EPAConvexHullBuilder.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr int cMaxEdgeLength = 128</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Constants
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static int GetMaxEdgeLength() => Jolt.PInvoke.EPAConvexHullBuilder_GetMaxEdgeLength();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Minimum area of a triangle before, if smaller than this it will not be added to the priority queue
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L41">Jolt/Geometry/EPAConvexHullBuilder.h:41</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr float cMinTriangleArea = 1.0e-10f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetMinTriangleArea() => Jolt.PInvoke.EPAConvexHullBuilder_GetMinTriangleArea();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Epsilon value used to determine if a point is in the interior of a triangle
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/EPAConvexHullBuilder.h#L42">Jolt/Geometry/EPAConvexHullBuilder.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr float cBarycentricEpsilon = 1.0e-3f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetBarycentricEpsilon() => Jolt.PInvoke.EPAConvexHullBuilder_GetBarycentricEpsilon();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue