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

Class PlaneSurface

       object --+    
                |    
        Primitive --+
                    |
   object --+       |
            |       |
PrimitiveBase --+   |
                |   |
       Manifold2D --+
                    |
                   PlaneSurface

A plane surface with holes.

Instance Methods [hide private]
 
__init__(self, loop, holes=[])
Creates a plane surface with holes.
 
__neg__(self)
Returns a view onto the curve with reversed ordering.
 
collectPrimitiveBases(self)
Returns primitives used to construct the Surface.
 
getBoundary(self)
Returns a list of the one-dimensional manifolds forming the boundary of the Surface (including holes).
 
getBoundaryLoop(self)
Returns the loop defining the boundary.
 
getHoles(self)
Returns the holes.
 
isColocated(self, primitive)
Returns True if each curve is colocated with a curve in primitive.
 
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, loop, holes=[])
(Constructor)

 

Creates a plane surface with holes.

Parameters:
  • loop - CurveLoop defining the boundary of the surface
  • holes - list of CurveLoops defining holes in the surface
Overrides: object.__init__
Notes:
  • A CurveLoop defining a hole should not have any lines in common with the exterior CurveLoop.
  • A CurveLoop defining a hole should not have any lines in common with another CurveLoop defining a hole in the same surface.

__neg__(self)

 

Returns a view onto the curve with reversed ordering.

Overrides: Primitive.__neg__

collectPrimitiveBases(self)

 

Returns primitives used to construct the Surface.

Overrides: Primitive.collectPrimitiveBases

getBoundary(self)

 

Returns a list of the one-dimensional manifolds forming the boundary of the Surface (including holes).

Overrides: Manifold2D.getBoundary

isColocated(self, primitive)

 

Returns True if each curve is colocated with a curve in primitive.

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