// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:20 ///
/// class ConvexHullBuilder : public NonCopyable ///
///
/// /// /// A convex hull builder that tries to create hulls as accurately as possible. Used for offline processing. /// /// [InteropHandle] public readonly partial struct ConvexHullBuilder : IDisposable { /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:96 ///
/// enum class EResult ///
///
/// /// /// Result enum that indicates how the hull got created /// /// public enum EResult : int { /// /// /// Hull building finished successfully /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:98 ///
/// Success ///
///
Success, /// /// /// Hull building finished successfully, but the desired accuracy was not reached because the max /// vertices limit was reached /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:99 ///
/// MaxVerticesReached ///
///
MaxVerticesReached, /// /// /// Too few points to create a hull /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:100 ///
/// TooFewPoints ///
///
TooFewPoints, /// /// /// Too few faces in the created hull (signifies precision errors during building) /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:101 ///
/// TooFewFaces ///
///
TooFewFaces, /// /// /// Degenerate hull detected /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:102 ///
/// Degenerate ///
///
Degenerate, } /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:260 ///
/// struct Coplanar ///
///
[StructLayout(LayoutKind.Explicit, Size = 8)] public struct Coplanar { /// /// /// Index in mPositions /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:262 ///
/// int mPositionIdx ///
///
[FieldOffset(0)] public int mPositionIdx; /// /// /// Distance to the edge of closest face (should be > 0) /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:263 ///
/// float mDistanceSq ///
///
[FieldOffset(4)] public float mDistanceSq; } /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:114 ///
/// int GetNumVerticesUsed() const ///
///
/// /// /// Returns the amount of vertices that are currently used by the hull /// /// public int GetNumVerticesUsed() => Jolt.PInvoke.ConvexHullBuilder_GetNumVerticesUsed(this); /// /// /// C++: /// Jolt/Geometry/ConvexHullBuilder.h:120 ///
/// void GetCenterOfMassAndVolume(Vec3 &outCenterOfMass, float &outVolume) const ///
///
/// /// /// Calculate the center of mass and the volume of the current convex hull /// /// public void GetCenterOfMassAndVolume(out float3 centerOfMass, out float volume) => Jolt.PInvoke.ConvexHullBuilder_GetCenterOfMassAndVolume(this, out centerOfMass, out volume); public void Dispose() => Jolt.PInvoke.ConvexHullBuilder_Destroy(this); } }