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

Low-level Gordon surface construction from a compatible B-spline curve network. More...

#include <GeomFill_NetworkSurface.hxx>

Public Types

enum class  ResultStatus {
  NotStarted , Done , InvalidInput , CurveCompatibilityFailed ,
  SkinningFailed , ReferenceSurfaceFailed , KnotAlignmentFailed , RationalDegreeOverflow ,
  RationalConstructionFailed , ConstructionFailed , PeriodicityFailed
}
 Result state of the last Perform() call. More...

Public Member Functions

 GeomFill_NetworkSurface ()
 Creates an empty network surface algorithm.
void Init (const NCollection_Array1< occ::handle< Geom_BSplineCurve > > &theProfiles, const NCollection_Array1< occ::handle< Geom_BSplineCurve > > &theGuides, const NCollection_Array1< double > &theProfileParameters, const NCollection_Array1< double > &theGuideParameters, const NCollection_Array2< gp_Pnt > &theIntersectionPoints, const NCollection_Array2< double > &theIntersectionWeights, double theTolerance, bool theIsUClosed, bool theIsVClosed)
 Initializes the algorithm with a compatible profile/guide B-spline network.
void Perform ()
 Performs the pole-based network surface construction.
bool IsDone () const
 Returns true if the surface was successfully constructed.
ResultStatus Status () const
 Returns the result state of the last Perform() call.
const occ::handle< Geom_BSplineSurface > & Surface () const
 Returns the constructed B-spline surface.

Detailed Description

Low-level Gordon surface construction from a compatible B-spline curve network.

This class builds the final surface for an already prepared Gordon network: input curves must be explicit non-periodic B-spline curves, consistently ordered, and consistently reparametrized. Curve families are made compatible by the builder before skinning when they are polynomial.

Profile skin, guide skin, and an intersection-grid reference surface are built in B-spline form and aligned to a common knot basis. The final surface is obtained by moving the profile-skin poles by the guide-skin deviation measured from this reference surface. No point-grid surface approximation is performed here.

This class does not find curve intersections, sort the network, convert arbitrary curves, or reparametrize the input. These operations are handled by GeomFill_Gordon before calling this builder.

Limitations:

  • Periodic input curves are not accepted; callers should expand a required period before initialization.
  • Rational construction uses exact common-denominator multiplication and can fail if the resulting product degree exceeds OCCT's B-spline degree limit.
  • At least two profiles and two guides are required

Member Enumeration Documentation

◆ ResultStatus

Result state of the last Perform() call.

Enumerator
NotStarted 

Perform() has not been called since initialization.

Done 

Surface has been constructed.

InvalidInput 

Prepared network does not satisfy builder requirements.

CurveCompatibilityFailed 

Curve families could not be converted to a compatible basis.

SkinningFailed 

Profile or guide skin interpolation has failed.

ReferenceSurfaceFailed 

Intersection-grid reference surface could not be built.

KnotAlignmentFailed 

Intermediate surfaces could not be aligned to one knot basis.

RationalDegreeOverflow 

Exact rational product degree exceeds OCCT's B-spline limit.

RationalConstructionFailed 

Exact rational numerator/denominator construction has failed.

ConstructionFailed 

Internal B-spline construction has failed.

PeriodicityFailed 

Closed seam could not be converted to periodic form.

Constructor & Destructor Documentation

◆ GeomFill_NetworkSurface()

GeomFill_NetworkSurface::GeomFill_NetworkSurface ( )

Creates an empty network surface algorithm.

Member Function Documentation

◆ Init()

void GeomFill_NetworkSurface::Init ( const NCollection_Array1< occ::handle< Geom_BSplineCurve > > & theProfiles,
const NCollection_Array1< occ::handle< Geom_BSplineCurve > > & theGuides,
const NCollection_Array1< double > & theProfileParameters,
const NCollection_Array1< double > & theGuideParameters,
const NCollection_Array2< gp_Pnt > & theIntersectionPoints,
const NCollection_Array2< double > & theIntersectionWeights,
double theTolerance,
bool theIsUClosed,
bool theIsVClosed )

Initializes the algorithm with a compatible profile/guide B-spline network.

Parameters
[in]theProfilesprofile curves evaluated in U direction
[in]theGuidesguide curves evaluated in V direction
[in]theProfileParametersV parameters locating profiles on guide skin
[in]theGuideParametersU parameters locating guides on profile skin
[in]theIntersectionPointsvalidated profile/guide contact grid
[in]theIntersectionWeightsrational weights for the contact grid
[in]theTolerancegeometric tolerance for closed-seam checks
[in]theIsUClosedindicates that first/last guide curves close the U seam
[in]theIsVClosedindicates that first/last profile curves close the V seam

◆ IsDone()

bool GeomFill_NetworkSurface::IsDone ( ) const
inlinenodiscard

Returns true if the surface was successfully constructed.

◆ Perform()

void GeomFill_NetworkSurface::Perform ( )

Performs the pole-based network surface construction.

◆ Status()

ResultStatus GeomFill_NetworkSurface::Status ( ) const
inlinenodiscard

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

◆ Surface()

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

Returns the constructed B-spline surface.

Exceptions
StdFail_NotDoneif Perform() has not completed successfully.

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