xc
|
Component of a compound line. More...
#include <CmbEdge.h>
Public Member Functions | |
Side (Edge *ptr=nullptr, const bool &s=true) | |
Constructor. | |
Edge * | getEdge (void) |
Returns a pointer to the edge. | |
const Edge * | getEdge (void) const |
Returns a constant pointer to the edge. | |
void | SetEdge (Edge *l) |
Assigns the line. | |
const Pnt * | P1 (void) const |
Returns a constant pointer to the back end of the edge. | |
const Pnt * | P2 (void) const |
Returns a constant pointer to the front end of the edge. | |
bool | ExtremosEn (const Pnt *, const Pnt *) const |
Returns true if the points being passed as parameters are the endpoints of the side. More... | |
const std::string & | getName (void) const |
Return the name of the line. | |
bool | isDirect (void) const |
void | reverse (void) |
void | SetNDiv (const size_t &nd) |
Set el number of divisions of the line. | |
size_t | NDiv (void) const |
Return the number of divisions of the line. | |
size_t | GetTag (void) const |
Return the identifier of the line. | |
Pos3dArray | get_positions (void) const |
Return the positions on the line. | |
std::vector< int > | getTagsNodesForward (void) const |
Return the identifiers of the nodes of the forward sequence. | |
std::vector< int > | getTagsNodesReverse (void) const |
Return the identifiers of the nodes of the reverse sequence. | |
Pos3dArray | getNodePosForward (void) const |
Return the positions of the nodes of the forward sequence. | |
Pos3dArray | getNodePosReverse (void) const |
Return the positions of the nodes of the reverse sequence. | |
double | getLength (void) const |
Return the side length. | |
Pos3d | getCentroid (void) const |
Return the segment than links both ends. | |
bool | In (const GeomObj3d &, const double &tol=0.0) const |
Returns true if this object lies inside the geometric object. More... | |
bool | Out (const GeomObj3d &, const double &tol=0.0) const |
Returns true if this object lies outside the geometric object. More... | |
const Vector & | getTang (const double &) const |
Returns a vector tangent to the side at the point s. | |
Node * | getNodeForward (const size_t &i) |
Return the node which index is being passed as parameter empezando por el principio. | |
Node * | getNodeReverse (const size_t &i) |
Return the node which index is being passed as parameter empezando por el final. | |
Node * | getNode (const size_t &i) |
Return the node which index is being passed as parameter. | |
const Node * | getNode (const size_t &i) const |
Return the node which index is being passed as parameter. | |
void | genMesh (meshing_dir dm) |
Genertes a mesh from the corresponding line. | |
Friends | |
bool | operator== (const Side &il1, const Side &il2) |
Component of a compound line.
A compound line is a sequence of pointers to lines (Line) (we call them lados here), such that the end of one of them is the origin of the edge that follows. Since the orientation of the line defined in the model, can not coincide with the orientation needed here, each pointer to line is accompanied by a boolean that indicates if the line must be taken with its reversed direction or not.
Returns true if the points being passed as parameters are the endpoints of the side.
bool XC::CmbEdge::Side::In | ( | const GeomObj3d & | geomObj, |
const double & | tol = 0.0 |
||
) | const |
Returns true if this object lies inside the geometric object.
geomObj | object to be contained in. |
tol | tolerance. |
bool XC::CmbEdge::Side::Out | ( | const GeomObj3d & | geomObj, |
const double & | tol = 0.0 |
||
) | const |
Returns true if this object lies outside the geometric object.
geomObj | object to be contained in. |
tol | tolerance. |