PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • Cylinder.convert
          • Cylinder.convert()
    • Cylinder.convert
      • Cylinder.convert()
    Source

    Cylinder.convert¶

    Cylinder.convert(data, to_zero=True)¶

    This helper method rotates the given data to match the global central axis and translates it so that the center point is aligned.

    Parameters:
    datalist

    Data input

    to_zerobool

    True to convert data towards zero axis, False to convert data from zero axis to central axis.

    Returns:
    datalist

    Converted input

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.