Classes | Public Types | Public Member Functions | Friends | List of all members
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...

Inheritance diagram for indexedVertex< Gt, Vb >:
Inheritance graph
[legend]
Collaboration diagram for indexedVertex< Gt, Vb >:
Collaboration graph
[legend]

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 Types inherited from indexedVertexEnum
enum  vertexType {
  vtUnassigned = 0, vtInternal = 1, vtInternalNearBoundary = 2, vtInternalSurface = 3,
  vtInternalSurfaceBaffle = 4, vtExternalSurfaceBaffle = 5, vtInternalFeatureEdge = 6, vtInternalFeatureEdgeBaffle = 7,
  vtExternalFeatureEdgeBaffle = 8, vtInternalFeaturePoint = 9, vtExternalSurface = 10, vtExternalFeatureEdge = 11,
  vtExternalFeaturePoint = 12, vtFar = 13, vtConstrained = 14
}
 
enum  vertexMotion { fixed = 0, movable = 1 }
 

Public Member Functions

 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::labelindex ()
 
Foam::label index () const
 
vertexTypetype ()
 
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...
 
bool & fixed ()
 Fix the vertex so that it can't be moved. More...
 
void operator= (const indexedVertex &rhs)
 
bool operator== (const indexedVertex &rhs) const
 
bool operator!= (const indexedVertex &rhs) const
 
Foam::InfoProxy< indexedVertex< Gt, Vb > > info () const
 Return info proxy. 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 consitute 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 consitute 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 consitute an outside triangle. More...
 

Additional Inherited Members

- Static Public Attributes inherited from indexedVertexEnum
static const Foam::NamedEnum< vertexType, 15 > vertexTypeNames_
 
static const Foam::NamedEnum< vertexMotion, 2 > vertexMotionNames_
 

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 51 of file indexedVertex.H.

Member Typedef Documentation

typedef Vb::Triangulation_data_structure Tds

Definition at line 131 of file indexedVertex.H.

typedef Vb::Point Point

Definition at line 132 of file indexedVertex.H.

typedef Tds::Vertex_handle Vertex_handle

Definition at line 133 of file indexedVertex.H.

typedef Tds::Cell_handle Cell_handle

Definition at line 134 of file indexedVertex.H.

Definition at line 103 of file indexedVertex.H.

Definition at line 104 of file indexedVertex.H.

typedef Vb::Point Point

Definition at line 105 of file indexedVertex.H.

Member Enumeration Documentation

enum pointTypes
Enumerator
NEAR_BOUNDARY_POINT 
INTERNAL_POINT 
MIRROR_POINT 
FAR_POINT 

Definition at line 95 of file indexedVertex.H.

Constructor & Destructor Documentation

indexedVertex ( )
inline

Definition at line 31 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::indexedVertex().

Here is the caller graph for this function:

indexedVertex ( const Point p)
inline

Definition at line 44 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::indexedVertex().

Here is the call graph for this function:

indexedVertex ( const Point p,
vertexType  type 
)
inline

Definition at line 58 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::indexedVertex().

Here is the call graph for this function:

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

Definition at line 75 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::indexedVertex().

Here is the call graph for this function:

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

Definition at line 92 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::indexedVertex().

Here is the call graph for this function:

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

Definition at line 111 of file indexedVertexI.H.

indexedVertex ( const Point p,
Cell_handle  f 
)
inline

Definition at line 129 of file indexedVertexI.H.

indexedVertex ( Cell_handle  f)
inline

Definition at line 142 of file indexedVertexI.H.

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

Definition at line 48 of file indexedVertexI.H.

indexedVertex ( const Point p,
Face_handle  f 
)
inline

Definition at line 61 of file indexedVertexI.H.

indexedVertex ( Face_handle  f)
inline

Member Function Documentation

int & index ( )
inline

Definition at line 157 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::operator=(), and indexedVertex< Gt, Vb >::operator==().

Here is the caller graph for this function:

int index ( ) const
inline

Definition at line 164 of file indexedVertexI.H.

int & type ( )
inline

Definition at line 172 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::operator=(), and indexedVertex< Gt, Vb >::operator==().

