mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 01:14:00 +08:00
Just detect support layer via virtual function instead of relying on typeid to save the day.
This commit is contained in:
parent
82f227d718
commit
f21148e0d4
@ -137,6 +137,9 @@ class Layer {
|
|||||||
void detect_surfaces_type();
|
void detect_surfaces_type();
|
||||||
/// Processes the external surfaces
|
/// Processes the external surfaces
|
||||||
void process_external_surfaces();
|
void process_external_surfaces();
|
||||||
|
|
||||||
|
/// polymorphic id
|
||||||
|
virtual bool is_support() const { return false;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
size_t _id; ///< sequential number of layer, 0-based
|
size_t _id; ///< sequential number of layer, 0-based
|
||||||
@ -169,6 +172,9 @@ class SupportLayer : public Layer {
|
|||||||
/// Populated in SupportMaterial.pm in sub generate_toolpaths
|
/// Populated in SupportMaterial.pm in sub generate_toolpaths
|
||||||
ExtrusionEntityCollection support_interface_fills;
|
ExtrusionEntityCollection support_interface_fills;
|
||||||
|
|
||||||
|
/// polymorphic id
|
||||||
|
bool is_support() const override { return true;}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Constructor
|
/// Constructor
|
||||||
SupportLayer(size_t id, PrintObject *object, coordf_t height,
|
SupportLayer(size_t id, PrintObject *object, coordf_t height,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user