indexedVertex< Gt, Vb > Class Template Reference

An indexed form of CGAL::Triangulation_vertex_base_3<K> used to keep track of the Delaunay vertices in the tessellation. More...

Classes

struct  Rebind_TDS
 

Public Types

enum  pointTypes { NEAR_BOUNDARY_POINT = -4, INTERNAL_POINT = -3, MIRROR_POINT = -2, FAR_POINT = -1 }
 
typedef Vb::Triangulation_data_structure Tds
 
typedef Vb::Point Point
 
typedef Tds::Vertex_handle Vertex_handle
 
typedef Tds::Cell_handle Cell_handle
 
typedef Vb::Vertex_handle Vertex_handle
 
typedef Vb::Face_handle Face_handle
 
typedef Vb::Point Point
 

Public Member Functions

 indexedVertex (const indexedVertex &)=default
 Copy construct. More...
 
 indexedVertex ()
 
 indexedVertex (const Point &p)
 
 indexedVertex (const Point &p, vertexType type)
 
 indexedVertex (const Foam::point &p, vertexType type)
 
 indexedVertex (const Point &p, Foam::label index, vertexType type, int processor)
 
 indexedVertex (const Foam::point &p, Foam::label index, vertexType type, int processor)
 
 indexedVertex (const Point &p, Cell_handle f)
 
 indexedVertex (Cell_handle f)
 
Foam::label & index ()
 
Foam::label index () const
 
vertexType & type ()
 
vertexType type () const
 
Foam::tensoralignment ()
 
const Foam::tensoralignment () const
 
Foam::scalar & targetCellSize ()
 
Foam::scalar targetCellSize () const
 
bool farPoint () const
 Is point a far-point. More...
 
bool internalPoint () const
 Is point internal, i.e. not on boundary. More...
 
bool referred () const
 Is this a referred vertex. More...
 
bool real () const
 Is this a "real" point on this processor, i.e. is internal or part. More...
 
int procIndex () const
 
int & procIndex ()
 
void setInternal ()
 Set the point to be internal. More...
 
bool nearBoundary () const
 Is point internal and near the boundary. More...
 
void setNearBoundary ()
 Set the point to be near the boundary. More...
 
bool nearProcBoundary () const
 Is point internal and near a proc boundary. More...
 
void setNearProcBoundary ()
 Set the point to be near a proc boundary. More...
 
bool boundaryPoint () const
 Either master or slave of pointPair. More...
 
bool internalOrBoundaryPoint () const
 Either original internal point or master of pointPair. More...
 
bool nearOrOnBoundary () const
 Is point near the boundary or part of the boundary definition. More...
 
bool featurePoint () const
 Part of a feature point. More...
 
bool featureEdgePoint () const
 Part of a feature edge. More...
 
bool surfacePoint () const
 Part of a surface point pair. More...
 
bool internalBoundaryPoint () const
 
bool internalBaffleSurfacePoint () const
 
bool internalBaffleEdgePoint () const
 
bool externalBoundaryPoint () const
 
bool externalBaffleSurfacePoint () const
 
bool externalBaffleEdgePoint () const
 
bool constrained () const
 
bool fixed () const
 Is the vertex fixed or movable. More...
 
boolfixed ()
 Fix the vertex so that it can't be moved. More...
 
void operator= (const indexedVertex &rhs)
 Copy assignment. More...
 
bool operator== (const indexedVertex &rhs) const
 
bool operator!= (const indexedVertex &rhs) const
 
Foam::InfoProxy< indexedVertex< Gt, Vb > > info () const
 Info proxy, to print information to a stream. More...
 
 indexedVertex ()
 
 indexedVertex (const Point &p)
 
 indexedVertex (const Point &p, const int index, const int &type)
 
 indexedVertex (const Point &p, Face_handle f)
 
 indexedVertex (Face_handle f)
 
int & index ()
 
int index () const
 
int & type ()
 
int type () const
 
bool farPoint () const
 Is point a far-point. More...
 
bool internalPoint () const
 Is point internal, i.e. not on boundary. More...
 
bool nearBoundary () const
 Is point internal and near the boundary. More...
 
void setNearBoundary ()
 Set the point to be near the boundary. More...
 
bool mirrorPoint () const
 Is point a mirror point. More...
 
bool pairPoint () const
 Either master or slave of pointPair. More...
 
bool ppMaster () const
 Master of a pointPair is the lowest numbered one. More...
 
bool ppSlave () const
 Slave of a pointPair is the highest numbered one. More...
 
bool internalOrBoundaryPoint () const
 Either original internal point or master of pointPair. More...
 
