ActiveLib
Loading...
Searching...
No Matches
Public Member Functions | List of all members
active::geometry::Faceter Class Reference

A class to divide an arc into facets. More...

#include <Faceter.h>

Public Member Functions

 Faceter (const Point &orig, const PolyPoint &end, bool isStart=false, bool isEnd=true, double toler=0.002)
 
 Faceter (const Point &orig, const PolyPoint &end, double step)
 
 Faceter (const Faceter &source)
 
 ~Faceter ()
 
void operator++ ()
 
Faceter operator++ (int)
 
Point getVertex () const
 
bool isAtStart () const
 
bool isAtEnd () const
 
double getRemainder () const
 

Detailed Description

A class to divide an arc into facets.

Constructor & Destructor Documentation

◆ Faceter() [1/3]

Faceter::Faceter ( const Point & orig,
const PolyPoint & end,
bool isStart = false,
bool isEnd = true,
double toler = 0.002 )

Constructor

Parameters
origThe arc origin
endThe arc end
isStartInclude a vertex at the start angle
isEndInclude a vertex at the end angle
tolerThe arc tolerance
Here is the call graph for this function:

◆ Faceter() [2/3]

Faceter::Faceter ( const Point & orig,
const PolyPoint & end,
double step )

Constructor

Parameters
origThe arc origin
endThe arc end
stepThe step value along the path
Here is the call graph for this function:

◆ Faceter() [3/3]

Faceter::Faceter ( const Faceter & source)

Copy constructor

Parameters
sourceThe object to copy

◆ ~Faceter()

active::geometry::Faceter::~Faceter ( )
inline

Destructor

Member Function Documentation

◆ getRemainder()

double active::geometry::Faceter::getRemainder ( ) const
inline

Get the remaining length of the edge after the last vertex

Returns
The remainder

◆ getVertex()

Point Faceter::getVertex ( ) const

Get the current vertex

Returns
The current vertex
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAtEnd()

bool active::geometry::Faceter::isAtEnd ( ) const
inline

Determine if the end angle has been reached

Returns
True if the end angle has been reached
Here is the caller graph for this function:

◆ isAtStart()

bool active::geometry::Faceter::isAtStart ( ) const
inline

Determine if the current position is at the start

Returns
True if the current position is at the start
Here is the caller graph for this function:

◆ operator++() [1/2]

void Faceter::operator++ ( )

Increment operator

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator++() [2/2]

Faceter Faceter::operator++ ( int )

Postfix increment operator

Returns
A copy of this
Here is the call graph for this function:

The documentation for this class was generated from the following files: