UTriangleSetComponent

A component for rendering an arbitrary assortment of triangles.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/TriangleSetComponent.h

Include

#include "Drawing/TriangleSetComponent.h"

Syntax

UCLASS()
class UTriangleSetComponent : public UMeshComponent

Remarks

A component for rendering an arbitrary assortment of triangles. Suitable, for instance, for rendering highlighted faces.

Constructors

Name Description

Public function

UTriangleSetComponent()

Functions

Name Description

Public function

UE::Geometry...

 

AddQuad

(
    const FVector& A,
    const FVector& B,
    const FVector& C,
    const FVector& D,
    const FVector& Normal,
    const FColor& Color,
    UMaterialInterface* Material
)

Add a Quad (two triangles) with the given vertices, normal, Color, and Material

Public function

int32

 

AddTriangle

(
    const FRenderableTriangle& Overlay...
)

Add a triangle to be rendered using the component.

Public function

int32

 

AddTriangle

(
    const FVector& A,
    const FVector& B,
    const FVector& C,
    const FVector& Normal,
    const FColor& Color,
    UMaterialInterface* Material
)

Add a triangle with the given vertices, normal, Color, and Material

Public function

void

 

Clear()

Clear the triangle set

Public function

void

 

InsertTriangle

(
    const int32 ID,
    const FRenderableTriangle& Overlay...
)

Insert a triangle with the given ID to be rendered using the component.

Public function Const

bool

 

IsTriangleValid

(
    const int32 ID
)

Queries whether a triangle with the given ID exists in the component.

Public function

void

 

RemoveTriangle

(
    const int32 ID
)

Remove a triangle from the component.

Public function

void

 

ReserveTriangles

(
    const int32 MaxID
)

Reserve enough memory for up to the given ID (for inserting via ID)