{"size": 8941, "ext": "js", "max_stars_repo_path": "ForumArchive/acc/post_22484_page_1.js", "max_stars_repo_name": "doc22940/Extensions", "max_stars_repo_stars_event_min_datetime": "2015-01-01T17:33:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-26T16:38:08.000Z", "max_issues_repo_path": "ForumArchive/acc/post_22484_page_1.js", "max_issues_repo_name": "doc22940/Extensions", "max_issues_repo_issues_event_min_datetime": "2015-06-20T00:39:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T22:55:27.000Z", "max_forks_repo_path": "ForumArchive/acc/post_22484_page_1.js", "max_forks_repo_name": "doc22940/Extensions", "max_forks_repo_forks_event_min_datetime": "2015-04-29T09:50:11.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-18T09:20:44.000Z"}
{"max_stars_count": 136, "max_issues_count": 60, "max_forks_count": 141, "avg_line_length": 8941.0, "max_line_length": 8941, "alphanum_fraction": 0.8386086567}
[{"Owner":"mwpowellhtx","Date":"2016-05-10T20:54:34Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI want to update the vertices of a lines mesh after it has been created. On a sphere_co_ by contrast_co_ I can do so fairly simply_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_mySphere.position.x _eq_ myX_sm_\nmySphere.position.z _eq_ myZ_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tBut there does not appear to be anything like that for lines mesh_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_// myLines.positions is undefined ????\nmyLines.positions[0].x _eq_ myPositions[0].x_sm_\nmyLines.positions[0].z _eq_ myPositions[0].z_sm_\nmyLines.positions[1].x _eq_ myPositions[1].x_sm_\nmyLines.positions[1].z _eq_ myPositions[1].z_sm_\n// myLines._positions is null ????\nmyLines._positions[0].x _eq_ myPositions[0].x_sm_\nmyLines._positions[0].z _eq_ myPositions[0].z_sm_\nmyLines._positions[1].x _eq_ myPositions[1].x_sm_\nmyLines._positions[1].z _eq_ myPositions[1].z_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tIs the only way to make the mesh updatable and send a new array of points in via the options? Doable_co_ but it_t_s more of a pain_co_ IMO.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tInsight appreciated. Thanks!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"mwpowellhtx","Date":"2016-05-10T20:59:38Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tThe nearest thing I can see potentially being able to do this is_co_ _lt_em_gt_line._geometry.setIndices_lt_/em_gt__co_ but with the underscore_co_ I am hesitant to accept that without knowing a bit more about the context.\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-05-10T21:18:45Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHum...I think there is a misunderstanding here.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThis does not change the geometry but just the position of the mesh_dd_\n_lt_/p_gt_\n\n_lt_pre_gt_\n_lt_code_gt_mySphere.position.x _eq_ myX_sm_\nmySphere.position.z _eq_ myZ_sm__lt_/code_gt__lt_/pre_gt_\n\n_lt_p_gt_\n\tTo change the inner vertex buffer_co_ you have to use mesh.getVerticesData.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThis article uses it extensively _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/tutorials/How_to_Merge_Meshes_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/tutorials/How_to_Merge_Meshes_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAnd you can find tons of samples in the PG_dd__lt_a href_eq__qt_http_dd_//doc.babylonjs.com/playground?q_eq_getVerticesData_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/playground?q_eq_getVerticesData_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"adam","Date":"2016-05-10T21:38:36Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\t_lt_a href_eq__qt_https_dd_//www.google.com/search?q_eq_update+linesmesh+babylonjs&amp_sm_oq_eq_update+linesmesh+babylonjs&amp_sm_aqs_eq_chrome..69i57.17070j0j4&amp_sm_sourceid_eq_chrome&amp_sm_ie_eq_UTF-8_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.google.com/search?q_eq_update+linesmesh+babylonjs&amp_sm_oq_eq_update+linesmesh+babylonjs&amp_sm_aqs_eq_chrome..69i57.17070j0j4&amp_sm_sourceid_eq_chrome&amp_sm_ie_eq_UTF-8_lt_/a_gt_\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"mwpowellhtx","Date":"2016-05-10T21:48:09Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_128003_qt_ data-ipsquote-contentid_eq__qt_22484_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1462915125_qt_ data-ipsquote-userid_eq__qt_4442_qt_ data-ipsquote-username_eq__qt_Deltakosh_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t27 minutes ago_co_ Deltakosh said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tHum...I think there is a misunderstanding here.\n\t\t_lt_/p_gt_\n\n\t\t_lt_p_gt_\n\t\t\tThis does not change the geometry but just the position of the mesh_dd_\n\t\t_lt_/p_gt_\n\n\t\t_lt_pre_gt_\n\n_lt_code_gt_mySphere.position.x _eq_ myX_sm_\nmySphere.position.z _eq_ myZ_sm__lt_/code_gt__lt_/pre_gt_\n\n\t\t_lt_p_gt_\n\t\t\tTo change the inner vertex buffer_co_ you have to use mesh.getVerticesData.\n\t\t_lt_/p_gt_\n\n\t\t_lt_p_gt_\n\t\t\tThis article uses it extensively _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/tutorials/How_to_Merge_Meshes_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/tutorials/How_to_Merge_Meshes_lt_/a_gt_\n\t\t_lt_/p_gt_\n\n\t\t_lt_p_gt_\n\t\t\tAnd you can find tons of samples in the PG_dd__lt_a href_eq__qt_http_dd_//doc.babylonjs.com/playground?q_eq_getVerticesData_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/playground?q_eq_getVerticesData_lt_/a_gt_\n\t\t_lt_/p_gt_\n\n\t\t_lt_p_gt_\n\t\t\t \n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tPerhaps a misunderstanding of the vocabulary.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIn the case of the spheres_co_ I want to reposition them_sm_ that_t_s exactly what I need.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIn the case of the lines_co_ I expect to add vertices to it_co_ or remove vertices from it_sm_ at minimum_co_ wholesale replace the vertices_co_ but avoid replacing the mesh itself if I can help it.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Deltakosh","Date":"2016-05-10T23:03:51Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tOk I get your point _lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt_ /_gt__lt_/p_gt_\n\n_lt_p_gt_\n\tSo getVerticesData and updateVerticesData are the way to go\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"mwpowellhtx","Date":"2016-05-10T23:15:00Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\t_lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/4442-deltakosh/?do_eq_hovercard_qt_ data-mentionid_eq__qt_4442_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/4442-deltakosh/_qt_ rel_eq__qt__qt__gt_@Deltakosh_lt_/a_gt_ Alright_co_ so it sounds like a stupid question_co_ but when I want to update the _lt_em_gt_BABYLON.Vector3 _lt_/em_gt_points in the lines mesh_co_ which Kind do I use?\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"mwpowellhtx","Date":"2016-05-11T00:24:29Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tIf I call _lt_em_gt_BABYLON.MeshBuilder.CreateLines(...) _lt_/em_gt_having set the _lt_em_gt_{ updatable_dd_ true } _lt_/em_gt_option_co_ I should be able to call _lt_em_gt_CreateLines(...) _lt_/em_gt_with _lt_em_gt_{ points_dd_ [...]_co_ instance_dd_ l }_lt_/em_gt_. However_co_ I get several warnings piling up_co_ _lt_em_gt__qt_WebGL_dd_ INVALID_VALUE_dd_ bufferSubData_dd_ buffer overflow_qt__lt_/em_gt__co_ and when I interact with the lines to set their _lt_em_gt_visibility_lt_/em_gt__co_ I get an exception_dd_ _lt_em_gt__qt_Uncaught TypeError_dd_ Cannot read property _t_boundingSphere_t_ of undefined_qt__lt_/em_gt_.\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"adam","Date":"2016-05-11T01:14:12Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\t_lt_a href_eq__qt_http_dd_//www.babylonjs-playground.com/#24PQRQ_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//www.babylonjs-playground.com/#24PQRQ_lt_/a_gt_\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"jerome","Date":"2016-05-11T02:56:45Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tmaybe _dd_ _lt_a href_eq__qt_http_dd_//doc.babylonjs.com/tutorials/How_to_dynamically_morph_a_mesh#lines-and-dashedlines_qt_ rel_eq__qt_external nofollow_qt__gt_http_dd_//doc.babylonjs.com/tutorials/How_to_dynamically_morph_a_mesh#lines-and-dashedlines_lt_/a_gt_\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]