NeoPZ
|
Implements the generation of a polygonal mesh approximating a geometric element from another simple polygonal mesh. Getting Data. More...
#include <TPZGenSpecialGrid.h>
Public Member Functions | |
~TPZGenSpecialGrid () | |
Static Public Member Functions | |
static TPZGeoMesh * | GeneratePolygonalSphereFromOctahedron (TPZVec< REAL > ¢er, REAL radius, int nUniformRefs) |
Static function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal) More... | |
static TPZGeoMesh * | GeneratePolygonalSphereFromOctahedron (TPZVec< REAL > ¢er, REAL radius, REAL tol) |
Static function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal) More... | |
static void | UniformRefinement (const int nUniformRefs, TPZGeoMesh *gmesh, const int dimelfordivision, bool allmaterial=true, const int matidtodivided=0) |
Make uniform refinement of the geometric mesh. This method finishs making the new connectivities for the elements (ResetConnectivities() and BuildConnectivity()) More... | |
Implements the generation of a polygonal mesh approximating a geometric element from another simple polygonal mesh. Getting Data.
Definition at line 18 of file TPZGenSpecialGrid.h.
|
inline |
Simple destructor
Definition at line 22 of file TPZGenSpecialGrid.h.
References GeneratePolygonalSphereFromOctahedron(), pzgeom::tol, and UniformRefinement().
|
static |
Static function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal)
center | Center of the sphere |
radius | Radius of the sphere polygonalized |
nUniformRefs | Number of uniform refinements to make. |
Function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal) based on number of uniform refinements
Definition at line 17 of file TPZGenSpecialGrid.cpp.
References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), TPZGeoMesh::BuildConnectivity(), TPZGeoMesh::CreateGeoElement(), TPZGeoMesh::DeleteElement(), TPZGeoMesh::ElementVec(), ETriangle, TPZGeoNode::GetCoordinates(), TPZGeoEl::HasSubElement(), TPZGeoMesh::NElements(), TPZGeoMesh::NNodes(), TPZGeoMesh::NodeVec(), nodind, TPZGeoMesh::ResetConnectivities(), TPZGeoEl::ResetSubElements(), TPZGeoNode::SetCoord(), TPZGeoEl::SetFatherIndex(), sqrt, and UniformRefinement().
Referenced by ~TPZGenSpecialGrid().
|
static |
Static function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal)
center | Center of the sphere |
radius | Radius of the sphere polygonalized |
tol | Tolerance of approximation. It is the distance of the barycenter of any triangular element of the mesh until the sphere. |
Function to generate a polygonal mesh approximating a sphere from a octahedron mesh (polygonal)
Definition at line 98 of file TPZGenSpecialGrid.cpp.
References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), TPZGeoMesh::BuildConnectivity(), TPZGeoEl::CenterPoint(), TPZGeoMesh::CreateGeoElement(), TPZGeoMesh::DeleteElement(), dist(), TPZGeoMesh::ElementVec(), ETriangle, TPZGeoNode::GetCoordinates(), TPZGeoEl::HasSubElement(), TPZGeoMesh::NElements(), TPZGeoMesh::NNodes(), TPZGeoMesh::NodeVec(), nodind, TPZGeoMesh::ResetConnectivities(), TPZGeoEl::ResetSubElements(), TPZGeoNode::SetCoord(), TPZGeoEl::SetFatherIndex(), sqrt, UniformRefinement(), and TPZGeoEl::X().
|
static |
Make uniform refinement of the geometric mesh. This method finishs making the new connectivities for the elements (ResetConnectivities() and BuildConnectivity())
nUniformRefs | Number of divisions of all elements wished |
gmesh | Geometric mesh contained the elements |
dimelfordivision | Dimension of the geometric elements will be divided. If dimelfordivision is negative subdivide all elements (for any dimensions) |
allmaterial | If true divides all geometric element, if false check the material match with allmaterial to divide the element |
matidtodivided | To divide only elements with this material id |
Make uniform refinement of the geometric mesh. This method finishs making the new connectivities for the elements (ResetConnectivities() and BuildConnectivity())
Definition at line 195 of file TPZGenSpecialGrid.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoEl::Dimension(), TPZGeoEl::Divide(), TPZGeoMesh::ElementVec(), TPZGeoEl::HasSubElement(), TPZGeoEl::MaterialId(), TPZGeoMesh::NElements(), and TPZGeoMesh::ResetConnectivities().
Referenced by GeneratePolygonalSphereFromOctahedron(), and ~TPZGenSpecialGrid().