Properties

If you are building a larger geometry you may find it convenient to create it in smaller pieces and then assemble them into the whole. Property sets make this easy, and they allow you to name the smaller pieces for convenience.

Property sets are used to bundle a set of geometrical objects in a group. The group is identified by a name. Typically a property set is used to mark subregions with share the same material properties or to mark portions of the boundary. For efficiency, the Design class object assigns a integer to each of its property sets, a so-called tag . The appropriate tag is attached to the elements at generation time.

See the file pycad/examples/quad.py for an example using a PropertySet.


\begin{classdesc}{PropertySet}{name,*items}
defines a group geometrical objects ...
...class{Manifold2D} \xspace or \class{Manifold3D} \xspace objects.
\end{classdesc}


\begin{methoddesc}[PropertySet]{getManifoldClass}{}
returns the manifold class \...
...anifold3D} \xspace expected from the items
in the property set.
\end{methoddesc}


\begin{methoddesc}[PropertySet]{getDim}{}
returns the spatial dimension of the items
in the property set.
\end{methoddesc}


\begin{methoddesc}[PropertySet]{getName}{}
returns the name of the set
\end{methoddesc}


\begin{methoddesc}[PropertySet]{setName}{name}
sets the name. This name should be unique within a \class{Design} \xspace .
\end{methoddesc}


\begin{methoddesc}[PropertySet]{addItem}{*items}
adds a tuple of items. They nee...
...e , \class{Manifold2D} \xspace or \class{Manifold3D} \xspace .
\end{methoddesc}


\begin{methoddesc}[PropertySet]{getItems}{}
returns the list of items
\end{methoddesc}


\begin{methoddesc}[PropertySet]{clearItems}{}
clears the list of items
\end{methoddesc}


\begin{methoddesc}[PropertySet]{getTag}{}
returns the tag used for this property set
\end{methoddesc}

esys@esscc.uq.edu.au