CFx SDK Documentation
2023 SP0
|
#include <GeUvBox.h>
Public Member Functions | |
OdGeUvBox () | |
OdGeUvBox (const OdGeInterval &iIntervalU, const OdGeInterval &iIntervalV) | |
const OdGeInterval & | u () const |
const OdGeInterval & | v () const |
OdGeInterval & | u () |
OdGeInterval & | v () |
const OdGeInterval & | operator[] (int idx) const |
OdGeInterval & | operator[] (int idx) |
OdGeUvBox & | set () |
OdGeUvBox & | set (const OdGeInterval &iIntervalU, const OdGeInterval &iIntervalV) |
OdGeUvBox & | set (const OdGePoint2d &iLowerBound, const OdGePoint2d &iUpperBound) |
bool | contains (double uparam, double vparam) const |
bool | contains (const OdGePoint2d &uvpoint) const |
bool | isBounded () const |
bool | finiteIntersectWith (const OdGeUvBox &range, OdGeUvBox &result) const |
OdGePoint2d | lowerBound () const |
OdGePoint2d | upperBound () const |
bool | isEqualTo (const OdGeUvBox &uvbox) const |
operator OdGeExtents2d () const | |
OdGePoint2d | eval (double ratioU, double ratioV) const |
OdGePoint2d | clamp (const OdGePoint2d &point) const |
Public Attributes | |
OdGeInterval | intervals [2] |
Represents a box in UV-space of a surface.
Corresponding C++ library: TD_Ge
<group !!RECORDS_tkernel_apiref>
|
inline |
|
inline |
Constructor for the OdGeUvBox structure.
iIntervalU | [in] Parametric interval that defines bounds for U parameter. |
iIntervalV | [in] Parametric interval that defines bounds for V parameter. |
|
inline |
bool OdGeUvBox::contains | ( | const OdGePoint2d & | uvpoint | ) | const |
Determines whether coordinates of passed 2D point are inside corresponding intervals.
uvpoint | [in] A 2D point, coordinates of which are tested to be inside corresponding intervals of this UV box. |
bool OdGeUvBox::contains | ( | double | uparam, |
double | vparam | ||
) | const |
Determines whether passed parameter values are inside corresponding intervals.
uparam | [in] A parameter value that is presumably inside the U interval of this UV box. |
vparam | [in] A parameter value that is presumably inside the V interval of this UV box. |
|
inline |
Evaluates parameter value by the interval ratio for U and V parameters and returns a 2D point with corresponding coordinates.
ratioU | [in] A ratio for evaluation the U parameter from the interval. |
ratioV | [in] A ratio for evaluation the V parameter from the interval. |
Find finite sub-envelope belonging both to the specified range and this one
range | [in] The uv-box to be intersected. |
result | [out] Receives the intersected uv-box. |
bool OdGeUvBox::isBounded | ( | ) | const |
Determines if intervals of this UV box are bounded.
bool OdGeUvBox::isEqualTo | ( | const OdGeUvBox & | uvbox | ) | const |
Compares input UV box to this UV box.
uvbox | [in] Input UV box that is compared. |
|
inline |
OdGeUvBox::operator OdGeExtents2d | ( | ) | const |
This operator constructs OdGeExtents2d object from this UV box structure.
|
inline |
|
inline |
|
inline |
|
inline |
OdGeUvBox& OdGeUvBox::set | ( | const OdGePoint2d & | iLowerBound, |
const OdGePoint2d & | iUpperBound | ||
) |
Sets the U and V intervals for this UV box according to the passed 2D points.
iLowerBound | [in] 2D point that defines the lower bound for U and V parameter of this UV box. |
iUpperBound | [in] 2D point that defines the upper bound for U and V parameter of this UV box. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
OdGeInterval OdGeUvBox::intervals[2] |