KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PATH_CONNECTION Struct Reference

#include <drc_creepage_utils.h>

Public Member Functions

bool isValid (const BOARD &aBoard, PCB_LAYER_ID aLayer, const std::vector< BOARD_ITEM * > &aBoardEdges, const std::vector< const BOARD_ITEM * > &aIgnoreForTest, SHAPE_POLY_SET *aOutline, const std::pair< bool, bool > &aTestLocalConcavity, int aMinGrooveWidth, TRACK_RTREE *aTrackIndex=nullptr) const
 Test if a path is valid.
 

Public Attributes

VECTOR2D a1
 
VECTOR2D a2
 
double weight = -1
 
bool m_show = true
 
bool m_forceA1concavityCheck = false
 
bool m_forceA2concavityCheck = false
 

Detailed Description

Definition at line 64 of file drc_creepage_utils.h.

Member Function Documentation

◆ isValid()

bool PATH_CONNECTION::isValid ( const BOARD & aBoard,
PCB_LAYER_ID aLayer,
const std::vector< BOARD_ITEM * > & aBoardEdges,
const std::vector< const BOARD_ITEM * > & aIgnoreForTest,
SHAPE_POLY_SET * aOutline,
const std::pair< bool, bool > & aTestLocalConcavity,
int aMinGrooveWidth,
TRACK_RTREE * aTrackIndex = nullptr ) const
inline

Test if a path is valid.

Check if a paths intersects the board edge or a track

Parameters
aBoardThe board (used as fallback if no track index provided)
aLayerThe layer to check
aBoardEdgesBoard edge items
aIgnoreForTestItems to ignore in intersection tests
aOutlineBoard outline polygon
aTestLocalConcavityConcavity test flags
aMinGrooveWidthMinimum groove width
aTrackIndexOptional spatial index for tracks (if nullptr, falls back to linear search)

Definition at line 88 of file drc_creepage_utils.h.

References a1, a2, SHAPE_POLY_SET::Contains(), Edge_Cuts, SHAPE_POLY_SET::Inflate(), SEG::Intersects(), CREEPAGE_TRACK_ENTRY::layer, PCB_TRACE_T, SHAPE_POLY_SET::PointOnEdge(), ROUND_ALL_CORNERS, CREEPAGE_TRACK_ENTRY::segment, SegmentIntersectsBoard(), SH_SEGMENT, VECTOR2< T >::SquaredEuclideanNorm(), and BOARD::Tracks().

Member Data Documentation

◆ a1

◆ a2

◆ m_forceA1concavityCheck

bool PATH_CONNECTION::m_forceA1concavityCheck = false

Definition at line 71 of file drc_creepage_utils.h.

◆ m_forceA2concavityCheck

bool PATH_CONNECTION::m_forceA2concavityCheck = false

Definition at line 72 of file drc_creepage_utils.h.

◆ m_show

bool PATH_CONNECTION::m_show = true

Definition at line 69 of file drc_creepage_utils.h.

◆ weight


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