mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
OcctNoCleanTriangulation CacheShapes PermissiveShapeReuse setting; Cgal conditional copy during triangulation; occt cheaper check for triangulation existance #6712
This commit is contained in:
@@ -593,6 +593,24 @@ typedef item const* ptr;
|
||||
}
|
||||
};
|
||||
|
||||
struct equal_functor {
|
||||
bool operator()(taxonomy::item::ptr const& a,
|
||||
taxonomy::item::ptr const& b) const
|
||||
{
|
||||
if (a == b) {
|
||||
return true;
|
||||
}
|
||||
return !less(a, b) && !less(b, a);
|
||||
}
|
||||
};
|
||||
|
||||
struct hash_functor {
|
||||
size_t operator()(taxonomy::item::ptr const& a) const
|
||||
{
|
||||
return a->hash();
|
||||
}
|
||||
};
|
||||
|
||||
// @todo make 4d for easier multiplication
|
||||
template <size_t N>
|
||||
struct cartesian_base : public item, public eigen_base<Eigen::Vector3d> {
|
||||
|
||||
Reference in New Issue
Block a user