Static Public Member Functions | List of all members
URuntimeMeshShapeGenerator Class Reference

#include <RuntimeMeshShapeGenerator.h>

Inheritance diagram for URuntimeMeshShapeGenerator:
Inheritance graph
[legend]

Static Public Member Functions

static void ConvertQuadToTriangles (UPARAM(ref) TArray< int32 > &Triangles, int32 Vert0, int32 Vert1, int32 Vert2, int32 Vert3)
 
static void ConvertQuadToTriangles (TFunction< void(int32 Index)> TrianglesBuilder, int32 Vert0, int32 Vert1, int32 Vert2, int32 Vert3)
 
static void CreateBoxMesh (FVector BoxRadius, TArray< FVector > &Vertices, TArray< int32 > &Triangles, TArray< FVector > &Normals, TArray< FVector2D > &UVs, TArray< FRuntimeMeshTangent > &Tangents)
 
static void CreateBoxMesh (FVector BoxRadius, TArray< FRuntimeMeshVertexSimple > &Vertices, TArray< int32 > &Triangles)
 
static void CreateBoxMesh (FVector BoxRadius, const TSharedPtr< FRuntimeMeshAccessor > &MeshBuilder)
 
static void CreateBoxMesh (FVector BoxRadius, FRuntimeMeshAccessor &MeshBuilder)
 
static void CreateBoxMesh (FVector BoxRadius, FVerticesBuilderFunction VerticesBuilder, FTrianglesBuilderFunction TrianglesBuilder)
 
static void CreateBoxMeshPacked (FVector BoxRadius, TArray< FRuntimeMeshBlueprintVertexSimple > &Vertices, TArray< int32 > &Triangles)
 
static void CreateGridMesh (float Width, float Height, int32 NumSubdivisionsX, int32 NumSubdivisionsY, TArray< FVector > &Vertices, TArray< int32 > &Triangles, TArray< FVector > &Normals, TArray< FVector2D > &UVs, TArray< FRuntimeMeshTangent > &Tangents)
 
static void CreateGridMesh (float Width, float Height, int32 NumSubdivisionsX, int32 NumSubdivisionsY, TArray< FRuntimeMeshVertexSimple > &Vertices, TArray< int32 > &Triangles)
 
static void CreateGridMesh (float Width, float Height, int32 NumSubdivisionsX, int32 NumSubdivisionsY, const TSharedPtr< FRuntimeMeshAccessor > &MeshBuilder)
 
static void CreateGridMesh (float Width, float Height, int32 NumSubdivisionsX, int32 NumSubdivisionsY, FVerticesBuilderFunction VerticesBuilder, FTrianglesBuilderFunction TrianglesBuilder)
 
static void CreateGridMeshPacked (float Width, float Height, int32 NumSubdivisionsX, int32 NumSubdivisionsY, TArray< FRuntimeMeshBlueprintVertexSimple > &Vertices, TArray< int32 > &Triangles)
 
static void CreateGridMeshTriangles (int32 NumX, int32 NumY, bool bWinding, TArray< int32 > &Triangles)
 
static void CreateGridMeshTriangles (int32 NumX, int32 NumY, bool bWinding, FTrianglesBuilderFunction TrianglesBuilder)
 

Detailed Description

Definition at line 19 of file RuntimeMeshShapeGenerator.h.

Member Function Documentation

static void URuntimeMeshShapeGenerator::ConvertQuadToTriangles ( UPARAM(ref) TArray< int32 > &  Triangles,
int32  Vert0,
int32  Vert1,
int32  Vert2,
int32  Vert3 
)
static

Add a quad, specified by four indices, to a triangle index buffer as two triangles.

void URuntimeMeshShapeGenerator::ConvertQuadToTriangles ( TFunction< void(int32 Index)>  TrianglesBuilder,
int32  Vert0,
int32  Vert1,
int32  Vert2,
int32  Vert3 
)
static

Definition at line 219 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMesh ( FVector  BoxRadius,
TArray< FVector > &  Vertices,
TArray< int32 > &  Triangles,
TArray< FVector > &  Normals,
TArray< FVector2D > &  UVs,
TArray< FRuntimeMeshTangent > &  Tangents 
)
static

Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.

Definition at line 27 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMesh ( FVector  BoxRadius,
TArray< FRuntimeMeshVertexSimple > &  Vertices,
TArray< int32 > &  Triangles 
)
static

Definition at line 69 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMesh ( FVector  BoxRadius,
const TSharedPtr< FRuntimeMeshAccessor > &  MeshBuilder 
)
static

Definition at line 87 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMesh ( FVector  BoxRadius,
FRuntimeMeshAccessor MeshBuilder 
)
static

Definition at line 106 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMesh ( FVector  BoxRadius,
FVerticesBuilderFunction  VerticesBuilder,
FTrianglesBuilderFunction  TrianglesBuilder 
)
static

Definition at line 230 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateBoxMeshPacked ( FVector  BoxRadius,
TArray< FRuntimeMeshBlueprintVertexSimple > &  Vertices,
TArray< int32 > &  Triangles 
)
static

Definition at line 51 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMesh ( float  Width,
float  Height,
int32  NumSubdivisionsX,
int32  NumSubdivisionsY,
TArray< FVector > &  Vertices,
TArray< int32 > &  Triangles,
TArray< FVector > &  Normals,
TArray< FVector2D > &  UVs,
TArray< FRuntimeMeshTangent > &  Tangents 
)
static

Generate a grid mesh, from the specified size and number of subdivisions.

Definition at line 140 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMesh ( float  Width,
float  Height,
int32  NumSubdivisionsX,
int32  NumSubdivisionsY,
TArray< FRuntimeMeshVertexSimple > &  Vertices,
TArray< int32 > &  Triangles 
)
static

Definition at line 182 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMesh ( float  Width,
float  Height,
int32  NumSubdivisionsX,
int32  NumSubdivisionsY,
const TSharedPtr< FRuntimeMeshAccessor > &  MeshBuilder 
)
static

Definition at line 200 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMesh ( float  Width,
float  Height,
int32  NumSubdivisionsX,
int32  NumSubdivisionsY,
FVerticesBuilderFunction  VerticesBuilder,
FTrianglesBuilderFunction  TrianglesBuilder 
)
static

Definition at line 329 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMeshPacked ( float  Width,
float  Height,
int32  NumSubdivisionsX,
int32  NumSubdivisionsY,
TArray< FRuntimeMeshBlueprintVertexSimple > &  Vertices,
TArray< int32 > &  Triangles 
)
static

Definition at line 164 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMeshTriangles ( int32  NumX,
int32  NumY,
bool  bWinding,
TArray< int32 > &  Triangles 
)
static

Generate an index buffer for a grid of quads.

Parameters
NumXNumber of vertices in X direction (must be >= 2)
NumYNumber of vertices in y direction (must be >= 2)
bWindingReverses winding of indices generated for each quad Triangles Output index buffer

Definition at line 126 of file RuntimeMeshShapeGenerator.cpp.

void URuntimeMeshShapeGenerator::CreateGridMeshTriangles ( int32  NumX,
int32  NumY,
bool  bWinding,
FTrianglesBuilderFunction  TrianglesBuilder 
)
static

Definition at line 302 of file RuntimeMeshShapeGenerator.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:33