Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
A constrained view of an FDynamicMesh3 which is provided to MegaMeshModifierComponents when they apply modifications. The view is constructed to only provide data within a specified bounding region to ensure modifiers only modify the base mesh within their bounds.
| Name | FMeshView |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionMeshView.h |
| Include Path | #include "MeshPartitionMeshView.h" |
Syntax
class FMeshView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshView () |
MeshPartitionMeshView.h | ||
| MeshPartitionMeshView.h | |||
FMeshView
(
FMeshData* InMesh, |
MeshPartitionMeshView.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttributeWeightChannels | TMap< FName, TArray< float > > | Cached vertex attribute weights for deferred writeback. | MeshPartitionMeshView.h | |
| Bounds | FBox | MeshPartitionMeshView.h | ||
| MeshInternal | FMeshData * | MeshPartitionMeshView.h | ||
| ReadComponents | EMeshViewComponents | MeshPartitionMeshView.h | ||
| Submesh | MeshPartition::FDynamicSubmesh | Mesh View Data Submesh over the view region. | MeshPartitionMeshView.h | |
| TriangleIDs | TArray< int > | View of triangle ids of the source mesh which overlap the view bounds | MeshPartitionMeshView.h | |
| TriangleIDsTouchingBounds | TArray< int > | Retains the set of triangles which have only some of its vertices inside the bounds This is the set of triangles which needs to be checked when looking to weld vertices | MeshPartitionMeshView.h | |
| UsedChannels | TArray< FName > | MeshPartitionMeshView.h | ||
| VertexIDs | TArray< int > | View of vertex ids of the source mesh which overlap the view bounds | MeshPartitionMeshView.h | |
| VertexPositions | TArray< FVector3d > | Cache vertex positions for deferred writeback | MeshPartitionMeshView.h | |
| VertexUVs | TArray< TArray< FVector2f > > | MeshPartitionMeshView.h | ||
| WriteComponents | EMeshViewComponents | MeshPartitionMeshView.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Compare
(
const FMeshView& InOther |
MeshPartitionMeshView.h | ||
double GetMemoryUsageMB() |
Returns the current memory usage of this mesh view in megabytes. | MeshPartitionMeshView.h | |
const Geometry::FDynamicMesh3 & GetSubmesh () |
Get an immutable reference to the submesh provided by the view. | MeshPartitionMeshView.h | |
bool GetSubmeshInternalBoundaryEdges
(
TSet< int32 >& OutSubmeshEIDs |
Gets the edges in the submesh that have a neighboring triangle in the base mesh. | MeshPartitionMeshView.h | |
| Get a mutable reference to the submesh provided by the view. | MeshPartitionMeshView.h | ||
int GetSubmeshVID
(
int InVertexIndex |
MeshPartitionMeshView.h | ||
float GetVertexAttributeWeight
(
FName InChannelName, |
Returns the weight of the vertex attribute for the requested channel. | MeshPartitionMeshView.h | |
FVector3d GetVertexPos
(
int InVertexIndex |
Returns the vertex position of the base mesh for a given vertex index. | MeshPartitionMeshView.h | |
FVector2f GetVertexUV
(
int InVertexIndex, |
MeshPartitionMeshView.h | ||
void SetVertexAttributeWeight
(
FName InChannelName, |
Sets the weight of the vertex attribute for the requested channel. | MeshPartitionMeshView.h | |
void SetVertexPos
(
int InVertexIndex, |
Sets the vertex position in the base mesh for a given vertex index. | MeshPartitionMeshView.h | |
void SetVertexUV
(
int InVertexIndex, |
MeshPartitionMeshView.h | ||
int VertexCount() |
MeshPartitionMeshView.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MeshPartitionMeshView.h |