29 #ifndef CLOSEDTRIANGLEMESH_H 30 #define CLOSEDTRIANGLEMESH_H 32 #include "xc_utils/src/geom/d2/Trihedron.h" 35 #include "utility/actor/actor/MovableObject.h" 43 class FiberSectionBase;
51 typedef std::vector<Trihedron> v_trihedrons;
52 typedef v_trihedrons::iterator iterator;
53 typedef v_trihedrons::const_iterator const_iterator;
55 v_trihedrons trihedrons;
73 virtual double GetMax(
short unsigned int i)
const;
74 virtual double GetMin(
short unsigned int i)
const;
75 virtual Pos3d getCenterOfMass(
void)
const;
76 virtual double getLength(
void)
const;
77 virtual double getArea(
void)
const;
78 virtual double getVolume(
void)
const;
79 virtual double Ix(
void)
const;
80 virtual double Iy(
void)
const;
81 virtual double Iz(
void)
const;
82 short unsigned int Dimension()
const 85 size_t GetNumFacetas(
void)
const;
87 TriangleMap getTriangleMap(
void)
const;
91 const_iterator begin()
const;
92 const_iterator end()
const;
93 size_t size(
void)
const;
100 void write(std::ofstream &);
101 void read(std::ifstream &);
102 void writeTo(
const std::string &);
104 void Print(std::ostream &os)
const;
void readFrom(const std::string &)
Read from file.
Definition: ClosedTriangleMesh.cc:102
GeomObj::list_Pos3d get_intersection(const Pos3d &p) const
Radius of the sphere that passes through the nearest vertex.
Definition: ClosedTriangleMesh.cc:282
ClosedTriangleMesh(void)
Default constructor.
Definition: ClosedTriangleMesh.cc:50
Object that can move between processes.
Definition: MovableObject.h:99
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: ClosedTriangleMesh.cc:399
const_iterator findTrihedron(const Pos3d &p) const
Search for the trihedron that contains the point being passed as parameter.
Definition: ClosedTriangleMesh.cc:205
void read(std::ifstream &)
Read the matrix from a binary file.
Definition: ClosedTriangleMesh.cc:377
void getPositionsMatrix(Matrix &)
Return a matrix with the coordinates of the points that define each one of the trihedrons.
Definition: ClosedTriangleMesh.cc:328
void Print(std::ostream &os) const
Print stuff.
Definition: ClosedTriangleMesh.cc:320
virtual void setPositionsMatrix(const Matrix &)
Create the trihedrons that define the diagram from the matrix that contains the points that define ea...
Definition: ClosedTriangleMesh.cc:350
int sendData(CommParameters &)
Sends object members through the channel being passed as parameter.
Definition: ClosedTriangleMesh.cc:388
double rMin
Radius of the convex-hull circunscribed sphere.
Definition: ClosedTriangleMesh.h:58
void write(std::ofstream &)
Write the matrix in a binary file.
Definition: ClosedTriangleMesh.cc:366
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ClosedTriangleMesh.cc:424
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Matrix of floats.
Definition: Matrix.h:108
virtual ClosedTriangleMesh * clon(void) const
Virtual constructor.
Definition: ClosedTriangleMesh.cc:119
@ingroup MATSCCDiagInt
Definition: ClosedTriangleMesh.h:48
const Trihedron * findTrihedronPtr(const Pos3d &p) const
Search for the trihedron that contains the point being passed as parameter.
Definition: ClosedTriangleMesh.cc:221
ClosedTriangleMesh & operator=(const ClosedTriangleMesh &)
Assignment operator.
Definition: ClosedTriangleMesh.cc:84
int sendSelf(CommParameters &)
Send the object through the channel being passed as parameter.
Definition: ClosedTriangleMesh.cc:410