1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: FeaturesPlugin_ExtrusionBoolean.h
4 // Created: 11 June 2015
5 // Author: Dmitry Bobylev
7 #ifndef FeaturesPlugin_ExtrusionBoolean_H_
8 #define FeaturesPlugin_ExtrusionBoolean_H_
10 #include <FeaturesPlugin_CompositeBoolean.h>
12 /** \class FeaturesPlugin_ExtrusionBoolean
15 class FeaturesPlugin_ExtrusionBoolean : public FeaturesPlugin_CompositeBoolean
18 /// Attribute name of an object from which the extrusion grows.
19 inline static const std::string& FROM_OBJECT_ID()
21 static const std::string MY_FROM_OBJECT_ID("from_object");
22 return MY_FROM_OBJECT_ID;
25 /// Attribute name of extrusion from size.
26 inline static const std::string& FROM_SIZE_ID()
28 static const std::string MY_FROM_SIZE_ID("from_size");
29 return MY_FROM_SIZE_ID;
32 /// attribute name of an object to which the extrusion grows.
33 inline static const std::string& TO_OBJECT_ID()
35 static const std::string MY_TO_OBJECT_ID("to_object");
36 return MY_TO_OBJECT_ID;
39 /// Attribute name of extrusion to size.
40 inline static const std::string& TO_SIZE_ID()
42 static const std::string MY_TO_SIZE_ID("to_size");
47 /// Init attributes for extrusion.
48 virtual void initMakeSolidsAttributes();
50 /// Create solids from faces with extrusion.
51 virtual ListOfShape MakeSolids(const ListOfShape& theFaces);
54 FeaturesPlugin_ExtrusionBoolean(){};