You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb jimmy.andrews, semion.piskarev #jira none [CL 15661651 by Ryan Schmidt in ue5-main branch]
33 lines
893 B
C++
33 lines
893 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "VectorTypes.h"
|
|
#include "IndexTypes.h"
|
|
#include "BoxTypes.h"
|
|
#include "WeightMapTypes.h"
|
|
|
|
struct FMeshDescription;
|
|
|
|
|
|
namespace UE
|
|
{
|
|
namespace WeightMaps
|
|
{
|
|
using namespace UE::Geometry;
|
|
|
|
/**
|
|
* Find the set of per-vertex weight map attributes on a MeshDescription
|
|
*/
|
|
MODELINGCOMPONENTS_API void FindVertexWeightMaps(const FMeshDescription* Mesh, TArray<FName>& PropertyNamesOut);
|
|
|
|
/**
|
|
* Extract a per-vertex weight map from a MeshDescription
|
|
* If the attribute with the given name is not found, a WeightMap initialized with the default value is returned
|
|
* @return false if weight map was not found
|
|
*/
|
|
MODELINGCOMPONENTS_API bool GetVertexWeightMap(const FMeshDescription* Mesh, FName AttributeName, FIndexedWeightMap1f& WeightMap, float DefaultValue = 1.0f);
|
|
|
|
}
|
|
} |