Add still-alive checks for structures
还没有人认领这个 Issue。
评估
调研方向
The issue provides no file or test path. Start by reproducing the point-cloud example and trace the Python structure handle methods, including add_scalar_quantity() and the removal path. Done means removed structures and quantities raise an informative Python error instead of segfaulting, across the affected structure types.
由索引模型根据 Issue 内容生成。
描述
Right now the following code results in segfault:
import polyscope as ps
import numpy as np
ps.init()
cloud = ps.register_point_cloud("my cloud", np.random.rand(100,3))
ps.remove_point_cloud("my cloud")
cloud.add_scalar_quantity("my scalar", np.random.rand(100)) # boom!
(the same applies for all structures/quantities)
The solution is that add_scalar_quantity() should first check if the underlying point cloud still exists, and if not throw an informative Python error. There are a couple possible ways to implement this; we could check by name, or just set some flag in the python point cloud handle object.
- 主要语言
- C++
- 星标
- 53
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nmwsharp/polyscope-py 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
nmwsharp/polyscope-py#56 ·
-
Imgui Bundle 未关闭
难度 5/5 一周以上 新手友好度 25/100
nmwsharp/polyscope-py#44 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
nmwsharp/polyscope-py#41 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
nmwsharp/polyscope-py#39 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 25/100
nmwsharp/polyscope-py#36 · 1 个 reaction ·
查看 nmwsharp/polyscope-py 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 75/100
ros2/message_filters#338 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
subsurface/subsurface#4984 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·