20 for(i=0;i<dim;i++)
fCoord[i] = coord[i];
21 for(;i<3;i++)
fCoord[i] = 0.;
25 for(
int i=0;i<3;i++)
fCoord[i] = 0.;
42 for(i=0;i<dim;i++)
fCoord[i]=coord[i];
43 for(;i<3;i++)
fCoord[i]=0.;
50 for(i=0;i<dim;i++)
fCoord[i]=coord[i];
51 for(;i<3;i++)
fCoord[i]=0.;
63 if(dim > 3 || dim < 1) {
64 PZError <<
"TPZGeoNode::SetCoord with bad parameter dim." << endl;
70 for(i=0;i<dim;i++)
fCoord[i] = x[i];
71 for(;i<3;i++)
fCoord[i] = 0.;
76 PZError <<
"TPZGeoNode::SetCoord with bad parameter i-th coordinate." << endl;
85 for(
int i=0; i<3; i++) co[i] =
fCoord[i];
89 out <<
"Node : fId = " <<
fId;
90 out <<
" Coordinates";
91 for(
int i=0;i<3;i++) out <<
"\t" <<
fCoord[i];
97 return Hash(
"TPZGeoNode");
void SetCoord(const TPZVec< REAL > &x)
Sets all coordinates into the current node. It gets the dim values from x.
int64_t CreateUniqueNodeId()
Returns ++fNodeMaxId.
Contains declaration of TPZGeoNode class which defines a geometrical node.
REAL Coord(int i) const
Returns i-th coordinate of the current node.
Templated vector implementation.
TPZGeoNode & operator=(const TPZGeoNode &node)
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
TPZGeoNode()
Constructor to new node.
#define DebugStop()
Returns a message to user put a breakpoint in.
REAL co[8][3]
Coordinates of the eight nodes.
int32_t Hash(std::string str)
void Print(std::ostream &out=std::cout)
Print the node data into out.
void SetNodeIdUsed(int64_t id)
Indicates that a node with id was created.
int ClassId() const override
Returns the id of the class (used for writing reading the object)
Implements a geometric node in the pz environment. Geometry.
This class implements a geometric mesh for the pz environment. Geometry.
void Initialize(TPZVec< REAL > &coord, TPZGeoMesh &mesh)
Initialize the data structure of the node. Creates a unique id for the node automatically.
int Id() const
Returns the identity of the current node.
int64_t NElements() const
Returns the number of elements of the vector.
void GetCoordinates(TPZVec< REAL > &co)
Fill the coordinates of the node.
Implements an interface to register a class id and a restore function. Persistence.
#define PZError
Defines the output device to error messages and the DebugStop() function.
REAL fCoord[3]
Node coordinates.