bool nearOrOnBoundary () const
 Is point near the boundary or part of the boundary definition. More...
 

Friends

Foam::OstreamFoam::operator (Foam::Ostream &, const Foam::InfoProxy< indexedVertex< Gt, Vb >> &)
 
Foam::OstreamFoam::operator (Foam::Ostream &, const indexedVertex< Gt, Vb > &)
 
Foam::IstreamFoam::operator>> (Foam::Istream &, indexedVertex< Gt, Vb > &)
 
bool pointPair (const indexedVertex< Gt, Vb > &v0, const indexedVertex< Gt, Vb > &v1)
 Do the two given vertices constitute a boundary point-pair. More...
 
bool boundaryTriangle (const indexedVertex< Gt, Vb > &v0, const indexedVertex< Gt, Vb > &v1, const indexedVertex< Gt, Vb > &v2)
 Do the three given vertices constitute a boundary triangle. More...
 
bool outsideTriangle (const indexedVertex< Gt, Vb > &v0, const indexedVertex< Gt, Vb > &v1, const indexedVertex< Gt, Vb > &v2)
 Do the three given vertices constitute an outside triangle. More...
 

Detailed Description

template<class Gt, class Vb = CGAL::Triangulation_vertex_base_2<Gt>>
class CGAL::indexedVertex< Gt, Vb >

An indexed form of CGAL::Triangulation_vertex_base_3<K> used to keep track of the Delaunay vertices in the tessellation.

An indexed form of CGAL::Triangulation_vertex_base_2<K> used to keep track of the vertices in the triangulation.

Source files

Definition at line 54 of file indexedVertex.H.

Member Typedef Documentation

◆ Tds

typedef Vb::Triangulation_data_structure Tds

Definition at line 134 of file indexedVertex.H.

◆ Point [1/2]

typedef Vb::Point Point

Definition at line 135 of file indexedVertex.H.

◆ Vertex_handle [1/2]

typedef Tds::Vertex_handle Vertex_handle

Definition at line 136 of file indexedVertex.H.

◆ Cell_handle

typedef Tds::Cell_handle Cell_handle

Definition at line 137 of file indexedVertex.H.

◆ Vertex_handle [2/2]

Definition at line 105 of file indexedVertex.H.

◆ Face_handle

Definition at line 106 of file indexedVertex.H.

◆ Point [2/2]

typedef Vb::Point Point

Definition at line 107 of file indexedVertex.H.

Member Enumeration Documentation

◆ pointTypes

enum pointTypes
Enumerator
NEAR_BOUNDARY_POINT 
INTERNAL_POINT 
MIRROR_POINT 
FAR_POINT 

Definition at line 97 of file indexedVertex.H.

Constructor & Destructor Documentation

◆ indexedVertex() [1/14]

indexedVertex ( const indexedVertex< Gt, Vb > &  )
default

Copy construct.

◆ indexedVertex() [2/14]

indexedVertex ( )
inline

Definition at line 33 of file indexedVertexI.H.

◆ indexedVertex() [3/14]

indexedVertex ( const Point p)
inline

Definition at line 46 of file indexedVertexI.H.

◆ indexedVertex() [4/14]

indexedVertex ( const Point p,
vertexType  type 
)
inline

Definition at line 60 of file indexedVertexI.H.

◆ indexedVertex() [5/14]

indexedVertex ( const Foam::point p,
vertexType  type 
)
inline

Definition at line 77 of file indexedVertexI.H.

◆ indexedVertex() [6/14]

indexedVertex ( const Point p,
Foam::label  index,
vertexType  type,
int  processor 
)
inline

Definition at line 94 of file indexedVertexI.H.

◆ indexedVertex() [7/14]

indexedVertex ( const Foam::point p,
Foam::label  index,
vertexType  type,
int  processor 
)
inline

Definition at line 113 of file indexedVertexI.H.

◆ indexedVertex() [8/14]

indexedVertex ( const Point p,
Cell_handle  f 
)
inline

Definition at line 131 of file indexedVertexI.H.

◆ indexedVertex() [9/14]

indexedVertex ( Cell_handle  f)
inline

Definition at line 144 of file indexedVertexI.H.

◆ indexedVertex() [10/14]

indexedVertex ( )
inline

◆ indexedVertex() [11/14]

indexedVertex ( const Point p)
inline

◆ indexedVertex() [12/14]

indexedVertex ( const Point p,
const int  index,
const int &  type 
)
inline

Definition at line 51 of file indexedVertexI.H.

◆ indexedVertex() [13/14]

indexedVertex ( const Point p,
Face_handle  f 
)
inline

