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

Class SurfaceLoop

   object --+    
            |    
    Primitive --+
                |
   object --+   |
            |   |
PrimitiveBase --+
                |
               SurfaceLoop

A loop of 2D primitives which defines the shell of a volume.

The loop must represent a closed shell, and the primitives should be oriented consistently.

Instance Methods [hide private]
 
__init__(self, *surfaces)
Creates a surface loop.
 
__len__(self)
Returns the number of curves in the SurfaceLoop.
 
__neg__(self)
Returns a view onto the curve with reversed ordering.
 
collectPrimitiveBases(self)
Returns primitives used to construct the SurfaceLoop.
 
getSurfaces(self)
Returns the surfaces defining the SurfaceLoop.
 
isColocated(self, primitive)
Returns True if each surface is colocated with a curve in primitive and vice versa.
 
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 Primitive: __repr__, getDirectedID, getID, getUnderlyingPrimitive, hasSameOrientation

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

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, *surfaces)
(Constructor)

 

Creates a surface loop.

Overrides: object.__init__

__neg__(self)

 

Returns a view onto the curve with reversed ordering.

Overrides: Primitive.__neg__

collectPrimitiveBases(self)

 

Returns primitives used to construct the SurfaceLoop.

Overrides: Primitive.collectPrimitiveBases

isColocated(self, primitive)

 

Returns True if each surface is colocated with a curve in primitive and vice versa.

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