Go to the documentation of this file.
61 for(
label i=0;i<3;++i)
63 const label tpI = tri[i];
65 if( !addr.found(tpI) )
67 addr.insert(tpI, counter);
74 Info <<
"Tet " << tetI <<
" is " << tet <<
endl;
78 for(
label i=0;i<3;++i)
95 triFace(addr[tri[0]], addr[tri[1]], addr[tri[2]])
102 triFace(addr[tri[1]], addr[tri[2]], addr[tri[0]])
109 triFace(addr[tri[2]], addr[tri[0]], addr[tri[1]])
116 "partTriMeshSimplex::partTriMeshSimplex("
117 "(const partTriMesh& tm, const label pI)"
118 ) <<
"Point " << pI <<
" is not present in triangle" << tri
125 Info <<
"Simplex at point " << pI <<
" points " << pts_ <<
endl;
126 Info <<
"Simplex at point " << pI <<
" triangles " << trias_ <<
endl;
129 if( pts_.size() == 0 || trias_.size() == 0 )
130 FatalError <<
"Simplex at point " << pI <<
" is not valid "
154 const scalar magn =
mag(
n);
160 return (
normal / (magN + VSMALL));
#define forAll(list, i)
Loop across all elements in list.
const pointField & points() const
access to points, tets and other data
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
const LongList< direction > & pointType() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
DynList< triFace, 32 > trias_
triangles making the simplex
partTriMeshSimplex(const partTriMesh &tm, const label pI)
Construct from partTriMesh and point label.
#define forAllRow(graph, rowI, index)
vector normal() const
return the normal of the simplex
label sizeOfRow(const label rowI) const
Returns the number of elements in the given row.
DynList< point, 32 > pts_
points making the simplex
errorManip< error > abort(error &err)
A triangular face using a FixedList of labels corresponding to mesh vertices.
Triangle with additional region number.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const LongList< labelledTri > & triangles() const
const VRWGraph & pointTriangles() const
A normal distribution model.
dimensionedScalar pos(const dimensionedScalar &ds)