xc
Public Member Functions | Friends | List of all members
XC::CmbEdge::Side Class Reference

Component of a compound line. More...

#include <CmbEdge.h>

Inheritance diagram for XC::CmbEdge::Side:

Public Member Functions

 Side (Edge *ptr=nullptr, const bool &s=true)
 Constructor.
 
EdgegetEdge (void)
 Returns a pointer to the edge.
 
const EdgegetEdge (void) const
 Returns a constant pointer to the edge.
 
void SetEdge (Edge *l)
 Assigns the line.
 
const PntP1 (void) const
 Returns a constant pointer to the back end of the edge.
 
const PntP2 (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 VectorgetTang (const double &) const
 Returns a vector tangent to the side at the point s.
 
NodegetNodeForward (const size_t &i)
 Return the node which index is being passed as parameter empezando por el principio.
 
NodegetNodeReverse (const size_t &i)
 Return the node which index is being passed as parameter empezando por el final.
 
NodegetNode (const size_t &i)
 Return the node which index is being passed as parameter.
 
const NodegetNode (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)
 

Detailed Description

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.

Member Function Documentation

§ ExtremosEn()

bool XC::CmbEdge::Side::ExtremosEn ( const Pnt p1,
const Pnt p2 
) const

Returns true if the points being passed as parameters are the endpoints of the side.

§ In()

bool XC::CmbEdge::Side::In ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Returns true if this object lies inside the geometric object.

Parameters
geomObjobject to be contained in.
toltolerance.

§ Out()

bool XC::CmbEdge::Side::Out ( const GeomObj3d &  geomObj,
const double &  tol = 0.0 
) const

Returns true if this object lies outside the geometric object.

Parameters
geomObjobject to be contained in.
toltolerance.

The documentation for this class was generated from the following files: