Package openalea :: Package plantgl :: Package scenegraph :: Module _pglsg :: Class BezierCurve
[frames] | no frames]

Class BezierCurve

 object --+                    
          |                    
??.instance --+                
              |                
    SceneObject --+            
                  |            
           Geometry --+        
                      |        
              Primitive --+    
                          |    
            ParametricModel --+
                              |
 object --+                   |
          |                   |
??.instance --+               |
              |               |
    SceneObject --+           |
                  |           |
           Geometry --+       |
                      |       |
              Primitive --+   |
                          |   |
                LineicModel --+
                              |
                             BezierCurve
Known Subclasses:

BezierCurve describes rational and non rational Bezier curve.
It is defined by a degree n and a list of control Points Pi
and using the parametric equation C(u) = Sum(i=0,n)(Bi,n(u)Pi) with u in [0,1]
where Bi,n(u) are the classical n-th degree Bernstein polynomials.

Instance Methods
 
__init__(...)
__init__( (object)arg1, (Point4Array)arg2 [, (int)arg3]) -> None :
 
__repr__(...)
__repr__( (BezierCurve)arg1) -> str :
 
copy(...)
copy( (BezierCurve)arg1) -> SceneObject :
 
isStrideToDefault(...)
isStrideToDefault( (BezierCurve)arg1) -> bool :

Inherited from LineicModel: findClosest, getArcLengthToUMapping, getLength, getNormalAt, getPointAt, getStride, getTangentAt, getUToArcLengthMapping

Inherited from Geometry: deepcopy, isACurve, isASurface, isAVolume, isExplicit

Inherited from SceneObject: __reduce__, apply, getId, getName, isNamed, isValid, setName

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __str__

Static Methods
 
bernstein(...)
bernstein( (int)i, (int)n, (float)u) -> float : float bernstein( int i, int n, float u )Computes the value of i-th Bernstein polynomial for a fixed u.See the Nurbs Book p20.
 
bernstein_factors(...)
bernstein_factors( (int)n, (float)u) -> object : [float] bernstein_factors( int n, float u )Computes the n + 1 th degree Bernstein polynomials for a fixed u.See the Nurbs Book p21 .
Class Variables
  __instance_size__ = 12

Inherited from SceneObject: __safe_for_unpickling__

Properties
  DEFAULT_STRIDE
  ctrlPointList
  stride

Inherited from LineicModel: firstKnot, lastKnot

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Point4Array)arg2 [, (int)arg3]) -> None :

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Point4Array> [,unsigned int])

Overrides: object.__init__

__repr__(...)
(Representation operator)

 

__repr__( (BezierCurve)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __repr__(class PGL::BezierCurve *)

Overrides: object.__repr__

bernstein(...)
Static Method

 

bernstein( (int)i, (int)n, (float)u) -> float :
    float bernstein( int i, int n, float u )Computes the value of i-th Bernstein polynomial for a fixed u.See the Nurbs Book p20. usefull for Bezier Curve computation.

    C++ signature :
        double bernstein(unsigned int,unsigned int,double)

bernstein_factors(...)
Static Method

 

bernstein_factors( (int)n, (float)u) -> object :
    [float] bernstein_factors( int n, float u )Computes the n + 1 th degree Bernstein polynomials for a fixed u.See the Nurbs Book p21 . usefull for Bezier Curve computation.

    C++ signature :
        class boost::python::api::object bernstein_factors(unsigned int,double)

copy(...)

 

copy( (BezierCurve)arg1) -> SceneObject :

    C++ signature :
        class TOOLS::RefCountPtr<class PGL::SceneObject> copy(class PGL::BezierCurve {lvalue})

isStrideToDefault(...)

 

isStrideToDefault( (BezierCurve)arg1) -> bool :

    C++ signature :
        bool isStrideToDefault(class PGL::BezierCurve {lvalue})


Property Details

DEFAULT_STRIDE

Get Method:
unreachable(...)

ctrlPointList

Get Method:
unreachable(...)
Set Method:
unreachable(...)

stride

Get Method:
unreachable(...)
Set Method:
unreachable(...)