Here is the caller graph for this function:

int type ( ) const
inline

Definition at line 180 of file indexedVertexI.H.

Foam::tensor & alignment ( )
inline

Definition at line 187 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::operator=().

Here is the caller graph for this function:

const Foam::tensor & alignment ( ) const
inline

Definition at line 194 of file indexedVertexI.H.

Foam::scalar & targetCellSize ( )
inline

Definition at line 201 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::operator=().

Here is the caller graph for this function:

Foam::scalar targetCellSize ( ) const
inline

Definition at line 208 of file indexedVertexI.H.

bool farPoint ( ) const
inline

Is point a far-point.

Definition at line 215 of file indexedVertexI.H.

References indexedVertexEnum::vtFar.

Referenced by indexedVertex< Gt, Vb >::boundaryPoint(), indexedVertex< Gt, Vb >::indexedVertex(), and CGAL::outsideTriangle().

Here is the caller graph for this function:

bool internalPoint ( ) const
inline
bool referred ( ) const
inline

Is this a referred vertex.

Definition at line 229 of file indexedVertexI.H.

References UPstream::myProcNo().

Referenced by indexedVertex< Gt, Vb >::real().

Here is the call graph for this function:

Here is the caller graph for this function:

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 242 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::boundaryPoint(), indexedVertex< Gt, Vb >::internalPoint(), and indexedVertex< Gt, Vb >::referred().

Here is the call graph for this function:

int procIndex ( ) const
inline

Definition at line 249 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::operator=(), and indexedVertex< Gt, Vb >::operator==().

Here is the caller graph for this function:

int & procIndex ( )
inline

Definition at line 256 of file indexedVertexI.H.

void setInternal ( )
inline

Set the point to be internal.

Definition at line 263 of file indexedVertexI.H.

References indexedVertexEnum::vtInternal.

bool nearBoundary ( ) const
inline

Is point internal and near the boundary.

Definition at line 270 of file indexedVertexI.H.

References indexedVertexEnum::vtInternalNearBoundary.

Referenced by indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::nearOrOnBoundary(), and indexedVertex< Gt, Vb >::ppSlave().

Here is the caller graph for this function:

void setNearBoundary ( )
inline

Set the point to be near the boundary.

Definition at line 277 of file indexedVertexI.H.

References indexedVertexEnum::vtInternalNearBoundary.

Referenced by indexedVertex< Gt, Vb >::indexedVertex().

Here is the caller graph for this function:

bool nearProcBoundary ( ) const
inline

Is point internal and near a proc boundary.

void setNearProcBoundary ( )
inline

Set the point to be near a proc boundary.

bool boundaryPoint ( ) const
inline

Either master or slave of pointPair.

Definition at line 284 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::farPoint(), and indexedVertexEnum::vtInternalSurface.

Referenced by indexedVertex< Gt, Vb >::nearOrOnBoundary(), and indexedVertex< Gt, Vb >::real().

Here is the call graph for this function:

Here is the caller graph for this function:

bool internalOrBoundaryPoint ( ) const
inline

Either original internal point or master of pointPair.

Definition at line 291 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::internalBoundaryPoint(), and indexedVertex< Gt, Vb >::internalPoint().

Referenced by indexedVertex< Gt, Vb >::ppSlave().

Here is the call graph for this function:

Here is the caller graph for this function:

bool nearOrOnBoundary ( ) const
inline

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

Definition at line 298 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::boundaryPoint(), and indexedVertex< Gt, Vb >::nearBoundary().

Referenced by indexedVertex< Gt, Vb >::ppSlave().

Here is the call graph for this function:

Here is the caller graph for this function:

bool featurePoint ( ) const
inline

Part of a feature point.

Definition at line 349 of file indexedVertexI.H.

References indexedVertexEnum::vtExternalFeaturePoint, and indexedVertexEnum::vtInternalFeaturePoint.

bool featureEdgePoint ( ) const
inline

Part of a feature edge.

Definition at line 356 of file indexedVertexI.H.

References indexedVertexEnum::vtExternalFeatureEdge, and indexedVertexEnum::vtInternalFeatureEdge.

