How to register a structure in nested show()
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 2.2k
- Forks
- 242
- Ø Merge
- 11 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Einstiegspunkte ps::show(), ps.set_invoke_user_callback_for_nested_show() und ps.register_surface_mesh() anhand des bereitgestellten Callback-Beispiels nachzuverfolgen. Bestätige die erforderliche Registrierungssequenz für eine verschachtelte Anzeige und überprüfe anschließend, dass das Drücken von „Show“ das Oberflächenmesh in der zweiten Anzeige darstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, python
- Bereich
- api, computer-graphics
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100