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

#include <flatNormals.h>

Static Public Member Functions

static HD_API VtArray< GfVec3fComputeFlatNormals (HdMeshTopology const *topology, GfVec3f const *pointsPtr)
 
static HD_API VtArray< GfVec3dComputeFlatNormals (HdMeshTopology const *topology, GfVec3d const *pointsPtr)
 
static HD_API VtArray
< HdVec4f_2_10_10_10_REV
ComputeFlatNormalsPacked (HdMeshTopology const *topology, GfVec3f const *pointsPtr)
 
static HD_API VtArray
< HdVec4f_2_10_10_10_REV
ComputeFlatNormalsPacked (HdMeshTopology const *topology, GfVec3d const *pointsPtr)
 

Detailed Description

Hd_FlatNormals encapsulates mesh flat normals information. It uses passed-in face index data and points data to compute flat per-face normals. It does this by breaking each face into a triangle fan centered at vertex 0, and averaging triangle normals.

Definition at line 49 of file flatNormals.h.

Member Function Documentation

static HD_API VtArray<GfVec3f> Hd_FlatNormals::ComputeFlatNormals ( HdMeshTopology const topology,
GfVec3f const pointsPtr 
)
static

Computes the flat normals result using the supplied face coord 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_FlatNormals::ComputeFlatNormals ( HdMeshTopology const topology,
GfVec3d const pointsPtr 
)
static
static HD_API VtArray<HdVec4f_2_10_10_10_REV> Hd_FlatNormals::ComputeFlatNormalsPacked ( HdMeshTopology const topology,
GfVec3f const pointsPtr 
)
static
static HD_API VtArray<HdVec4f_2_10_10_10_REV> Hd_FlatNormals::ComputeFlatNormalsPacked ( HdMeshTopology const topology,
GfVec3d const pointsPtr 
)
static

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