bool surfacePoint ( ) const
inline

Part of a surface point pair.

Definition at line 363 of file indexedVertexI.H.

References indexedVertexEnum::vtExternalSurface, and indexedVertexEnum::vtInternalSurface.

bool internalBoundaryPoint ( ) const
inline

Definition at line 305 of file indexedVertexI.H.

References indexedVertexEnum::vtInternalFeaturePoint, and indexedVertexEnum::vtInternalSurface.

Referenced by indexedVertex< Gt, Vb >::internalOrBoundaryPoint().

Here is the caller graph for this function:

bool internalBaffleSurfacePoint ( ) const
inline

Definition at line 311 of file indexedVertexI.H.

References indexedVertexEnum::vtInternalSurfaceBaffle.

bool internalBaffleEdgePoint ( ) const
inline

Definition at line 317 of file indexedVertexI.H.

References indexedVertexEnum::vtInternalFeatureEdgeBaffle.

bool externalBoundaryPoint ( ) const
inline
bool externalBaffleSurfacePoint ( ) const
inline

Definition at line 329 of file indexedVertexI.H.

References indexedVertexEnum::vtExternalSurfaceBaffle.

bool externalBaffleEdgePoint ( ) const
inline

Definition at line 335 of file indexedVertexI.H.

References indexedVertexEnum::vtExternalFeatureEdgeBaffle.

bool constrained ( ) const
inline

Definition at line 342 of file indexedVertexI.H.

References indexedVertexEnum::vtConstrained.

bool fixed ( ) const
inline

Is the vertex fixed or movable.

Definition at line 370 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::operator=(), and indexedVertex< Gt, Vb >::operator==().

Here is the caller graph for this function:

bool & fixed ( )
inline

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

Definition at line 377 of file indexedVertexI.H.

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

Definition at line 284 of file indexedVertex.H.

References Foam::contiguous().

Here is the call graph for this function:

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

Return info proxy.

Used to print indexedVertex information to a stream

Definition at line 294 of file indexedVertex.H.

int& index ( )
inline
int index ( ) const
inline
int& type ( )
inline
int type ( ) const
inline
bool farPoint ( ) const
inline

Is point a far-point.

bool internalPoint ( ) const
inline

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

bool nearBoundary ( ) const
inline

Is point internal and near the boundary.

void setNearBoundary ( )
inline

Set the point to be near the boundary.

bool mirrorPoint ( ) const
inline

Is point a mirror point.

Definition at line 137 of file indexedVertexI.H.

References indexedVertex< Gt, Vb >::MIRROR_POINT.

Referenced by indexedVertex< Gt, Vb >::ppSlave().

Here is the caller graph for this function:

bool pairPoint ( ) const
inline

Either master or slave of pointPair.

Definition at line 144 of file indexedVertexI.H.

Referenced by CGAL::boundaryTriangle(), and indexedVertex< Gt, Vb >::ppSlave().

Here is the caller graph for this function:

bool ppMaster ( ) const
inline

Master of a pointPair is the lowest numbered one.

Definition at line 151 of file indexedVertexI.H.

Referenced by indexedVertex< Gt, Vb >::ppSlave().

Here is the caller graph for this function:

bool ppSlave ( ) const
inline
bool internalOrBoundaryPoint ( ) const
inline

Either original internal point or master of pointPair.

bool nearOrOnBoundary ( ) const
inline

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

Friends And Related Function Documentation

Foam::Ostream& Foam::operator ( Foam::Ostream ,
const Foam::InfoProxy< indexedVertex< Gt, Vb >> &   
)
friend
Foam::Ostream& Foam::operator ( Foam::Ostream ,
const indexedVertex< Gt, Vb > &   
)
friend
Foam::Istream& Foam::operator>> ( Foam::Istream ,
indexedVertex< Gt, Vb > &   
)
friend
bool pointPair ( const indexedVertex< Gt, Vb > &  v0,
const indexedVertex< Gt, Vb > &  v1 
)
friend

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

Referenced by CGAL::boundaryTriangle().

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

Do the three given vertices consitute a boundary triangle.

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

Do the three given vertices consitute an outside triangle.


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