Navigation
API > API/Runtime > API/Runtime/GeometryCore
Quadric Error type for use in volume memory-less simplification with volume preservation constraints. using the normal as three additional attributes to contribute to the quadric error. See: http://hhoppe.com/newqem.pdf
| Name | TAttrBasedQuadricError |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/QuadricError.h |
| Include Path | #include "QuadricError.h" |
Syntax
template<typename RealType>
class TAttrBasedQuadricError : public UE::Geometry::TVolPresQuadricError< RealType >
Inheritance Hierarchy
- TQuadricError → TVolPresQuadricError → TAttrBasedQuadricError
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| QuadricError.h | |||
TAttrBasedQuadricError
(
const TAttrBasedQuadricError& Aother, |
QuadricError.h | ||
TAttrBasedQuadricError
(
const TVector< RealType >& P0, |
Triangle Quadric constructor. Take vertex locations, vertex normals, face normal, and center of face. | QuadricError.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BaseClass | TVolPresQuadricError< RealType > | QuadricError.h | |
| BaseStruct | TQuadricError< RealType > | QuadricError.h | |
| ScalarType | RealType | QuadricError.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| a | RealType | Accumulated area | QuadricError.h | |
| attrweight | RealType | Weight used to internally scale the attribute/ used to increase or decrease the importance of the normal in computing the optimal position | QuadricError.h | |
| d | RealType | QuadricError.h | ||
| grad | TVector< RealType > | Additional planes for the attributes. | QuadricError.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
RealType w, |
Area Weighted Add | QuadricError.h | |
| QuadricError.h | |||
| QuadricError.h | |||
| QuadricError.h | |||
bool OptimalPoint
(
UE::Math::TVector< RealType >& OptPoint, |
The optimal point minimizing the quadric error with respect to a volume conserving constraint | QuadricError.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TAttrBasedQuadricError Zero() |
QuadricError.h |