57 class Side:
public CommandEntity
64 Side(
Edge *ptr=
nullptr,
const bool &s=
true);
68 const Pnt *
P1(
void)
const;
69 const Pnt *
P2(
void)
const;
71 const std::string &
getName(
void)
const;
72 inline bool isDirect(
void)
const 74 inline void reverse(
void)
75 { forward= !forward; }
77 size_t NDiv(
void)
const;
86 bool In(
const GeomObj3d &,
const double &tol= 0.0)
const;
87 bool Out(
const GeomObj3d &,
const double &tol= 0.0)
const;
94 friend bool operator==(
const Side &il1,
const Side &il2);
123 void insert(
const size_t &i);
128 size_t NDiv(
void)
const;
129 void SetNDiv(
const size_t &nd);
133 {
return lines.size(); }
134 inline std::deque<Side> &getSides(
void)
137 bool In(
const GeomObj3d &,
const double &tol= 0.0)
const;
138 bool Out(
const GeomObj3d &,
const double &tol= 0.0)
const;
147 const Pnt *
P1(
void)
const;
148 const Pnt *
P2(
void)
const;
163 BND3d
Bnd(
void)
const;
166 friend bool operator==(
const Side &il1,
const Side &il2);
size_t getNumberOfEdges(void) const
Return the number of edges.
Definition: CmbEdge.h:132
const Pnt * first_point(void) const
Returns a pointer to the first point.
Definition: CmbEdge.cc:299
virtual void SetVertice(const size_t &, Pnt *)
Sets the i-th vertex.
Definition: CmbEdge.cc:715
Component of a compound line.
Definition: CmbEdge.h:57
Float vector abstraction.
Definition: Vector.h:93
size_t NDiv(void) const
Return the number of divisions of the line.
Definition: CmbEdge.cc:230
size_t IndiceEdge(const Edge *l) const
Searchs the line l from those of this compound line.
Definition: CmbEdge.cc:628
void create_line_nodes(void)
Triggers node creation on the edges.
Definition: CmbEdge.cc:442
Node * getNode(const size_t &i)
Return the node which index is being passed as parameter.
Definition: CmbEdge.cc:194
void close(void)
Close the line.
Definition: CmbEdge.cc:519
Base class for one-dimensional geometry objects.
Definition: Edge.h:46
void SetEdge(Edge *l)
Assigns the line.
Definition: CmbEdge.cc:54
Pos3d getCentroid(void) const
Return the segment than links both ends.
Definition: CmbEdge.cc:117
double getLength(void) const
Return the side length.
Definition: CmbEdge.cc:97
Finite element model generation tools.
Definition: Preprocessor.h:58
virtual SetEstruct * getCopy(void) const
Virtual constructor.
Definition: CmbEdge.cc:261
size_t GetTag(void) const
Return the identifier of the line.
Definition: CmbEdge.cc:234
Edge * newLine(Pnt *, Pnt *)
Creates a new line between the points being passed as parameters and inserts it on the edge set set...
Definition: CmbEdge.cc:539
CmbEdge(void)
Constructor.
Definition: CmbEdge.cc:246
bool ExtremosEn(const Pnt *, const Pnt *) const
Returns true if the points being passed as parameters are the endpoints of the side.
Definition: CmbEdge.cc:78
Pos3dArray get_positions(void) const
Return the positions on the line.
Definition: CmbEdge.cc:125
std::vector< int > getTagsNodesReverse(void) const
Return the identifiers of the nodes of the reverse sequence.
Definition: CmbEdge.cc:143
bool Out(const GeomObj3d &, const double &tol=0.0) const
Returns true if this object lies outside the geometric object.
Definition: CmbEdge.cc:113
Vector of integers.
Definition: ID.h:93
Edge * getEdge(void)
Returns a pointer to the edge.
Definition: CmbEdge.cc:48
virtual const Pnt * getVertex(const size_t &i) const
Return the i-th vertex.
Definition: CmbEdge.cc:705
void line_meshing(meshing_dir dm)
Triggers meshing of lines.
Definition: CmbEdge.cc:449
const Side * getSideByPoints(const Pnt *, const Pnt *) const
Return the side which extremes are the points being passed as parameters.
Definition: CmbEdge.cc:651
const Pnt * P1(void) const
Returns a constant pointer to the back end of the edge.
Definition: CmbEdge.cc:57
void addLines(const ID &)
Creates and inserts the edges from the indexes being passed as parameter.
Definition: CmbEdge.cc:484
virtual ID getKPoints(void) const
Returns object k-points.
Definition: CmbEdge.cc:722
std::deque< Edge * > GetEdges(void)
Return the deque of lines that define the edges.
Definition: CmbEdge.cc:696
Side * last_line(void)
Returns a pointer to the last edge.
Definition: CmbEdge.cc:282
Node * getNodeForward(const size_t &i)
Return the node which index is being passed as parameter empezando por el principio.
Definition: CmbEdge.cc:170
const Vector & getTang(const double &) const
Returns a vector tangent to the side at the point s.
Definition: CmbEdge.cc:121
Node * getNodeReverse(const size_t &i)
Return the node which index is being passed as parameter empezando por el final.
Definition: CmbEdge.cc:182
virtual size_t getNumberOfVertices(void) const
Return the number of vertices.
Definition: CmbEdge.h:144
const Pnt * last_point(void) const
Returns a pointer to the last point.
Definition: CmbEdge.cc:309
void addPoints(const ID &)
Creates and inserts the the edges that link the points from the indexes being passed as parameter...
Definition: CmbEdge.cc:493
bool In(const GeomObj3d &, const double &tol=0.0) const
Returns true if this object lies inside the geometric object.
Definition: CmbEdge.cc:105
Side * first_line(void)
Returns a pointer to the first lado.
Definition: CmbEdge.cc:266
Pos3dArray getNodePosForward(void) const
Return the positions of the nodes of the forward sequence.
Definition: CmbEdge.cc:152
Pos3dArray getNodePosReverse(void) const
Return the positions of the nodes of the reverse sequence.
Definition: CmbEdge.cc:161
Compound line.
Definition: CmbEdge.h:42
const Side * getSide(const size_t &i) const
Returns a lado of the line compuesta.
Definition: CmbEdge.cc:642
virtual void insert(Edge *l)
Inserts the line which pointer is being passed as parameter.
Definition: CmbEdge.cc:594
Point (KPoint).
Definition: Pnt.h:49
structured set, i.
Definition: SetEstruct.h:45
Side(Edge *ptr=nullptr, const bool &s=true)
Constructor.
Definition: CmbEdge.cc:44
std::deque< Side > lines
Lines that compose the object.
Definition: CmbEdge.h:98
void SetNDiv(const size_t &nd)
Set el number of divisions of the line.
Definition: CmbEdge.cc:226
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
const std::string & getName(void) const
Return the name of the line.
Definition: CmbEdge.cc:93
void genMesh(meshing_dir dm)
Genertes a mesh from the corresponding line.
Definition: CmbEdge.cc:222
Mesh node.
Definition: Node.h:110
Polyline3d getPolyline(void) const
Returns a polyline representation of the object.
Definition: CmbEdge.cc:732
const Pnt * P2(void) const
Returns a constant pointer to the front end of the edge.
Definition: CmbEdge.cc:66
std::vector< int > getTagsNodesForward(void) const
Return the identifiers of the nodes of the forward sequence.
Definition: CmbEdge.cc:134
BND3d Bnd(void) const
Returns object BND.
Definition: CmbEdge.cc:743