Navigation
API > API/Plugins > API/Plugins/ModelingComponents
A component for rendering an arbitrary assortment of triangles. Suitable, for instance, for rendering highlighted faces.
| Name | UTriangleSetComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/TriangleSetComponent.h |
| Include Path | #include "Drawing/TriangleSetComponent.h" |
Syntax
UCLASS (MinimalAPI)
class UTriangleSetComponent : public UMeshComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UMeshComponent → UTriangleSetComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTriangleSetComponent() |
Drawing/TriangleSetComponent.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bBoundsDirty | bool | Drawing/TriangleSetComponent.h | ||
| Bounds | FBoxSphereBounds | Drawing/TriangleSetComponent.h | ||
| MaterialToIndex | TMap< UMaterialInterface *, int32 > | Drawing/TriangleSetComponent.h | ||
| Triangles | TSparseArray< TTuple< int32, int32 > > | Drawing/TriangleSetComponent.h | ||
| TrianglesByMaterial | TSparseArray< TSparseArray< FRenderableTriangle > > | Drawing/TriangleSetComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::Geometry::FIndex2i AddQuad
(
const FVector& A, |
Add a Quad (two triangles) with the given vertices, normal, Color, and Material | Drawing/TriangleSetComponent.h | |
int32 AddTriangle
(
const FRenderableTriangle& OverlayTriangle |
Add a triangle to be rendered using the component. | Drawing/TriangleSetComponent.h | |
int32 AddTriangle
(
const FVector& A, |
Add a triangle with the given vertices, normal, Color, and Material | Drawing/TriangleSetComponent.h | |
void AddTriangles
(
int32 NumIndices, |
Add a set of triangles for each index in a sequence | Drawing/TriangleSetComponent.h | |
void Clear() |
Clear the triangle set | Drawing/TriangleSetComponent.h | |
void InsertTriangle
(
const int32 ID, |
Insert a triangle with the given ID to be rendered using the component. | Drawing/TriangleSetComponent.h | |
bool IsTriangleValid
(
const int32 ID |
Queries whether a triangle with the given ID exists in the component. | Drawing/TriangleSetComponent.h | |
void RemoveTriangle
(
const int32 ID |
Remove a triangle from the component. | Drawing/TriangleSetComponent.h | |
void ReserveTriangles
(
const int32 MaxID |
Reserve enough memory for up to the given ID (for inserting via ID) | Drawing/TriangleSetComponent.h | |
void SetAllTrianglesColor
(
const FColor& NewColor |
Sets the color of all existing triangles | Drawing/TriangleSetComponent.h | |
void SetAllTrianglesMaterial
(
UMaterialInterface* Material |
Sets the materials of all existing triangles | Drawing/TriangleSetComponent.h |