![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
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. | |
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:
|
strong |
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. |
| GeomFill_NetworkSurface::GeomFill_NetworkSurface | ( | ) |
Creates an empty network surface algorithm.
| 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.
| [in] | theProfiles | profile curves evaluated in U direction |
| [in] | theGuides | guide curves evaluated in V direction |
| [in] | theProfileParameters | V parameters locating profiles on guide skin |
| [in] | theGuideParameters | U parameters locating guides on profile skin |
| [in] | theIntersectionPoints | validated profile/guide contact grid |
| [in] | theIntersectionWeights | rational weights for the contact grid |
| [in] | theTolerance | geometric tolerance for closed-seam checks |
| [in] | theIsUClosed | indicates that first/last guide curves close the U seam |
| [in] | theIsVClosed | indicates that first/last profile curves close the V seam |
|
inlinenodiscard |
Returns true if the surface was successfully constructed.
| void GeomFill_NetworkSurface::Perform | ( | ) |
Performs the pole-based network surface construction.
|
inlinenodiscard |
Returns the result state of the last Perform() call.
|
nodiscard |
Returns the constructed B-spline surface.
| StdFail_NotDone | if Perform() has not completed successfully. |