Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
GeomFill_Gordon Class Reference

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.

Detailed Description

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:

aGordon.Init(theProfiles, theGuides, theTolerance);
aGordon.Perform();
if (aGordon.IsDone())
{
const occ::handle<Geom_BSplineSurface>& aSurf = aGordon.Surface();
}
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.
const occ::handle< Geom_BSplineSurface > & Surface() const
Returns the resulting Gordon B-spline surface.
void Perform()
Performs the Gordon surface construction.
GeomFill_Gordon()
Creates an empty Gordon surface algorithm.
bool IsDone() const
Returns true if the surface was successfully constructed.
Definition GeomFill_Gordon.hxx:152
opencascade::handle< T > handle
Intrusive smart pointer template for Standard_Transient descendants. This is an alias to opencascade:...
Definition Standard_Handle.hxx:421

Limitations:

  • Every profile must intersect every guide. Multiple contacts are accepted only when they contain a single monotone branch over the ordered network.
  • Rational networks are combined by exact common-denominator multiplication. Construction can fail if the resulting product degree exceeds OCCT's B-spline degree limit.
  • ApproximationMode::AllowApproximateFallback may build a sampled surface when exact construction fails, or rebuild rational curves approximately when exact reparametrization is required. Such a surface is marked by IsApproximate() and does not guarantee exact interpolation of the input curves.

Member Enumeration Documentation

◆ ApproximationMode

Controls behavior when exact pole-based construction fails.

Enumerator
ExactOnly 

Report exact construction failure (default).

AllowApproximateFallback 

Try a sampled B-spline fallback without exact interpolation.

◆ BuildStage

enum class GeomFill_Gordon::BuildStage
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.

◆ ResultStatus

enum class GeomFill_Gordon::ResultStatus
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.

Constructor & Destructor Documentation

◆ GeomFill_Gordon()

GeomFill_Gordon::GeomFill_Gordon ( )

Creates an empty Gordon surface algorithm.

Member Function Documentation

◆ GetApproximationMode()

ApproximationMode GeomFill_Gordon::GetApproximationMode ( ) const
inlinenodiscard

Returns current fallback behavior.

◆ Init()

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.

Parameters
[in]theProfilesarray of profile curves (V-direction sections, must be >= 2)
[in]theGuidesarray of guide curves (U-direction sections, must be >= 2)
[in]theTolerancegeometric tolerance for intersection detection

◆ IsApproximate()

bool GeomFill_Gordon::IsApproximate ( ) const
inlinenodiscard

Returns true if the resulting surface was produced by approximate fallback. Approximate results do not have the exact Gordon interpolation guarantee.

◆ IsDone()

bool GeomFill_Gordon::IsDone ( ) const
inlinenodiscard

Returns true if the surface was successfully constructed.

◆ IsParallelMode()

bool GeomFill_Gordon::IsParallelMode ( ) const
inlinenodiscard

Returns true if internal parallel processing is enabled.

◆ Perform()

void GeomFill_Gordon::Perform ( )

Performs the Gordon surface construction.

◆ Report()

const BuildReport & GeomFill_Gordon::Report ( ) const
inlinenodiscard

Returns diagnostics for the last Perform() call.

◆ SetApproximationMode()

void GeomFill_Gordon::SetApproximationMode ( ApproximationMode theMode)
inline

Sets optional fallback behavior for failures in exact B-spline construction. Approximate fallback results should be checked by IsApproximate().

◆ SetParallelMode()

void GeomFill_Gordon::SetParallelMode ( bool theToUseParallel)
inline

Enables/disables parallel processing in internal stages. By default, single-thread mode is used.

◆ Status()

ResultStatus GeomFill_Gordon::Status ( ) const
inlinenodiscard

Returns the result state of the last Perform() call.

◆ Surface()

const occ::handle< Geom_BSplineSurface > & GeomFill_Gordon::Surface ( ) const
nodiscard

Returns the resulting Gordon B-spline surface.


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