Salome HOME
GeomAlgoAPI_Prism now derived from GeomAlgoAPI_MakeSweep
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_MakeSweep.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAlgoAPI_MakeSweep.cpp
4 // Created:     23 November 2015
5 // Author:      Dmitry Bobylev
6
7 #include "GeomAlgoAPI_MakeSweep.h"
8
9 //=================================================================================================
10 const ListOfShape& GeomAlgoAPI_MakeSweep::fromFaces() const
11 {
12   return myFromFaces;
13 }
14
15 //=================================================================================================
16 const ListOfShape& GeomAlgoAPI_MakeSweep::toFaces() const
17 {
18   return myToFaces;
19 }
20
21 //=================================================================================================
22 void GeomAlgoAPI_MakeSweep::addFromFace(const std::shared_ptr<GeomAPI_Shape> theFace)
23 {
24   myFromFaces.push_back(theFace);
25 }
26
27 //=================================================================================================
28 void GeomAlgoAPI_MakeSweep::setFromFaces(const ListOfShape& theListOfFaces)
29 {
30   myFromFaces = theListOfFaces;
31 }
32
33 //=================================================================================================
34 void GeomAlgoAPI_MakeSweep::addToFace(const std::shared_ptr<GeomAPI_Shape> theFace)
35 {
36   myToFaces.push_back(theFace);
37 }
38
39 //=================================================================================================
40 void GeomAlgoAPI_MakeSweep::setToFaces(const ListOfShape& theListOfFaces)
41 {
42   myToFaces = theListOfFaces;
43 }