Definition at line 64 of file indexedVertexI.H.

◆ indexedVertex() [14/14]

indexedVertex ( Face_handle  f)
inline

Definition at line 73 of file indexedVertexI.H.

Member Function Documentation

◆ index() [1/4]

int & index ( )
inline

Definition at line 159 of file indexedVertexI.H.

◆ index() [2/4]

int index ( ) const
inline

Definition at line 166 of file indexedVertexI.H.

◆ type() [1/4]

int & type ( )
inline

Definition at line 174 of file indexedVertexI.H.

◆ type() [2/4]

int type ( ) const
inline

Definition at line 182 of file indexedVertexI.H.

◆ alignment() [1/2]

Foam::tensor & alignment ( )
inline

Definition at line 189 of file indexedVertexI.H.

◆ alignment() [2/2]

const Foam::tensor & alignment ( ) const
inline

Definition at line 196 of file indexedVertexI.H.

◆ targetCellSize() [1/2]

Foam::scalar & targetCellSize ( )
inline

Definition at line 203 of file indexedVertexI.H.

◆ targetCellSize() [2/2]

Foam::scalar targetCellSize ( ) const
inline

Definition at line 210 of file indexedVertexI.H.

◆ farPoint() [1/2]

bool farPoint ( ) const
inline

Is point a far-point.

Definition at line 217 of file indexedVertexI.H.

Referenced by CGAL::outsideTriangle().

Here is the caller graph for this function:

◆ internalPoint() [1/2]

bool internalPoint ( ) const
inline

Is point internal, i.e. not on boundary.

Definition at line 224 of file indexedVertexI.H.

◆ referred()

bool referred ( ) const
inline

Is this a referred vertex.

Definition at line 231 of file indexedVertexI.H.

References UPstream::myProcNo().

Here is the call graph for this function:

◆ real()

bool real ( ) const
inline

Is this a "real" point on this processor, i.e. is internal or part.

of the boundary description, and not a "far" or "referred" point

Definition at line 244 of file indexedVertexI.H.

◆ procIndex() [1/2]

int procIndex ( ) const
inline

Definition at line 251 of file indexedVertexI.H.

◆ procIndex() [2/2]

int & procIndex ( )
inline

Definition at line 258 of file indexedVertexI.H.

◆ setInternal()

void setInternal ( )
inline

Set the point to be internal.

Definition at line 265 of file indexedVertexI.H.

◆ nearBoundary() [1/2]

bool nearBoundary ( ) const
inline

Is point internal and near the boundary.

Definition at line 272 of file indexedVertexI.H.

◆ setNearBoundary() [1/2]

void setNearBoundary ( )
inline

Set the point to be near the boundary.

Definition at line 279 of file indexedVertexI.H.

◆ nearProcBoundary()

bool nearProcBoundary ( ) const
inline

Is point internal and near a proc boundary.

◆ setNearProcBoundary()

void setNearProcBoundary ( )
inline

Set the point to be near a proc boundary.

◆ boundaryPoint()

bool boundaryPoint ( ) const
inline

Either master or slave of pointPair.

Definition at line 286 of file indexedVertexI.H.

◆ internalOrBoundaryPoint() [1/2]

bool internalOrBoundaryPoint ( ) const
inline

Either original internal point or master of pointPair.

Definition at line 293 of file indexedVertexI.H.

◆ nearOrOnBoundary() [1/2]

bool nearOrOnBoundary ( ) const
inline

Is point near the boundary or part of the boundary definition.

Definition at line 300 of file indexedVertexI.H.

◆ featurePoint()

bool featurePoint ( ) const
inline

Part of a feature point.

Definition at line 351 of file indexedVertexI.H.

◆ featureEdgePoint()

bool featureEdgePoint ( ) const
inline

Part of a feature edge.

Definition at line 358 of file indexedVertexI.H.

◆ surfacePoint()

bool surfacePoint ( ) const
inline

Part of a surface point pair.

Definition at line 365 of file indexedVertexI.H.

◆ internalBoundaryPoint()

bool internalBoundaryPoint ( ) const
inline

Definition at line 307 of file indexedVertexI.H.

◆ internalBaffleSurfacePoint()

bool internalBaffleSurfacePoint ( ) const
inline

Definition at line 313 of file indexedVertexI.H.

◆ internalBaffleEdgePoint()

bool internalBaffleEdgePoint ( ) const
inline

Definition at line 319 of file indexedVertexI.H.

◆ externalBoundaryPoint()

bool externalBoundaryPoint ( ) const
inline

Definition at line 325 of file indexedVertexI.H.

