/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/qa/libs/kimath/geometry/ |
H A D | fixtures_geometry.h | 164 oline0.Append( SHAPE_ARC( { 582000, 232000 }, { 614000, 354000 }, { 450000, 436000 }, 0 ) ); in CommonTestData() 172 o0h1.Append( SHAPE_ARC( { 342000, 576000 }, { 436000, 552000 }, { 474000, 622000 }, 0 ) ); in CommonTestData() 173 o0h1.Append( SHAPE_ARC( { 474000, 622000 }, { 534000, 520000 }, { 518000, 470000 }, 0 ) ); in CommonTestData() 178 o0h2.Append( SHAPE_ARC( { 680000, 286000 }, { 728000, 306000 }, { 760000, 258000 }, 0 ) ); in CommonTestData() 179 o0h2.Append( SHAPE_ARC( { 760000, 258000 }, { 746000, 222000 }, { 686000, 260000 }, 0 ) ); in CommonTestData() 195 o1h1.Append( SHAPE_ARC( { 642000, 576000 }, { 736000, 652000 }, { 774000, 622000 }, 0 ) ); in CommonTestData() 196 o1h1.Append( SHAPE_ARC( { 774000, 622000 }, { 834000, 520000 }, { 818000, 470000 }, 0 ) ); in CommonTestData() 201 o1h2.Append( SHAPE_ARC( { 680000, 286000 }, { 728000, 306000 }, { 760000, 258000 }, 0 ) ); in CommonTestData() 202 o1h2.Append( SHAPE_ARC( { 760000, 258000 }, { 746000, 222000 }, { 686000, 260000 }, 0 ) ); in CommonTestData() 215 o2h2.Append( SHAPE_ARC( { 680000, 486000 }, { 728000, 506000 }, { 760000, 458000 }, 0 ) ); in CommonTestData() [all …]
|
H A D | test_shape_arc.cpp | 117 SHAPE_ARC* new_arc = dynamic_cast<SHAPE_ARC*>( new_shape.get() ); in CheckArc() 130 auto arc = SHAPE_ARC(); in BOOST_AUTO_TEST_CASE() 472 const auto this_arc = SHAPE_ARC{ seg1, seg2, in BOOST_AUTO_TEST_CASE() 476 CheckArc( this_arc, props, SHAPE_ARC::MIN_PRECISION_IU ); in BOOST_AUTO_TEST_CASE() 532 SHAPE_ARC this_arc; in BOOST_AUTO_TEST_CASE() 601 SHAPE_ARC arc( c.m_geom.m_center_point, c.m_geom.m_start_point, in BOOST_AUTO_TEST_CASE() 666 SHAPE_ARC arc( c.m_geom.m_center_point, c.m_geom.m_start_point, in BOOST_AUTO_TEST_CASE() 706 SHAPE_ARC GenerateArc() const in GenerateArc() 787 0.1 - PcbIu2mm( SHAPE_ARC::MIN_PRECISION_IU ), 808 SHAPE_ARC arc1( c.m_arc1.GenerateArc() ); in BOOST_AUTO_TEST_CASE() [all …]
|
H A D | test_shape_line_chain.cpp | 52 SHAPE_LINE_CHAIN arc_insert2( SHAPE_ARC( VECTOR2I( 0, 500 ), VECTOR2I( 0, 400 ), 180.0 ) ); in BOOST_AUTO_TEST_CASE() 62 base_chain.Insert( 0, SHAPE_ARC( VECTOR2I( 0, -100 ), VECTOR2I( 0, -200 ), 1800 ) ); in BOOST_AUTO_TEST_CASE() 83 base_chain.Append( SHAPE_ARC( VECTOR2I( 200000, 0 ), VECTOR2I( 300000, 100000 ), 180.0 ) ); in BOOST_AUTO_TEST_CASE() 201 SHAPE_ARC arc( VECTOR2I( 200000, 0 ), VECTOR2I( 300000, 0 ), 180.0 ); in BOOST_AUTO_TEST_CASE() 274 SHAPE_ARC firstArc( VECTOR2I( 200000, 0 ), VECTOR2I( 300000, 0 ), 180.0 ); in BOOST_AUTO_TEST_CASE() 276 int tol = SHAPE_ARC::DefaultAccuracyForPCB(); // Tolerance for arc collisions in BOOST_AUTO_TEST_CASE() 302 SHAPE_ARC sliceArc0 = sliceResult.Arc( 0 ); in BOOST_AUTO_TEST_CASE() 333 SHAPE_ARC sliceArc0 = sliceResult.Arc( 0 ); in BOOST_AUTO_TEST_CASE() 365 SHAPE_ARC sliceArc0 = sliceResult.Arc( 0 ); in BOOST_AUTO_TEST_CASE() 395 SHAPE_ARC sliceArc0 = sliceResult.Arc( 0 ); in BOOST_AUTO_TEST_CASE() [all …]
|
H A D | test_shape_poly_set_arcs.cpp | 60 std::vector<SHAPE_ARC> originalArcs; in BOOST_AUTO_TEST_CASE() 69 std::vector<SHAPE_ARC> foundArcs; in BOOST_AUTO_TEST_CASE() 76 … []( const SHAPE_ARC& aA, const SHAPE_ARC& aB ) -> bool in BOOST_AUTO_TEST_CASE() 165 std::vector<SHAPE_ARC> arcBuffer; in BOOST_AUTO_TEST_CASE()
|
H A D | geom_test_utils.h | 250 SHAPE_ARC::DefaultAccuracyForPCB() ) ) in IsOutlineValid() 271 SHAPE_ARC lastArc = aChain.Arc( prevArcIdx ); in IsOutlineValid() 281 SHAPE_ARC currentArc = aChain.Arc( arcIdx ); in IsOutlineValid()
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/libs/kimath/src/geometry/ |
H A D | shape_arc.cpp | 43 SHAPE_ARC::SHAPE_ARC( const VECTOR2I& aArcCenter, const VECTOR2I& aArcStartPoint, in SHAPE_ARC() function in SHAPE_ARC 58 SHAPE_ARC::SHAPE_ARC( const VECTOR2I& aArcStart, const VECTOR2I& aArcMid, in SHAPE_ARC() function in SHAPE_ARC 67 SHAPE_ARC::SHAPE_ARC( const SEG& aSegmentA, const SEG& aSegmentB, int aRadius, int aWidth ) in SHAPE_ARC() function in SHAPE_ARC 172 SHAPE_ARC::SHAPE_ARC( const SHAPE_ARC& aOther ) in SHAPE_ARC() function in SHAPE_ARC 183 SHAPE_ARC& SHAPE_ARC::ConstructFromStartEndAngle( const VECTOR2I& aStart, const VECTOR2I& aEnd, in ConstructFromStartEndAngle() 201 SHAPE_ARC& SHAPE_ARC::ConstructFromStartEndCenter( const VECTOR2I& aStart, const VECTOR2I& aEnd, in ConstructFromStartEndCenter() 279 int SHAPE_ARC::Intersect( const SHAPE_ARC& aArc, std::vector<VECTOR2I>* aIpsBuffer ) const in Intersect() 298 void SHAPE_ARC::update_bbox() in update_bbox() 351 bool SHAPE_ARC::IsClockwise() const in IsClockwise() 578 void SHAPE_ARC::Reverse() in Reverse() [all …]
|
H A D | shape_collisions.cpp | 345 const SHAPE_ARC& arc = aB_line_chain->Arc( i ); in Collide() 483 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_RECT& aB, int aClearance, in Collide() 501 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_CIRCLE& aB, int aClearance, in Collide() 519 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_LINE_CHAIN& aB, int aClearance, in Collide() 566 const SHAPE_ARC& arc = aB.Arc( i ); in Collide() 591 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_SEGMENT& aB, int aClearance, in Collide() 609 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_LINE_CHAIN_BASE& aB, int aClearance, in Collide() 666 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_ARC& aB, int aClearance, in Collide() 941 return CollCase<SHAPE_ARC, SHAPE_RECT>( aA, aB, aClearance, aActual, aLocation, aMTV ); in collideSingleShapes() 944 … return CollCase<SHAPE_ARC, SHAPE_CIRCLE>( aA, aB, aClearance, aActual, aLocation, aMTV ); in collideSingleShapes() [all …]
|
H A D | direction_45.cpp | 82 SHAPE_ARC arc; in BuildInitialTrace() 191 SHAPE_ARC ca( arcCenter, aP0, 45 * rotationSign ); in BuildInitialTrace() 198 if( std::abs( endpoint.y - aP1.y ) < SHAPE_ARC::MIN_PRECISION_IU ) in BuildInitialTrace() 203 else if( std::abs( endpoint.x - aP1.x ) < SHAPE_ARC::MIN_PRECISION_IU ) in BuildInitialTrace() 250 SHAPE_ARC arc; in BuildInitialTrace()
|
H A D | shape_line_chain.cpp | 210 SHAPE_ARC& theArc = m_arcs[aArcIndex]; in amendArc() 213 SHAPE_ARC newArc; in amendArc() 260 SHAPE_ARC& currentArc = m_arcs[currArcIdx]; in splitArc() 262 SHAPE_ARC newArc1; in splitArc() 263 SHAPE_ARC newArc2; in splitArc() 411 const SHAPE_ARC& arc = Arc( i ); in Collide() 549 const SHAPE_ARC& arc = Arc( i ); in Collide() 592 for( SHAPE_ARC& arc : a.m_arcs ) in Reverse() 1095 SHAPE_ARC newArc; in Slice() 1146 SHAPE_ARC newArc; in Slice() [all …]
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/libs/kimath/include/geometry/ |
H A D | shape_arc.h | 35 class SHAPE_ARC : public SHAPE 39 SHAPE_ARC() : in SHAPE_ARC() function 75 SHAPE_ARC( const SEG& aSegmentA, const SEG& aSegmentB, int aRadius, int aWidth = 0 ); 77 SHAPE_ARC( const SHAPE_ARC& aOther ); 79 virtual ~SHAPE_ARC() {} in ~SHAPE_ARC() 83 return new SHAPE_ARC( *this ); in Clone() 95 SHAPE_ARC& ConstructFromStartEndAngle( const VECTOR2I& aStart, const VECTOR2I& aEnd, 147 int Intersect( const SHAPE_ARC& aArc, std::vector<VECTOR2I>* aIpsBuffer ) const; 182 SHAPE_ARC Reversed() const; 240 bool operator==( SHAPE_ARC const& aArc ) const [all …]
|
H A D | shape_line_chain.h | 187 SHAPE_LINE_CHAIN( const SHAPE_ARC& aArc, bool aClosed = false ) : 200 const std::vector<SHAPE_ARC>& aArcBuffer ); 419 const std::vector<SHAPE_ARC>& CArcs() const in CArcs() 529 void Append( const SHAPE_ARC& aArc ); 533 void Insert( size_t aVertex, const SHAPE_ARC& aArc ); 798 const SHAPE_ARC& Arc( size_t aArc ) const in Arc() 916 std::vector<SHAPE_ARC>& aArcBuffer ) const; 953 std::vector<SHAPE_ARC> m_arcs;
|
/dports/cad/horizon-eda/horizon-2.1.0/3rd_party/router/common/geometry/ |
H A D | shape_arc.cpp | 32 bool SHAPE_ARC::Collide( const SEG& aSeg, int aClearance ) const in Collide() 82 bool SHAPE_ARC::ConstructFromCorners( VECTOR2I aP0, VECTOR2I aP1, double aCenterAngle ) 96 bool SHAPE_ARC::ConstructFromCornerAndAngles( VECTOR2I aP0, 141 const VECTOR2I SHAPE_ARC::GetP1() const in GetP1() 154 const BOX2I SHAPE_ARC::BBox( int aClearance ) const in BBox() 202 bool SHAPE_ARC::Collide( const VECTOR2I& aP, int aClearance ) const in Collide() 209 double SHAPE_ARC::GetStartAngle() const in GetStartAngle() 218 double SHAPE_ARC::GetEndAngle() const in GetEndAngle() 230 double SHAPE_ARC::GetCentralAngle() const in GetCentralAngle() 235 int SHAPE_ARC::GetRadius() const in GetRadius() [all …]
|
H A D | shape_collisions.cpp | 304 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_RECT& aB, int aClearance, in Collide() 311 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_CIRCLE& aB, int aClearance, in Collide() 323 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_LINE_CHAIN& aB, int aClearance, in Collide() 330 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_SEGMENT& aB, int aClearance, in Collide() 337 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_SIMPLE& aB, int aClearance, in Collide() 344 static inline bool Collide( const SHAPE_ARC& aA, const SHAPE_ARC& aB, int aClearance, in Collide() 510 return CollCase<SHAPE_ARC, SHAPE_RECT>( aA, aB, aClearance, aNeedMTV, aMTV ); in CollideShapes() 513 return CollCase<SHAPE_ARC, SHAPE_CIRCLE>( aA, aB, aClearance, aNeedMTV, aMTV ); in CollideShapes() 519 return CollCase<SHAPE_ARC, SHAPE_SEGMENT>( aA, aB, aClearance, aNeedMTV, aMTV ); in CollideShapes() 522 return CollCase<SHAPE_ARC, SHAPE_SIMPLE>( aA, aB, aClearance, aNeedMTV, aMTV ); in CollideShapes() [all …]
|
/dports/cad/horizon-eda/horizon-2.1.0/3rd_party/router/include/geometry/ |
H A D | shape_arc.h | 33 class SHAPE_ARC : public SHAPE 36 SHAPE_ARC() : in SHAPE_ARC() function 39 SHAPE_ARC( const VECTOR2I& aArcCenter, const VECTOR2I& aArcStartPoint, 46 SHAPE_ARC( const SHAPE_ARC& aOther ) in SHAPE_ARC() function 55 ~SHAPE_ARC() {} in ~SHAPE_ARC() 59 return new SHAPE_ARC( *this ); in Clone()
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/pcbnew/router/ |
H A D | pns_arc.h | 43 ARC( const SHAPE_ARC& aArc, int aNet ) : in ARC() 50 ARC( const ARC& aParentArc, const SHAPE_ARC& aArc ) : in ARC() 60 ARC( const LINE& aParentLine, const SHAPE_ARC& aArc ) : in ARC() 114 SHAPE_ARC& Arc() { return m_arc; } in Arc() 115 const SHAPE_ARC& CArc() const { return m_arc; } in CArc() 118 SHAPE_ARC m_arc;
|
H A D | pns_meander.h | 190 void MakeArc( const SHAPE_ARC& aArc1, const SHAPE_ARC& aArc2 = SHAPE_ARC() ); 431 void AddArc( const SHAPE_ARC& aArc1, const SHAPE_ARC& aArc2 = SHAPE_ARC() ); 440 void AddArcAndPt( const SHAPE_ARC& aArc1, const VECTOR2I& aPt2 ); 449 void AddPtAndArc( const VECTOR2I& aPt1, const SHAPE_ARC& aArc2 );
|
H A D | pns_meander.cpp | 232 lc.Append( SHAPE_ARC( center, aP, ( aSide ? -90 : 90 ) ) ); in makeMiterShape() 577 void MEANDERED_LINE::AddArc( const SHAPE_ARC& aArc1, const SHAPE_ARC& aArc2 ) in AddArc() 588 void MEANDERED_LINE::AddArcAndPt( const SHAPE_ARC& aArc1, const VECTOR2I& aPt2 ) in AddArcAndPt() 590 SHAPE_ARC arc2( aPt2, aPt2, aPt2, 0 ); in AddArcAndPt() 596 void MEANDERED_LINE::AddPtAndArc( const VECTOR2I& aPt1, const SHAPE_ARC& aArc2 ) in AddPtAndArc() 598 SHAPE_ARC arc1( aPt1, aPt1, aPt1, 0 ); in AddPtAndArc() 616 void MEANDER_SHAPE::MakeArc( const SHAPE_ARC& aArc1, const SHAPE_ARC& aArc2 ) in MakeArc()
|
H A D | pns_solid.cpp | 74 const SHAPE_ARC* arc = static_cast<const SHAPE_ARC*>( aShape ); in buildHullForPrimitiveShape()
|
H A D | pns_utils.h | 41 const SHAPE_LINE_CHAIN ArcHull( const SHAPE_ARC& aSeg, int aClearance, int aWalkaroundThickness );
|
H A D | router_preview_item.cpp | 187 const SHAPE_ARC& arc = lineChain->CArcs()[s]; in drawLineChain() 356 const SHAPE_ARC* arc = static_cast<const SHAPE_ARC*>( aShape ); in drawShape()
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/qa/pns/ |
H A D | playground.cpp | 39 bool collideArc2Arc( const SHAPE_ARC& a1, const SHAPE_ARC& a2, int clearance, SEG& minDistSeg ) in collideArc2Arc() 157 std::vector<SHAPE_ARC> arcs; in playground_main_func() 166 SHAPE_ARC arc( VECTOR2D( Millimeter2iu( d.cx ), Millimeter2iu( d.cy ) ), in playground_main_func() 232 SHAPE_ARC arc( VECTOR2I( 206000000, 140110000 ), VECTOR2I( 201574617, 139229737 ), in drawShapes()
|
H A D | pns_log_viewer_frame.h | 88 void Arc( const SHAPE_ARC& arc );
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/include/plotters/ |
H A D | plotter_gerber.h | 32 class SHAPE_ARC; variable 75 virtual void Arc( const SHAPE_ARC& aArc ) override; 276 void plotArc( const SHAPE_ARC& aArc, bool aPlotInRegion );
|
H A D | plotter.h | 44 class SHAPE_ARC; variable 241 virtual void Arc( const SHAPE_ARC& aArc );
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/pcbnew/tools/ |
H A D | pcb_grid_helper.h | 53 VECTOR2I AlignToArc ( const VECTOR2I& aPoint, const SHAPE_ARC& aSeg );
|