TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
copper.hpp File Reference

Copper items with exact shapes, built from the board model, for DRC and routing obstacles. More...

#include <vector>
#include "geom/shape.hpp"
#include "model/board.hpp"

Go to the source code of this file.

Classes

struct  tmk::drc::CopperItem
struct  tmk::drc::Hole
struct  tmk::drc::CopperModel

Namespaces

namespace  tmk
namespace  tmk::drc

Enumerations

enum class  tmk::drc::ItemKind : std::uint8_t {
  tmk::drc::Pad , tmk::drc::Track , tmk::drc::Arc , tmk::drc::Via ,
  tmk::drc::Zone , tmk::drc::Graphic
}

Functions

const char * tmk::drc::kind_name (ItemKind k)
 KiCad expression type names: Pad, Track, Arc, Via, Zone, Graphic.
std::vector< geom::Shape > tmk::drc::pad_shapes (const model::Pad &pad)
 Pad copper shape in absolute coordinates.
CopperModel tmk::drc::build_copper (const model::Board &b)
std::vector< std::vector< model::Point > > tmk::drc::edge_loops (const std::vector< geom::Shape > &edges, Coord tol=2 '000, bool *all_closed=nullptr)
 Closed loops chained from Edge.Cuts pieces whose ends meet within tol; pieces that close no loop are dropped (all_closed, if given, tells whether any was).

Detailed Description

Copper items with exact shapes, built from the board model, for DRC and routing obstacles.

Definition in file copper.hpp.