Skip to content

GerberSockets assignment to a module #18

@mac-aron

Description

@mac-aron

The current approach to assigning GerberSockets to a module based on the (X, Y) position of the module is bad.

Currently the backend does GerberSocket assignment in this order

  1. All modules are transformed and positioned using Gerbonara
  2. Backend merges all GerberSockets.gbr files from each module
  3. From this merged GerberSockets.gbr, it extracts all GerberSockets
  4. Attempts to assign sockets to a module based on (X, Y) and the module centre

Instead, Sockets should be immiediately assigned to a Module.

  1. Extract sockets for each module, immediately assigning them to a Module object
  2. Transform the Module object, and then merge, etc.

This way we would avoid "guessing" that a particular GerberSocket belongs to a particular Module. This would also allow us to have sockets that are not necessarily aligned on the X-axis or Y-axis.

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