How to register a structure in nested show()
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 2.2k
- 派生
- 242
- 平均合并
- 11 分钟
- 30 天内合并 PR
- 1
描述
Hey there,
as I can read, there is the possibility to do a nested show. That means one can call the ps::show() function a second time. Now I don't seem to understand what I need to do in order to register strutures in the second show. As an example I currently have the following code
`
def callback():
if psim.Button("Show"):
ps.show()
ms = pymeshlab.MeshSet()
ms.load_new_mesh(os.getcwd()+"/Experiment-78/Experiment-78+curvature.ply")
vertices = ms.current_mesh().vertex_matrix()
faces = ms.current_mesh().face_matrix()
ps.set_invoke_user_callback_for_nested_show(True)
ps.register_surface_mesh("first mesh", vertices, faces)
(This example is in python but the structure is sufficiently similar). Currently when I press the button the surface mesh is registered in the first show. What do I need to do in order to get it in the second show?
(I am happy about a solution in either C++ or python)
I hope you get what I mean
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用提供的回调示例跟踪 ps::show()、ps.set_invoke_user_callback_for_nested_show() 和 ps.register_surface_mesh() 入口点。确认嵌套显示所需的注册顺序,然后验证按下“Show”后,第二个显示中会显示表面网格。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, python
- 领域
- api, computer-graphics
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100