Lines Matching refs:mesh_
191 BuildIcosphere(Mesh &mesh) : mesh_(mesh), radius_(1.0f) in BuildIcosphere()
251 mesh_.build(icosahedron_vertices, icosahedron_faces); in build_icosahedron()
256 size_t middle_point_count = mesh_.faces_.size() * 3 / 2; in tessellate()
257 size_t final_face_count = mesh_.faces_.size() * 4; in tessellate()
265 mesh_.positions_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
266 mesh_.normals_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
268 for (const auto &f : mesh_.faces_) { in tessellate()
283 mesh_.faces_.swap(faces); in tessellate()
293 const Mesh::Position &pos_a = mesh_.positions_[a]; in add_middle_point()
294 const Mesh::Position &pos_b = mesh_.positions_[b]; in add_middle_point()
312 mesh_.positions_.emplace_back(pos_mid); in add_middle_point()
313 mesh_.normals_.emplace_back(normal_mid); in add_middle_point()
315 int mid = mesh_.vertex_count() - 1; in add_middle_point()
321 Mesh &mesh_; member in __anon192347900111::BuildIcosphere