![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
2D parameter domain for surfaces. More...
#include <MathUtils_Domain.hxx>
Public Member Functions | |
| constexpr | Domain2D ()=default |
| Default constructor - creates empty domain. | |
| constexpr | Domain2D (double theUMin, double theUMax, double theVMin, double theVMax) |
| Construct from bounds. | |
| constexpr | Domain2D (const Domain1D &theUDomain, const Domain1D &theVDomain) |
| Construct from two 1D domains. | |
| constexpr Domain1D | U () const |
| Returns the U subdomain. | |
| constexpr Domain1D | V () const |
| Returns the V subdomain. | |
| constexpr double | ULength () const |
| Returns U length. | |
| constexpr double | VLength () const |
| Returns V length. | |
| constexpr double | UMid () const |
| Returns U midpoint. | |
| constexpr double | VMid () const |
| Returns V midpoint. | |
| bool | Contains (double theU, double theV, double theTol=0.0) const |
| Check if UV point is within domain. | |
| void | Clamp (double &theU, double &theV) const |
| Clamp UV to domain bounds. | |
| bool | IsLarge (double theThreshold=1000.0) const |
| Check if both U and V domains are "large". | |
| bool | IsUFullPeriod (double thePeriod, double theTol=1.0e-10) const |
| Check if U domain covers a full period. | |
| bool | IsVFullPeriod (double thePeriod, double theTol=1.0e-10) const |
| Check if V domain covers a full period. | |
| bool | IsFinite (double theInfLimit=1.0e100) const |
| Check if domain has finite bounds (not effectively infinite). | |
Data Fields | |
| double | UMin = 0.0 |
| Lower U bound. | |
| double | UMax = 0.0 |
| Upper U bound. | |
| double | VMin = 0.0 |
| Lower V bound. | |
| double | VMax = 0.0 |
| Upper V bound. | |
2D parameter domain for surfaces.
Represents a rectangular parameter domain [UMin, UMax] x [VMin, VMax] with utility methods for:
|
constexprdefault |
Default constructor - creates empty domain.
|
inlineconstexpr |
Construct from bounds.
| theUMin | lower U bound |
| theUMax | upper U bound |
| theVMin | lower V bound |
| theVMax | upper V bound |
|
inlineconstexpr |
Construct from two 1D domains.
| theUDomain | U parameter domain |
| theVDomain | V parameter domain |
Clamp UV to domain bounds.
| theU | U parameter (modified in place) |
| theV | V parameter (modified in place) |
Check if UV point is within domain.
| theU | U parameter |
| theV | V parameter |
| theTol | tolerance for boundary check |
Check if domain has finite bounds (not effectively infinite).
| theInfLimit | threshold for "infinity" (default 1e100) |
Check if both U and V domains are "large".
| theThreshold | size threshold (default 1000) |
Check if U domain covers a full period.
| thePeriod | period of U parameter |
| theTol | tolerance |
Check if V domain covers a full period.
| thePeriod | period of V parameter |
| theTol | tolerance |
| double MathUtils::Domain2D::UMax = 0.0 |
Upper U bound.
| double MathUtils::Domain2D::UMin = 0.0 |
Lower U bound.
| double MathUtils::Domain2D::VMax = 0.0 |
Upper V bound.
| double MathUtils::Domain2D::VMin = 0.0 |
Lower V bound.