OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Convert_CylinderToBSplineSurface Class Reference

    This algorithm converts a bounded cylinder into a rational B-spline surface. The cylinder is a Cylinder from package gp. The parametrization of the cylinder is: P (U, V) = Loc + V * Zdir + Radius * (Xdir*std::cos(U) + Ydir*Sin(U)) where Loc is the location point of the cylinder, Xdir, Ydir and Zdir are the normalized directions of the local cartesian coordinate system of the cylinder (Zdir is the direction of the cylinder's axis). The U parametrization range is U [0, 2PI]. KeyWords : Convert, Cylinder, BSplineSurface. More...

    #include <Convert_CylinderToBSplineSurface.hxx>

    Inheritance diagram for Convert_CylinderToBSplineSurface:

    Public Member Functions

     Convert_CylinderToBSplineSurface (const gp_Cylinder &Cyl, const double U1, const double U2, const double V1, const double V2)
     The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions.
     Convert_CylinderToBSplineSurface (const gp_Cylinder &Cyl, const double V1, const double V2)
     The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions.
    Public Member Functions inherited from Convert_ElementarySurfaceToBSplineSurface
    int UDegree () const
     Returns the degree in the U parametric direction.
    int VDegree () const
     Returns the degree in the V parametric direction.
    int NbUPoles () const
     Returns the number of poles in the U parametric direction.
    int NbVPoles () const
     Returns the number of poles in the V parametric direction.
    int NbUKnots () const
     Returns the number of knots in the U parametric direction.
    int NbVKnots () const
     Returns the number of knots in the V parametric direction.
    bool IsUPeriodic () const
     Returns true if the surface is periodic in the U parametric direction.
    bool IsVPeriodic () const
     Returns true if the surface is periodic in the V parametric direction.
    gp_Pnt Pole (const int UIndex, const int VIndex) const
     Returns the pole of index (UIndex, VIndex).
    double Weight (const int UIndex, const int VIndex) const
     Returns the weight of the pole of index (UIndex, VIndex).
    double UKnot (const int UIndex) const
     Returns the U-knot of range UIndex.
    double VKnot (const int VIndex) const
     Returns the V-knot of range VIndex.
    int UMultiplicity (const int UIndex) const
     Returns the multiplicity of the U-knot of range UIndex.
    int VMultiplicity (const int VIndex) const
     Returns the multiplicity of the V-knot of range VIndex.
    const NCollection_Array2< gp_Pnt > & Poles () const
     Returns the poles of the BSpline surface.
    const NCollection_Array2< double > & Weights () const
     Returns the weights of the BSpline surface.
    const NCollection_Array1< double > & UKnots () const
     Returns the U-knots of the BSpline surface.
    const NCollection_Array1< double > & VKnots () const
     Returns the V-knots of the BSpline surface.
    const NCollection_Array1< int > & UMultiplicities () const
     Returns the U-multiplicities of the BSpline surface.
    const NCollection_Array1< int > & VMultiplicities () const
     Returns the V-multiplicities of the BSpline surface.

    Additional Inherited Members

    Protected Member Functions inherited from Convert_ElementarySurfaceToBSplineSurface
     Convert_ElementarySurfaceToBSplineSurface (const int theNbUPoles, const int theNbVPoles, const int theNbUKnots, const int theNbVKnots, const int theUDegree, const int theVDegree)
    void Finalize ()
     Resizes internal arrays (poles, weights, knots, multiplicities) to match the actual sizes stored in myNbUPoles, myNbVPoles, myNbUKnots, and myNbVKnots. This is intended to be called at the end of derived class constructors when the base class constructor allocates arrays with maximum possible sizes but the derived constructor uses fewer elements.
    Protected Attributes inherited from Convert_ElementarySurfaceToBSplineSurface
    NCollection_Array2< gp_PntmyPoles
    NCollection_Array2< double > myWeights
    NCollection_Array1< double > myUKnots
    NCollection_Array1< double > myVKnots
    NCollection_Array1< int > myUMults
    NCollection_Array1< int > myVMults
    int myUDegree = 0
    int myVDegree = 0
    bool myIsUPeriodic = false
    bool myIsVPeriodic = false
    int myNbUPoles
    int myNbVPoles
    int myNbUKnots
    int myNbVKnots

    Detailed Description

    This algorithm converts a bounded cylinder into a rational B-spline surface. The cylinder is a Cylinder from package gp. The parametrization of the cylinder is: P (U, V) = Loc + V * Zdir + Radius * (Xdir*std::cos(U) + Ydir*Sin(U)) where Loc is the location point of the cylinder, Xdir, Ydir and Zdir are the normalized directions of the local cartesian coordinate system of the cylinder (Zdir is the direction of the cylinder's axis). The U parametrization range is U [0, 2PI]. KeyWords : Convert, Cylinder, BSplineSurface.

    Constructor & Destructor Documentation

    ◆ Convert_CylinderToBSplineSurface() [1/2]

    Convert_CylinderToBSplineSurface::Convert_CylinderToBSplineSurface ( const gp_Cylinder & Cyl,
    const double U1,
    const double U2,
    const double V1,
    const double V2 )

    The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions.

    Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2.

    ◆ Convert_CylinderToBSplineSurface() [2/2]

    Convert_CylinderToBSplineSurface::Convert_CylinderToBSplineSurface ( const gp_Cylinder & Cyl,
    const double V1,
    const double V2 )

    The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions.

    Raised if V1 = V2.


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