mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
86
Brutal.Jolt/Generated/Classes/TriangleSplitterMean.gen.cs
Normal file
86
Brutal.Jolt/Generated/Classes/TriangleSplitterMean.gen.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
// <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>
|
||||
/// Splitter using mean of axis with biggest centroid deviation
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/TriangleSplitter/TriangleSplitterMean.h#L12">Jolt/TriangleSplitter/TriangleSplitterMean.h:12</see>
|
||||
/// <br/>
|
||||
/// <c>class TriangleSplitterMean : public TriangleSplitter</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TriangleSplitterMean : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/TriangleSplitter/TriangleSplitterMean.h#L16">Jolt/TriangleSplitter/TriangleSplitterMean.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>TriangleSplitterMean(const VertexList &inVertices, const IndexedTriangleList &inTriangles)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// vertices is copied into a native container the object keeps; the span is only read.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// triangles is copied into a native container the object keeps; the span is only read.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static unsafe TriangleSplitterMean Create(
|
||||
ReadOnlySpan<float3> vertices,
|
||||
ReadOnlySpan<IndexedTriangle> triangles
|
||||
)
|
||||
{
|
||||
fixed (IndexedTriangle* triangles_fixed = triangles)
|
||||
fixed (float3* vertices_fixed = vertices)
|
||||
{
|
||||
return Jolt.PInvoke.TriangleSplitterMean_Create(
|
||||
vertices_fixed,
|
||||
(nuint)vertices.Length,
|
||||
triangles_fixed,
|
||||
(nuint)triangles.Length
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="TriangleSplitter.GetStats(ref TriangleSplitter.Stats)"/>
|
||||
public void GetStats(ref TriangleSplitter.Stats stats) => ((TriangleSplitter)this).GetStats(ref stats);
|
||||
|
||||
/// <inheritdoc cref="TriangleSplitter.Split(in TriangleSplitter.Range, ref TriangleSplitter.Range, ref TriangleSplitter.Range)"/>
|
||||
public bool Split(
|
||||
in TriangleSplitter.Range triangles,
|
||||
ref TriangleSplitter.Range left,
|
||||
ref TriangleSplitter.Range right
|
||||
) => ((TriangleSplitter)this).Split(in triangles, ref left, ref right);
|
||||
|
||||
public static implicit operator TriangleSplitter(TriangleSplitterMean value) =>
|
||||
Unsafe.BitCast<TriangleSplitterMean, TriangleSplitter>(value);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.TriangleSplitterMean_Destroy(this);
|
||||
|
||||
/// <inheritdoc cref="TriangleSplitter.GetInitialRange()"/>
|
||||
public TriangleSplitter.Range GetInitialRange() => ((TriangleSplitter)this).GetInitialRange();
|
||||
|
||||
/// <inheritdoc cref="TriangleSplitter.GetVertices()"/>
|
||||
[return: Brutal.Attributes.Fixed]
|
||||
public unsafe ReadOnlySpan<float3> GetVertices() => ((TriangleSplitter)this).GetVertices();
|
||||
|
||||
/// <inheritdoc cref="TriangleSplitter.GetTriangle(uint)"/>
|
||||
public IndexedTriangle GetTriangle(uint idx) => ((TriangleSplitter)this).GetTriangle(idx);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue