upxo.geoEntities.geoCmp module

Geometric comparison utilities for UPXO entities.

Usage

from upxo.geoEntities.geoCmp import cmp_edges, cmp_rings

Functions

cmp_edges : Compare two edge objects. cmp_muledges : Compare two multi-edge objects. cmp_rings : Compare two ring objects. cmp_xtals : Compare two crystal objects. cmp_pxtals : Compare two poly-crystal objects.

Limitations

  • All functions are stubs awaiting implementation.

upxo.geoEntities.geoCmp.cmp_edges(ref_edge, edge)[source]

Compare two edge objects for geometric equivalence.

Parameters:
  • ref_edge (edge2d) – Reference edge.

  • edge (edge2d) – Edge to compare against the reference.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.

upxo.geoEntities.geoCmp.cmp_muledges(ref_medge, medge)[source]

Compare two multi-edge objects for geometric equivalence.

Parameters:
  • ref_medge (muledge2d) – Reference multi-edge.

  • medge (muledge2d) – Multi-edge to compare against the reference.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.

upxo.geoEntities.geoCmp.cmp_rings(ref_ring, ring)[source]

Compare two ring objects for geometric equivalence.

Parameters:
  • ref_ring (ring2d) – Reference ring.

  • ring (ring2d) – Ring to compare against the reference.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.

upxo.geoEntities.geoCmp.cmp_xtals(ref_xal, xtal)[source]

Compare two crystal objects for geometric equivalence.

Parameters:
  • ref_xal (object) – Reference crystal.

  • xtal (object) – Crystal to compare against the reference.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.

upxo.geoEntities.geoCmp.cmp_pxtals(ref_pxtal, pxtal)[source]

Compare two poly-crystal objects for geometric equivalence.

Parameters:
  • ref_pxtal (object) – Reference poly-crystal.

  • pxtal (object) – Poly-crystal to compare against the reference.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.