How to register a structure in nested show()
Nessuno ha ancora preso questa issue.
- Lingua principale
- C++
- Stelle
- 2.2k
- Fork
- 242
- Merge medio
- 11m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando i punti di ingresso ps::show(), ps.set_invoke_user_callback_for_nested_show() e ps.register_surface_mesh() utilizzando l’esempio di callback fornito. Conferma la sequenza di registrazione necessaria per una visualizzazione annidata, quindi verifica che premendo “Show” la mesh di superficie venga visualizzata nella seconda visualizzazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, python
- Ambito
- api, computer-graphics
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100