Mesh::Vertex Class Reference

The Vertex class represents the vertex entity, This class stores a pointer to a Point which contains geometry and attribute information. More...

#include <mesh.h>

Collaboration diagram for Mesh::Vertex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Vertex (Point *p)
 The constructor initializates the class variables to null values.
 ~Vertex ()
 The Edge class destructor.
Pointp ()
 Returns the geometry and attribute information.
void set_star (Hedge *h)
 Initializes the vertex half-edge.
Hedgestar_first ()
 Returns the half-edge of the vertex.
Hedgestar_next (Hedge *h)
 Returns pointer to next half-edge in face loop.
bool is_bdry ()
 Returns true if the vertex belongs to mesh boundary, else return false.

Private Attributes

Hedges_
 vertex incoming half-edge (star handle).
Pointp_
 geometry and attribute information.

Detailed Description

The Vertex class represents the vertex entity, This class stores a pointer to a Point which contains geometry and attribute information.

Definition at line 479 of file mesh.h.


Constructor & Destructor Documentation

Mesh::Vertex::Vertex Point p  )  [inline]
 

The constructor initializates the class variables to null values.

Definition at line 487 of file mesh.h.

References p(), p_, and s_.

00487 {p_ = p; s_ = NULL;};

Mesh::Vertex::~Vertex  )  [inline]
 

The Edge class destructor.

Definition at line 490 of file mesh.h.

00490 {};


Member Function Documentation

bool Mesh::Vertex::is_bdry  )  [inline]
 

Returns true if the vertex belongs to mesh boundary, else return false.

Returns:
boolean type (true or false).

Definition at line 513 of file mesh.h.

References Mesh::Hedge::edge(), Mesh::Edge::is_bdry(), and s_.

Referenced by Mesh::Surf::detach_handle_3(), and Mesh::Surf::unglue().

00513 { return s_->edge()->is_bdry(); };

Point* Mesh::Vertex::p  )  [inline]
 

Returns the geometry and attribute information.

Definition at line 493 of file mesh.h.

References p_.

Referenced by Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::destroy(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), and Vertex().

00493 { return p_; }; 

void Mesh::Vertex::set_star Hedge h  )  [inline]
 

Initializes the vertex half-edge.

Parameters:
h Half-edge pointer.

Definition at line 497 of file mesh.h.

References s_.

Referenced by Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_4(), Mesh::Surf::create(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_4(), Mesh::Surf::flip(), and Mesh::Surf::split().

00497 { s_ = h; }; 

Hedge* Mesh::Vertex::star_first  )  [inline]
 

Returns the half-edge of the vertex.

Returns:
half-edge pointer.

Definition at line 501 of file mesh.h.

References s_.

Referenced by Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::flip(), Mesh::Surf::unglue(), and Mesh::Surf::weld().

00501 { return s_; }; 

Hedge* Mesh::Vertex::star_next Hedge h  )  [inline]
 

Returns pointer to next half-edge in face loop.

Parameters:
h Half-edge pointer.
Returns:
Return half-edge pointer.

Definition at line 506 of file mesh.h.

References Mesh::Hedge::face(), Mesh::Hedge::mate(), Mesh::Hedge::next(), and s_.

Referenced by Mesh::Surf::weld().

00506                               {
00507     if (h->face() ==NULL ) return NULL; // other side of bdry
00508     else { Hedge *n = h->next()->mate(); return (n == s_)? NULL : n; }
00509   }


Member Data Documentation

Point* Mesh::Vertex::p_ [private]
 

geometry and attribute information.

Definition at line 482 of file mesh.h.

Referenced by p(), and Vertex().

Hedge* Mesh::Vertex::s_ [private]
 

vertex incoming half-edge (star handle).

Definition at line 481 of file mesh.h.

Referenced by is_bdry(), set_star(), star_first(), star_next(), and Vertex().


The documentation for this class was generated from the following file:
Generated on Fri Feb 24 12:23:25 2006 for TOPs by  doxygen 1.4.6-NO