CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
FacetModeler::Intersection Class Reference

#include <FMContoursBase.h>

Inheritance diagram for FacetModeler::Intersection:
FacetModeler::IntersectionWithIDs

Public Types

enum  Types { eitNone = 0 , eitAny , eitCrossing , eitTouch }
 

Public Member Functions

 Intersection ()
 
 Intersection (const OdGePoint2d &rPt, double dPA=0, double dPB=0, Types eIT=eitNone)
 
IntersectionswapParams ()
 

Static Public Member Functions

static bool lessParamA (const Intersection &rI1, const Intersection &rI2)
 
static bool lessParamB (const Intersection &rI1, const Intersection &rI2)
 

Public Attributes

OdGePoint2d ptPoint
 
OdDouble dParamA
 
OdDouble dParamB
 
Types eType
 

Detailed Description

Describes an intersection between two curves/segments.

Definition at line 257 of file FMContoursBase.h.

Member Enumeration Documentation

◆ Types

Defines intersection types.

Enumerator
eitNone 

No intersection

eitAny 

Intersection of any type (the type was not defined)

eitCrossing 

Curves cross each other at a point

eitTouch 

Curves touch each other at a point

Definition at line 263 of file FMContoursBase.h.

Constructor & Destructor Documentation

◆ Intersection() [1/2]

FacetModeler::Intersection::Intersection ( )
inline

Default constructor.

Definition at line 281 of file FMContoursBase.h.

◆ Intersection() [2/2]

FacetModeler::Intersection::Intersection ( const OdGePoint2d rPt,
double  dPA = 0,
double  dPB = 0,
Types  eIT = eitNone 
)
inline

Constructor. Creates an object with specified intersection point, parameters and intersection type.

Definition at line 287 of file FMContoursBase.h.

Member Function Documentation

◆ lessParamA()

static bool FacetModeler::Intersection::lessParamA ( const Intersection rI1,
const Intersection rI2 
)
inlinestatic

Checks whether parameter A in the 1st intersection object is less than parameter A in the 2nd intersection object.

Parameters
rI1[in] First intersection object to compare.
rI2[in] Second intersection object to compare.
Returns
true if parameter A in the 1st intersection object is less than parameter A in the 2nd intersection object, or false otherwise.

Definition at line 309 of file FMContoursBase.h.

◆ lessParamB()

static bool FacetModeler::Intersection::lessParamB ( const Intersection rI1,
const Intersection rI2 
)
inlinestatic

Checks whether parameter B in the 1st intersection object is less than parameter B in the 2nd intersection object.

Parameters
rI1[in] First intersection object to compare.
rI2[in] Second intersection object to compare.
Returns
true if parameter B in the 1st intersection object is less than parameter B in the 2nd intersection object, or false otherwise.

Definition at line 321 of file FMContoursBase.h.

◆ swapParams()

Intersection & FacetModeler::Intersection::swapParams ( )
inline

Swaps parameters of the intersection.

Returns
Reference to this object.

Definition at line 296 of file FMContoursBase.h.

Member Data Documentation

◆ dParamA

OdDouble FacetModeler::Intersection::dParamA

Parameter on the curve A

Definition at line 331 of file FMContoursBase.h.

◆ dParamB

OdDouble FacetModeler::Intersection::dParamB

Parameter on the curve B

Definition at line 334 of file FMContoursBase.h.

◆ eType

Types FacetModeler::Intersection::eType

Type of intersection

Definition at line 337 of file FMContoursBase.h.

◆ ptPoint

OdGePoint2d FacetModeler::Intersection::ptPoint

Intersection point

Definition at line 328 of file FMContoursBase.h.


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