#include <mesh.h>
Collaboration diagram for Mesh::Hedge:
Public Member Functions | |
Hedge () | |
The construtor specifies a Hedge class. | |
~Hedge () | |
The Hedge class destructor. | |
Face * | face () |
Returns the half-egde's face. | |
Vertex * | org () |
Returns the half-edge's origin vertex. | |
Vertex * | dst () |
Returns the end vertex of the half-edge. | |
Edge * | edge () |
Returns the half-edges's parent edge. | |
Hedge * | mate () |
Returns the opposite half-edge. | |
Hedge * | prev () |
Returns the previous half-edge. | |
Hedge * | next () |
Returns the next half-edge. | |
Hedge * | prev_on_bdry () |
Returns the previous half-edge in boundary. | |
Edge * | get_bdry () |
Returns the boundary it belongs. | |
void | set_face (Face *f) |
Links half-edge to face. | |
void | set_org (Vertex *v) |
Links half-edge to vertex. | |
void | set_next (Hedge *h) |
Updates next half-edge. | |
void | set_edge (Edge *e) |
Links half-edge to edge. | |
void | set_prev_on_bdry (Hedge *e) |
Updates previous half-edge in boundary. | |
Hedge * | reuse (Vertex *v0, Vertex *v1) |
Redefines the vertices of the half-edge. | |
Private Attributes | |
Vertex * | o_ |
Origin vertex pointer. | |
Hedge * | n_ |
Next half-edge pointer. | |
Face * | f_ |
Face pointer. | |
Edge * | e_ |
Edge pointer. |
OBS: for boundary hedges h
h.mate.face == NULL
h.mate.edge: points to the edge representative of the boundary curve
h.mate.next: points to the previous half-edge on the boundary
Definition at line 368 of file mesh.h.
|
The construtor specifies a Hedge class.
Definition at line 377 of file mesh.h.
|
|
The Hedge class destructor.
Definition at line 379 of file mesh.h.
|
|
Returns the end vertex of the half-edge.
Definition at line 391 of file mesh.h. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::bisect(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_4(), Mesh::Surf::flip(), Mesh::Surf::glue(), and Mesh::Surf::unglue(). 00391 { return mate()->org(); };
|
|
Returns the half-edges's parent edge.
Definition at line 395 of file mesh.h. References e_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::bisect(), Mesh::Surf::destroy(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_4(), get_bdry(), Mesh::Vertex::is_bdry(), Mesh::Point::on_bdry(), and Mesh::Surf::unglue(). 00395 { return e_; };
|
|
Returns the half-egde's face.
Definition at line 383 of file mesh.h. References f_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_4(), Mesh::Surf::flip(), get_bdry(), Mesh::Surf::glue(), set_prev_on_bdry(), Mesh::Surf::split(), and Mesh::Vertex::star_next(). 00383 { return f_; };
|
|
Returns the boundary it belongs.
Definition at line 415 of file mesh.h. References edge(), face(), and mate(). Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::bisect(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), and Mesh::Surf::glue().
|
|
Returns the opposite half-edge.
Definition at line 43 of file edge.cpp. References e_, and Mesh::Edge::hedge(). Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::bisect(), Mesh::Surf::destroy(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), dst(), Mesh::Surf::flip(), get_bdry(), Mesh::Surf::lookup_hedge(), prev_on_bdry(), reuse(), set_prev_on_bdry(), Mesh::Surf::split(), Mesh::Vertex::star_next(), and Mesh::Surf::unglue().
|
|
Returns the next half-edge.
Definition at line 407 of file mesh.h. References n_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::flip(), Mesh::Face::hedge(), prev(), prev_on_bdry(), Mesh::Face::reuse(), Mesh::Surf::split(), and Mesh::Vertex::star_next(). 00407 { return n_; };
|
|
Returns the half-edge's origin vertex.
Definition at line 387 of file mesh.h. References o_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::bisect(), Mesh::Surf::destroy(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_3(), Mesh::Surf::detach_handle_4(), Mesh::Edge::dst(), dst(), Mesh::Surf::flip(), Mesh::Surf::glue(), Mesh::Edge::org(), Mesh::Surf::unglue(), and Mesh::Face::vertex(). 00387 { return o_; };
|
|
Returns the previous half-edge.
Definition at line 403 of file mesh.h. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::attach_handle_4(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::flip(), and Mesh::Surf::split().
|
|
Returns the previous half-edge in boundary.
Definition at line 411 of file mesh.h. References mate(), and next(). Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::bisect(), Mesh::Surf::detach_handle_1(), and Mesh::Surf::detach_handle_2(). 00411 { return mate()->next(); };
|
|
Redefines the vertices of the half-edge. Updates the vertices of the half-edge.
Definition at line 54 of file edge.cpp. References mate(), set_face(), set_next(), and set_org(). Referenced by Mesh::Surf::flip(). 00055 { 00056 set_org(v0); mate()->set_org(v1); 00057 set_next(NULL); mate()->set_next(NULL); 00058 set_face(NULL); mate()->set_face(NULL); 00059 return this; 00060 }
|
|
Links half-edge to edge.
Definition at line 427 of file mesh.h. References e_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_4(), Mesh::Edge::Edge(), and Mesh::Edge::set_bdry(). 00427 { e_ = e; };
|
|
Links half-edge to face.
Definition at line 418 of file mesh.h. References f_. Referenced by Mesh::Surf::attach_handle_0(), Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_4(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), Mesh::Surf::detach_handle_4(), Mesh::Edge::Edge(), Mesh::Face::reuse(), and reuse(). 00418 { f_ = f; };
|
|
Updates next half-edge.
Definition at line 424 of file mesh.h. References n_. Referenced by Mesh::Edge::Edge(), Mesh::Face::reuse(), reuse(), Mesh::Face::set_hedge(), and set_prev_on_bdry(). 00424 { n_ = h; };
|
|
Links half-edge to vertex.
Definition at line 421 of file mesh.h. References o_. Referenced by Mesh::Surf::attach_handle_0(), 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::Edge::Edge(), and reuse(). 00421 { o_ = v; };
|
|
Updates previous half-edge in boundary.
Definition at line 430 of file mesh.h. References face(), mate(), and set_next(). Referenced by Mesh::Surf::attach_handle_1(), Mesh::Surf::attach_handle_2(), Mesh::Surf::attach_handle_3(), Mesh::Surf::create(), Mesh::Surf::detach_handle_1(), Mesh::Surf::detach_handle_2(), and Mesh::Surf::detach_handle_4().
|
|
Edge pointer.
Definition at line 373 of file mesh.h. Referenced by edge(), mate(), and set_edge(). |
|
Face pointer.
Definition at line 372 of file mesh.h. Referenced by face(), and set_face(). |
|
Next half-edge pointer.
Definition at line 371 of file mesh.h. Referenced by next(), prev(), and set_next(). |
|
Origin vertex pointer.
|