FBaseMeshPaintGeometryAdapter

Base mesh paint geometry adapter, handles basic sphere intersection using a Octree

Unreal Engine C++ API Reference > Editor > MeshPaint

Inheritance Hierarchy

References

   
Module MeshPaint
Header /Engine/Source/Editor/MeshPaint/Public/BaseMeshPaintGeometryAdapter.h
Include #include "BaseMeshPaintGeometryAdapter.h"

Syntax

class FBaseMeshPaintGeometryAdapter : public [IMeshPaintGeometryAdapter](API\Editor\MeshPaint\IMeshPaintGeometryAdapter)  

Remarks

Base mesh paint geometry adapter, handles basic sphere intersection using a Octree

Variables

Type Name Description
TArray< uint32 ... MeshIndices  
TUniquePtr< FMe... MeshTriOctree Octree used for reducing the cost of sphere intersecting with triangles / vertices
TArray< FVector... MeshVertices Index and Vertex data populated by derived classes in InitializeVertexData

Functions

Type Name Description
bool BuildOctree ()  
bool InitializeVertexData () End IMeshPaintGeometryAdapter Overrides

Overridden from IMeshPaintGeometryAdapter

Type Name Description
void GetInfluencedVertexData ( const float ComponentSpaceSquaredBr..., const FVector& ComponentSpaceBrush..., const FVector& ComponentSpaceCamer..., const bool bOnlyFrontFacing, TArray< TPair< int32, FVector >>& ... ) Retrieves the influenced vertex indices and positions that intersect the given sphere
void GetInfluencedVertexIndices ( const float ComponentSpaceSquaredBr..., const FVector& ComponentSpaceBrush..., const FVector& ComponentSpaceCamer..., const bool bOnlyFrontFacing, TSet< int32 >& InfluencedVertices ) Retrieves the influenced vertex indices which intersect the given sphere
const TArray... GetMeshIndices () Returns the indices for the current LOD index in the Mesh
const TArray... GetMeshVertices () Returns the vertices for the current LOD index in the Mesh
void GetVertexPosition ( int32 VertexIndex, FVector& OutVertex ) Returns the Vertex Position at Vertex Index from the Mesh
bool Initialize () Start IMeshPaintGeometryAdapter Overrides
TArray< uint... SphereIntersectTriangles ( const float ComponentSpaceSquaredBr..., const FVector& ComponentSpaceBrush..., const FVector& ComponentSpaceCamer..., const bool bOnlyFrontFacing ) Returns the triangle indices which intersect with the given sphere
TArray< FVec... SphereIntersectVertices ( const float ComponentSpaceSquaredBr..., const FVector& ComponentSpaceBrush..., const FVector& ComponentSpaceCamer..., const bool bOnlyFrontFacing ) Returns the vertex positions which intersect the given sphere

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library