52. partition — Partitioning tools — pyFormex 0.9.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- pyFormex 0.9.1 documentation >
- pyFormex reference manual >

# 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.

### Navigation

- index
- modules |
- next |
- previous |
- pyFormex 0.9.1 documentation >
- pyFormex reference manual >