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

Function getVertex

tutorials/grid_geometry/grid_geometry_device.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144
145Vec3fa getVertex(GridMesh& gmesh, Grid& grid, int x, int y)
146{
147 int startVertexID = grid.startVertexID;
148 int strideX = grid.strideX;
149 int strideY = grid.strideY;
150 assert(x >= 0 && x < (int)grid.width);
151 assert(y >= 0 && y < (int)grid.height);
152 return Vec3fa(gmesh.vertices[startVertexID + y*strideY + x*strideX]);
153}
154
155#if defined (ISPC)
156Vec3fa getVertex(GridMesh& gmesh, Grid& grid, int x, int y)

Callers 2

createGridGeometryFunction · 0.85
flushTriGroupMethod · 0.85

Calls 4

Vec3faClass · 0.50

Tested by

no test coverage detected