glotzerlab / glotzerlab/coxeter

Improve IO module

Open
#272 0 comments 0 reactions 1 assignee View on GitHub

@josephburkhart is already working on this.

Since Aug 19, 2025.

Dominant language
Python
Stars
25
Forks
5
Avg merge
9m
Merged PRs (30d)
3

Description

The io module could use the following improvements:

  1. The module's name suggests it is for both importing and exporting geometries, but currently it only supports exporting. We should allow users to import geometries from the same file formats, within reason.
  2. The module currently only supports exporting from instances of Polyhedron and its children. It would be nice to extend this functionality to Sphere and ConvexSpheropolyhedron. Additionally, we should consider whether it would be useful to extend this functionality to 2D, perhaps by adding support for barebones rendering to SVG.

It makes sense to work on item 2 only after completing #273 , since extending export functionality to rounded shapes requires implementing some kind of tessellation algorithm.

Contributor guide

Open the contributing guide

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.