35 #include "preprocessor/multi_block_topology/entities/1d/Edge.h" 63 Side(
Edge *ptr=
nullptr,
const bool &s=
true);
68 const Pnt *
P1(
void)
const;
69 const Pnt *
P2(
void)
const;
73 const std::string &
getName(
void)
const;
74 inline bool isDirect(
void)
const 76 inline void reverse(
void)
77 { forward= !forward; }
83 size_t NDiv(
void)
const;
101 bool In(
const GeomObj3d &,
const double &tol= 0.0)
const;
102 bool Out(
const GeomObj3d &,
const double &tol= 0.0)
const;
114 boost::python::dict
getPyDict(
void)
const;
141 void insert(
const size_t &i);
148 size_t NDiv(
void)
const;
149 void setNDiv(
const size_t &nd);
156 {
return lines.size(); }
157 inline std::deque<Side> &getSides(
void)
159 inline const std::deque<Side> &getSides(
void)
const 162 virtual void reverse(
void);
163 bool In(
const GeomObj3d &,
const double &tol= 0.0)
const;
164 bool Out(
const GeomObj3d &,
const double &tol= 0.0)
const;
176 const Pnt *
P1(
void)
const;
177 const Pnt *
P2(
void)
const;
188 std::deque<const Edge *>
getEdges(
void)
const;
216 boost::python::dict
getPyDict(
void)
const;
217 void setPyDict(
const boost::python::dict &);
222 {
return il1.
equal(il2); }
size_t getNumberOfEdges(void) const
Return the number of edges.
Definition: CmbEdge.h:155
const Pnt * first_point(void) const
Returns a pointer to the first point.
Definition: CmbEdge.cc:416
double getMaxElemSize(void) const
Return the maximum element size.
Definition: CmbEdge.cc:589
virtual void SetVertice(const size_t &, Pnt *)
Sets the i-th vertex.
Definition: CmbEdge.cc:1004
Component of a compound line.
Definition: CmbEdge.h:58
Float vector abstraction.
Definition: Vector.h:94
size_t NDiv(void) const
Return the number of divisions of the line.
Definition: CmbEdge.cc:313
virtual void create_line_nodes(void)
Triggers node creation on the edges.
Definition: CmbEdge.cc:636
Node * getNode(const size_t &i)
Return the node which index is being passed as parameter.
Definition: CmbEdge.cc:267
void close(void)
Close the line.
Definition: CmbEdge.cc:713
Base class for one-dimensional geometry objects.
Definition: Edge.h:49
void SetEdge(Edge *l)
Assigns the line.
Definition: CmbEdge.cc:69
std::deque< Edge * > getEdges(void)
Return the deque of lines that define the edges.
Definition: CmbEdge.cc:905
Pos3d getCentroid(void) const
Return the segment than links both ends.
Definition: CmbEdge.cc:147
double getLength(void) const
Return the side length.
Definition: CmbEdge.cc:127
Finite element model generation tools.
Definition: Preprocessor.h:59
Array of positions in a three-dimensional space.
Definition: Pos3dArray.h:38
virtual SetEstruct * getCopy(void) const
Virtual constructor.
Definition: CmbEdge.cc:378
Edge * newLine(Pnt *, Pnt *)
Creates a new line between the points being passed as parameters and inserts it on the edges set...
Definition: CmbEdge.cc:733
CmbEdge(void)
Constructor.
Definition: CmbEdge.cc:348
friend bool operator==(const Side &il1, const Side &il2)
Comparison operator.
Definition: CmbEdge.h:221
Pos3dArray get_positions(void) const
Return the positions on the line.
Definition: CmbEdge.cc:160
void setPyDict(LineMap &, const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: CmbEdge.cc:337
std::vector< int > getTagsNodesReverse(void) const
Return the identifiers of the nodes of the reverse sequence.
Definition: CmbEdge.cc:216
bool Out(const GeomObj3d &, const double &tol=0.0) const
Returns true if this object lies outside the geometric object.
Definition: CmbEdge.cc:143
Polyline in a three-dimensional space.
Definition: Polyline3d.h:37
Vector of integers.
Definition: ID.h:95
Edge * getEdge(void)
Returns a pointer to the edge.
Definition: CmbEdge.cc:63
double getAvgElemSize(void) const
Return the average element size.
Definition: CmbEdge.cc:579
double getDist(const Pos3d &) const
Returns the distance to the position being passed as parameter.
Definition: CmbEdge.cc:156
virtual const Pnt * getVertex(const size_t &i) const
Return the i-th vertex.
Definition: CmbEdge.cc:956
void line_meshing(meshing_dir dm)
Triggers meshing of lines.
Definition: CmbEdge.cc:643
const Side * getSideByPoints(const Pnt *, const Pnt *) const
Return the side whose end points are the points being passed as parameters.
Definition: CmbEdge.cc:860
const Pnt * P1(void) const
Returns a constant pointer to the back end of the edge.
Definition: CmbEdge.cc:73
void addLines(const ID &)
Creates and inserts the edges from the indexes being passed as parameter.
Definition: CmbEdge.cc:678
Base de las clases Set y SetEstruct.
Definition: SetBase.h:51
virtual ID getKPoints(void) const
Returns object k-points.
Definition: CmbEdge.cc:1033
double getElemSize(void) const
Return the element size.
Definition: CmbEdge.cc:317
Side * last_line(void)
Returns a pointer to the last edge.
Definition: CmbEdge.cc:399
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: CmbEdge.cc:325
Node * getNodeForward(const size_t &i)
Return the node which index is being passed as parameter empezando por el principio.
Definition: CmbEdge.cc:243
const Vector & getTang(const double &) const
Returns a vector tangent to the side at the point s.
Definition: CmbEdge.cc:151
Node * getNodeReverse(const size_t &i)
Return the node which index is being passed as parameter empezando por el final.
Definition: CmbEdge.cc:255
std::deque< Pnt * > getVertices(void)
Return the vertices.
Definition: CmbEdge.cc:974
boost::python::list getConnectedSurfacesPy(void) const
Return the surfaces that touch this point (neighbors).
Definition: CmbEdge.cc:1107
boost::python::list getEdgesPy(void) const
Return the lines that define the edges in a Python list.
Definition: CmbEdge.cc:923
virtual size_t getNumberOfVertices(void) const
Return the number of vertices.
Definition: CmbEdge.h:171
const Pnt * last_point(void) const
Returns a pointer to the last point.
Definition: CmbEdge.cc:426
void addPoints(const ID &)
Creates and inserts the the edges that link the points from the indexes being passed as parameter...
Definition: CmbEdge.cc:687
bool In(const GeomObj3d &, const double &tol=0.0) const
Returns true if this object lies inside the geometric object.
Definition: CmbEdge.cc:135
Line container.
Definition: LineMap.h:49
Side * first_line(void)
Returns a pointer to the first lado.
Definition: CmbEdge.cc:383
bool hasEdge(const Edge *) const
Return true if the given edge makes part of this compound line.
Definition: CmbEdge.cc:822
Pos3dArray getNodePosForward(void) const
Return the positions of the nodes of the forward sequence.
Definition: CmbEdge.cc:225
Pos3dArray getNodePosReverse(void) const
Return the positions of the nodes of the reverse sequence.
Definition: CmbEdge.cc:234
size_t getTag(void) const
Return the identifier of the line.
Definition: CmbEdge.cc:321
Objet that can execute python scripts.
Definition: CommandEntity.h:40
Compound line.
Definition: CmbEdge.h:45
const Side * getSide(const size_t &i) const
Returns a lado of the line compuesta.
Definition: CmbEdge.cc:851
"boundary" en tres dimensiones.
Definition: BND3d.h:34
virtual void insert(Edge *l)
Inserts the line which pointer is being passed as parameter.
Definition: CmbEdge.cc:788
Point (KPoint).
Definition: Pnt.h:51
structured set, i.
Definition: SetEstruct.h:48
std::vector< Node * > getNodesReverse(void)
Return the pointers to the nodes of the reverse sequence.
Definition: CmbEdge.cc:178
void revolve(const int &)
Move forward or backwards the sequence of vertexes.
Definition: CmbEdge.cc:471
Side(Edge *ptr=nullptr, const bool &s=true)
Constructor.
Definition: CmbEdge.cc:44
bool equal(const Side &) const
Comparison operator.
Definition: CmbEdge.cc:48
std::deque< Side * > findSides(const Pos3d &)
Return the pointers to the sides at the position argument.
Definition: CmbEdge.cc:938
Posición en tres dimensiones.
Definition: Pos3d.h:44
void setNDivHomologousEdges(const size_t &)
Set the number of divisions of the side and the number of divisions of its homologous edges...
Definition: CmbEdge.cc:301
size_t IndiceEdge(const Edge *) const
Searches the line l from those of this compound line.
Definition: CmbEdge.cc:837
std::set< const Face * > getConnectedSurfaces(void) const
Return the surfaces that touch this edge.
Definition: CmbEdge.cc:1061
std::deque< Side > lines
Lines that compose the object.
Definition: CmbEdge.h:118
double getMinElemSize(void) const
Return the minimum element size.
Definition: CmbEdge.cc:600
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
std::vector< Node * > getNodesForward(void)
Return the pointers to the nodes of the forward sequence.
Definition: CmbEdge.cc:169
bool areEndPoints(const Pnt *, const Pnt *) const
Returns true if the points being passed as parameters are the endpoints of the side.
Definition: CmbEdge.cc:108
bool isConnectedTo(const Pnt &) const
Returns true if this edge is connected to the point.
Definition: CmbEdge.cc:1043
std::set< const Pnt * > getVertexSet(void) const
Return the vertices.
Definition: CmbEdge.cc:994
const std::string & getName(void) const
Return the name of the line.
Definition: CmbEdge.cc:123
void genMesh(meshing_dir dm)
Genertes a mesh from the corresponding line.
Definition: CmbEdge.cc:295
Mesh node.
Definition: Node.h:112
void setNDiv(const size_t &nd)
Set the number of divisions of the side.
Definition: CmbEdge.cc:307
CmbEdge getReversed(void) const
Return the reverse vertex sequence.
Definition: CmbEdge.cc:448
Polyline3d getPolyline(void) const
Returns a polyline representation of the object.
Definition: CmbEdge.cc:1136
const Pnt * P2(void) const
Returns a constant pointer to the front end of the edge.
Definition: CmbEdge.cc:80
std::vector< int > getTagsNodesForward(void) const
Return the identifiers of the nodes of the forward sequence.
Definition: CmbEdge.cc:207
Pnt * findVertex(const Pos3d &)
Return a pointer to the vertex at the position argument.
Definition: CmbEdge.cc:1013
BND3d Bnd(void) const
Returns object BND.
Definition: CmbEdge.cc:1147
Clase base para los objetos en tres dimensiones.
Definition: GeomObj3d.h:43