KiCad PCB EDA Suite
Loading...
Searching...
No Matches
graphic_trim.cpp File Reference
#include <tools/graphic_trim.h>
#include <board_item.h>
#include <geometry/circle.h>
#include <geometry/intersection.h>
#include <geometry/seg.h>
#include <geometry/shape_utils.h>
#include <pcb_shape.h>
#include <tools/board_item_geometry.h>
#include <algorithm>
#include <cmath>
#include <numbers>

Go to the source code of this file.

Classes

struct  TRIM_CUT
 
struct  TRIM_CARRIER
 The one curve the pointer is trimming. More...
 

Functions

static double arcParameter (const SHAPE_ARC &aSource, const VECTOR2I &aPoint)
 
static GRAPHIC_EDIT_REFUSAL buildCarrier (const PCB_SHAPE &aSource, const VECTOR2I &aPointer, TRIM_CARRIER &aCarrier)
 Fills aCarrier from aSource, or returns the reason it cannot.
 

Variables

static constexpr double PARAM_EPSILON = 1e-7
 A fraction of the carrier's own length. Same meaning at every scale.
 

Function Documentation

◆ arcParameter()

◆ buildCarrier()

Variable Documentation

◆ PARAM_EPSILON

double PARAM_EPSILON = 1e-7
staticconstexpr

A fraction of the carrier's own length. Same meaning at every scale.

Definition at line 35 of file graphic_trim.cpp.

Referenced by GRAPHIC_TRIM_PLANNER::Plan().