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

Class Arc

   object --+            
            |            
PrimitiveBase --+        
                |        
       Manifold1D --+    
                    |    
              ArcBase --+
                        |
           object --+   |
                    |   |
            Primitive --+
                        |
                       Arc

Defines an arc which is strictly smaller than π.

Instance Methods [hide private]
 
__init__(self, center, start, end)
Creates an arc defined by the start point, end point and center.
 
__neg__(self)
Returns a view onto the curve with reversed ordering.
 
getCenterPoint(self)
Returns the center point.
 
getEndPoint(self)
Returns the end point.
 
getStartPoint(self)
Returns the start point.
 
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 ArcBase: collectPrimitiveBases

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, center, start, end)
(Constructor)

 

Creates an arc defined by the start point, end point and center.

Overrides: object.__init__

__neg__(self)

 

Returns a view onto the curve with reversed ordering.

Overrides: Primitive.__neg__

getCenterPoint(self)

 

Returns the center point.

Overrides: ArcBase.getCenterPoint

getEndPoint(self)

 

Returns the end point.

Overrides: Manifold1D.getEndPoint

getStartPoint(self)

 

Returns the start point.

Overrides: Manifold1D.getStartPoint

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