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
19 /// attribute name for creation method
20 inline static const std::string& CREATION_METHOD()
22 static const std::string METHOD_ATTR("CreationMethod");
26 /// attribute name of extrusion size
27 inline static const std::string& TO_SIZE_ID()
29 static const std::string MY_TO_SIZE_ID("to_size");
33 /// attribute name of extrusion size
34 inline static const std::string& FROM_SIZE_ID()
36 static const std::string MY_FROM_SIZE_ID("from_size");
37 return MY_FROM_SIZE_ID;
40 /// attribute name of an object to which the extrusion grows.
41 inline static const std::string& TO_OBJECT_ID()
43 static const std::string MY_TO_OBJECT_ID("to_object");
44 return MY_TO_OBJECT_ID;
47 /// attribute name of extrusion offset
48 inline static const std::string& TO_OFFSET_ID()
50 static const std::string MY_TO_OFFSET_ID("to_offset");
51 return MY_TO_OFFSET_ID;
54 /// Attribute name of an object from which the extrusion grows.
55 inline static const std::string& FROM_OBJECT_ID()
57 static const std::string MY_FROM_OBJECT_ID("from_object");
58 return MY_FROM_OBJECT_ID;
61 /// attribute name of extrusion offset
62 inline static const std::string& FROM_OFFSET_ID()
64 static const std::string MY_FROM_OFFSET_ID("from_offset");
65 return MY_FROM_OFFSET_ID;
69 /// Init attributes for extrusion.
70 virtual void initMakeSolidsAttributes();
72 /// Create solids from faces with extrusion.
73 virtual void makeSolids(const ListOfShape& theFaces,
74 ListOfShape& theResults,
75 std::list<std::shared_ptr<GeomAPI_Interface>>& theAlgos);
78 FeaturesPlugin_ExtrusionBoolean(){};