mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Ported is_solid() and is_bridge() to XS. Also ported (but not used yet) group() to SurfaceCollection::group()
This commit is contained in:
parent
de9d5403e8
commit
878d587196
6 changed files with 68 additions and 22 deletions
|
@ -2,14 +2,30 @@
|
|||
#define slic3r_SurfaceCollection_hpp_
|
||||
|
||||
#include "Surface.hpp"
|
||||
#include <vector>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
struct t_surface_group_key {
|
||||
SurfaceType surface_type;
|
||||
double thickness;
|
||||
unsigned short thickness_layers;
|
||||
double bridge_angle;
|
||||
|
||||
bool operator< (const t_surface_group_key &key) const {
|
||||
return (this->surface_type < key.surface_type)
|
||||
|| (this->thickness < key.thickness)
|
||||
|| (this->thickness_layers < key.thickness_layers)
|
||||
|| (this->bridge_angle < key.bridge_angle);
|
||||
}
|
||||
};
|
||||
|
||||
class SurfaceCollection
|
||||
{
|
||||
public:
|
||||
Surfaces surfaces;
|
||||
void simplify(double tolerance);
|
||||
void group(std::vector<Surfaces> &retval, bool merge_solid = false) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue