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