◆ externalBaffleSurfacePoint()

bool externalBaffleSurfacePoint ( ) const
inline

Definition at line 331 of file indexedVertexI.H.

◆ externalBaffleEdgePoint()

bool externalBaffleEdgePoint ( ) const
inline

Definition at line 337 of file indexedVertexI.H.

◆ constrained()

bool constrained ( ) const
inline

Definition at line 344 of file indexedVertexI.H.

◆ fixed() [1/2]

bool fixed ( ) const
inline

Is the vertex fixed or movable.

Definition at line 372 of file indexedVertexI.H.

◆ fixed() [2/2]

bool & fixed ( )
inline

Fix the vertex so that it can't be moved.

Definition at line 379 of file indexedVertexI.H.

◆ operator=()

void operator= ( const indexedVertex< Gt, Vb > &  rhs)
inline

Copy assignment.

Definition at line 274 of file indexedVertex.H.

◆ operator==()

bool operator== ( const indexedVertex< Gt, Vb > &  rhs) const
inline

Definition at line 286 of file indexedVertex.H.

◆ operator!=()

bool operator!= ( const indexedVertex< Gt, Vb > &  rhs) const
inline

Definition at line 298 of file indexedVertex.H.

◆ info()

Foam::InfoProxy<indexedVertex<Gt, Vb> > info ( ) const
inline

Info proxy, to print information to a stream.

Definition at line 307 of file indexedVertex.H.

◆ index() [3/4]

int& index ( )
inline

◆ index() [4/4]

int index ( ) const
inline

◆ type() [3/4]

int& type ( )
inline

◆ type() [4/4]

int type ( ) const
inline

◆ farPoint() [2/2]

bool farPoint ( ) const
inline

Is point a far-point.

◆ internalPoint() [2/2]

bool internalPoint ( ) const
inline

Is point internal, i.e. not on boundary.

◆ nearBoundary() [2/2]

bool nearBoundary ( ) const
inline

Is point internal and near the boundary.

◆ setNearBoundary() [2/2]

void setNearBoundary ( )
inline

Set the point to be near the boundary.

◆ mirrorPoint()

bool mirrorPoint ( ) const
inline

Is point a mirror point.

Definition at line 140 of file indexedVertexI.H.

◆ pairPoint()

bool pairPoint ( ) const
inline

Either master or slave of pointPair.

Definition at line 147 of file indexedVertexI.H.

Referenced by CGAL::boundaryTriangle().

Here is the caller graph for this function:

◆ ppMaster()

bool ppMaster ( ) const
inline

Master of a pointPair is the lowest numbered one.

Definition at line 154 of file indexedVertexI.H.

◆ ppSlave()

bool ppSlave ( ) const
inline

Slave of a pointPair is the highest numbered one.

Definition at line 161 of file indexedVertexI.H.

Referenced by CGAL::outsideTriangle().

Here is the caller graph for this function:

◆ internalOrBoundaryPoint() [2/2]

bool internalOrBoundaryPoint ( ) const
inline

Either original internal point or master of pointPair.

◆ nearOrOnBoundary() [2/2]

bool nearOrOnBoundary ( ) const
inline

Is point near the boundary or part of the boundary definition.

Friends And Related Function Documentation

◆ Foam::operator [1/2]

Foam::Ostream& Foam::operator ( Foam::Ostream ,
const Foam::InfoProxy< indexedVertex< Gt, Vb >> &   
)
friend

◆ Foam::operator [2/2]

Foam::Ostream& Foam::operator ( Foam::Ostream ,
const indexedVertex< Gt, Vb > &   
)
friend

◆ Foam::operator>>

Foam::Istream& Foam::operator>> ( Foam::Istream ,
indexedVertex< Gt, Vb > &   
)
friend

◆ pointPair

bool pointPair ( const indexedVertex< Gt, Vb > &  v0,
const indexedVertex< Gt, Vb > &  v1 
)
friend

Do the two given vertices constitute a boundary point-pair.

◆ boundaryTriangle

bool boundaryTriangle ( const indexedVertex< Gt, Vb > &  v0,
const indexedVertex< Gt, Vb > &  v1,
const indexedVertex< Gt, Vb > &  v2 
)
friend

Do the three given vertices constitute a boundary triangle.

◆ outsideTriangle

bool outsideTriangle ( const indexedVertex< Gt, Vb > &  v0,
const indexedVertex< Gt, Vb > &  v1,
const indexedVertex< Gt, Vb > &  v2 
)
friend

Do the three given vertices constitute an outside triangle.


The documentation for this class was generated from the following files: