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 (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 <drc/length.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 (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.

What a via adds to a net's length (drc/length.hpp, where KiCad's length check lives).

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 18 of file length.hpp.

Member Function Documentation

◆ between()

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

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

Member Data Documentation

◆ from

Definition at line 19 of file length.hpp.

◆ to

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

Definition at line 19 of file length.hpp.


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