SrfLayout ()

Get a set of surface layout information.

Usage

SrfLayout( path, nodeCrd = None )

Parameters

path(string)
The path of the surface which its data should be read.
node (string)
The CRD (nodal coordinates) path.

Return Value

area (real)
The total area of the surface.
center (numarray)
Center of the surface.
normDir (numarray)
The normal direction.
dir1 (numarray)
The inplane direction 1.
dir2 (numarray)
The inplane direction 2.
bndBox (numarray)
The bounding box of the surface.

Errors

The path must be valid and exist.

The nodeCrd must be valid and exist.

Description

This routine gets a set of surface layout information. The path of the surface which its data should be read and the nodal coordinates path are given by path and nodeCrd. For example,
for set in modelSets:
             if state == 'mesh':
                   node = meshSrf + RS + set
                   nodeCrd = None
             else:
                   node = geomSrf + RS + set
                   nodeCrd = node
             ( area, center, normal, dir1, dir2, bndBox ) = \
             SrfLayOut( node, nodeCrd)