Fade2D Documentation pages v2.01
Delaunay Features
SegmentChecker.h File Reference
#include <map>
#include "common.h"
#include "License.h"
#include "Segment2.h"
#include "MsgBase.h"
#include "Bbox2.h"

Go to the source code of this file.

Classes

class  GEOM_FADE2D::SegmentChecker
 SegmentChecker identifies intersecting line segments. More...
 

Enumerations

enum  ClipResult {
  CR_INVALID , CR_EMPTY , CR_CLIPPED_DEGENERATE , CR_CLIPPED_NONDEGENERATE ,
  CR_COMPLETE_DEGENERATE , CR_COMPLETE_NONDEGENERATE
}
 
enum  SegmentIntersectionType {
  SIT_UNINITIALIZED , SIT_NONE , SIT_SEGMENT , SIT_POINT ,
  SIT_ENDPOINT
}
 

Enumeration Type Documentation

◆ ClipResult

enum ClipResult
Enumerator
CR_INVALID 

Can't compute a result, call setLimit() with a valid Bbox2 before!

CR_EMPTY 

The result is empty (input completely outside the box)

CR_CLIPPED_DEGENERATE 

The result has been clipped and is degenerate

CR_CLIPPED_NONDEGENERATE 

The result has been clipped and is non-degenerate

CR_COMPLETE_DEGENERATE 

The result is unclipped and degenerate (because the segment was already degenerate)

CR_COMPLETE_NONDEGENERATE 

The result is unclipped and non-degenerate

◆ SegmentIntersectionType

The Segment intersection type enumerates the way two line segments intersect each other

Enumerator
SIT_UNINITIALIZED 

Invalid value

SIT_NONE 

No intersection

SIT_SEGMENT 

The intersection is a non-degenerate segment (collinear intersection)

SIT_POINT 

The intersection is a single point differnt from the endpoints

SIT_ENDPOINT 

The two segments share a common endpoint which is the only intersection