Fade2D Documentation pages v2.16.7
Delaunay Features
Zone2.h File Reference
#include "common.h"
#include "freeFunctions.h"
#include "FadeExport.h"
#include "Bbox2.h"
#include "Edge2.h"
#include "Segment2.h"
#include "UserPredicates.h"
#include "MsgBase.h"
#include "VtkWriter.h"
#include "CompPolygon.h"
#include "PolygonClipper.h"

Go to the source code of this file.

Classes

class  GEOM_FADE2D::Zone2
 Represents a defined area within a triangulation. More...
 

Enumerations

enum  GEOM_FADE2D::OptimizationMode { GEOM_FADE2D::OPTMODE_STANDARD , GEOM_FADE2D::OPTMODE_BETTER , GEOM_FADE2D::OPTMODE_BEST }
 

Functions

CLASS_DECLSPEC Zone2 * GEOM_FADE2D::zoneDifference (Zone2 *pZone0, Zone2 *pZone1)
 Computes the difference between two Zone2 objects. More...
 
CLASS_DECLSPEC Zone2 * GEOM_FADE2D::zoneIntersection (Zone2 *pZone0, Zone2 *pZone1)
 Computes the intersection of two Zone2 objects. More...
 
CLASS_DECLSPEC Zone2 * GEOM_FADE2D::zoneSymmetricDifference (Zone2 *pZone0, Zone2 *pZone1)
 Computes the symmetric difference between two Zone2 objects. More...
 
CLASS_DECLSPEC Zone2 * GEOM_FADE2D::zoneUnion (Zone2 *pZone0, Zone2 *pZone1)
 Computes the union of two Zone2 objects. More...
 

Enumeration Type Documentation

◆ OptimizationMode

Enumerates the possible modes for Valley/Ridge optimization through Zone2::slopeValleyRidgeOptimization().

Enumerator
OPTMODE_STANDARD 

Fastest optimization mode.

OPTMODE_BETTER 

Considerably better quality and still fast.

OPTMODE_BEST 

Best quality but quite time consuming.

Function Documentation

◆ zoneDifference()

CLASS_DECLSPEC Zone2* GEOM_FADE2D::zoneDifference ( Zone2 pZone0,
Zone2 pZone1 
)
Left: pZone0, Middle: pZone1, Right: difference

This function returns a pointer to a new Zone2 object representing the difference between pZone0 and pZone1 (i.e., pZone0 minus pZone1). The input zones must belong to the same Fade_2D object.

Parameters
pZone0Pointer to the first Zone2 object.
pZone1Pointer to the second Zone2 object.
Returns
A pointer to a new Zone2 object representing the difference. If the result is empty, the function returns NULL. Be sure to check this case before proceeding.

◆ zoneIntersection()

CLASS_DECLSPEC Zone2* GEOM_FADE2D::zoneIntersection ( Zone2 pZone0,
Zone2 pZone1 
)
Left: pZone0, Middle: pZone1, Right: intersection

This function returns a pointer to a new Zone2 object representing the intersection of the two input zones. The intersection is the area covered by both input zones. The input zones must belong to the same Fade_2D object.

Parameters
pZone0Pointer to the first Zone2 object.
pZone1Pointer to the second Zone2 object.
Returns
A pointer to a new Zone2 object representing the intersection. If the result is empty, the function returns NULL. Be sure to check for this case before proceeding.

◆ zoneSymmetricDifference()

CLASS_DECLSPEC Zone2* GEOM_FADE2D::zoneSymmetricDifference ( Zone2 pZone0,
Zone2 pZone1 
)
Left: pZone0, Middle: pZone1, Right: symmetric difference

This function returns a pointer to a new Zone2 object representing the symmetric difference between the two input zones. The symmetric difference is the area covered by either of the input zones, but not by both. The input zones must belong to the same Fade_2D object.

Parameters
pZone0Pointer to the first Zone2 object.
pZone1Pointer to the second Zone2 object.
Returns
A pointer to the resulting Zone2 object representing the symmetric difference. If the result is empty, the function returns NULL. Be sure to check for this case before proceeding.

◆ zoneUnion()

CLASS_DECLSPEC Zone2* GEOM_FADE2D::zoneUnion ( Zone2 pZone0,
Zone2 pZone1 
)
Left: pZone0, Middle: pZone1, Right: union

This function returns a pointer to a new Zone2 object representing the union of the two input zones. The union is the area covered by either of the input zones. Both input zones must belong to the same Fade_2D object.

Parameters
pZone0Pointer to the first Zone2 object.
pZone1Pointer to the second Zone2 object.
Returns
A pointer to the resulting Zone2 object representing the union of the two zones.