![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NormalHistogram.h>
Public Member Functions | |
| TNormalHistogram (int32 NumBins) | |
| void | Count (const TVector< RealType > &Normal, RealType Weight=1) |
| TVector< RealType > | FindMaxNormal () const |
| RealType | WeightedSpreadMetric () const |
Public Attributes | |
| int32 | Bins |
| TSphericalFibonacci< RealType > | BinPoints |
| TArray< RealType > | WeightedCounts |
TNormalHistogram calculates/represents a histogram on a 3D sphere. The histogram bins are defined by a Spherical Fibonacci distribution, ie each bin is the voronoi cell of the Fibonacci point. This point set can be calculated for any N.
One current limitation of this implementation is that the unit +/- X/Y/Z axes are not bin center points.
|
inline |
Initialize a normal histogram with the given number of bins
|
inline |
Count a Normal in the histogram, ie find the Bin it should be included in and add the Weight to that Bin (The Normal does not strictly need to be normalized)
| Weight | optional weight for this normal |
|
inline |
|
inline |
Attempt to compute a measure of the range of variation in normals across the occupied bins
| TSphericalFibonacci<RealType> UE::Geometry::TNormalHistogram< RealType >::BinPoints |
| int32 UE::Geometry::TNormalHistogram< RealType >::Bins |
| TArray<RealType> UE::Geometry::TNormalHistogram< RealType >::WeightedCounts |