Class NormalHistogram
Construct spherical histogram of normals of mesh.
Binning is done using a Spherical Fibonacci point set.
Inheritance
NormalHistogram
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class NormalHistogram
Constructors
NormalHistogram(DMesh3, Boolean, Int32)
Declaration
public NormalHistogram(DMesh3 mesh, bool bWeightByArea = true, int bins = 1024)
Parameters
NormalHistogram(Int32, Boolean)
Declaration
public NormalHistogram(int bins, bool bTrackUsed = false)
Parameters
Fields
Bins
Declaration
Field Value
Counts
Declaration
Field Value
Points
Declaration
public SphericalFibonacciPointSet Points
Field Value
UsedBins
Declaration
public HashSet<int> UsedBins
Field Value
Type |
Description |
HashSet<Int32> |
|
Methods
Count(Vector3d, Double, Boolean)
bin and count point, and optionally normalize
Declaration
public void Count(Vector3d pt, double weight = 1, bool bIsNormalized = false)
Parameters
CountFaceNormals(DMesh3, Boolean)
Count all input mesh face normals
Declaration
public void CountFaceNormals(DMesh3 mesh, bool bWeightByArea = true)
Parameters
FindMaxNormal()
return (quantized) normal associated w/ maximum weight/area
Declaration
public Vector3d FindMaxNormal()
Returns