Пример #1
0
// 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);
}
Пример #2
0
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()));
}
Пример #3
0
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());
    }
}