CADEntity_CSPtr Line::move(const geo::Coordinate& offset) const {
auto newLine = std::make_shared<Line>(this->start() + offset, this->end() + offset, layer());
newLine->setID(this->id());
return newLine;
}
Start point and end point are modified, and layer/ID are conserved, but not MetaInfo
CADEntity_CSPtr Line::move(const geo::Coordinate& offset) const {
auto newLine = std::make_shared<Line>(this->start() + offset, this->end() + offset, layer(), metaInfo());
newLine->setID(this->id());
return newLine;
}
Fixing them is easy but take time (each entity needs to be verified), for the moment I'll fix them when I need. That would be great if someone can help on this :)