Halfedge class used by the LineTes class. More...
#include <ttessel.h>
Public Member Functions | |
| LineTes_halfedge () | |
| Basic constructor. More... | |
| LineTes::Halfedge_handle | get_prev_hf () |
| Return previous halfedge along the segment. | |
| LineTes::Halfedge_handle | get_next_hf () |
| Return next halfedge along the segment. | |
| bool | get_dir () |
| Test halfedge direction against the segment direction. More... | |
| double | get_length () |
| Return the halfedge length. | |
| LineTes::Seg_handle | get_segment () |
| Return a handle of the segment containing the halfedge. | |
| LineTes::Seg_handle | segment () |
| Return a handle of the segment containing the halfedge. More... | |
| void | set_length () |
| Update the length attribute of a halfedge. | |
| void | set_length (double l) |
| Set the length attribute of an halfedge. | |
| void | set_prev_hf (LineTes::Halfedge_handle) |
| Set the previous halfedge along the segment. | |
| void | set_next_hf (LineTes::Halfedge_handle) |
| Set the next halfedge along the segment. | |
| void | set_dir () |
| Update the direction attribute of a halfedge. More... | |
| void | set_dir (bool d) |
| Set the direction attribute of a halfedge. More... | |
| void | set_segment (LineTes::Seg_handle s) |
| Define the segment containing the halfedge. | |
| bool | is_one_edge_segment () |
| Test whether a halfedge starting a segment is also ending the segment. More... | |
Halfedge class used by the LineTes class.
The LineTes_halfedge class derives from the CGAL class Arr_halfedge_base. Several attributes related to segments have been added.
A segment represented by a LineTes::Seg object is identified by one of its halfedge. It is therefore oriented and its orientation is determined by the orientation of its identifying halfedge.
| LineTes_halfedge::LineTes_halfedge | ( | ) |
Basic constructor.
Invoke the parent constructor, set length to zero and next and previous halfedges along the segment as null halfedges.
|
inline |
Test halfedge direction against the segment direction.
|
inline |
Test whether a halfedge starting a segment is also ending the segment.
|
inline |
Return a handle of the segment containing the halfedge.
| void LineTes_halfedge::set_dir | ( | ) |
Update the direction attribute of a halfedge.
The direction is inherited from the neighbour halfedges on the segment. Priority given to the next halfedge.
| void LineTes_halfedge::set_dir | ( | bool | d | ) |
Set the direction attribute of a halfedge.
The convention is to set the direction to true if the halfedge and the halfedge identifying the segment have the same direction.
1.8.6