MCPcopy Create free account
hub / github.com/RenderKit/embree / move_mesh

Method move_mesh

tutorials/verify/verify.cpp:1843–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841 : VerifyApplication::IntersectTest(name,isa,imode,ivariant,VerifyApplication::TEST_SHOULD_PASS), sflags(sflags), quality(quality) {}
1842
1843 static void move_mesh(RTCGeometry mesh, size_t numVertices, Vec3fa& pos)
1844 {
1845 Vec3ff* vertices = (Vec3ff*) rtcGetGeometryBufferData(mesh,RTC_BUFFER_TYPE_VERTEX,0);
1846 for (size_t i=0; i<numVertices; i++)
1847 vertices[i] += Vec3ff(pos,0.0f);
1848 rtcUpdateGeometryBuffer(mesh,RTC_BUFFER_TYPE_VERTEX,0);
1849 rtcCommitGeometry(mesh);
1850 }
1851
1852 VerifyApplication::TestReturnValue run(VerifyApplication* state, bool silent)
1853 {

Callers

nothing calls this directly

Calls 3

rtcGetGeometryBufferDataFunction · 0.85
rtcUpdateGeometryBufferFunction · 0.85
rtcCommitGeometryFunction · 0.85

Tested by

no test coverage detected