28 for (
int32 i = 0; i < 3; i++)
36 for (
int32 i = 0; i < 3; i++)
38 for (
int j = 0; j < 3; j++)
66 W0 = FVec3::CrossProduct(
C0, C1);
67 W1 = FVec3::CrossProduct(
C0, C2);
68 W2 = FVec3::CrossProduct(C1, C2);
70 if (
W0[0] >= 0.0 &&
W0[1] >= 0.0 &&
W0[2] >= 0.0)
74 else if (
W1[0] >= 0.0 &&
W1[1] >= 0.0 &&
W1[2] >= 0.0)
78 else if (
W2[0] >= 0.0 &&
W2[1] >= 0.0 &&
W2[2] >= 0.0)
94 static const T
OneThird =
static_cast<T
>(1.0 / 3);
113 for (
int32 i = 0; i < 3; i++)
142 for (
int32 i = 0; i < 3; i++)
158 for (
int i = 0; i <
TriIdx.Num(); i++)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void SetNumZeroed(SizeType NewNum, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:2340
void SetNum(SizeType NewNum, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:2308
Definition SkeletalMeshComponent.h:307
TV RowMaj3x3Multiply(const T *A, const TV &x)
Definition Poisson.h:159
void RowMaj3x3Inverse(const T Det, const T A0, const T A1, const T A2, const T A3, const T A4, const T A5, const T A6, const T A7, const T A8, T *Inv)
Definition Poisson.h:109
FRealDouble FReal
Definition Real.h:22
void RowMaj3x3SetCol(T *A, const int32 j, const T *Values)
Definition Poisson.h:66
TVector< FReal, 3 > FVec3
Definition Core.h:17
const T & RowMaj3x3Get(const T *A, const int32 i, const int32 j)
Definition Poisson.h:25
bool SmoothProject(const TConstArrayView< FVec3 > &Points, const TArray< TVec3< int32 > > &Tris, const TArray< FVec3 > &PointNormals, const FVec3 &Pos, const int32 TriIdx, FVec3 &Weights, TArray< TArray< FVec3 > > &TangentBases, T *B, T *C, TVec3< T > &C0, TVec3< T > &C1, TVec3< T > &C2, TVec3< T > &W0, TVec3< T > &W1, TVec3< T > &W2)
Definition SmoothProject.h:10
void RowMaj3x3Set(T *A, const int32 i, const int32 j, const T Value)
Definition Poisson.h:19
void RowMaj3x3GetRow(T *A, const int32 i, TV &Row)
Definition Poisson.h:55