Internal unit system
The internal unit system of kicad shall be implemented as 1nm (one
nanometer). A nanometer-scale internal unit enables the _exact_
representation of metric units _and_ imperial down to 1/100 (one
hundredth) mil.
Preferrably, support for nanometer-scaling would be provided by
conditional compilation. A flag would be added to CMakeLists.txt to
enable conditional compilation for nanometer support. Once support
reaches a stable and usable state, old code may be removed.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Vovanium
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Vovanium
- Completed by
- Miguel Angel Ajo
Whiteboard
Brian already has some work done on this here:
https:/
Now Vovanium working on 1nm scale.
length classes are
LENGTH_PCB
VECTOR_PCB
which are defined in "include/
Compilation with 1nm unit is enabled by setting KICAD_NANOMETRE flag to TRUE. Note the code is very experimental, do not use it in critical applications.