示例#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(Line_CSPtr line, Circle_CSPtr circle) {
    visit(std::make_shared<Arc>(circle->center(), circle->radius(), 0., M_PI * 2., line->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());
    }
}