TQuadricError

QuadricError represents a quadratic function that evaluates distance to plane.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/QuadricError.h

Include

#include "QuadricError.h"

Syntax

template<typename RealType>
struct TQuadricError

Remarks

QuadricError represents a quadratic function that evaluates distance to plane. Stores minimal 10-coefficient form, following http://mgarland.org/files/papers/qtheory.pdf (symmetric matrix A, vector b, constant c)

Variables

Name Description

Public variable

RealType

 

Axx

Public variable

RealType

 

Axy

Public variable

RealType

 

Axz

Public variable

RealType

 

Ayy

Public variable

RealType

 

Ayz

Public variable

RealType

 

Azz

Public variable

RealType

 

bx

Public variable

RealType

 

by

Public variable

RealType

 

bz

Public variable

RealType

 

c

Constructors

Name Description

Public function

TQuadricError()

Public function

TQuadricError

(
    const FVector3< RealType >& Normal,
    const FVector3< RealType >& Point
)

Construct TQuadricError a plane with the given normal and a point on plane

Public function

TQuadricError

(
    const TQuadricError& a,
    const TQuadricError& b
)

Construct TQuadricError that is the sum of two other TQuadricErrors

Functions

Name Description

Public function

void

 

Add

(
    RealType w,
    const TQuadricError& b
)

Add scalar multiple of a TQuadricError to this TQuadricError

Public function

void

 

Add

(
    const TQuadricError& b
)

Public function

void

 

AddSeamQuadric

(
    const TQuadricError& b
)

Public function Const

RealType

 

Evaluate

(
    const FVector3< RealType >& pt
)

Evaluates p*A*p + 2*dot(p,b) + c

Public function Static

bool

 

InvertSymmetricMatrix

(
    const RealType SM,
    RealType InvSM,
    RealType minThresh
)

Public function Const

FVector3< Re...

 

MultiplyA

(
    const FVector3< RealType >& pt
)

Public function Static

FVector3< Re...

 

MultiplySymmetricMatrix

(
    const RealType SM,
    const FVector3< RealType >& vec
)

Public function Static

FVector3< Re...

 

MultiplySymmetricMatrix

(
    const RealType SM,
    const RealType vec
)

Public function Const

bool

 

OptimalPoint

(
    FVector3< RealType >& OutResult,
    RealType minThresh
)

Public function

void

 

Scale

(
    RealType w
)

Scale this quadric by the weight 'w'

Public function Const

bool

 

SolveAxEqualsb

(
    FVector3< RealType >& OutResult,
    const RealType bvecx,
    const RealType bvecy,
    const RealType bvecz,
    const RealType minThresh
)

Public function

void

 

Subtract

(
    const TQuadricError& b
)

Public function

void

 

SubtractSeamQuadric

(
    const TQuadricError& b
)

Public function Static

TQuadricErro...

 

Zero()

Operators

Name Description

Public function

TQuadricErro...

 

operator=

(
    const TQuadricError& b
)

Typedefs

Name

Description

ScalarType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss