Description of feature edges and points. More...


Public Types | |
| enum | pointStatus { CONVEX , CONCAVE , MIXED , NONFEATURE } |
| enum | edgeStatus { EXTERNAL , INTERNAL , FLAT , OPEN , MULTIPLE , NONE } |
| enum | sideVolumeType { INSIDE = 0 , OUTSIDE = 1 , BOTH = 2 , NEITHER = 3 } |
| Normals point to the outside. More... | |
Public Member Functions | |
| TypeName ("extendedEdgeMesh") | |
| Runtime type information. More... | |
| extendedEdgeMesh () | |
| Construct null. More... | |
| extendedEdgeMesh (const extendedEdgeMesh &) | |
| Copy constructor. More... | |
| extendedEdgeMesh (extendedEdgeMesh &&) | |
| Move constructor. More... | |
| extendedEdgeMesh (const fileName &) | |
| Construct from file name (uses extension to determine type) More... | |
| extendedEdgeMesh (const fileName &, const word &ext) | |
| Construct from file name (uses extension to determine type) More... | |
| extendedEdgeMesh (Istream &) | |
| Construct from Istream. More... | |
| extendedEdgeMesh (pointField &&, edgeList &&) | |
| Construct by transferring components (points, edges) More... | |
| extendedEdgeMesh (const surfaceFeatures &sFeat, const boolList &surfBaffleRegions) | |
| Construct given a surface with selected edges,points. More... | |
| extendedEdgeMesh (const PrimitivePatch< faceList, pointField > &surf, const labelList &featureEdges, const labelList ®ionFeatureEdges, const labelList &featurePoints) | |
| Construct from PrimitivePatch. More... | |
| extendedEdgeMesh (const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList ®ionEdges) | |
| Construct from all components. More... | |
| declareRunTimeSelectionTable (autoPtr, extendedEdgeMesh, fileExtension,(const fileName &name),(name)) | |
| ~extendedEdgeMesh () | |
| Destructor. More... | |
| void | nearestFeaturePoint (const point &sample, scalar searchDistSqr, pointIndexHit &info) const |
| Find nearest surface edge for the sample point. More... | |
| void | nearestFeatureEdge (const point &sample, scalar searchDistSqr, pointIndexHit &info) const |
| Find nearest surface edge for the sample point. More... | |
| void | nearestFeatureEdge (const pointField &samples, const scalarField &searchDistSqr, pointIndexHitList &info) const |
| Find nearest surface edge for each sample point. More... | |
| void | nearestFeatureEdgeByType (const point &sample, const scalarField &searchDistSqr, pointIndexHitList &info) const |
| Find the nearest point on each type of feature edge. More... | |
| void | allNearestFeaturePoints (const point &sample, scalar searchRadiusSqr, pointIndexHitList &info) const |
| Find all the feature points within searchDistSqr of sample. More... | |
| void | allNearestFeatureEdges (const point &sample, const scalar searchRadiusSqr, pointIndexHitList &info) const |
| Find all the feature edges within searchDistSqr of sample. More... | |
| scalar | minDisconnectedDist (const pointIndexHitList &hitList) const |
| Return the minimum distance between disconnected edges. More... | |
| label | convexStart () const |
| Return the index of the start of the convex feature points. More... | |
| label | concaveStart () const |
| Return the index of the start of the concave feature points. More... | |
| label | mixedStart () const |
| Return the index of the start of the mixed type feature points. More... | |
| label | nonFeatureStart () const |
| Return the index of the start of the non-feature points. More... | |
| label | externalStart () const |
| Return the index of the start of the external feature edges. More... | |
| label | internalStart () const |
| Return the index of the start of the internal feature edges. More... | |
| label | flatStart () const |
| Return the index of the start of the flat feature edges. More... | |
| label | openStart () const |
| Return the index of the start of the open feature edges. More... | |
| label | multipleStart () const |
| Return the index of the start of the multiply-connected feature. More... | |
| bool | featurePoint (label ptI) const |
| Return whether or not the point index is a feature point. More... | |
| const vectorField & | normals () const |
| Return the normals of the surfaces adjacent to the feature edges. More... | |
| const List< sideVolumeType > & | normalVolumeTypes () const |
| Return. More... | |
| const vectorField & | edgeDirections () const |
| Return the edgeDirection vectors. More... | |
| const labelListList & | normalDirections () const |
| vector | edgeDirection (label edgeI, label ptI) const |
| Return the direction of edgeI, pointing away from ptI. More... | |
| const labelListList & | edgeNormals () const |
| Return the indices of the normals that are adjacent to the. More... | |
| vectorField | edgeNormals (const labelList &edgeNormIs) const |
| Return the normal vectors for a given set of normal indices. More... | |
| vectorField | edgeNormals (label edgeI) const |
| Return the normal vectors for a given edge. More... | |
| const labelListList & | featurePointNormals () const |
| Return the indices of the normals that are adjacent to the. More... | |
| vectorField | featurePointNormals (label ptI) const |
| Return the normal vectors for a given feature point. More... | |
| const labelListList & | featurePointEdges () const |
| Return the edge labels for a given feature point. Edges are. More... | |
| const labelList & | regionEdges () const |
| Return the feature edges which are on the boundary between. More... | |
| pointStatus | getPointStatus (label ptI) const |
| Return the pointStatus of a specified point. More... | |
| edgeStatus | getEdgeStatus (label edgeI) const |
| Return the edgeStatus of a specified edge. More... | |
| PackedList< 2 > | edgeBaffles (label edgeI) const |
| Return the baffle faces of a specified edge. More... | |
| const indexedOctree< treeDataPoint > & | pointTree () const |
| Demand driven construction of octree for feature points. More... | |
| const indexedOctree< treeDataEdge > & | edgeTree () const |
| Demand driven construction of octree for boundary edges. More... | |
| const PtrList< indexedOctree< treeDataEdge > > & | edgeTreesByType () const |
| Demand driven construction of octree for boundary edges by type. More... | |
| void | transfer (extendedEdgeMesh &) |
| Transfer the contents of the argument and annul the argument. More... | |
| virtual void | clear () |
| Clear all storage. More... | |
| void | add (const extendedEdgeMesh &) |
| Add extendedEdgeMesh. No filtering of duplicates. More... | |
| void | flipNormals () |
| Flip normals. All concave become convex, all internal external. More... | |
| bool | read (const fileName &, const word &ext) |
| Read from file. Chooses reader based on explicit extension. More... | |
| virtual bool | read (const fileName &) |
| Read from file. Chooses reader based on detected extension. More... | |
| void | writeObj (const fileName &prefix, const bool verbose=true) const |
| Write all components of the extendedEdgeMesh as obj files. More... | |
| virtual void | writeStats (Ostream &os) const |
| Dump some information. More... | |
Public Member Functions inherited from edgeMesh | |
| TypeName ("edgeMesh") | |
| Runtime type information. More... | |
| edgeMesh () | |
| Construct null. More... | |
| edgeMesh (const pointField &, const edgeList &) | |
| Construct from components. More... | |
| edgeMesh (pointField &&, edgeList &&) | |
| Construct by transferring components (points, edges). More... | |
| edgeMesh (const edgeMesh &) | |
| Copy constructor. More... | |
| edgeMesh (edgeMesh &&) | |
| Move constructor. More... | |
| edgeMesh (const fileName &) | |
| Construct from file name (uses extension to determine type) More... | |
| edgeMesh (const fileName &, const word &ext) | |
| Construct from file name (uses extension to determine type) More... | |
| edgeMesh (Istream &) | |
| Construct from Istream. More... | |
| declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
| virtual | ~edgeMesh () |
| Destructor. More... | |
| declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh)) | |
| void | transfer (edgeMesh &) |
| Transfer the contents of the argument and annul the argument. More... | |
| bool | read (const fileName &, const word &ext) |
| Read from file. Chooses reader based on explicit extension. More... | |
| const pointField & | points () const |
| Return points. More... | |
| const edgeList & | edges () const |
| Return edges. More... | |
| const labelListList & | pointEdges () const |
| Return edges. More... | |
| label | regions (labelList &edgeRegion) const |
| Find connected regions. Set region number per edge. More... | |
| virtual void | reset (pointField &&points, edgeList &&edges) |
| Reset primitive data (points, edges) More... | |
| virtual void | scalePoints (const scalar) |
| Scale points. A non-positive factor is ignored. More... | |
| virtual void | mergeEdges () |
| Merge duplicate edges. More... | |
| virtual void | write (const fileName &name) const |
| Generic write routine. Chooses writer based on extension. More... | |
| void | operator= (const edgeMesh &) |
| void | operator= (edgeMesh &&) |
Static Public Member Functions | |
| static bool | canRead (const fileName &, const bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canReadType (const word &ext, const bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canWriteType (const word &ext, const bool verbose=false) |
| Can we write this file format type? More... | |
| static wordHashSet | readTypes () |
| static wordHashSet | writeTypes () |
| static autoPtr< extendedEdgeMesh > | New (const fileName &, const word &ext) |
| Select constructed from filename (explicit extension) More... | |
| static autoPtr< extendedEdgeMesh > | New (const fileName &) |
| Select constructed from filename (implicit extension) More... | |
| static edgeStatus | classifyEdge (const List< vector > &norms, const labelList &edNorms, const vector &fC0tofC1) |
| Classify the type of feature edge. Requires face centre 0 to face. More... | |
Static Public Member Functions inherited from edgeMesh | |
| static bool | canRead (const fileName &, const bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canReadType (const word &ext, const bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canWriteType (const word &ext, const bool verbose=false) |
| Can we write this file format type? More... | |
| static wordHashSet | readTypes () |
| static wordHashSet | writeTypes () |
| static autoPtr< edgeMesh > | New (const fileName &, const word &ext) |
| Select constructed from filename (explicit extension) More... | |
| static autoPtr< edgeMesh > | New (const fileName &) |
| Select constructed from filename (implicit extension) More... | |
| static void | write (const fileName &, const edgeMesh &) |
| Write to file. More... | |
Static Public Member Functions inherited from edgeMeshFormatsCore | |
| static bool | checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName) |
| ... More... | |
Static Public Attributes | |
| static const Foam::NamedEnum< pointStatus, 4 > | pointStatusNames_ |
| static const Foam::NamedEnum< edgeStatus, 6 > | edgeStatusNames_ |
| static const Foam::NamedEnum< sideVolumeType, 4 > | sideVolumeTypeNames_ |
| static scalar | cosNormalAngleTol_ |
| Angular closeness tolerance for treating normals as the same. More... | |
| static label | nPointTypes = 4 |
| Number of possible point types (i.e. number of slices) More... | |
| static label | nEdgeTypes = 5 |
| Number of possible feature edge types (i.e. number of slices) More... | |
Static Public Attributes inherited from edgeMeshFormatsCore | |
| static word | nativeExt |
| The file extension corresponding to 'native' edge format. More... | |
Protected Member Functions | |
| pointStatus | classifyFeaturePoint (label ptI) const |
| Classify the type of feature point. Requires valid stored member. More... | |
| template<class Patch > | |
| void | sortPointsAndEdges (const Patch &, const labelList &featureEdges, const labelList ®ionFeatureEdges, const labelList &feaurePoints) |
Protected Member Functions inherited from edgeMesh | |
| pointField & | storedPoints () |
| Non-const access to global points. More... | |
| edgeList & | storedEdges () |
| Non-const access to the edges. More... | |
Protected Attributes | |
| label | concaveStart_ |
| Index of the start of the concave feature points. More... | |
| label | mixedStart_ |
| Index of the start of the mixed type feature points. More... | |
| label | nonFeatureStart_ |
| Index of the start of the non-feature points. More... | |
| label | internalStart_ |
| Index of the start of the internal feature edges. More... | |
| label | flatStart_ |
| Index of the start of the flat feature edges. More... | |
| label | openStart_ |
| Index of the start of the open feature edges. More... | |
| label | multipleStart_ |
| Index of the start of the multiply-connected feature edges. More... | |
| vectorField | normals_ |
| Normals of the features, to be referred to by index by both feature. More... | |
| List< sideVolumeType > | normalVolumeTypes_ |
| Type per normal: which side of normal to mesh. More... | |
| vectorField | edgeDirections_ |
| Flat and open edges require the direction of the edge. More... | |
| labelListList | normalDirections_ |
| Starting directions for the edges. More... | |
| labelListList | edgeNormals_ |
| Indices of the normals that are adjacent to the feature edges. More... | |
| labelListList | featurePointNormals_ |
| Indices of the normals that are adjacent to the feature points. More... | |
| labelListList | featurePointEdges_ |
| Indices of feature edges attached to feature points. The edges are. More... | |
| labelList | regionEdges_ |
| Feature edges which are on the boundary between regions. More... | |
| autoPtr< indexedOctree< treeDataPoint > > | pointTree_ |
| Search tree for all feature points. More... | |
| autoPtr< indexedOctree< treeDataEdge > > | edgeTree_ |
| Search tree for all edges. More... | |
| PtrList< indexedOctree< treeDataEdge > > | edgeTreesByType_ |
| Individual search trees for each type of edge. More... | |
Static Protected Attributes | |
| static label | convexStart_ = 0 |
| Index of the start of the convex feature points - static as 0. More... | |
| static label | externalStart_ = 0 |
| Index of the start of the external feature edges - static as 0. More... | |
Friends | |
| Istream & | operator>> (Istream &is, sideVolumeType &vt) |
| Ostream & | operator<< (Ostream &os, const sideVolumeType &vt) |
| Ostream & | operator<< (Ostream &, const extendedEdgeMesh &) |
| Istream & | operator>> (Istream &, extendedEdgeMesh &) |
Additional Inherited Members | |
Static Protected Member Functions inherited from edgeMeshFormatsCore | |
| static string | getLineNoComment (IFstream &) |
| Read non-comment line. More... | |
Description of feature edges and points.
Feature points are a sorted subset at the start of the overall points list: 0 .. concaveStart_-1 : convex points (w.r.t normals) concaveStart_ .. mixedStart_-1 : concave points mixedStart_ .. nonFeatureStart_-1 : mixed internal/external points nonFeatureStart_ .. size-1 : non-feature points
Feature edges are the edgeList of the edgeMesh and are sorted: 0 .. internalStart_-1 : external edges (convex w.r.t normals) internalStart_ .. flatStart_-1 : internal edges (concave) flatStart_ .. openStart_-1 : flat edges (neither concave or convex) can arise from region interfaces on flat surfaces openStart_ .. multipleStart_-1 : open edges (e.g. from baffle surfaces) multipleStart_ .. size-1 : multiply connected edges
The edge direction and feature edge and feature point adjacent normals are stored.
Definition at line 85 of file extendedEdgeMesh.H.
| enum pointStatus |
| Enumerator | |
|---|---|
| CONVEX | |
| CONCAVE | |
| MIXED | |
| NONFEATURE | |
Definition at line 95 of file extendedEdgeMesh.H.
| enum edgeStatus |
| Enumerator | |
|---|---|
| EXTERNAL | |
| INTERNAL | |
| FLAT | |
| OPEN | |
| MULTIPLE | |
| NONE | |
Definition at line 105 of file extendedEdgeMesh.H.
| enum sideVolumeType |
Normals point to the outside.
| Enumerator | |
|---|---|
| INSIDE | |
| OUTSIDE | |
| BOTH | |
| NEITHER | |
Definition at line 119 of file extendedEdgeMesh.H.
| extendedEdgeMesh | ( | ) |
Construct null.
Definition at line 245 of file extendedEdgeMesh.C.
|
explicit |
Copy constructor.
Definition at line 269 of file extendedEdgeMesh.C.
|
explicit |
Move constructor.
Definition at line 293 of file extendedEdgeMesh.C.
| extendedEdgeMesh | ( | const fileName & | name | ) |
Construct from file name (uses extension to determine type)
Definition at line 541 of file extendedEdgeMesh.C.
References Foam::name(), and extendedEdgeMesh::read().

| extendedEdgeMesh | ( | const fileName & | name, |
| const word & | ext | ||
| ) |
Construct from file name (uses extension to determine type)
Definition at line 511 of file extendedEdgeMesh.C.
References Foam::name(), and extendedEdgeMesh::read().

| extendedEdgeMesh | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 317 of file extendedEdgeMesh.C.
| extendedEdgeMesh | ( | pointField && | pointLst, |
| edgeList && | edgeLst | ||
| ) |
Construct by transferring components (points, edges)
Definition at line 323 of file extendedEdgeMesh.C.
| extendedEdgeMesh | ( | const surfaceFeatures & | sFeat, |
| const boolList & | surfBaffleRegions | ||
| ) |
Construct given a surface with selected edges,points.
(surfaceFeatures) Extracts, classifies and reorders the data from surfaceFeatures.
Definition at line 351 of file extendedEdgeMesh.C.
References extendedEdgeMesh::BOTH, PrimitivePatch< FaceList, PointField >::edgeFaces(), Foam::faceMap(), surfaceFeatures::featureEdges(), surfaceFeatures::featurePoints(), forAll, Foam::identityMap(), extendedEdgeMesh::INSIDE, extendedEdgeMesh::normals_, extendedEdgeMesh::normalVolumeTypes_, surfaceFeatures::nRegionEdges(), List< T >::setSize(), List< T >::size(), extendedEdgeMesh::sortPointsAndEdges(), and surfaceFeatures::surface().

| extendedEdgeMesh | ( | const PrimitivePatch< faceList, pointField > & | surf, |
| const labelList & | featureEdges, | ||
| const labelList & | regionFeatureEdges, | ||
| const labelList & | featurePoints | ||
| ) |
Construct from PrimitivePatch.
Definition at line 430 of file extendedEdgeMesh.C.
References extendedEdgeMesh::sortPointsAndEdges().

| extendedEdgeMesh | ( | const pointField & | pts, |
| const edgeList & | eds, | ||
| label | concaveStart, | ||
| label | mixedStart, | ||
| label | nonFeatureStart, | ||
| label | internalStart, | ||
| label | flatStart, | ||
| label | openStart, | ||
| label | multipleStart, | ||
| const vectorField & | normals, | ||
| const List< sideVolumeType > & | normalVolumeTypes, | ||
| const vectorField & | edgeDirections, | ||
| const labelListList & | normalDirections, | ||
| const labelListList & | edgeNormals, | ||
| const labelListList & | featurePointNormals, | ||
| const labelListList & | featurePointEdges, | ||
| const labelList & | regionEdges | ||
| ) |
Construct from all components.
Definition at line 468 of file extendedEdgeMesh.C.
| ~extendedEdgeMesh | ( | ) |
Destructor.
Definition at line 569 of file extendedEdgeMesh.C.
| TypeName | ( | "extendedEdgeMesh" | ) |
Runtime type information.
|
protected |
Classify the type of feature point. Requires valid stored member.
data for edges and normals.
Definition at line 153 of file extendedEdgeMesh.C.
References forAll, and List< T >::size().
Referenced by extendedEdgeMesh::sortPointsAndEdges().


|
protected |
Definition at line 35 of file extendedEdgeMeshTemplates.C.
References Foam::abort(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::append(), Vector< Cmpt >::centre(), extendedEdgeMesh::classifyEdge(), extendedEdgeMesh::classifyFeaturePoint(), extendedEdgeMesh::CONCAVE, extendedEdgeMesh::concaveStart_, extendedEdgeMesh::CONVEX, extendedEdgeMesh::cosNormalAngleTol_, Foam::cross(), extendedEdgeMesh::edgeDirections(), extendedEdgeMesh::edgeDirections_, edgeMesh::edgeMesh(), extendedEdgeMesh::edgeNormals(), extendedEdgeMesh::edgeNormals_, UList< T >::end(), edge::end(), extendedEdgeMesh::EXTERNAL, Foam::faceMap(), Foam::FatalError, FatalErrorInFunction, extendedEdgeMesh::featurePointEdges_, extendedEdgeMesh::featurePointNormals(), extendedEdgeMesh::featurePointNormals_, Foam::findIndex(), extendedEdgeMesh::FLAT, extendedEdgeMesh::flatStart_, forAll, Foam::identityMap(), Foam::inplaceRenumber(), Foam::inplaceReorder(), extendedEdgeMesh::INTERNAL, extendedEdgeMesh::internalStart_, Foam::invert(), k, Foam::mag(), extendedEdgeMesh::MIXED, extendedEdgeMesh::mixedStart_, extendedEdgeMesh::MULTIPLE, extendedEdgeMesh::multipleStart_, extendedEdgeMesh::nEdgeTypes, Foam::nl, extendedEdgeMesh::NONE, extendedEdgeMesh::NONFEATURE, extendedEdgeMesh::nonFeatureStart_, extendedEdgeMesh::normalDirections(), extendedEdgeMesh::normalDirections_, extendedEdgeMesh::normals_, extendedEdgeMesh::OPEN, extendedEdgeMesh::openStart_, edgeMesh::operator=(), edgeMesh::pointEdges(), edgeMesh::points(), extendedEdgeMesh::regionEdges(), extendedEdgeMesh::regionEdges_, edgeMesh::reset(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), List< T >::setSize(), List< T >::size(), PatchTools::sortedEdgeFaces(), PatchTools::sortedPointEdges(), edge::start(), List< T >::transfer(), edge::vec(), and Foam::Zero.
Referenced by extendedEdgeMesh::extendedEdgeMesh().


|
static |
Can we read this file format?
Definition at line 135 of file extendedEdgeMesh.C.
References Foam::name().

|
static |
Can we read this file format?
Definition at line 103 of file extendedEdgeMesh.C.
|
static |
Can we write this file format type?
Definition at line 119 of file extendedEdgeMesh.C.
|
static |
Definition at line 88 of file extendedEdgeMesh.C.
|
static |
Definition at line 94 of file extendedEdgeMesh.C.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| extendedEdgeMesh | , | ||
| fileExtension | , | ||
| (const fileName &name) | , | ||
| (name) | |||
| ) |
|
static |
Select constructed from filename (explicit extension)
Definition at line 39 of file extendedEdgeMeshNew.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and Foam::nl.

|
static |
Select constructed from filename (implicit extension)
Definition at line 62 of file extendedEdgeMeshNew.C.
References Foam::name(), and Foam::New().

| void nearestFeaturePoint | ( | const point & | sample, |
| scalar | searchDistSqr, | ||
| pointIndexHit & | info | ||
| ) | const |
Find nearest surface edge for the sample point.
Definition at line 603 of file extendedEdgeMesh.C.
| void nearestFeatureEdge | ( | const point & | sample, |
| scalar | searchDistSqr, | ||
| pointIndexHit & | info | ||
| ) | const |
Find nearest surface edge for the sample point.
Definition at line 618 of file extendedEdgeMesh.C.
| void nearestFeatureEdge | ( | const pointField & | samples, |
| const scalarField & | searchDistSqr, | ||
| pointIndexHitList & | info | ||
| ) | const |
Find nearest surface edge for each sample point.
Definition at line 633 of file extendedEdgeMesh.C.
References forAll, samples(), List< T >::setSize(), and List< T >::size().

| void nearestFeatureEdgeByType | ( | const point & | sample, |
| const scalarField & | searchDistSqr, | ||
| pointIndexHitList & | info | ||
| ) | const |
Find the nearest point on each type of feature edge.
Definition at line 654 of file extendedEdgeMesh.C.
References forAll, List< T >::setSize(), and UPtrList< T >::size().

| void allNearestFeaturePoints | ( | const point & | sample, |
| scalar | searchRadiusSqr, | ||
| pointIndexHitList & | info | ||
| ) | const |
Find all the feature points within searchDistSqr of sample.
Definition at line 690 of file extendedEdgeMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, points, List< T >::size(), and List< T >::transfer().

| void allNearestFeatureEdges | ( | const point & | sample, |
| const scalar | searchRadiusSqr, | ||
| pointIndexHitList & | info | ||
| ) | const |
Find all the feature edges within searchDistSqr of sample.
Definition at line 721 of file extendedEdgeMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::e, forAll, PointHit< Point >::hit(), points, PointHit< Point >::rawPoint(), List< T >::setSize(), UPtrList< T >::size(), and List< T >::transfer().

| Foam::scalar minDisconnectedDist | ( | const pointIndexHitList & | hitList | ) | const |
Return the minimum distance between disconnected edges.
Definition at line 777 of file extendedEdgeMesh.C.
References edge::connected(), Foam::GREAT, PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), PointIndexHit< Point >::index(), Foam::mag(), Foam::min(), Foam::minDist(), and List< T >::size().

|
inline |
Return the index of the start of the convex feature points.
Definition at line 28 of file extendedEdgeMeshI.H.
References extendedEdgeMesh::convexStart_.
|
inline |
Return the index of the start of the concave feature points.
Definition at line 34 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the mixed type feature points.
Definition at line 40 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the non-feature points.
Definition at line 46 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the external feature edges.
Definition at line 52 of file extendedEdgeMeshI.H.
|
inline |
Return the index of the start of the internal feature edges.
Definition at line 58 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the flat feature edges.
Definition at line 64 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the open feature edges.
Definition at line 70 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return the index of the start of the multiply-connected feature.
edges
Definition at line 76 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return whether or not the point index is a feature point.
Definition at line 82 of file extendedEdgeMeshI.H.
|
inline |
Return the normals of the surfaces adjacent to the feature edges.
and points
Definition at line 88 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add().

|
inline |
Return.
Definition at line 95 of file extendedEdgeMeshI.H.
|
inline |
Return the edgeDirection vectors.
Definition at line 101 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add(), and extendedEdgeMesh::sortPointsAndEdges().

|
inline |
Definition at line 109 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::sortPointsAndEdges().

|
inline |
Return the direction of edgeI, pointing away from ptI.
Definition at line 115 of file extendedEdgeMeshI.H.
References Foam::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::Zero.

|
inline |
Return the indices of the normals that are adjacent to the.
feature edges
Definition at line 144 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add(), and extendedEdgeMesh::sortPointsAndEdges().

|
inline |
Return the normal vectors for a given set of normal indices.
Definition at line 151 of file extendedEdgeMeshI.H.
References forAll, and List< T >::size().

|
inline |
Return the normal vectors for a given edge.
Definition at line 167 of file extendedEdgeMeshI.H.
|
inline |
Return the indices of the normals that are adjacent to the.
feature points
Definition at line 175 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add(), and extendedEdgeMesh::sortPointsAndEdges().

|
inline |
Return the normal vectors for a given feature point.
Definition at line 181 of file extendedEdgeMeshI.H.
References Foam::endl(), forAll, List< T >::size(), and WarningInFunction.

|
inline |
Return the edge labels for a given feature point. Edges are.
ordered by the faces that they share. The edge labels correspond to the entry in edges().
Definition at line 210 of file extendedEdgeMeshI.H.
|
inline |
Return the feature edges which are on the boundary between.
regions
Definition at line 216 of file extendedEdgeMeshI.H.
Referenced by extendedEdgeMesh::add(), refinementFeatures::regionEdgeTrees(), and extendedEdgeMesh::sortPointsAndEdges().

|
inline |
Return the pointStatus of a specified point.
Definition at line 223 of file extendedEdgeMeshI.H.
|
inline |
Return the edgeStatus of a specified edge.
Definition at line 245 of file extendedEdgeMeshI.H.
|
inline |
Return the baffle faces of a specified edge.
Definition at line 270 of file extendedEdgeMeshI.H.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, and List< T >::size().

| const Foam::indexedOctree< Foam::treeDataPoint > & pointTree | ( | ) | const |
Demand driven construction of octree for feature points.
Definition at line 828 of file extendedEdgeMesh.C.
References Foam::e, Foam::identityMap(), and points.

| const Foam::indexedOctree< Foam::treeDataEdge > & edgeTree | ( | ) | const |
Demand driven construction of octree for boundary edges.
Definition at line 860 of file extendedEdgeMesh.C.
References Foam::e, Foam::identityMap(), and points.

| const Foam::PtrList< Foam::indexedOctree< Foam::treeDataEdge > > & edgeTreesByType | ( | ) | const |
Demand driven construction of octree for boundary edges by type.
Definition at line 894 of file extendedEdgeMesh.C.
References Foam::e, forAll, Foam::identityMap(), and points.

| void transfer | ( | extendedEdgeMesh & | mesh | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 951 of file extendedEdgeMesh.C.
References mesh, edgeMesh::transfer(), and HashTable< T, Key, Hash >::transfer().

|
virtual |
Clear all storage.
Reimplemented from edgeMesh.
Definition at line 976 of file extendedEdgeMesh.C.
References edgeMesh::clear().

| void add | ( | const extendedEdgeMesh & | fem | ) |
Add extendedEdgeMesh. No filtering of duplicates.
Definition at line 1000 of file extendedEdgeMesh.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), extendedEdgeMesh::concaveStart(), Foam::e, extendedEdgeMesh::edgeDirections(), extendedEdgeMesh::edgeNormals(), edgeMesh::edges(), extendedEdgeMesh::featurePointNormals(), extendedEdgeMesh::flatStart(), forAll, extendedEdgeMesh::internalStart(), extendedEdgeMesh::mixedStart(), extendedEdgeMesh::multipleStart(), newPointi, extendedEdgeMesh::nonFeatureStart(), extendedEdgeMesh::normals(), extendedEdgeMesh::openStart(), points, edgeMesh::points(), extendedEdgeMesh::regionEdges(), Field< Type >::rmap(), and List< T >::size().

| void flipNormals | ( | ) |
Flip normals. All concave become convex, all internal external.
etc.
Definition at line 1248 of file extendedEdgeMesh.C.
References Foam::e, forAll, Foam::identityMap(), newPointi, points, and Field< Type >::rmap().

Read from file. Chooses reader based on explicit extension.
Definition at line 591 of file extendedEdgeMesh.C.
References Foam::name(), and Foam::New().
Referenced by extendedEdgeMesh::extendedEdgeMesh().


|
virtual |
Read from file. Chooses reader based on detected extension.
Reimplemented from edgeMesh.
Reimplemented in extendedEdgeMeshFormat.
Definition at line 575 of file extendedEdgeMesh.C.
References fileName::ext(), Foam::name(), and Foam::read().

| void writeObj | ( | const fileName & | prefix, |
| const bool | verbose = true |
||
| ) | const |
Write all components of the extendedEdgeMesh as obj files.
Definition at line 1356 of file extendedEdgeMesh.C.
References Foam::e, Foam::endl(), forAll, Foam::Info, OFstream::name(), Foam::nl, points, OBJstream::write(), and edgeMesh::write().

|
virtual |
Dump some information.
Reimplemented from edgeMesh.
Definition at line 1483 of file extendedEdgeMesh.C.
References Foam::decrIndent(), Foam::incrIndent(), Foam::indent(), Foam::nl, points, Foam::setw(), List< T >::size(), and edgeMesh::writeStats().

|
static |
Classify the type of feature edge. Requires face centre 0 to face.
centre 1 vector to distinguish internal from external
Definition at line 200 of file extendedEdgeMesh.C.
References List< T >::size().
Referenced by extendedEdgeMesh::sortPointsAndEdges().


|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 103 of file extendedEdgeMesh.H.
|
static |
Definition at line 116 of file extendedEdgeMesh.H.
|
static |
Definition at line 127 of file extendedEdgeMesh.H.
|
static |
Angular closeness tolerance for treating normals as the same.
Definition at line 130 of file extendedEdgeMesh.H.
Referenced by extendedEdgeMesh::sortPointsAndEdges().
|
staticprotected |
Index of the start of the convex feature points - static as 0.
Definition at line 138 of file extendedEdgeMesh.H.
Referenced by extendedEdgeMesh::convexStart().
|
staticprotected |
Index of the start of the external feature edges - static as 0.
Definition at line 141 of file extendedEdgeMesh.H.
|
protected |
Index of the start of the concave feature points.
Definition at line 147 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the mixed type feature points.
Definition at line 150 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the non-feature points.
Definition at line 153 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the internal feature edges.
Definition at line 156 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the flat feature edges.
Definition at line 159 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the open feature edges.
Definition at line 162 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Index of the start of the multiply-connected feature edges.
Definition at line 165 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Normals of the features, to be referred to by index by both feature.
points and edges, unsorted
Definition at line 169 of file extendedEdgeMesh.H.
Referenced by extendedEdgeMesh::extendedEdgeMesh(), Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Type per normal: which side of normal to mesh.
Definition at line 172 of file extendedEdgeMesh.H.
Referenced by extendedEdgeMesh::extendedEdgeMesh(), Foam::operator<<(), and Foam::operator>>().
|
protected |
Flat and open edges require the direction of the edge.
Definition at line 175 of file extendedEdgeMesh.H.
Referenced by extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Starting directions for the edges.
This vector points to the half of the plane defined by the first edge normal.
Definition at line 180 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Indices of the normals that are adjacent to the feature edges.
Definition at line 183 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Indices of the normals that are adjacent to the feature points.
(only valid for 0..nonFeatureStart_-1)
Definition at line 187 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Indices of feature edges attached to feature points. The edges are.
ordered so that they can be circulated.
Definition at line 191 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
protected |
Feature edges which are on the boundary between regions.
Definition at line 194 of file extendedEdgeMesh.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and extendedEdgeMesh::sortPointsAndEdges().
|
mutableprotected |
Search tree for all feature points.
Definition at line 197 of file extendedEdgeMesh.H.
|
mutableprotected |
Search tree for all edges.
Definition at line 200 of file extendedEdgeMesh.H.
|
mutableprotected |
Individual search trees for each type of edge.
Definition at line 203 of file extendedEdgeMesh.H.
|
static |
Number of possible point types (i.e. number of slices)
Definition at line 226 of file extendedEdgeMesh.H.
|
static |
Number of possible feature edge types (i.e. number of slices)
Definition at line 229 of file extendedEdgeMesh.H.
Referenced by extendedEdgeMesh::sortPointsAndEdges().