MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / addVertex

Method addVertex

examples/TinyRenderer/model.cpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void Model::addVertex(float x, float y, float z, float normalX, float normalY, float normalZ, float u, float v)
101{
102 verts_.push_back(Vec3f(x, y, z));
103 norms_.push_back(Vec3f(normalX, normalY, normalZ));
104 uv_.push_back(Vec2f(u, v));
105}
106void Model::addTriangle(int vertexposIndex0, int normalIndex0, int uvIndex0,
107 int vertexposIndex1, int normalIndex1, int uvIndex1,
108 int vertexposIndex2, int normalIndex2, int uvIndex2)

Callers 3

registerMeshShapeMethod · 0.45
registerMesh2Method · 0.45
createCubeMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected