TriangleUtils Class Reference
Utility function for triangle meshes. More...
#include <triangleutils.h>
Public Member Functions | |
LM_DISABLE_CONSTRUCT (TriangleUtils) | |
Static Public Member Functions | |
static auto | CreateTriangleAreaDist (const Primitive *primitive, Distribution1D &dist, Float &invArea) -> void |
Create discrete distribution for sampling area light or raw sensor. | |
static auto | SampleTriangleMesh (const Vec2 &u, const Primitive *primitive, const Distribution1D &dist, SurfaceGeometry &geom) |
Sample a position on the triangle mesh. | |
Detailed Description
Utility function for triangle meshes.