如何解决vtkOBJI导入到k3D的ID
如何使用概述here的方法从我从vtkOBJImporter传递的k3d场景对象访问obj的(g)ID。
(g)应该是组名。但是,一旦vtkOBJImporter导入了组名,我就找不到vtk的文档。
解决方法
从当前的源代码(https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Import/vtkOBJImporter.cxx#L275)看来,// When the page loads,make sure the already selected div is shown.
window.onload = function afterPageIsLoaded() {
showDiv();
}
function showDiv(element) {
// Create an array of all the hidden divs elements.
const hiddenDivs = [...document.querySelectorAll("div[id*='hidden_div']")];
// Loop over them and hide every one of them.
hiddenDivs.map(hiddenDiv => hiddenDiv.style.display = 'none');
// Get the selected id from the select.
const id = document.getElementById('test').value;
// Get the selected div and display it.
document.getElementById(id).style.display = 'block';
}
类型无法由g
处理。
随时打开功能请求(https://gitlab.kitware.com/vtk/vtk/-/issues/new?issue[assignee_id]=&issue[milestone_id]=)。甚至是合并请求:)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。