nmwsharp / nmwsharp/polyscope

How to register a structure in nested show()

Đang mở
#172 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C++
Star
2.2k
Fork
242
Merge trung bình
11 phút
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách truy vết các điểm vào ps::show(), ps.set_invoke_user_callback_for_nested_show() và ps.register_surface_mesh() bằng ví dụ callback được cung cấp. Xác nhận chuỗi đăng ký bắt buộc cho một lần hiển thị lồng nhau, sau đó kiểm tra rằng việc nhấn “Show” sẽ hiển thị surface mesh trong lần hiển thị thứ hai.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp, python
Lĩnh vực
api, computer-graphics
Loại issue
Tài liệu
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.