Navigation
Unreal Engine C++ API Reference > Plugins > MeshPaintingToolset
Inheritance Hierarchy
- IMeshPaintComponentAdapter
- FGCObject
- TSharedFromThis
- FBaseMeshPaintComponentAdapter
- FMeshPaintGeometryCollectionComponentAdapter
- FMeshPaintSkeletalMeshComponentAdapter
- FMeshPaintStaticMeshComponentAdapter
- FMeshPaintSplineMeshComponentAdapter
References
Module | MeshPaintingToolset |
Header | /Engine/Plugins/MeshPainting/Source/MeshPaintingToolset/Public/BaseMeshPaintComponentAdapter.h |
Include | #include "BaseMeshPaintComponentAdapter.h" |
Syntax
class FBaseMeshPaintComponentAdapter :
public IMeshPaintComponentAdapter ,
public FGCObject ,
public TSharedFromThis< FBaseMeshPaintComponentAdapter >
Remarks
Base mesh paint geometry adapter, handles basic sphere intersection using a Octree
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TUniquePtr< UE::Geometry::TMeshAABBTree3< const FIndexMeshArrayAdapterd > > | AABBTree | |
![]() |
FIndexMeshArrayAdapterd | Adapter | |
![]() |
TArray< uint32 > | MeshIndices | |
![]() |
TUniquePtr< FMeshPaintTriangleOctree > | 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 |
Overridden from IMeshPaintComponentAdapter
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | Retrieves the influenced vertex indices and positions that intersect the given sphere | |
![]() ![]() ![]() |
void | GetInfluencedVertexIndices
(
const float ComponentSpaceSquaredBrushRadius, |
Retrieves the influenced vertex indices which intersect the given sphere |
![]() ![]() ![]() |
const TArray< uint32 > & | Returns the indices for the current LOD index in the Mesh | |
![]() ![]() ![]() |
const TArray< FVector > & | Returns the vertices for the current LOD index in the Mesh | |
![]() ![]() ![]() |
void | GetVertexPosition
(
int32 VertexIndex, |
Returns the Vertex Position at Vertex Index from the Mesh |
![]() ![]() |
bool | Initialize () |
Start IMeshPaintGeometryAdapter Overrides |
![]() ![]() ![]() |
bool | RayIntersectAdapter
(
UE::Geometry::FIndex3i& HitTriangle, |
Returns the hit result which intersect with the given ray |
![]() ![]() ![]() |
TArray< uint32 > | SphereIntersectTriangles
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the triangle indices which intersect with the given sphere |
![]() ![]() ![]() |
TArray< FVector > | SphereIntersectVertices
(
const float ComponentSpaceSquaredBrushRadius, |
Returns the vertex positions which intersect the given sphere |
Overridden from FGCObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FString | End IMeshPaintGeometryAdapter Overrides |