Navigation
API > API/Plugins > API/Plugins/MeshPaintingToolset
Base mesh paint geometry adapter, handles basic sphere intersection using a Octree
| Name | FBaseMeshPaintComponentAdapter |
| Type | class |
| Header File | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/BaseMeshPaintComponentAdapter.h |
| Include Path | #include "BaseMeshPaintComponentAdapter.h" |
Syntax
class FBaseMeshPaintComponentAdapter :
public IMeshPaintComponentAdapter ,
public FGCObject ,
public TSharedFromThis< FBaseMeshPaintComponentAdapter >
Inheritance Hierarchy
- FGCObject → FBaseMeshPaintComponentAdapter
- FSharedFromThisBase → TSharedFromThis → FBaseMeshPaintComponentAdapter
Implements Interfaces
Derived Classes
- FMeshPaintGeometryCollectionComponentAdapter
- FMeshPaintSkeletalMeshComponentAdapter
- FMeshPaintStaticMeshComponentAdapter
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool InitializeVertexData() |
BaseMeshPaintComponentAdapter.h |
Overridden from IMeshPaintComponentAdapter
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetInfluencedVertexData
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices and positions that intersect the given sphere | BaseMeshPaintComponentAdapter.h | |
virtual void GetInfluencedVertexIndices
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices which intersect the given sphere | BaseMeshPaintComponentAdapter.h | |
virtual const TArray< uint32 > & GetMeshIndices() |
Returns the indices for the current LOD index in the Mesh | BaseMeshPaintComponentAdapter.h | |
virtual const TArray< FVector > & GetMeshVertices() |
Returns the vertices for the current LOD index in the Mesh | BaseMeshPaintComponentAdapter.h | |
virtual void GetVertexPosition
(
int32 VertexIndex, |
Returns the Vertex Position at Vertex Index from the Mesh | BaseMeshPaintComponentAdapter.h | |
virtual bool Initialize() |
Start IMeshPaintGeometryAdapter Overrides | BaseMeshPaintComponentAdapter.h | |
virtual bool RayIntersectAdapter
(
UE::Geometry::FIndex3i& HitTriangle, |
Returns the hit result which intersect with the given ray | BaseMeshPaintComponentAdapter.h | |
virtual TArray< uint32 > SphereIntersectTriangles
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the triangle indices which intersect with the given sphere | BaseMeshPaintComponentAdapter.h | |
virtual TArray< FVector > SphereIntersectVertices
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the vertex positions which intersect the given sphere | BaseMeshPaintComponentAdapter.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetReferencerName() |
End IMeshPaintGeometryAdapter Overrides | BaseMeshPaintComponentAdapter.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BuildOctree() |
BaseMeshPaintComponentAdapter.h |