Skip to content

Conversion between Box and DBox #2330

@olcc

Description

@olcc

Hello,
I expect Box to live in the dbu world, and DBox to live in the um world, but describe the same entity.
Therefore, I expect pya.Box(pya.DBox(5)).width() to give 5000 if the dbu is 1 nm, but it gives 6 (which is weird).
In the same way, I expect pya.DBox(pya.Box(5000)).width() to give 5 if the dbu is 1 nm, but it gives 5000.0.
Olivier

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions