![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Point-OffsetCurve extrema computation using grid-based approach. More...
#include <ExtremaPC_OffsetCurve.hxx>
Public Member Functions | |
| ExtremaPC_OffsetCurve (const Adaptor3d_Curve &theCurve) | |
| Constructor with curve adaptor (uses full curve domain). Grid is built eagerly at construction time. | |
| ExtremaPC_OffsetCurve (const Adaptor3d_Curve &theCurve, const ExtremaPC::Domain1D &theDomain) | |
| Constructor with curve adaptor and parameter domain. Grid is built eagerly at construction time for the specified domain. | |
| ExtremaPC_OffsetCurve (const ExtremaPC_OffsetCurve &)=delete | |
| Copy constructor is deleted. | |
| ExtremaPC_OffsetCurve & | operator= (const ExtremaPC_OffsetCurve &)=delete |
| Copy assignment operator is deleted. | |
| ExtremaPC_OffsetCurve (ExtremaPC_OffsetCurve &&)=default | |
| Move constructor. | |
| ExtremaPC_OffsetCurve & | operator= (ExtremaPC_OffsetCurve &&)=default |
| Move assignment operator. | |
| gp_Pnt | Value (double theU) const |
| Evaluates point on curve at parameter. | |
| bool | IsBounded () const |
| Returns true if domain is bounded. | |
| const ExtremaPC::Domain1D & | Domain () const |
| Returns the domain. | |
| const ExtremaPC::Result & | Perform (const gp_Pnt &theP, double theTol, ExtremaPC::SearchMode theMode=ExtremaPC::SearchMode::MinMax) const |
| Compute extrema between point P and the curve. Uses domain specified at construction time. | |
| const ExtremaPC::Result & | PerformWithEndpoints (const gp_Pnt &theP, double theTol, ExtremaPC::SearchMode theMode=ExtremaPC::SearchMode::MinMax) const |
| Compute extrema between point P and the curve including endpoints. Uses domain specified at construction time. | |
Point-OffsetCurve extrema computation using grid-based approach.
Computes the extrema between a 3D point and an offset curve using a grid-based approach with Newton refinement.
The grid is cached for efficiency when performing multiple queries with the same parameter domain.
The algorithm:
Offset curves are handled through the Adaptor3d_Curve interface, which provides uniform access to the offset geometry.
The domain is fixed at construction time and the grid is built eagerly for optimal performance with multiple queries.
|
explicit |
Constructor with curve adaptor (uses full curve domain). Grid is built eagerly at construction time.
| [in] | theCurve | curve adaptor for offset curve (must remain valid) |
| ExtremaPC_OffsetCurve::ExtremaPC_OffsetCurve | ( | const Adaptor3d_Curve & | theCurve, |
| const ExtremaPC::Domain1D & | theDomain ) |
Constructor with curve adaptor and parameter domain. Grid is built eagerly at construction time for the specified domain.
| [in] | theCurve | curve adaptor for offset curve (must remain valid) |
| [in] | theDomain | parameter domain (fixed for all queries) |
|
delete |
Copy constructor is deleted.
|
default |
Move constructor.
|
inline |
Returns the domain.
|
inline |
Returns true if domain is bounded.
|
delete |
Copy assignment operator is deleted.
|
default |
Move assignment operator.
| const ExtremaPC::Result & ExtremaPC_OffsetCurve::Perform | ( | const gp_Pnt & | theP, |
| double | theTol, | ||
| ExtremaPC::SearchMode | theMode = ExtremaPC::SearchMode::MinMax ) const |
Compute extrema between point P and the curve. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for root finding |
| theMode | search mode (MinMax, Min, or Max) |
| const ExtremaPC::Result & ExtremaPC_OffsetCurve::PerformWithEndpoints | ( | const gp_Pnt & | theP, |
| double | theTol, | ||
| ExtremaPC::SearchMode | theMode = ExtremaPC::SearchMode::MinMax ) const |
Compute extrema between point P and the curve including endpoints. Uses domain specified at construction time.
| theP | query point |
| theTol | tolerance for root finding |
| theMode | search mode (MinMax, Min, or Max) |
Evaluates point on curve at parameter.
| theU | parameter |