~esys-p-dev/esys-particle/gengeo-1.1

« back to all changes in this revision

Viewing changes to Python/MeshVolWithJointSetPy.cc

  • Committer: Dion Weatherley
  • Date: 2014-12-15 04:05:00 UTC
  • Revision ID: d.weatherley@uq.edu.au-20141215040500-wzwl42djikubfk9b
Added MeshVolWithJointSet

Sub-classes MeshVolume to permit inclusion of joint sets within triangle mesh volumes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////
 
2
//                                                         //
 
3
// Copyright (c) 2007-2014 by The University of Queensland //
 
4
// Centre for Geoscience Computing                         //
 
5
// http://earth.uq.edu.au/centre-geoscience-computing      //
 
6
//                                                         //
 
7
// Primary Business: Brisbane, Queensland, Australia       //
 
8
// Licensed under the Open Software License version 3.0    //
 
9
// http://www.opensource.org/licenses/osl-3.0.php          //
 
10
//                                                         //
 
11
/////////////////////////////////////////////////////////////
 
12
 
 
13
#include <boost/version.hpp>
 
14
#include "MeshVolWithJointSetPy.h"
 
15
 
 
16
using namespace boost::python;
 
17
 
 
18
void exportMeshVolWithJointSet()
 
19
{
 
20
      // Disable autogeneration of C++ signatures (Boost 1.34.0 and higher)
 
21
      // for Epydoc which stumbles over indentation in the automatically generated strings.
 
22
      boost::python::docstring_options no_autogen(true,false);
 
23
 
 
24
  class_<MeshVolWithJointSet, bases<MeshVolume> >(
 
25
        "MeshVolWithJointSet",
 
26
        "A class defining a volume bounded by a triangle mesh containing joints.",
 
27
        init<>()
 
28
      )
 
29
      .def(
 
30
        init<const TriPatchSet& >(
 
31
          ( arg("Mesh")),
 
32
          "Constructs a volume from a supplied set of triangles.\n"
 
33
          "@type Mesh: L{TriPatchSet}\n"
 
34
          "@kwarg Mesh: The set of triangles\n"
 
35
        )
 
36
      )
 
37
      .def(
 
38
        "addJoints",
 
39
        &MeshVolWithJointSet::addJoints,
 
40
        ( arg("JointSet") ),
 
41
        "Adds a set of triangluar patches as joints.\n"
 
42
        "@type plane: L{Plane}\n"
 
43
        "@kwarg plane: the set of patches\n"
 
44
        "@rtype: void\n"
 
45
      )
 
46
      ;
 
47
}
 
48