FBaseMeshPaintGeometryAdapter

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshPaint

Header

/Engine/Source/Editor/MeshPaint/Public/BaseMeshPaintGeometryAdapter.h

Include

#include "BaseMeshPaintGeometryAdapter.h"

Syntax

class FBaseMeshPaintGeometryAdapter : public IMeshPaintGeometryAdapter

Remarks

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

Variables

Name Description

Protected variable

TArray< uint32 ...

 

MeshIndices

Protected variable

TUniquePtr< FMe...

 

MeshTriOctree

Octree used for reducing the cost of sphere intersecting with triangles / vertices

Protected variable

TArray< FVector...

 

MeshVertices

Index and Vertex data populated by derived classes in InitializeVertexData

Functions

Overridden from IMeshPaintGeometryAdapter

Name Description

Public function Virtual Const

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

Public function Virtual Const

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

Public function Virtual Const

const TArray...

 

GetMeshIndices()

Returns the indices for the current LOD index in the Mesh

Public function Virtual Const

const TArray...

 

GetMeshVertices()

Returns the vertices for the current LOD index in the Mesh

Public function Virtual Const

void

 

GetVertexPosition

(
    int32 VertexIndex,
    FVector& OutVertex
)

Returns the Vertex Position at Vertex Index from the Mesh

Public function Virtual

bool

 

Initialize()

Start IMeshPaintGeometryAdapter Overrides

Public function Virtual Const

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

Public function Virtual Const

TArray< FVec...

 

SphereIntersectVertices

(
    const float ComponentSpaceSquaredBr...,
    const FVector& ComponentSpaceBrush...,
    const FVector& ComponentSpaceCamer...,
    const bool bOnlyFrontFacing
)

Returns the vertex positions which intersect the given sphere

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss