Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Sampling
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Sampling/NormalHistogram.h |
| Include | #include "Sampling/NormalHistogram.h" |
Syntax
template<typename RealType>
class TNormalHistogram
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSphericalFibonacci< RealType > | BinPoints | ||
| int32 | Bins | ||
| TArray< RealType > | WeightedCounts |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TNormalHistogram
(
int32 NumBins |
Initialize a normal histogram with the given number of bins |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | 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) | ||
| TVector< RealType > | |||
| RealType | Attempt to compute a measure of the range of variation in normals across the occupied bins |