Segment in a line tessellation. More...
#include <ttessel.h>
Public Member Functions | |
Seg () | |
Empty constructor. | |
Seg (Halfedge_handle) | |
Return a Segment object identified by the provided halfedge handle. | |
Halfedge_handle | halfedges_start () |
Return the halfedge handle starting the segment. More... | |
Halfedge_handle | halfedges_end () |
Return the halfedge handle ending the segment. | |
Size | number_of_edges () |
Return the number of edges along the segment. | |
bool | number_of_edges_is_greater_than (unsigned int) |
Test on the number of edges of the segment. | |
Point2 | pointSource () |
Return the point starting the segment. | |
Point2 | pointTarget () |
Return the point ending the segment. | |
Points | list_of_points () |
Return the list of vertices (as points) lying along the segment. | |
Halfedge_handle | get_halfedge_handle () |
Return the halfedge handle identifying the segment. | |
void | set_halfedge_handle (Halfedge_handle) |
Set the halfedge handle identifying a segment. More... | |
void | print (bool endsOnly=false) |
Print on standard output the segment points. More... | |
Segment in a line tessellation.
In a line tessellation represented by a LineTes object, a segment is defined as a maximal subset of edges that are aligned and connected. A Segment object is mainly a Halfedge_handle referring to an edge lying on the segment.
LineTes::Halfedge_handle LineTes::Seg::halfedges_start | ( | ) |
Return the halfedge handle starting the segment.
The segment orientation is given by its identifying halfedge handle.
void LineTes::Seg::print | ( | bool | endsOnly = false | ) |
Print on standard output the segment points.
endsOnly | : if true, only endpoints are printed. Otherwise, all vertices along the segments are printed. |
void LineTes::Seg::set_halfedge_handle | ( | Halfedge_handle | hh | ) |
Set the halfedge handle identifying a segment.
If the direction attribute of the halfedged handle is false, the opposite halfedge is used instead.