xc
DqPtrsFaces.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //DqPtrsFaces.h
29 //Face Container.
30 
31 
32 #ifndef DQPTRSFACES_H
33 #define DQPTRSFACES_H
34 
35 #include "DqPtrsEntities.h"
36 #include "preprocessor/multi_block_topology/entities/2d/Face.h"
37 
38 namespace XC {
39 
41 class DqPtrsFaces: public DqPtrsEntities<Face>
42  {
43  public:
44  DqPtrsFaces(CommandEntity *owr= nullptr);
45  DqPtrsFaces(const DqPtrs<Face> &);
46  explicit DqPtrsFaces(const std::deque<Face *> &);
47  explicit DqPtrsFaces(const std::set<const Face *> &);
48 
51 
52  DqPtrsFaces pickSurfacesInside(const GeomObj3d &, const double &tol= 0.0) const;
53  Face *getNearest(const Pos3d &);
54  const Face *getNearest(const Pos3d &) const;
55 
56 
57  // Surface orientation.
58  void reverse(void);
59  void setKOrientation(const Vector3d &);
60  };
61 
62 } //end of XC namespace
63 
64 #endif
65 
DqPtrsFaces & operator-=(const DqPtrsFaces &)
-= (difference) operator.
Definition: DqPtrsFaces.cc:66
void setKOrientation(const Vector3d &)
Set the orientation of the face normals according to the vector argument.
Definition: DqPtrsFaces.cc:55
DqPtrsFaces & operator*=(const DqPtrsFaces &)
*= (intersection) operator.
Definition: DqPtrsFaces.cc:73
Face * getNearest(const Pos3d &)
Return the edge closest to the given point.
Definition: DqPtrsFaces.cc:91
Container for preprocessor entities (points, lines, surfaces,...)
Definition: DqPtrsEntities.h:51
Container for preprocessor faces.
Definition: DqPtrsFaces.h:41
Objet that can execute python scripts.
Definition: CommandEntity.h:40
void reverse(void)
Reverse the faces.
Definition: DqPtrsFaces.cc:41
Posición en tres dimensiones.
Definition: Pos3d.h:44
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
DqPtrsFaces pickSurfacesInside(const GeomObj3d &, const double &tol=0.0) const
Return a container with the entities that lie inside the geometric object.
Definition: DqPtrsFaces.cc:84
Surface.
Definition: Face.h:45
Vector en tres dimensiones.
Definition: Vector3d.h:39
Clase base para los objetos en tres dimensiones.
Definition: GeomObj3d.h:43