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

Class NurbsCurve2D

 object --+                                
          |                                
??.instance --+                            
              |                            
    SceneObject --+                        
                  |                        
           Geometry --+                    
                      |                    
              Primitive --+                
                          |                
            ParametricModel --+            
                              |            
                    PlanarModel --+        
                                  |        
                            Curve2D --+    
                                      |    
                          BezierCurve2D --+
                                          |
                                         NurbsCurve2D

A 2D NURBS Curve represented by an array of control Points, a knots list and a degree. See NurbsCurve.

Instance Methods
 
__init__(...)
__init__( (object)arg1, (Point3Array)ctrlPointList [, (RealArray)knotList [, (int)degree [, (int)strides]]]) -> None :
 
__repr__(...)
__repr__( (NurbsCurve2D)arg1) -> str :
 
isDegreeToDefault(...)
isDegreeToDefault( (NurbsCurve2D)arg1) -> bool :
 
isKnotListToDefault(...)
isKnotListToDefault( (NurbsCurve2D)arg1) -> bool :
 
setKnotListToDefault(...)
setKnotListToDefault( (NurbsCurve2D)arg1) -> bool :

Inherited from BezierCurve2D: copy, isStrideToDefault

Inherited from Curve2D: getArcLengthToUMapping, getLength, getPointAt, getStride, 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
 
fit(...)
fit( (Point2Array)points) -> object :
Class Variables

Inherited from BezierCurve2D: __instance_size__

Inherited from SceneObject: __safe_for_unpickling__

Properties
  degree
  knotList

Inherited from BezierCurve2D: ctrlPointList, stride

Inherited from Curve2D: firstKnot, lastKnot

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Point3Array)ctrlPointList [, (RealArray)knotList [, (int)degree [, (int)strides]]]) -> None :

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

Overrides: object.__init__

__repr__(...)
(Representation operator)

 

__repr__( (NurbsCurve2D)arg1) -> str :

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

Overrides: object.__repr__

fit(...)
Static Method

 

fit( (Point2Array)points) -> object :

    C++ signature :
        class boost::python::api::object fit(class TOOLS::RefCountPtr<class PGL::Point2Array>)

fit( (Point2Array)points, (int)degree, (int)nbctrlpoints) -> object :
    fit(points [, int degree, int nbctrlpoints])

    C++ signature :
        class boost::python::api::object fit(class TOOLS::RefCountPtr<class PGL::Point2Array>,int,int)

fit( (Polyline2D)points) -> object :

    C++ signature :
        class boost::python::api::object fit(class PGL::Polyline2D *)

fit( (Polyline2D)points, (int)degree, (int)nbctrlpoints) -> object :

    C++ signature :
        class boost::python::api::object fit(class PGL::Polyline2D *,int,int)

isDegreeToDefault(...)

 

isDegreeToDefault( (NurbsCurve2D)arg1) -> bool :

    C++ signature :
        bool isDegreeToDefault(class PGL::NurbsCurve2D {lvalue})

isKnotListToDefault(...)

 

isKnotListToDefault( (NurbsCurve2D)arg1) -> bool :

    C++ signature :
        bool isKnotListToDefault(class PGL::NurbsCurve2D {lvalue})

setKnotListToDefault(...)

 

setKnotListToDefault( (NurbsCurve2D)arg1) -> bool :

    C++ signature :
        bool setKnotListToDefault(class PGL::NurbsCurve2D {lvalue})


Property Details

degree

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

knotList

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