scallop dome pyformex logo

Previous topic

51. objects — Selection of objects from the global dictionary.

Next topic

53. plot2d — plot2d.py

[FSF Associate Member]

Valid XHTML 1.0 Transitional

52. partition — Partitioning tools

Classes defined in module partition

Functions defined in module partition

partition.prepare(V)

Prepare the surface for slicing operation.

partition.colorCut(F, P, N, prop)

Color a Formex in two by a plane (P,N)

partition.splitProp(F, name)

Partition a Formex according to its prop values.

Returns a dict with the partitions, named like name-prop and exports these named Formex instances. It the Formex has no props, the whole Formex is given the name.

partition.partition(Fin, prop=0)

Interactively partition a Formex.

By default, the parts will get properties 0,1,... If prop >= 0, the parts will get incremental props starting from prop.

Returns the cutplanes in an array with shape (ncuts,2,3), where
(i,0,:) is a point in the plane i and (i,1,:) is the normal vector on the plane i .

As a side effect, the properties of the input Formex will be changed to flag the parts between successive cut planes by incrementing property values. If you wish to restore the original properties, you should copy them (or the input Formex) before calling this function.