Lines Matching refs:faces
90 …(const std::vector<std::array<float, 6>> &vertices, const std::vector<std::array<int, 3>> &faces) { in build() argument
98 faces_.reserve(faces.size()); in build()
99 for (const auto &f : faces) faces_.emplace_back(Face{f[0], f[1], f[2]}); in build()
150 const std::vector<std::array<int, 3>> faces = { in BuildPyramid() local
154 mesh.build(vertices, faces); in BuildPyramid()
248 std::vector<Mesh::Face> faces; in tessellate() local
249 faces.reserve(final_face_count); in tessellate()
266 faces.emplace_back(Mesh::Face{v0, v01, v20}); in tessellate()
267 faces.emplace_back(Mesh::Face{v1, v12, v01}); in tessellate()
268 faces.emplace_back(Mesh::Face{v2, v20, v12}); in tessellate()
269 faces.emplace_back(Mesh::Face{v01, v12, v20}); in tessellate()
272 mesh_.faces_.swap(faces); in tessellate()