nmwsharp / nmwsharp/polyscope

Provide mechanism to load/store GUI settings

Open
#87 2 comments 2 reactions 1 assignee View on GitHub

@nmwsharp is already working on this.

Since Jan 11, 2021.

enhancement
Dominant language
C++
Stars
2.2k
Forks
242
Avg merge
11m
Merged PRs (30d)
1

Description

When iterating on the development of some algorithm, it's common to repeatedly re-load Polyscope; in some cases, the user has to set the same options over and over again (e.g., the camera, the ground plane, the mesh material, etc.).

Would be nice to have a mechanism for saying, "save the state now" (e.g., upon exit) and also for reading this state back in upon the next invocation of Polyscope. E.g., functions storeGuiState( filename ) and loadGuiState( filename ).

Implementing these methods would entail some kind of serialization of the GUI state. Easiest would be to just handle "global" state that does not refer to any specific data passed to Polyscope.

Even cooler would be to also store settings attached to individual named data items—and ignore these settings if these items cannot be found (or have different types) on load. Polyscope should make it feasible to do this, since data can be queried by name.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.