godot-module-template/engine/thirdparty/jolt_physics/Jolt/TriangleGrouper/TriangleGrouperMorton.h

21 lines
636 B
C++

// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#pragma once
#include <Jolt/TriangleGrouper/TriangleGrouper.h>
JPH_NAMESPACE_BEGIN
/// A class that groups triangles in batches of N according to morton code of centroid.
/// Time complexity: O(N log(N))
class JPH_EXPORT TriangleGrouperMorton : public TriangleGrouper
{
public:
// See: TriangleGrouper::Group
virtual void Group(const VertexList &inVertices, const IndexedTriangleList &inTriangles, int inGroupSize, Array<uint> &outGroupedTriangleIndices) override;
};
JPH_NAMESPACE_END