Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | TTriangle |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ImplicitFwd.h |
| Include Path | #include "Chaos/ImplicitFwd.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Triangle.h |
Syntax
template<typename T>
class TTriangle
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTriangle () |
Chaos/Triangle.h | ||
TTriangle
(
const TVec3< T >& InA, |
Chaos/Triangle.h |
Structs
| Name | Remarks |
|---|---|
| FLineIntersectionToleranceProvider |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ABC | TVec3< T > | Chaos/Triangle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindVertexPlanes
(
int32 VertexIndex, |
Get an array of all the plane indices that belong to a vertex (up to MaxVertexPlanes). | Chaos/Triangle.h | |
TVec3< T > GetCentroid() |
Chaos/Triangle.h | ||
TVec3< T > GetClosestEdge
(
int32 PlaneIndexHint, |
Get the nearest point on an edge and the edge vertices Used for manifold generation | Chaos/Triangle.h | |
TVec3< T > GetClosestEdgePosition
(
int32 PlaneIndexHint, |
Get the nearest point on an edge Used for manifold generation | Chaos/Triangle.h | |
T GetMargin() |
Chaos/Triangle.h | ||
FRealSingle GetMarginf() |
Chaos/Triangle.h | ||
int32 GetMostOpposingPlane
(
const TVec3< T >& Normal |
Get the index of the plane that most opposes the normal. | Chaos/Triangle.h | |
TVec3< T > GetNormal() |
Chaos/Triangle.h | ||
| Chaos/Triangle.h | |||
TPlaneConcrete< T, 3 > GetPlane
(
int32 FaceIndex |
Face index is ignored since we only have one face Used for manifold generation | Chaos/Triangle.h | |
void GetPlaneNX
(
const int32 FaceIndex, |
Chaos/Triangle.h | ||
int32 GetPlaneVertex
(
int32 PlaneIndex, |
Get the vertex index of one of the vertices making up the corners of the specified face Used for manifold generation | Chaos/Triangle.h | |
T GetRadius() |
Chaos/Triangle.h | ||
FRealSingle GetRadiusf() |
Chaos/Triangle.h | ||
const TVec3< T > & GetVertex
(
const int32 InIndex |
Chaos/Triangle.h | ||
int32 GetVertexPlanes3
(
int32 VertexIndex, |
Get up to the 3 plane indices that belong to a vertex Returns the number of planes found. | Chaos/Triangle.h | |
T GetWindingOrder () |
Triangle winding order is always 1.0. When we reverse the winding of a triangle we flip the verts. | Chaos/Triangle.h | |
bool IsConvex() |
Chaos/Triangle.h | ||
bool LineIntersection
(
const TVec3< T >& StartPoint, |
Chaos/Triangle.h | ||
int32 NumPlanes() |
Triangle is just one plane Used for manifold generation | Chaos/Triangle.h | |
int32 NumPlaneVertices
(
int32 PlaneIndex |
The number of vertices that make up the corners of the specified face Used for manifold generation | Chaos/Triangle.h | |
bool Overlap
(
const TVec3< T >& Point, |
Chaos/Triangle.h | ||
T PhiWithNormal
(
const TVec3< T >& InSamplePoint, |
Chaos/Triangle.h | ||
bool Raycast
(
const TVec3< T >& StartPoint, |
Chaos/Triangle.h | ||
FTriangle & ReverseWinding() |
Change the winding order of this triangle by flipping the last two vertices. | Chaos/Triangle.h | |
TVec3< T > Support
(
const TVec3< T >& Direction, |
Chaos/Triangle.h | ||
TVec3< T > SupportCore
(
const TVec3< T >& Direction, |
Chaos/Triangle.h | ||
TVec3< T > SupportCoreScaled
(
const TVec3< T >& Direction, |
Chaos/Triangle.h | ||
FString ToString() |
Chaos/Triangle.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TVec3< T > & operator[]
(
uint32 InIndex |
Chaos/Triangle.h | ||
const TVec3< T > & operator[]
(
uint32 InIndex |
Chaos/Triangle.h |