jrl-umi3218 / sch-core

Implementation and computation algorithms for the convex hulls
BSD 2-Clause "Simplified" License
13 stars 16 forks source link

Add ::clone() to sch::S_Object #39

Closed gergondet closed 3 years ago

gergondet commented 3 years ago

This adds a virtual clone method to S_Object so the objects can be copied from a pointer to sch::S_Object

The method is tested by cloning the universe in the unit tests. It actually revealed an issue in the implementation of S_Polyhedron and STP_BV copy operators which is also fixed by this PR