HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hd_SmoothNormals Class Referencefinal

#include <smoothNormals.h>

Static Public Member Functions

static HD_API VtArray< GfVec3fComputeSmoothNormals (Hd_VertexAdjacency const *adjacency, int numPoints, GfVec3f const *pointsPtr)
 
static HD_API VtArray< GfVec3dComputeSmoothNormals (Hd_VertexAdjacency const *adjacency, int numPoints, GfVec3d const *pointsPtr)
 
static HD_API VtArray
< HdVec4f_2_10_10_10_REV
ComputeSmoothNormalsPacked (Hd_VertexAdjacency const *adjacency, int numPoints, GfVec3f const *pointsPtr)
 
static HD_API VtArray
< HdVec4f_2_10_10_10_REV
ComputeSmoothNormalsPacked (Hd_VertexAdjacency const *adjacency, int numPoints, GfVec3d const *pointsPtr)
 

Detailed Description

Hd_SmoothNormals encapsulates mesh smooth normals information. It uses passed-in adjacency information and points data to compute smooth per-vertex normals. It does this by averaging face normals of faces surrounding a vertex.

Definition at line 50 of file smoothNormals.h.

Member Function Documentation

static HD_API VtArray<GfVec3f> Hd_SmoothNormals::ComputeSmoothNormals ( Hd_VertexAdjacency const adjacency,
int  numPoints,
GfVec3f const pointsPtr 
)
static

Computes the smooth normals result using the supplied adjacency information and points data. Returns an array of the same size and type as the source points, with optional packing.

static HD_API VtArray<GfVec3d> Hd_SmoothNormals::ComputeSmoothNormals ( Hd_VertexAdjacency const adjacency,
int  numPoints,
GfVec3d const pointsPtr 
)
static
static HD_API VtArray<HdVec4f_2_10_10_10_REV> Hd_SmoothNormals::ComputeSmoothNormalsPacked ( Hd_VertexAdjacency const adjacency,
int  numPoints,
GfVec3f const pointsPtr 
)
static
static HD_API VtArray<HdVec4f_2_10_10_10_REV> Hd_SmoothNormals::ComputeSmoothNormalsPacked ( Hd_VertexAdjacency const adjacency,
int  numPoints,
GfVec3d const pointsPtr 
)
static

The documentation for this class was generated from the following file: