![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
An interface between the services provided by any surface from the package Geom and those required of the surface by algorithms which use it. Creation of the loaded surface the surface is C1 by piece. More...
#include <GeomAdaptor_Surface.hxx>

Data Structures | |
| struct | BezierData |
| Internal structure for Bezier surface cache data. More... | |
| struct | BSplineData |
| Internal structure for BSpline surface cache data. More... | |
| struct | ExtrusionData |
| Internal structure for extrusion surface evaluation data. More... | |
| struct | OffsetData |
| Internal structure for offset surface evaluation data. More... | |
| struct | RevolutionData |
| Internal structure for revolution surface evaluation data. More... | |
Public Types | |
| using | SurfaceDataVariant |
| Variant type for surface-specific evaluation data. | |
Public Types inherited from Standard_Transient | |
| typedef void | base_type |
| Returns a type descriptor about this object. | |
Public Member Functions | |
| GeomAdaptor_Surface () | |
| GeomAdaptor_Surface (const occ::handle< Geom_Surface > &theSurf) | |
| GeomAdaptor_Surface (const occ::handle< Geom_Surface > &theSurf, const double theUFirst, const double theULast, const double theVFirst, const double theVLast, const double theTolU=0.0, const double theTolV=0.0) | |
| Standard_ConstructionError is raised if UFirst>ULast or VFirst>VLast. | |
| occ::handle< Adaptor3d_Surface > | ShallowCopy () const override |
| Shallow copy of adaptor. | |
| void | Load (const occ::handle< Geom_Surface > &theSurf) |
| void | Load (const occ::handle< Geom_Surface > &theSurf, const double theUFirst, const double theULast, const double theVFirst, const double theVLast, const double theTolU=0.0, const double theTolV=0.0) |
| Standard_ConstructionError is raised if theUFirst>theULast or theVFirst>theVLast. | |
| const occ::handle< Geom_Surface > & | Surface () const |
| double | FirstUParameter () const override |
| double | LastUParameter () const override |
| double | FirstVParameter () const override |
| double | LastVParameter () const override |
| void | Bounds (double &theU1, double &theU2, double &theV1, double &theV2) const |
| Returns the parametric bounds of the surface. | |
| double | ToleranceU () const |
| Returns tolerance in U direction. | |
| double | ToleranceV () const |
| Returns tolerance in V direction. | |
| GeomAbs_Shape | UContinuity () const override |
| GeomAbs_Shape | VContinuity () const override |
| int | NbUIntervals (const GeomAbs_Shape S) const override |
| Returns the number of U intervals for continuity | |
| int | NbVIntervals (const GeomAbs_Shape S) const override |
| Returns the number of V intervals for continuity | |
| void | UIntervals (NCollection_Array1< double > &T, const GeomAbs_Shape S) const override |
| Returns the intervals with the requested continuity in the U direction. | |
| void | VIntervals (NCollection_Array1< double > &T, const GeomAbs_Shape S) const override |
| Returns the intervals with the requested continuity in the V direction. | |
| occ::handle< Adaptor3d_Surface > | UTrim (const double First, const double Last, const double Tol) const override |
| Returns a surface trimmed in the U direction equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last> | |
| occ::handle< Adaptor3d_Surface > | VTrim (const double First, const double Last, const double Tol) const override |
| Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last> | |
| bool | IsUClosed () const override |
| bool | IsVClosed () const override |
| bool | IsUPeriodic () const override |
| double | UPeriod () const override |
| bool | IsVPeriodic () const override |
| double | VPeriod () const override |
| gp_Pnt | EvalD0 (const double theU, const double theV) const final |
| Point evaluation. Raises an exception on failure. | |
| Geom_Surface::ResD1 | EvalD1 (const double theU, const double theV) const final |
| D1 evaluation. Raises an exception on failure. | |
| Geom_Surface::ResD2 | EvalD2 (const double theU, const double theV) const final |
| D2 evaluation. Raises an exception on failure. | |
| Geom_Surface::ResD3 | EvalD3 (const double theU, const double theV) const final |
| D3 evaluation. Raises an exception on failure. | |
| gp_Vec | EvalDN (const double theU, const double theV, const int theNu, const int theNv) const final |
| DN evaluation. Raises an exception on failure. | |
| double | UResolution (const double R3d) const override |
| Returns the parametric U resolution corresponding to the real space resolution <R3d>. | |
| double | VResolution (const double R3d) const override |
| Returns the parametric V resolution corresponding to the real space resolution <R3d>. | |
| GeomAbs_SurfaceType | GetType () const override |
| Returns the type of the surface: Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface. | |
| gp_Pln | Plane () const override |
| gp_Cylinder | Cylinder () const override |
| gp_Cone | Cone () const override |
| gp_Sphere | Sphere () const override |
| gp_Torus | Torus () const override |
| int | UDegree () const override |
| int | NbUPoles () const override |
| int | VDegree () const override |
| int | NbVPoles () const override |
| int | NbUKnots () const override |
| int | NbVKnots () const override |
| bool | IsURational () const override |
| bool | IsVRational () const override |
| occ::handle< Geom_BezierSurface > | Bezier () const override |
| This will NOT make a copy of the Bezier Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last. | |
| occ::handle< Geom_BSplineSurface > | BSpline () const override |
| This will NOT make a copy of the BSpline Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last. | |
| gp_Ax1 | AxeOfRevolution () const override |
| gp_Dir | Direction () const override |
| occ::handle< Adaptor3d_Curve > | BasisCurve () const override |
| occ::handle< Adaptor3d_Surface > | BasisSurface () const override |
| double | OffsetValue () const override |
Public Member Functions inherited from Adaptor3d_Surface | |
| gp_Pnt | Value (const double theU, const double theV) const |
| Computes the point of parameters U,V on the surface. Tip: use GeomLib::NormEstim() to calculate surface normal at specified (U, V) point. | |
| void | D0 (const double theU, const double theV, gp_Pnt &theP) const |
| Computes the point of parameters U,V on the surface. | |
| void | D1 (const double theU, const double theV, gp_Pnt &theP, gp_Vec &theD1U, gp_Vec &theD1V) const |
| Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1. | |
| void | D2 (const double theU, const double theV, gp_Pnt &theP, gp_Vec &theD1U, gp_Vec &theD1V, gp_Vec &theD2U, gp_Vec &theD2V, gp_Vec &theD2UV) const |
| Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2. | |
| void | D3 (const double theU, const double theV, gp_Pnt &theP, gp_Vec &theD1U, gp_Vec &theD1V, gp_Vec &theD2U, gp_Vec &theD2V, gp_Vec &theD2UV, gp_Vec &theD3U, gp_Vec &theD3V, gp_Vec &theD3UUV, gp_Vec &theD3UVV) const |
| Computes the point, the first, second and third derivatives on the surface. Raised if the continuity of the current intervals is not C3. | |
| gp_Vec | DN (const double theU, const double theV, const int theNu, const int theNv) const |
| Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0. | |
| ~Adaptor3d_Surface () override | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. | |
| virtual | ~Standard_Transient ()=default |
| Destructor must be virtual. | |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object. | |
| bool | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type. | |
| bool | IsInstance (const char *const theTypeName) const |
| Returns a true value if this is an instance of TypeName. | |
| bool | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
| bool | IsKind (const char *const theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
| Standard_Transient * | This () const |
| Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. | |
| int | GetRefCount () const noexcept |
| Get the reference counter of this object. | |
| void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations. | |
| int | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement. | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. | |
Protected Attributes | |
| occ::handle< Geom_Surface > | mySurface |
| double | myUFirst |
| double | myULast |
| double | myVFirst |
| double | myVLast |
| double | myTolU |
| double | myTolV |
| GeomAbs_SurfaceType | mySurfaceType |
| SurfaceDataVariant | mySurfaceData |
| Surface-specific evaluation data. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Standard_Transient | |
| static constexpr const char * | get_type_name () |
| Returns a type descriptor about this object. | |
| static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
| Returns type descriptor of Standard_Transient class. | |
An interface between the services provided by any surface from the package Geom and those required of the surface by algorithms which use it. Creation of the loaded surface the surface is C1 by piece.
Polynomial coefficients of BSpline surfaces used for their evaluation are cached for better performance. Therefore these evaluations are not thread-safe and parallel evaluations need to be prevented.
Variant type for surface-specific evaluation data.
|
inline |
|
inline |
|
inline |
Standard_ConstructionError is raised if UFirst>ULast or VFirst>VLast.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
|
overridevirtual |
This will NOT make a copy of the Bezier Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inline |
Returns the parametric bounds of the surface.
| [out] | theU1 | minimum U parameter |
| [out] | theU2 | maximum U parameter |
| [out] | theV1 | minimum V parameter |
| [out] | theV2 | maximum V parameter |
|
overridevirtual |
This will NOT make a copy of the BSpline Surface : If you want to modify the Surface please make a copy yourself Also it will NOT trim the surface to myU/VFirst/Last.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion.
Point evaluation. Raises an exception on failure.
Reimplemented from Adaptor3d_Surface.
|
finalvirtual |
D1 evaluation. Raises an exception on failure.
Reimplemented from Adaptor3d_Surface.
|
finalvirtual |
D2 evaluation. Raises an exception on failure.
Reimplemented from Adaptor3d_Surface.
|
finalvirtual |
D3 evaluation. Raises an exception on failure.
Reimplemented from Adaptor3d_Surface.
|
finalvirtual |
DN evaluation. Raises an exception on failure.
Reimplemented from Adaptor3d_Surface.
|
inlineoverridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inlineoverridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inlineoverridevirtual |
Returns the type of the surface: Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inlineoverridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inlineoverridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inline |
|
inline |
Standard_ConstructionError is raised if theUFirst>theULast or theVFirst>theVLast.
|
overridevirtual |
Returns the number of U intervals for continuity . May be one if UContinuity(me) >=
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion.
|
overridevirtual |
Returns the number of V intervals for continuity . May be one if VContinuity(me) >=
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Shallow copy of adaptor.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
inline |
|
inline |
Returns tolerance in U direction.
|
inline |
Returns tolerance in V direction.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion.
|
overridevirtual |
Returns the intervals with the requested continuity in the U direction.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
Returns the parametric U resolution corresponding to the real space resolution <R3d>.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Returns a surface trimmed in the U direction equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Returns the intervals with the requested continuity in the V direction.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
Returns the parametric V resolution corresponding to the real space resolution <R3d>.
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
overridevirtual |
Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Reimplemented from Adaptor3d_Surface.
Reimplemented in GeomAdaptor_SurfaceOfLinearExtrusion, and GeomAdaptor_SurfaceOfRevolution.
|
protected |
|
protected |
Surface-specific evaluation data.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |