// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreTypes.h" #include "Templates/RefCounting.h" #include "Chaos/ImplicitFwd.h" struct FKLevelSetElem; class UBodySetup; namespace UE::Geometry { class FDynamicMesh3; } namespace LevelSetHelpers { bool CreateLevelSetForBone(UBodySetup* BodySetup, const TArray& InVertices, const TArray& InIndices, uint32 InResolution); void CreateDynamicMesh(const TArray& InVertices, const TArray& InIndices, UE::Geometry::FDynamicMesh3& OutMesh); bool CreateLevelSetForMesh(const UE::Geometry::FDynamicMesh3& InMesh, int32 InLevelSetGridResolution, FKLevelSetElem& OutElement); bool CreateLevelSetForMesh(const UE::Geometry::FDynamicMesh3& InMesh, int32 InLevelSetGridResolution, Chaos::FLevelSetPtr& OutElement); }