Classes | Static Public Member Functions | Private Types | Static Private Member Functions | List of all members
FTessellationUtilities Class Reference

#include <RuntimeMeshTessellationUtilities.h>

Classes

struct  Corner
 
struct  Edge
 
class  Triangle
 
struct  Vertex
 

Static Public Member Functions

static void CalculateTessellationIndices (int32 NumVertices, int32 NumIndices, TFunction< FVector(int32)> PositionAccessor, TFunction< FVector2D(int32)> UVAccessor, TFunction< int32(int32)> IndexAccessor, TFunction< void(int32)> OutIndicesSizeSetter, TFunction< int32()> OutIndicesSizeGetter, TFunction< void(int32, int32)> OutIndicesWriter, TFunction< int32(int32)> OutIndicesReader)
 

Private Types

using EdgeDictionary = TMap< Edge, Edge >
 
using PositionDictionary = TMap< FVector, Corner >
 

Static Private Member Functions

static void AddIfLeastUV (PositionDictionary &PosDict, const Vertex &Vert, uint32 Index)
 
static void ExpandIB (int32 NumVertices, int32 NumIndices, TFunction< FVector(int32)> PositionAccessor, TFunction< FVector2D(int32)> UVAccessor, TFunction< int32(int32)> IndexAccessor, TFunction< void(int32)> OutIndicesSizeSetter, TFunction< int32()> OutIndicesSizeGetter, TFunction< void(int32, int32)> OutIndicesWriter, TFunction< int32(int32)> OutIndicesReader, EdgeDictionary &OutEdgeDict, PositionDictionary &OutPosDict)
 
static FORCEINLINE uint32 HashValue (const FVector &Vec)
 
static FORCEINLINE uint32 HashValue (const Vertex &Vert)
 
static void ReplacePlaceholderIndices (int32 NumVertices, int32 NumIndices, TFunction< FVector(int32)> PositionAccessor, TFunction< FVector2D(int32)> UVAccessor, TFunction< int32(int32)> IndexAccessor, TFunction< void(int32)> OutIndicesSizeSetter, TFunction< int32()> OutIndicesSizeGetter, TFunction< void(int32, int32)> OutIndicesWriter, TFunction< int32(int32)> OutIndicesReader, EdgeDictionary &EdgeDict, PositionDictionary &PosDict)
 

Detailed Description

Definition at line 12 of file RuntimeMeshTessellationUtilities.h.

Member Typedef Documentation

Definition at line 171 of file RuntimeMeshTessellationUtilities.h.

using FTessellationUtilities::PositionDictionary = TMap<FVector, Corner>
private

Definition at line 172 of file RuntimeMeshTessellationUtilities.h.

Member Function Documentation

void FTessellationUtilities::AddIfLeastUV ( PositionDictionary PosDict,
const Vertex Vert,
uint32  Index 
)
staticprivate

Definition at line 15 of file RuntimeMeshTessellationUtilities.cpp.

void FTessellationUtilities::CalculateTessellationIndices ( int32  NumVertices,
int32  NumIndices,
TFunction< FVector(int32)>  PositionAccessor,
TFunction< FVector2D(int32)>  UVAccessor,
TFunction< int32(int32)>  IndexAccessor,
TFunction< void(int32)>  OutIndicesSizeSetter,
TFunction< int32()>  OutIndicesSizeGetter,
TFunction< void(int32, int32)>  OutIndicesWriter,
TFunction< int32(int32)>  OutIndicesReader 
)
static

Definition at line 29 of file RuntimeMeshTessellationUtilities.cpp.

void FTessellationUtilities::ExpandIB ( int32  NumVertices,
int32  NumIndices,
TFunction< FVector(int32)>  PositionAccessor,
TFunction< FVector2D(int32)>  UVAccessor,
TFunction< int32(int32)>  IndexAccessor,
TFunction< void(int32)>  OutIndicesSizeSetter,
TFunction< int32()>  OutIndicesSizeGetter,
TFunction< void(int32, int32)>  OutIndicesWriter,
TFunction< int32(int32)>  OutIndicesReader,
EdgeDictionary OutEdgeDict,
PositionDictionary OutPosDict 
)
staticprivate

Definition at line 48 of file RuntimeMeshTessellationUtilities.cpp.

static FORCEINLINE uint32 FTessellationUtilities::HashValue ( const FVector &  Vec)
inlinestaticprivate

Definition at line 45 of file RuntimeMeshTessellationUtilities.h.

static FORCEINLINE uint32 FTessellationUtilities::HashValue ( const Vertex Vert)
inlinestaticprivate

Definition at line 50 of file RuntimeMeshTessellationUtilities.h.

void FTessellationUtilities::ReplacePlaceholderIndices ( int32  NumVertices,
int32  NumIndices,
TFunction< FVector(int32)>  PositionAccessor,
TFunction< FVector2D(int32)>  UVAccessor,
TFunction< int32(int32)>  IndexAccessor,
TFunction< void(int32)>  OutIndicesSizeSetter,
TFunction< int32()>  OutIndicesSizeGetter,
TFunction< void(int32, int32)>  OutIndicesWriter,
TFunction< int32(int32)>  OutIndicesReader,
EdgeDictionary EdgeDict,
PositionDictionary PosDict 
)
staticprivate

Definition at line 109 of file RuntimeMeshTessellationUtilities.cpp.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32