Package esys :: Package pycad :: Module primitives :: Class Curve
[hide private]
[frames] | no frames]

Class Curve

   object --+            
            |            
PrimitiveBase --+        
                |        
       Manifold1D --+    
                    |    
            CurveBase --+
                        |
           object --+   |
                    |   |
            Primitive --+
                        |
                       Curve
Known Subclasses:

A curve defined through a list of control points.

Instance Methods [hide private]
 
__init__(self, *points)
Defines a curve from control points given by points.
 
__neg__(self)
Returns a view onto the curve with reversed ordering.
 
collectPrimitiveBases(self)
Returns the primitives used to construct the curve.
 
getControlPoints(self)
Returns a list of the points.
 
isColocated(self, primitive)
Returns True if curves are at the same position.
 
substitute(self, sub_dict)
Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict.

Inherited from CurveBase: __len__, getEndPoint, getStartPoint

Inherited from Manifold1D: getBoundary, getElementDistribution, resetElementDistribution, setElementDistribution

Inherited from PrimitiveBase: __add__, __cmp__, __iadd__, __imul__, __isub__, __rmul__, __sub__, apply, copy, getConstructionPoints, getPrimitives, modifyBy, setLocalScale

Inherited from Primitive: __repr__, getDirectedID, getID, getUnderlyingPrimitive, hasSameOrientation

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *points)
(Constructor)

 

Defines a curve from control points given by points.

Overrides: object.__init__

__neg__(self)

 

Returns a view onto the curve with reversed ordering.

Overrides: Primitive.__neg__

collectPrimitiveBases(self)

 

Returns the primitives used to construct the curve.

Overrides: Primitive.collectPrimitiveBases

getControlPoints(self)

 

Returns a list of the points.

Overrides: CurveBase.getControlPoints

isColocated(self, primitive)

 

Returns True if curves are at the same position.

Overrides: Primitive.isColocated

substitute(self, sub_dict)

 

Returns a copy of self with substitutes for the primitives used to construct it given by the dictionary sub_dict. If a substitute for the object is given by sub_dict the value is returned, otherwise a new instance with substituted arguments is returned.

Overrides: Primitive.substitute