Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

P2MESH : a polygon-based mesh manager


2005, May 30
version 1.5.4 (2005/12/18)

version 1.5.1 (2003/08/25)

version 1.5 (2002/23/10)

version 1.4.2 (2002/12/03)

version 1.4 (2002/05/20)

version 1.3 (2002/05/03)

version 1.2 (2001/11/28)

version 1.1 (1999/12/06)

Enrico Bertolazzi (1) Gianmarco Manzini (2)
(1) Department of Mechanics and Structures Engineering
University of Trento
via Mesiano 77, I -- 38050 Trento, Italy
(2) Institute of Numerical Analysis -- CNR
via Ferrata 1, I -- 27100 Pavia, Italy
in the doc directory of the package

The P2MESH software package comprises five base classes acting as templates for the definition of data types in any user application. The package also encompasses a set of suitable iterators.

The design of a software application based on P2MESH basically consists in the specification of a suitable set of derived classes, that would embody both the physical and numerical details in the corresponding partially pre-defined ``geometric'' types provided by the library.

As a result, it is generally not useful to instantiate mesh-based objects directly from the library types, because these instances would show nothing more than their geometrical nature.

Throughout the manual, the base classes in P2MESH will also be referred as library classes, and the derived classes as project classes, being the project a generic user application based on P2MESH.

The prefix p2_ in the base class names has been adopted in the library implementation in order to avoid name conflicts with other project names, that, for instance, might be defined by the user or which might be already defined in other software packages.

From the base class p2_poly two different types of polygons can be derived, triangles and quadrilaterald. The keyword Poly thus refers to a generic polygon type and any information concerning an instance of such a type will hold for both triangle and quadrilateral objects.

The instance of the project classes Vertex, Edge, Poly and Mesh will be simply called vertices, edges, polygons and mesh.

The attribute const is usually omitted in the public method declarations for the sake of compactness. Moreover the default values for the template argument int, unsigned, double are used throughout the manual in the method declarations.

The public interfaces
The following table indicates the names of the P2MESH library classes, the conventional names adopted in the chapter for the project classes, and the nature (geometrical or not) of the type.

The standard built-in arithmetic types double, int, unsigned are parameterized by using the alias names Real, Integer and Unsigned. The alias names are accessible within the project classes; for the sake of clarity, in the examples we use their default values double, int and unsigned. The marker types see Markers are also parameterized by using Vmark for vertex markers, Emark for edge markers and Pmark for polygon markers. If no user type is specified, the default type is unsigned.

Generated on Tue Jun 7 12:07:44 2005 for P2MESH by  doxygen 1.4.2