FGenericMeshSelection

[FGenericMeshSelection](API\Plugins\ModelingComponents\Selection\FGenericMeshSelection) represents various types of selection on a Mesh.

Choose your operating system:

Windows

macOS

Linux

Warnings

  • this class is likely to change in the future

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/PersistentMeshSelection.h

Include

#include "Selection/PersistentMeshSelection.h"

Syntax

struct FGenericMeshSelection

Remarks

FGenericMeshSelection represents various types of selection on a Mesh. This includes various types of indices that could be interpreted in different ways.

In addition, "Render" geometry is stored, which can be used by higher-level code to draw the selection in some way (eg a selection highlight)

this class is likely to change in the future

Variables

Name Description

Public variable

TArray< UE::Geo...

 

EdgeIDs

Selected edges, represented as index pairs because for many selections, using a pair of vertices defining/on the edge is more reliable (due to unstable edge IDs)

Public variable

TArray< int32 >

 

FaceIDs

Selected triangles/faces/regions

Public variable

TArray< UE::Geo...

 

RenderEdges

Set of 3D lines representing selection (in world space)

Public variable

TArray< FVector...

 

RenderVertices

Set of 3D points representing selection (in world space)

Public variable

UPrimitiveCompo...

 

SourceComponent

Component this selection applies to (eg that owns mesh, etc)

Public variable

ETopologyType

 

TopologyType

Selection type

Public variable

TArray< int32 >

 

VertexIDs

Selected vertices or "corners" (eg of polygroup topology)

Functions

Name Description

Public function Const

const TArray...

 

GetGroupIDs()

Public function Const

bool

 

HasRenderableLines()

Public function Const

bool

 

IsEmpty()

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FGenericMeshSelection& Other
)

Enums

Name

Description

Public enum

ETopologyType

Selection type