Navigation
API > API/Editor > API/Editor/MeshPaint
Inheritance Hierarchy
- IMeshPaintGeometryAdapter
- FBaseMeshPaintGeometryAdapter
- FMeshPaintGeometryAdapterForSkeletalMeshes
- FMeshPaintGeometryAdapterForStaticMeshes
- FMeshPaintGeometryAdapterForSplineMeshes
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
| Type | Name | Description | |
|---|---|---|---|
| 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 | End IMeshPaintGeometryAdapter Overrides |
Overridden from IMeshPaintGeometryAdapter
| Type | Name | Description | |
|---|---|---|---|
| void | GetInfluencedVertexData
(
const float ComponentSpaceSquaredBrushRadius, |
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 | |
| 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 |