30 #ifndef CLOSEDTRIANGLEMESH_H 31 #define CLOSEDTRIANGLEMESH_H 33 #include "utility/geom/d2/Trihedron.h" 36 #include "utility/actor/actor/MovableObject.h" 44 class FiberSectionBase;
53 typedef std::vector<Trihedron> v_trihedrons;
54 typedef v_trihedrons::iterator iterator;
55 typedef v_trihedrons::const_iterator const_iterator;
57 v_trihedrons trihedrons;
75 virtual double GetMax(
short unsigned int i)
const;
76 virtual double GetMin(
short unsigned int i)
const;
77 virtual Pos3d getCenterOfMass(
void)
const;
79 virtual double getArea(
void)
const;
81 virtual double Ix(
void)
const;
82 virtual double Iy(
void)
const;
83 virtual double Iz(
void)
const;
87 size_t GetNumFacetas(
void)
const;
93 const_iterator begin()
const;
94 const_iterator end()
const;
95 size_t size(
void)
const;
102 void write(std::ofstream &);
103 void read(std::ifstream &);
104 void writeTo(
const std::string &);
106 void Print(std::ostream &os)
const;
Base class for position lists.
Definition: PolyPos.h:35
void readFrom(const std::string &)
Read from file.
Definition: ClosedTriangleMesh.cc:102
Communication parameters between processes.
Definition: Communicator.h:66
GeomObj::list_Pos3d get_intersection(const Pos3d &p) const
Radius of the sphere that passes through the nearest vertex.
Definition: ClosedTriangleMesh.cc:282
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: ClosedTriangleMesh.cc:399
ClosedTriangleMesh(void)
Default constructor.
Definition: ClosedTriangleMesh.cc:50
Object that can move between processes.
Definition: MovableObject.h:100
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
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: ClosedTriangleMesh.cc:424
void getPositionsMatrix(Matrix &)
Return a matrix with the coordinates of the points that define each one of the trihedrons.
Definition: ClosedTriangleMesh.cc:328
virtual double getArea(void) const
Return the object area.
Definition: ClosedTriangleMesh.cc:149
void Print(std::ostream &os) const
Print stuff.
Definition: ClosedTriangleMesh.cc:320
int sendData(Communicator &)
Sends object members through the communicator argument.
Definition: ClosedTriangleMesh.cc:388
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
Definition: TriangleMap.h:131
double rMin
Radius of the convex-hull circunscribed sphere.
Definition: ClosedTriangleMesh.h:60
virtual double getVolume(void) const
Return the object volume.
Definition: ClosedTriangleMesh.cc:151
void write(std::ofstream &)
Write the matrix in a binary file.
Definition: ClosedTriangleMesh.cc:366
Posición en tres dimensiones.
Definition: Pos3d.h:44
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
A geometric figure composed of three planes meeting at a single vertex.
Definition: Trihedron.h:37
3D Triange mesh.
Definition: Triang3dMesh.h:37
Matrix of floats.
Definition: Matrix.h:111
virtual double getLength(void) const
Return the object length.
Definition: ClosedTriangleMesh.cc:147
Closed triangle mesh used to represent the interaction diagram (N,Mx,My) of a section.
Definition: ClosedTriangleMesh.h:50
const Trihedron * findTrihedronPtr(const Pos3d &p) const
Search for the trihedron that contains the point being passed as parameter.
Definition: ClosedTriangleMesh.cc:221
short unsigned int Dimension() const
Return the dimension of the object 0, 1, 2 or 3.
Definition: ClosedTriangleMesh.h:84
int sendSelf(Communicator &)
Send the object through the communicator argument.
Definition: ClosedTriangleMesh.cc:410
ClosedTriangleMesh & operator=(const ClosedTriangleMesh &)
Assignment operator.
Definition: ClosedTriangleMesh.cc:84
virtual ClosedTriangleMesh * getCopy(void) const
Virtual constructor.
Definition: ClosedTriangleMesh.cc:119
Clase base para los objetos en tres dimensiones.
Definition: GeomObj3d.h:43