MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / Sample

Method Sample

include/luxrays/core/exttrianglemesh.h:529–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527 return Triangle::Area(GetVertex(time, tri.v[0]), GetVertex(time, tri.v[1]), GetVertex(time, tri.v[2]));
528 }
529 virtual void Sample(const float time, const u_int triIndex, const float u0, const float u1, Point *p, float *b0, float *b1, float *b2) const {
530 static_cast<ExtTriangleMesh *>(mesh)->Sample(time, triIndex, u0, u1, p , b0, b1, b2);
531 *p *= motionSystem.Sample(time);
532 }
533
534 virtual void Save(const std::string &fileName) const { static_cast<ExtTriangleMesh *>(mesh)->Save(fileName); }
535

Callers

nothing calls this directly

Calls 1

SampleMethod · 0.45

Tested by

no test coverage detected