Enzo
Loading...
Searching...
No Matches
enzo::utils::FaceTangents Class Reference

Tangents along a face in winding order. More...

#include <MeshUtils.h>

Public Member Functions

 FaceTangents (const geo::Mesh &mesh, TangentMode mode=TangentMode::FirstPoint)
 
std::span< const Vector3 > operator() (Offset faceOffset)
 Returns the tangents for the given face.
 

Detailed Description

Tangents along a face in winding order.

Construct once and call per face.

e.g. geo::FaceTangents faceTangents(mesh, TangentMode::TwoPoint); for (Offset face : mesh.getFaces()) for (Vector3 tangent : faceTangents(face)) ...

Note
Each call replaces the previous result, so finish reading a face's tangents before asking for the next.

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