Add assignment of Edge_property which does NOT copy order (which seems to be a bug but makes the test hang)

This commit is contained in:
Andreas Fabri 2024-04-04 07:52:32 +01:00
parent fc8243f75e
commit 6698875087
1 changed files with 11 additions and 0 deletions

View File

@ -64,7 +64,18 @@ public:
std::map<std::size_t, Kinetic_interval> intervals; // Maps support plane index to the kinetic interval. std::pair<FT, FT> is the barycentric coordinate and intersection time.
Edge_property() : line(std::size_t(-1)), order(edge_counter++) { }
Edge_property(const Edge_property& e) = default;
const Edge_property& operator=(const Edge_property& other) {
line = other.line;
// order = other.order;
faces = other.faces;
planes = other.planes;
crossed = other.crossed;
intervals = other.intervals;
return *this;
}
private:
static std::size_t edge_counter;
};