Skip to content

Reducing unit cell to primitive transforms instead of removes redundant atoms. #2600

@brockdyer03

Description

@brockdyer03

Avogadro version:

  • Avogadrolibs: 1.103.0
  • Qt: 6.8.3

Desktop version: (please complete the following information):

  • OS: Fedora Linux
  • Version: 43

Describe the bug
Reducing a unit cell to its primitive form should remove any atoms that are not either inside of or the boundary of the new primitive cell, however currently atoms are wrapped into the primitive cell.
Image

To Reproduce
Steps to reproduce the behavior:

  1. Import any crystal or CIF file, I recommend halite.
  2. Select Reduce to Primitive in the "Crystal>Space Group" menu
  3. Use default tolerance
  4. See error

Expected behavior
I expect the unit cell to go from this:
Image

to this:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions