// Circle void Intersect::visit(Circle_CSPtr circle, const geo::Vector& v) { visit(std::make_shared<Arc>(circle->center(), circle->radius(), 0., M_PI * 2., circle->layer()), v); }
void Intersect::visit(Circle_CSPtr circle, Line_CSPtr line) { visit(std::make_shared<Arc>(circle->center(), circle->radius(), 0., M_PI * 2., circle->layer()), geo::Vector(line->start(), line->end())); }
Circle::Circle(const Circle_CSPtr other, bool sameID) : CADEntity(other->layer(), other->metaTypes()), geo::Circle(other->center(), other->radius()) { if (sameID) { this->setID(other->id()); } }