HDK
|
#include <flatNormals.h>
Static Public Member Functions | |
static HD_API VtArray< GfVec3f > | ComputeFlatNormals (HdMeshTopology const *topology, GfVec3f const *pointsPtr) |
static HD_API VtArray< GfVec3d > | ComputeFlatNormals (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) |
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 47 of file flatNormals.h.
|
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 |
|
static |
|
static |