53 for (
int i=0; i<3; i++) {
54 scale[i] = size[i]/3.;
55 shift[i] = 1./2.+lowercorner[i];
58 for (
int i = 0; i < NCornerNodes; i++) {
59 ParametricDomainNodeCoord(i,
co);
60 for (
int j=0; j<
co.size(); j++) {
61 co[j] = shift[j]+scale[j]*
co[j]+(rand()*0.2/RAND_MAX)-0.1;
64 gmesh.
NodeVec()[nodeindexes[i]].Initialize(
co, gmesh);
70 int TPZGeoPoint::ClassId()
const{
74 void TPZGeoPoint::Read(
TPZStream& buf,
void* context) {
78 void TPZGeoPoint::Write(
TPZStream& buf,
int withclassid)
const {
int AllocateNewElement()
Makes more room for new elements.
Contains declaration of TPZGeoElSide class which represents an element and its side, and TPZGeoElSideIndex class which represents an TPZGeoElSide index.
virtual TPZGeoEl * CreateGeoElement(MElementType type, TPZVec< int64_t > &cornerindexes, int matid, int64_t &index, int reftype=1)
Generic method for creating a geometric element. Putting this method centrally facilitates the modifi...
Templated vector implementation.
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
Free store vector implementation.
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
REAL co[8][3]
Coordinates of the eight nodes.
Implements ... Geometry Topology.
int32_t Hash(std::string str)
Contains the TPZGeoPoint class which implements the geometry of a point element or 0-D element...
This class implements a geometric mesh for the pz environment. Geometry.
Defines the interface for saving and reading data. Persistency.
Groups all classes which model the geometry.