Lines Matching refs:mesh_
197 BuildIcosphere(Mesh &mesh) : mesh_(mesh), radius_(1.0f) in BuildIcosphere()
257 mesh_.build(icosahedron_vertices, icosahedron_faces); in build_icosahedron()
262 size_t middle_point_count = mesh_.faces_.size() * 3 / 2; in tessellate()
263 size_t final_face_count = mesh_.faces_.size() * 4; in tessellate()
271 mesh_.positions_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
272 mesh_.normals_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
274 for (const auto &f : mesh_.faces_) { in tessellate()
289 mesh_.faces_.swap(faces); in tessellate()
299 const Mesh::Position &pos_a = mesh_.positions_[a]; in add_middle_point()
300 const Mesh::Position &pos_b = mesh_.positions_[b]; in add_middle_point()
318 mesh_.positions_.emplace_back(pos_mid); in add_middle_point()
319 mesh_.normals_.emplace_back(normal_mid); in add_middle_point()
321 int mid = mesh_.vertex_count() - 1; in add_middle_point()
327 Mesh &mesh_; member in __anon8151ae910111::BuildIcosphere