Search Results for

    Show / Hide Table of Contents

    Class NormalHistogram

    Construct spherical histogram of normals of mesh. Binning is done using a Spherical Fibonacci point set.

    Inheritance
    Object
    NormalHistogram
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class NormalHistogram

    Constructors

    NormalHistogram(DMesh3, Boolean, Int32)

    legacy API

    Declaration
    public NormalHistogram(DMesh3 mesh, bool bWeightByArea = true, int bins = 1024)
    Parameters
    Type Name Description
    DMesh3 mesh
    Boolean bWeightByArea
    Int32 bins

    NormalHistogram(Int32, Boolean)

    Declaration
    public NormalHistogram(int bins, bool bTrackUsed = false)
    Parameters
    Type Name Description
    Int32 bins
    Boolean bTrackUsed

    Fields

    Bins

    Declaration
    public int Bins
    Field Value
    Type Description
    Int32

    Counts

    Declaration
    public double[] Counts
    Field Value
    Type Description
    Double[]

    Points

    Declaration
    public SphericalFibonacciPointSet Points
    Field Value
    Type Description
    SphericalFibonacciPointSet

    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
    Type Name Description
    Vector3d pt
    Double weight
    Boolean bIsNormalized

    CountFaceNormals(DMesh3, Boolean)

    Count all input mesh face normals

    Declaration
    public void CountFaceNormals(DMesh3 mesh, bool bWeightByArea = true)
    Parameters
    Type Name Description
    DMesh3 mesh
    Boolean bWeightByArea

    FindMaxNormal()

    return (quantized) normal associated w/ maximum weight/area

    Declaration
    public Vector3d FindMaxNormal()
    Returns
    Type Description
    Vector3d
    In This Article
    Back to top ViRGIS VR GIS