TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::route::ViaHeights Struct Reference

The length a via adds to its net in KiCad's length calculation, which its skew check uses (KiCad 10, BOARD_STACKUP::GetLayerDistance): the stackup between the two copper layers the via joins, with the copper of an outer layer in full and of an inner layer by half. More...

#include <route/bus.hpp>

Public Member Functions

Coord between (int a, int b) const
 copper indices, either order; 0 for a == b

Public Attributes

std::vector< Coord > from
std::vector< Coord > to
 per copper layer: where a via starting / ending on it begins / ends, nm from the top

Detailed Description

The length a via adds to its net in KiCad's length calculation, which its skew check uses (KiCad 10, BOARD_STACKUP::GetLayerDistance): the stackup between the two copper layers the via joins, with the copper of an outer layer in full and of an inner layer by half.

A board without a stackup block gets KiCad's default one (35 um copper, 10 um per solder mask, the rest of the board thickness shared evenly between the dielectrics). Empty (every via 0) when the project turns "use height for length calculations" off.

Definition at line 57 of file bus.hpp.

Member Function Documentation

◆ between()

Coord tmk::route::ViaHeights::between ( int a,
int b ) const

copper indices, either order; 0 for a == b

Member Data Documentation

◆ from

std::vector<Coord> tmk::route::ViaHeights::from

Definition at line 58 of file bus.hpp.

◆ to

std::vector<Coord> tmk::route::ViaHeights::to

per copper layer: where a via starting / ending on it begins / ends, nm from the top

Definition at line 58 of file bus.hpp.


The documentation for this struct was generated from the following file: