{"id":312414,"date":"2020-11-02T09:00:40","date_gmt":"2020-11-02T09:00:40","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312414"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312414","title":{"rendered":"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kb\/cl\/ao\/kbclao-bpha3kzy0epnhzufftio.gif\"><\/div>\n<p>  <\/p>\n<blockquote><p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 \u043c\u043e\u0439 Github [<a href=\"https:\/\/github.com\/weigert\/TinyEngine\/tree\/master\/examples\/6_Tree\" rel=\"nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>].<\/p><\/blockquote>\n<p>  \u042f \u043f\u0440\u043e\u0432\u0451\u043b \u0432\u0441\u0451 \u043b\u0435\u0442\u043e \u0432 \u0432\u043e\u0441\u0442\u043e\u0447\u043d\u043e\u0439 \u041f\u0435\u043d\u0441\u0438\u043b\u044c\u0432\u0430\u043d\u0438\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0440\u0435\u043a\u043e\u0439 \u0414\u0435\u043b\u0430\u0432\u0435\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u043c\u043f\u0443\u0441 MIT \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0430\u0440\u0442\u0430 \u0437\u0430\u043a\u0440\u044b\u043b\u0438 \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0435\u0445\u0430\u0442\u044c \u0434\u043e\u043c\u043e\u0439. \u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0433\u0443\u043b\u0438\u0432\u0430\u044f\u0441\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u0434\u043e\u043c\u043e\u043c \u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u044f \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u0432 \u043b\u0435\u0441\u0430, \u0438 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043f\u043e\u0434\u043c\u0435\u0442\u0438\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f:<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u0434\u0435\u0440\u0435\u0432\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f, \u0441\u0443\u043c\u043c\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0435\u0439 \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u042d\u0442\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e <a href=\"https:\/\/en.wikipedia.org\/wiki\/Patterns_in_nature#cite_note-6\" rel=\"nofollow\">\u0434\u0430 \u0412\u0438\u043d\u0447\u0438<\/a>. \u042f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c, \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0435\u0439 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u043e\u0441\u0442\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043d\u0430\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0435\u0439 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u044d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0449\u0438\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u0435\u0439.<\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0448\u0438 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 <strong>\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u0440\u043e\u0441\u0442\u0430<\/strong> \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0440\u0430\u0442\u043e\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432!<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u043a\u043e\u0434 \u0441\u0430\u043c\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u043e\u0441\u0442\u0430 \u0434\u0435\u0440\u0435\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u00abtree.h\u00bb. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0438\u0437 250 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430.<\/p><\/blockquote>\n<p>  <\/p>\n<div class=\"oembed\"><iframe id=\"5f9f58ff2cbf1a1445b352f7\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9f58ff2cbf1a1445b352f7\"><\/iframe><\/div>\n<p>  <i>\u0414\u0435\u0440\u0435\u0432\u043e \u0441 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0430\u0441\u0441\u0438\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0442\u0432\u0435\u0439 \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u043c\u0438 \u043b\u0438\u0441\u0442\u044c\u044f\u043c\u0438.<\/i><\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u044d\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u0430 \u0432 \u0430\u043f\u0440\u0435\u043b\u0435 2020 \u0433\u043e\u0434\u0430, \u043d\u043e \u044f \u043e\u0442\u043b\u043e\u0436\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0434\u0438\u043f\u043b\u043e\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0435.<\/p><\/blockquote>\n<p>  <\/p>\n<h2>\u041c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0441\u0442\u0430<\/h2>\n<p>  \u0414\u0435\u0440\u0435\u0432\u043e \u0440\u0430\u0441\u0442\u0451\u0442, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0432\u0432\u0435\u0440\u0445 \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0432\u0435\u0442\u0432\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u043b\u043e\u0439 \u043a\u043e\u0440\u044b. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u043e\u0441\u0442\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0432\u0435\u0442\u0432\u0435\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u0445\u0432\u0430\u0442\u0435. \u041f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430, \u0434\u043e\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043d\u0435\u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0432\u0435\u0442\u0432\u0438, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442 \u043a \u0435\u0451 \u0440\u043e\u0441\u0442\u0443 \u0432 \u0434\u043b\u0438\u043d\u0443, \u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0441\u0432\u043e\u0438\u043c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u0432\u0435\u0442\u0432\u044f\u043c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u043a\u043e\u043c\u0443 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0432\u0435\u0442\u0432\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f \u0438 \u0441 \u0442\u0440\u043e\u0438\u0447\u043d\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c).<\/p>\n<p>  \u042d\u0442\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/403\/197\/e7c\/403197e7cf25deb0ce104f1b9f2cb7b5.png\"><\/div>\n<p>  <i>\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 \u0432\u0434\u043e\u043b\u044c \u0434\u0435\u0440\u0435\u0432\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0442\u0432\u0438, \u0432\u0438\u0434 \u0441\u0431\u043e\u043a\u0443. \u041a\u0440\u0430\u0441\u043d\u044b\u043c\u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430, \u0430 \u0441\u0438\u043d\u0438\u043c\u0438 \u2014 \u0440\u043e\u0441\u0442 \u0434\u0435\u0440\u0435\u0432\u0430. \u041d\u0435\u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432\u0435\u0442\u0432\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0442\u0438 \u0432 \u043e\u0431\u0445\u0432\u0430\u0442\u0435 \u0438 \u0434\u043b\u0438\u043d\u0435, \u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432\u0435\u0442\u0432\u0438 \u0440\u0430\u0441\u0442\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0431\u0445\u0432\u0430\u0442\u0435. \u041a\u0430\u0436\u0434\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u2014 \u044d\u0442\u043e (\u043a\u043e\u043d\u0443\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0439) \u0446\u0438\u043b\u0438\u043d\u0434\u0440, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u043e\u0441\u0442 \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438.<\/i><\/p>\n<p>  \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0435\u0441\u0442\u044c \u0434\u043b\u0438\u043d\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0432 \u0432\u0435\u0442\u0432\u044c. \u0427\u0430\u0441\u0442\u044c \u0432\u0435\u0449\u0435\u0441\u0442\u0432 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u0445\u0432\u0430\u0442 \u0438\/\u0438\u043b\u0438 \u0434\u043b\u0438\u043d\u0443, \u0430 \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u0432\u0435\u0442\u0432\u044f\u043c. \u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0442\u0432\u044c \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b, \u043e\u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0432\u0435\u0442\u0432\u0438.<\/p>\n<p>  <strong>\u0417\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u043a\u0442:<\/strong> \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442 \u0432 \u0434\u043b\u0438\u043d\u0443, \u043a\u0430\u0447\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u0435 \u043d\u0430 \u0432\u0435\u0442\u0432\u044c \u0434\u0435\u0440\u0435\u0432\u0430, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0432\u044b\u0441\u043e\u0442\u044b \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0435\u043c\u043b\u0438.<\/p>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0414\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0434\u0435\u0440\u0435\u0432\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u043e\u0441\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0435\u0442\u0432\u044c \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c <code>struct<\/code> \u0432\u0435\u0442\u0432\u0438:<\/p>\n<pre><code class=\"cpp\">struct Branch{    int ID = 0;         \/\/For Leaf Hashing   bool leaf = true;   \/\/End of branch?    Branch *A, *B, *P;  \/\/Child A, B and Parent    \/\/Growth Parameters   float ratio, spread, splitsize;   int depth = 0;    \/\/Constructors \/ Destructors    \/\/No parent   Branch(float r, float s, float ss):     ratio       {r},     spread      {s},     splitsize   {ss}   {};    \/\/With parent   Branch(Branch* b, bool root):     ratio       {b-&gt;ratio},     spread      {b-&gt;spread},     splitsize   {b-&gt;splitsize}   {     if(root) return;     depth = b-&gt;depth+1;     P = b;  \/\/Set Parent   };    ~Branch(){     if(leaf) return;     delete(A);     delete(B);   }    \/\/Size \/ Direction Data   glm::vec3 dir = glm::vec3(0.0, 1.0, 0.0);   float length = 0.0, radius = 0.0, area = 0.1;    \/\/Member Functions   void grow(double _size);   void split();    \/\/Compute Direction to Highest Local Leaf Density   glm::vec3 leafdensity(int searchdepth); };<\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u0445\u0440\u0430\u043d\u0438\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0443\u044e \u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0432\u0435\u0442\u0432\u0438. \u0415\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432, \u0442\u043e \u0444\u043b\u0430\u0433 <code>leaf<\/code> (\u00ab\u043b\u0438\u0441\u0442\u00bb) \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>true<\/code>. \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>depth<\/code> (\u0433\u043b\u0443\u0431\u0438\u043d\u044b) \u043d\u0430 \u0434\u0435\u0440\u0435\u0432\u0435, \u043f\u0440\u0438 \u0447\u0451\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0442\u0432\u043e\u043b \u0438\u043c\u0435\u0435\u0442 <code>depth = 0<\/code>.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0445\u0440\u0430\u043d\u0438\u043c \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432\u0435\u0442\u0432\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0443\u044e \u0432 \u0441\u0435\u0431\u044f \u0435\u0451 \u0434\u043b\u0438\u043d\u0443, \u0440\u0430\u0434\u0438\u0443\u0441, \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 (3D-\u0432\u0435\u043a\u0442\u043e\u0440).<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0435\u0442\u0432\u0438 \u0438\u043c\u0435\u0435\u0442 \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u043e\u0441\u0442\u0430: <code>grow()<\/code> \u0438 <code>split()<\/code>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0438\u0436\u0435.<\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <\/strong>\u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0432\u0435\u0442\u0432\u0438 \u0442\u0430\u043a\u0436\u0435 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442 \u0432\u0441\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0432\u0435\u0442\u0432\u0438, \u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434 <code>split()<\/code>.<\/p><\/blockquote>\n<p>  <\/p>\n<h4>\u0420\u043e\u0441\u0442<\/h4>\n<p>  \u041c\u0435\u0442\u043e\u0434 <code>grow<\/code> \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0412 \u0432\u0435\u0442\u0432\u044c \u043f\u043e\u0434\u0430\u0451\u0442\u0441\u044f \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432 (<strong>feed<\/strong>), \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u043e\u0441\u0442\u0430. \u0420\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0431\u044a\u0451\u043c \u0440\u043e\u0441\u0442\u0430.<\/p>\n<pre><code class=\"cpp\">void Branch::grow(double feed){    radius = sqrt(area\/PI);   \/\/Current Radius    \/\/...<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432, \u043c\u044b \u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u043c \u0435\u0451 \u0434\u043b\u0438\u043d\u0443 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u0440\u043d\u044e \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041e\u0431\u044a\u0451\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0451\u043d\u043d\u0443\u044e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0432\u044b\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043d\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u043a. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u0434\u043b\u0438\u043d\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0438 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430\u043a, \u0442\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0435\u0451 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0442:<\/p>\n<pre><code class=\"cpp\">  \/\/...    if(leaf){     length += cbrt(feed);       \/\/Grow in Length     feed -= cbrt(feed) * area;  \/\/Reduce Feed     area += feed\/length;        \/\/Grow In Area      \/\/Split Condition     if(length &gt; splitsize * exp(-splitdecay * depth))       split();  \/\/Split Behavior      return;   }    \/\/...<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>splitsize<\/code>. \u0412 \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0440\u043e\u0433\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u0432\u0435\u0442\u0432\u0438 \u043d\u0430 \u0434\u0435\u0440\u0435\u0432\u0435. \u0412\u044b\u0431\u043e\u0440 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u0435\u043d \u0438 \u043d\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0438 \u043d\u0430 \u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u0438\u0440\u043e\u0434\u043d\u044b\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u0445.<\/p><\/blockquote>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0441\u0442\u043e\u043c, \u0442\u043e \u043c\u044b \u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u043c \u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0431\u0445\u0432\u0430\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0447\u0430\u0441\u0442\u044c \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0435\u0451 \u043f\u043e\u0442\u043e\u043c\u043a\u0430\u043c.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u0441\u0435 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0431\u0435, \u0442\u043e \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u0432 \u043e\u0431\u0445\u0432\u0430\u0442\u0435, \u0430 \u0435\u0451 \u043f\u043e\u0442\u043e\u043c\u043a\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0442\u0438 \u0432\u043e\u043e\u0431\u0449\u0435. \u0418 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u2014 \u0435\u0441\u043b\u0438 \u0432\u0435\u0442\u0432\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u0432\u0441\u0435 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0442\u043e\u043c\u043a\u0430\u043c, \u0442\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u0438 \u0432\u044b\u0440\u0430\u0441\u0442\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0432\u0435\u0442\u0432\u044c.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0432\u0438\u043b\u043a\u0435 \u0434\u0435\u0440\u0435\u0432\u0430. \u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0432\u0430\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u044b \u0434\u043b\u044f \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u043c\u0443 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u044c\u044e.<\/p>\n<p>  \u041a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 <strong>X<\/strong> \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437 \u043f\u043b\u043e\u0449\u0430\u0434\u0435\u0439 <strong>A<\/strong> \u0432\u0441\u0435\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0432 \u0442\u043e\u0447\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f (\u043f\u043e\u0442\u043e\u043c\u043a\u0438 <strong>A<\/strong>, <strong>B<\/strong> \u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c <strong>P<\/strong>):<\/p>\n<p><math>$$display$$\\begin{equation*} X = 1 &#8212; \\frac{A_A + A_B}{A_A + A_B + A_P} \\end{equation*}$$display$$<\/math><\/p>\n<p>  \u041e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435\u043c \u0441\u0443\u043c\u043c\u044b \u043f\u043b\u043e\u0449\u0430\u0434\u0435\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0438 \u043e\u0431\u0449\u0435\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0432\u0435\u0442\u0432\u0435\u0439, \u0441\u043e\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u044b\u0445 \u0432 \u0442\u043e\u0447\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0443 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f, \u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432 \u043d\u0438\u0445 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u043f\u0438\u0442\u0430\u043d\u0438\u044f (\u043f\u0440\u0435\u0434\u0435\u043b <strong>X<\/strong> = 0), \u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u0440\u0430\u0441\u0442\u0451\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0443\u043c\u043c\u044b \u043f\u043b\u043e\u0449\u0430\u0434\u0435\u0439 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432, \u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0438\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u0438 \u043f\u043e\u0442\u043e\u043c\u043a\u0438 \u0440\u0430\u0441\u0442\u0443\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 (\u043f\u0440\u0435\u0434\u0435\u043b <strong>X<\/strong> = 1). \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u044c\u0441\u044f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e, \u0431\u043b\u0438\u0437\u043a\u043e\u043c\u0443 \u043a <strong>X<\/strong> = 0.5, \u0447\u0442\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<blockquote><p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: <strong>X<\/strong> \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u044c\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u043a 0.5, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u043e\u0441\u0442\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u043b\u0438\u043d\u044b \u0432\u0435\u0442\u0432\u0438. \u0414\u043b\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0441 \u043f\u043e\u0442\u043e\u043c\u043a\u0430\u043c\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 \u0434\u043b\u0438\u043d\u044b <strong>X<\/strong> -&gt; 0.5. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 \u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f (\u0441\u043c. \u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u0430\u043e\u0431\u0430\u0431\u0430).<\/p><\/blockquote>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u043c \u0432\u0435\u0442\u0432\u044c:<\/p>\n<pre><code class=\"cpp\">  \/\/...    \/\/Feedback Control for Area Conservation   double pass = (A-&gt;area+B-&gt;area)\/(A-&gt;area+B-&gt;area+area);    area += pass * feed \/ length;   \/\/Grow in Girth   feed *= ( 1.0 - pass );         \/\/Reduce Feed    \/\/...<\/code><\/pre>\n<p>  \u0412\u0438\u0434 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044e \u0435\u0433\u043e \u0440\u043e\u0441\u0442\u0430 (<code>ratio<\/code>). \u041c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u0432\u0435\u0442\u0432\u044f\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0443:<\/p>\n<pre><code class=\"cpp\">  \/\/...    if(feed &lt; 1E-5) return;         \/\/Prevent Over-Branching    A-&gt;grow(feed*ratio);            \/\/Grow Children   B-&gt;grow(feed*(1.0-ratio)); }<\/code><\/pre>\n<p>  \u0418 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0441\u0442\u0430 \u0434\u0435\u0440\u0435\u0432\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u0430.<\/p>\n<h4>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041c\u0435\u0442\u043e\u0434 <code>split<\/code> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 (<strong>A<\/strong> \u0438 <strong>B<\/strong>), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435 \u0438\u0445 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u043a \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 ID:<\/p>\n<pre><code class=\"cpp\">void Branch::split(){    leaf = false;    \/\/Add Child Branches   A = new Branch(this, false);   B = new Branch(this, false);    \/\/Every Leaf ID is Unique (because binary!)   A-&gt;ID = 2 * ID + 0;    B-&gt;ID = 2 * ID + 1;    \/\/...<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u0432\u0435\u0442\u0432\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u043e\u0441\u0442\u0430 \u0432\u043f\u0435\u0440\u0451\u0434. \u0414\u0435\u0440\u0435\u0432\u044c\u044f \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u043b\u044f\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0437\u0430\u0442\u0435\u043d\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0431\u0438\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432 \u0433\u0435\u043d\u0435\u0442\u0438\u043a\u0443 \u0434\u0435\u0440\u0435\u0432\u0430, \u043d\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0430\u043f\u043f\u0440\u043e\u043a\u0441\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0432 \u043f\u043e\u0442\u043e\u043c\u043a\u0430\u043c \u0440\u0430\u0441\u0442\u0438 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438, \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0438 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0432 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043b\u0438\u0441\u0442\u044c\u0435\u0432:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/68a\/e15\/6d0\/68ae156d0384fce324111685bba6f43d.png\"><\/div>\n<p>  <i>\u041a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0441\u0442\u0430 \u0432\u0435\u0442\u0432\u0438. \u0421\u0438\u043d\u0438\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0435\u0442\u0432\u0438, \u0430 \u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u2014 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043b\u0438\u0441\u0442\u044c\u0435\u0432. \u041e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u0438\u0437 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u0438 \u043a \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/i><\/p>\n<pre><code class=\"cpp\">  \/\/...    \/*   Ideal Growth Direction:     Perpendicular to direction with highest leaf density!    *\/    \/\/Direction of Highest Density   glm::vec3 D = leafdensity(localdepth);        \/\/Normal Vector to Plane       glm::vec3 N = glm::normalize(glm::cross(dir, D));   \/\/Reflection   glm::vec3 M = -1.0f*N;                                float flip = (rand()%2)?1.0:-1.0; \/\/Random Direction Flip    \/\/Mix direction according to split ratio   A-&gt;dir = glm::normalize( glm::mix(flip*spread*N, dir,     ratio) );   B-&gt;dir = glm::normalize( glm::mix(flip*spread*M, dir, 1.0-ratio) );  }<\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u0432\u0435\u0442\u0432\u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 \u0442\u044f\u0436\u0451\u043b\u044b\u0435 \u0432\u0435\u0442\u0432\u0438 \u0441\u043a\u043b\u043e\u043d\u043d\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u044f\u043c\u043e, \u0430 \u043b\u0451\u0433\u043a\u0438\u0435 \u2014 \u0431\u043e\u043b\u0435\u0435 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u043e \u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044e.<\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u0435\u0442\u0432\u044c A \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0442\u044f\u0436\u0451\u043b\u0430\u044f \u0438\u043b\u0438 \u043b\u0451\u0433\u043a\u0430\u044f. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u0441\u0430 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u043e\u043c\u0443 \u0440\u043e\u0441\u0442\u0443 \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>spread<\/strong>.<\/p><\/blockquote>\n<p>  \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043b\u0438\u0441\u0442\u044c\u0435\u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443. \u041c\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0433\u043b\u0443\u0431\u0438\u043d\u0443, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0441\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043b\u0438\u0441\u0442\u044c\u0435\u0432 \u0438 \u043b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u0437 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<\/p>\n<pre><code class=\"cpp\">glm::vec3 Branch::leafdensity(int searchdepth){    \/\/Random Vector! (for noise)   glm::vec3 r = glm::vec3(rand()%100,rand()%100,rand()%100)\/glm::vec3(100)-glm::vec3(0.5);    \/\/Random vector for trunk   if(depth == 0)      return r;    Branch* C = this;                               \/\/Ancestor node   glm::vec3 rel = glm::vec3(0);                   \/\/Relative position to start node   while(C-&gt;depth &gt; 0 &amp;&amp; searchdepth-- &gt;= 0){      \/\/Ascend tree     rel += C-&gt;length*C-&gt;dir;                      \/\/Add relative position     C = C-&gt;P;                                     \/\/Move to parent   }    \/\/Compute Average Leaf Position of all Children (recursive)   std::function&lt;glm::vec3(Branch*)&gt; leafaverage = [&amp;](Branch* b)-&gt;glm::vec3{     if(b-&gt;leaf) return b-&gt;length*b-&gt;dir;     return b-&gt;length*b-&gt;dir + ratio*leafaverage(b-&gt;A) + (1.0f-ratio)*leafaverage(b-&gt;B);   };    \/\/Average relative to ancestor, shifted by rel ( + Noise )   return directedness*glm::normalize(leafaverage(C) - rel) + (1.0f-directedness)*r; }<\/code><\/pre>\n<p>  \u041a \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u043a\u0442\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430. \u0421\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0448\u0443\u043c\u043e\u043c \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0440\u043e\u0441\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>directedness<\/strong>.<\/p>\n<h3>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  <\/p>\n<blockquote><p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u044d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0441\u0442\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <a href=\"https:\/\/github.com\/weigert\/TinyEngine\" rel=\"nofollow\">TinyEngine<\/a>.<\/p><\/blockquote>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u0448\u0435\u0439. \u041a\u0430\u0436\u0434\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0446\u0438\u043b\u0438\u043d\u0434\u0440 \u0441 \u0434\u043b\u0438\u043d\u043e\u0439, \u0440\u0430\u0434\u0438\u0443\u0441\u043e\u043c \u0438 \u043a\u043e\u043d\u0443\u0441\u043d\u043e\u0441\u0442\u044c\u044e. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0435\u0442\u0432\u0438 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0435\u0451 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f, \u0430 \u0435\u0451 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>split<\/code>. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043a\u043e\u0440\u043d\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442.<\/p>\n<pre><code class=\"cpp\">\/\/ Model Constructing Function for Tree std::function&lt;void(Model*)&gt; _construct = [&amp;](Model* h){    \/\/Basically Add Lines for the Tree!   std::function&lt;void(Branch*, glm::vec3)&gt; addBranch = [&amp;](Branch* b, glm::vec3 p){      glm::vec3 start = p;     glm::vec3 end   = p + glm::vec3(b-&gt;length*treescale[0])*b-&gt;dir;      \/\/Get Some Normal Vector     glm::vec3 x = glm::normalize(b-&gt;dir + glm::vec3(1.0, 1.0, 1.0));     glm::vec4 n = glm::vec4(glm::normalize(glm::cross(b-&gt;dir, x)), 1.0);      \/\/Add the Correct Number of Indices     glm::mat4 r = glm::rotate(glm::mat4(1.0), PI\/ringsize, b-&gt;dir);      \/\/Index Buffer     int _b = h-&gt;positions.size()\/3;      \/\/GL TRIANGLES     for(int i = 0; i &lt; ringsize; i++){       \/\/Bottom Triangle       h-&gt;indices.push_back(_b+i*2+0);       h-&gt;indices.push_back(_b+(i*2+2)%(2*ringsize));       h-&gt;indices.push_back(_b+i*2+1);       \/\/Upper Triangle       h-&gt;indices.push_back(_b+(i*2+2)%(2*ringsize));       h-&gt;indices.push_back(_b+(i*2+3)%(2*ringsize));       h-&gt;indices.push_back(_b+i*2+1);     }      for(int i = 0; i &lt; ringsize; i++){        h-&gt;positions.push_back(start.x + b-&gt;radius*treescale[1]*n.x);       h-&gt;positions.push_back(start.y + b-&gt;radius*treescale[1]*n.y);       h-&gt;positions.push_back(start.z + b-&gt;radius*treescale[1]*n.z);       h-&gt;normals.push_back(n.x);       h-&gt;normals.push_back(n.y);       h-&gt;normals.push_back(n.z);       n = r*n;        h-&gt;positions.push_back(end.x + taper*b-&gt;radius*treescale[1]*n.x);       h-&gt;positions.push_back(end.y + taper*b-&gt;radius*treescale[1]*n.y);       h-&gt;positions.push_back(end.z + taper*b-&gt;radius*treescale[1]*n.z);       h-&gt;normals.push_back(n.x);       h-&gt;normals.push_back(n.y);       h-&gt;normals.push_back(n.z);       n = r*n;      }      \/\/No children     if(b-&gt;leaf) return;      addBranch(b-&gt;A, end);     addBranch(b-&gt;B, end);   };    \/\/Recursively add Branches (at origin!)   addBranch(root, glm::vec3(0.0)); };<\/code><\/pre>\n<p>  \u041c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0441\u0442\u0430 \u043e\u0431\u0451\u0440\u043d\u0443\u0442\u0430 \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0443\u044e \u0434\u0435\u0440\u0435\u0432\u043e \u0432 \u0446\u0432\u0435\u0442\u0435 \u0438 \u0441 \u0440\u0430\u0441\u0447\u0451\u0442\u043e\u043c \u0442\u0435\u043d\u0435\u0439. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0440\u043e\u0441\u0442\u0430, \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0435\u0440\u0435\u0432\u0430.<\/p>\n<div class=\"oembed\"><iframe id=\"5f9f5db12c0608e1441a405d\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9f5db12c0608e1441a405d\"><\/iframe><\/div>\n<p>  <i>\u041f\u0440\u0438\u043c\u0435\u0440 GUI \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u044b\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f.<\/i><\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043e\u0445\u043e\u0436\u0435\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438 \u043a \u0434\u0435\u0440\u0435\u0432\u044c\u044f\u043c \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u0438\u0441\u0442\u044c\u044f. \u041e\u0431\u043b\u0430\u043a\u043e \u0447\u0430\u0441\u0442\u0438\u0446 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0432\u0441\u0435\u0445 \u0432\u0435\u0442\u0432\u0435\u0439, \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0432\u0435\u0442\u0432\u044c\u044e \u043b\u0438\u0441\u0442\u044c\u0435\u0432 (\u043d\u0438\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0433\u043b\u0443\u0431\u0438\u043d\u044b). \u041b\u0438\u0441\u0442\u044c\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 ID \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u0434\u043b\u044f \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u043a\u0430 \u0442\u043e\u0447\u0435\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439.<\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0440\u0430\u0441\u0442\u0438\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u043e, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 \u0432\u0435\u0442\u0432\u044c \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <code>root<\/code> \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e \u043d\u0435\u043c\u0443 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u043e \u0440\u043e\u0441\u043b\u043e:<\/p>\n<pre><code class=\"cpp\">int main( int argc, char* args[] ) {    \/\/...    Branch* root;   root = new Branch({0.6, 0.45, 2.5}); \/\/Create Root    \/\/...    while(true){ \/\/Not the actual game loop...     if(!paused)       root-&gt;grow(growthrate);   } \t\t   \/\/...    return 0; }<\/code><\/pre>\n<p>  \u042d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0441\u0442\u0430 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f! \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u00ab\u0432\u0438\u0434\u0430\u00bb \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u043d\u0438\u0436\u0435:<\/p>\n<div class=\"oembed\"><iframe id=\"5f9f5db2d4323713fd415884\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9f5db2d4323713fd415884\"><\/iframe><\/div>\n<p>  <i>\u0412\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u043e\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u0435\u0441\u043b\u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443.<\/i><\/p>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u044e \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0438\u0434\u044b. \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0435 \u0432\u0435\u0447\u043d\u043e\u0437\u0435\u043b\u0451\u043d\u044b\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f:<\/p>\n<div class=\"oembed\"><iframe id=\"5f9f5db4905dc4e15aeed7a9\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9f5db4905dc4e15aeed7a9\"><\/iframe><\/div>\n<p>  <i>\u0420\u043e\u0441\u0442 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0432\u0435\u0447\u043d\u043e\u0437\u0435\u043b\u0451\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u0432\u044b\u0431\u0440\u0430\u0432 \u0434\u043b\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u043e\u0447\u0435\u043d\u044c \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u0421\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0441\u043f\u0440\u0430\u0439\u0442 \u043b\u0438\u0441\u0442\u044c\u0435\u0432, \u043d\u043e \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439.<\/i><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044e \u043a \u043f\u0440\u044f\u043c\u043e\u043c\u0443 \u0438\u043b\u0438 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0440\u043e\u0441\u0442\u0443 \u0432\u0435\u0442\u0432\u0435\u0439 \u0438 \u0441\u0438\u043b\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043b\u0438\u0441\u0442\u044c\u0435\u0432. \u042d\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432, \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0431\u043e\u043d\u0441\u0430\u0439 (\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0449\u0438\u0445!):<\/p>\n<div class=\"oembed\"><iframe id=\"5f9f5db5cb79a1e12d6663fd\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f9f5db5cb79a1e12d6663fd\"><\/iframe><\/div>\n<p>  <i>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u0435\u0442\u0432\u0438 \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0438\u0437\u0431\u0435\u0433\u0430\u044e\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u043b\u0438\u0441\u0442\u044c\u0435\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044e \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0434\u0435\u0440\u0435\u0432\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043d\u0435\u0440\u043e\u0432\u043d\u044b\u043c \u0441 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u043c\u0438 \u0443\u0433\u043b\u0430\u043c\u0438. \u041f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u0435\u0440\u0435\u0432\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u0438 \u043a \u0437\u0435\u043c\u043b\u0435.<\/i><\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0432\u0435\u0442\u0432\u0435\u0439 \u0441 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u2014 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u043e\u043f\u0440\u043e\u0441 \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0439 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b\u0431\u043e\u0440\u0430 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432 \u0438 \u0446\u0432\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u0447\u0430\u0441\u0442\u0438\u0446 \u043b\u0438\u0441\u0442\u044c\u0435\u0432 \u0438 \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0440\u043e\u0441\u0442\u0430.<\/p>\n<p>  \u041a\u0430\u0436\u0434\u043e\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0440\u0435\u0432\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0441\u0442\u0438 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u044f), \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438, \u043d\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438!<\/p>\n<h2>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/h2>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0448\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u044b\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0442\u0430\u0434\u0438\u044f\u0445 \u0440\u043e\u0441\u0442\u0430 \u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 \u043f\u0440\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u044a\u0451\u043c\u0435 \u043a\u043e\u0434\u0430 \u0438 \u0442\u0440\u0430\u0442\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u043d\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u2014 \u043f\u043e\u043b\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0434\u0435\u0440\u0435\u0432\u0430. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 \u00ab\u0437\u0430\u043f\u0435\u0447\u0435\u043d\u0430\u00bb \u0432 \u043c\u043e\u0434\u0435\u043b\u044c, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0433\u0440\u044b \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a, \u043a\u0430\u043a \u0440\u043e\u0441\u0442 \u0444\u0440\u0443\u043a\u0442\u043e\u0432, \u0432\u0437\u0431\u0438\u0440\u0430\u043d\u0438\u0435, \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0438 \u0442.\u043f.<\/p>\n<p>  \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d\u043e \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u0439 \u043e \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432. \u042f \u043d\u0430\u0434\u0435\u044f\u043b\u0441\u044f, \u0447\u0442\u043e \u0441\u043c\u043e\u0433\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u043e \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0438 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0432\u0435\u0449\u0435\u0441\u0442\u0432, \u043d\u043e \u043c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u044d\u0442\u043e \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u0435\u0433\u043e \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c\u044e, \u0430 \u043d\u0435 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438.<\/p>\n<p>  \u041c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0432 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0432\u0438\u0434\u0430\u043c\u0438 \u0432\u0435\u0442\u0432\u0435\u0439, \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0449\u0438\u043c\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0442\u0438\u043f\u044b \u0432\u0435\u0442\u0432\u0435\u0439 (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e L-\u0441\u0438\u0441\u0442\u0435\u043c\u0435) \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043b\u0438\u0441\u0442\u044c\u0435\u0432 \u043d\u0430 \u0440\u043e\u0441\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432\u0435\u0442\u0432\u0438 (\u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432). \u0414\u043b\u044f \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430, \u0447\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043b\u0438\u0441\u0442\u044c\u044f\u043c \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u00ab\u0440\u0430\u0441\u0446\u0432\u0435\u0442\u0430\u0442\u044c\u00bb.<\/p>\n<p>  \u0423\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0440\u043e\u0441\u0442\u0430 \u0432 \u0432\u0435\u0442\u0432\u0438 \u043c\u043e\u0436\u0435\u0442 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043c, \u043e\u0434\u043d\u0430\u043a\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043d\u0438\u0447\u0442\u043e\u0436\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/525886\/\"> https:\/\/habr.com\/ru\/post\/525886\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kb\/cl\/ao\/kbclao-bpha3kzy0epnhzufftio.gif\"><\/div>\n<p>  <\/p>\n<blockquote><p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 \u043c\u043e\u0439 Github [<a href=\"https:\/\/github.com\/weigert\/TinyEngine\/tree\/master\/examples\/6_Tree\" rel=\"nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>].<\/p><\/blockquote>\n<p>  \u042f \u043f\u0440\u043e\u0432\u0451\u043b \u0432\u0441\u0451 \u043b\u0435\u0442\u043e \u0432 \u0432\u043e\u0441\u0442\u043e\u0447\u043d\u043e\u0439 \u041f\u0435\u043d\u0441\u0438\u043b\u044c\u0432\u0430\u043d\u0438\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0440\u0435\u043a\u043e\u0439 \u0414\u0435\u043b\u0430\u0432\u0435\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u0430\u043c\u043f\u0443\u0441 MIT \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0430\u0440\u0442\u0430 \u0437\u0430\u043a\u0440\u044b\u043b\u0438 \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0435\u0445\u0430\u0442\u044c \u0434\u043e\u043c\u043e\u0439. \u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0433\u0443\u043b\u0438\u0432\u0430\u044f\u0441\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u0434\u043e\u043c\u043e\u043c \u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u044f \u0437\u0430\u0445\u043e\u0434\u0438\u043b \u0432 \u043b\u0435\u0441\u0430, \u0438 \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043f\u043e\u0434\u043c\u0435\u0442\u0438\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f:<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u0430\u044f \u0432\u0435\u0442\u0432\u044c \u0434\u0435\u0440\u0435\u0432\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f, \u0441\u0443\u043c\u043c\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0435\u0439 \u043f\u043e\u043f\u0435\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u042d\u0442\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e <a href=\"https:\/\/en.wikipedia.org\/wiki\/Patterns_in_nature#cite_note-6\" rel=\"nofollow\">\u0434\u0430 \u0412\u0438\u043d\u0447\u0438<\/a>. \u042f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c, \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0435\u0439 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u043e\u0441\u0442\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043d\u0430\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0435\u0439 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u044d\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0449\u0438\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u0435\u0439.<\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0448\u0438 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 <strong>\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u0440\u043e\u0441\u0442\u0430<\/strong> \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0440\u0430\u0442\u043e\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432!  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312414","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312414"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312414\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}