![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
High-level Gordon surface construction from arbitrary curve networks. More...
#include <GeomFill_Gordon.hxx>
Data Structures | |
| struct | BuildReport |
| Diagnostics for the last Perform() call. More... | |
Public Types | |
| enum class | ResultStatus { NotStarted , Done , InvalidInput , ConversionFailed , IntersectionFailed , OrderingFailed , ReparametrizationFailed , CompatibilityFailed , CurveCompatibilityFailed , RationalReparametrizationFailed , SkinningFailed , ReferenceSurfaceFailed , KnotAlignmentFailed , RationalDegreeOverflow , RationalConstructionFailed , PeriodicityFailed , ApproximationFailed , ConstructionFailed } |
| Result state of the last Perform() call. More... | |
| enum class | ApproximationMode { ExactOnly , AllowApproximateFallback } |
| Controls behavior when exact pole-based construction fails. More... | |
| enum class | BuildStage { NotStarted , InputConversion , ContactDiscovery , NetworkOrdering , Reparametrization , ExactConstruction , Validation , Approximation } |
| Construction stage reached by the last Perform() call. More... | |
Public Member Functions | |
| GeomFill_Gordon () | |
| Creates an empty Gordon surface algorithm. | |
| void | Init (const NCollection_Array1< occ::handle< Geom_Curve > > &theProfiles, const NCollection_Array1< occ::handle< Geom_Curve > > &theGuides, double theTolerance) |
| Initializes the algorithm with profile and guide curves. | |
| void | Perform () |
| Performs the Gordon surface construction. | |
| void | SetParallelMode (bool theToUseParallel) |
| Enables/disables parallel processing in internal stages. By default, single-thread mode is used. | |
| void | SetApproximationMode (ApproximationMode theMode) |
| Sets optional fallback behavior for failures in exact B-spline construction. Approximate fallback results should be checked by IsApproximate(). | |
| ApproximationMode | GetApproximationMode () const |
| Returns current fallback behavior. | |
| bool | IsParallelMode () const |
| Returns true if internal parallel processing is enabled. | |
| bool | IsDone () const |
| Returns true if the surface was successfully constructed. | |
| bool | IsApproximate () const |
| Returns true if the resulting surface was produced by approximate fallback. Approximate results do not have the exact Gordon interpolation guarantee. | |
| ResultStatus | Status () const |
| Returns the result state of the last Perform() call. | |
| const BuildReport & | Report () const |
| Returns diagnostics for the last Perform() call. | |
| const occ::handle< Geom_BSplineSurface > & | Surface () const |
| Returns the resulting Gordon B-spline surface. | |
High-level Gordon surface construction from arbitrary curve networks.
A Gordon surface (transfinite interpolation) constructs a smooth B-spline surface from a network of intersecting profile (V) and guide (U) curves.
This generalizes the existing GeomFill_Coons (4-boundary patch) to N x M curve networks.
This class accepts arbitrary Geom_Curve inputs, handles conversion to BSpline, expands periodic B-splines into explicit non-periodic form, finds intersections, sorts the network, reparametrizes curves for compatibility, then evaluates a transfinite interpolation surface over the compatible network.
Usage:
Limitations:
|
strong |
|
strong |
Construction stage reached by the last Perform() call.
| Enumerator | |
|---|---|
| NotStarted | Perform() has not started. |
| InputConversion | Input curves are being converted to working B-splines. |
| ContactDiscovery | Profile/guide contacts are being collected. |
| NetworkOrdering | Contacts and curves are being ordered into a monotone network. |
| Reparametrization | Curves are being rebuilt to shared network parameters. |
| ExactConstruction | Exact B-spline network surface is being constructed. |
| Validation | Result is being checked against prepared curves. |
| Approximation | Optional sampled fallback is being built. |
|
strong |
Result state of the last Perform() call.
| Enumerator | |
|---|---|
| NotStarted | Perform() has not been called since initialization. |
| Done | Surface has been constructed. |
| InvalidInput | Input network has too few profile or guide curves. |
| ConversionFailed | Curves could not be converted/reparametrized to B-splines. |
| IntersectionFailed | Full profile/guide intersection table could not be built. |
| OrderingFailed | Network curves could not be ordered consistently. |
| ReparametrizationFailed | Intersections could not be equalized in parameter space. |
| CompatibilityFailed | Prepared network failed geometric compatibility checks. |
| CurveCompatibilityFailed | Prepared curve families are not B-spline compatible. |
| RationalReparametrizationFailed | Rational curves require unsupported exact reparametrization. |
| SkinningFailed | Intermediate profile/guide skinning has failed. |
| ReferenceSurfaceFailed | Intersection-grid reference surface could not be built. |
| KnotAlignmentFailed | Intermediate surfaces could not be aligned. |
| RationalDegreeOverflow | Exact rational product degree exceeds OCCT's B-spline limit. |
| RationalConstructionFailed | Exact rational numerator/denominator construction has failed. |
| PeriodicityFailed | Closed seam could not be converted to periodic form. |
| ApproximationFailed | Optional approximate fallback has failed. |
| ConstructionFailed | Final B-spline surface construction has failed. |
| GeomFill_Gordon::GeomFill_Gordon | ( | ) |
Creates an empty Gordon surface algorithm.
|
inlinenodiscard |
Returns current fallback behavior.
| void GeomFill_Gordon::Init | ( | const NCollection_Array1< occ::handle< Geom_Curve > > & | theProfiles, |
| const NCollection_Array1< occ::handle< Geom_Curve > > & | theGuides, | ||
| double | theTolerance ) |
Initializes the algorithm with profile and guide curves.
| [in] | theProfiles | array of profile curves (V-direction sections, must be >= 2) |
| [in] | theGuides | array of guide curves (U-direction sections, must be >= 2) |
| [in] | theTolerance | geometric tolerance for intersection detection |
|
inlinenodiscard |
Returns true if the resulting surface was produced by approximate fallback. Approximate results do not have the exact Gordon interpolation guarantee.
|
inlinenodiscard |
Returns true if the surface was successfully constructed.
|
inlinenodiscard |
Returns true if internal parallel processing is enabled.
| void GeomFill_Gordon::Perform | ( | ) |
Performs the Gordon surface construction.
|
inlinenodiscard |
Returns diagnostics for the last Perform() call.
|
inline |
Sets optional fallback behavior for failures in exact B-spline construction. Approximate fallback results should be checked by IsApproximate().
|
inline |
Enables/disables parallel processing in internal stages. By default, single-thread mode is used.
|
inlinenodiscard |
Returns the result state of the last Perform() call.
|
nodiscard |
Returns the resulting Gordon B-spline surface.