The python export class for Facet. More...

#include <FacetPy.h>

Public Types

typedef FacetPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 

Public Member Functions

 FacetPy (Facet *pcObject, PyTypeObject *T=&Type)
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
FacetgetFacetPtr (void) const
 getter for the object handled by this class More...
 
virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constuctor) More...
 
std::string representation (void) const
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
 ~FacetPy ()
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual) More...
 
PyObjectBaseIncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setAttributeOf (const char *attr, const PyObjectBase *par)
 
void setConst ()
 
void setInvalid ()
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of FacetPy. More...
 
static PyMethodDef Methods []
 Methods structure of FacetPy. More...
 
static PyTypeObject Type
 Type structure of FacetPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

callbacks and implementers for the python object methods

PyObjectunbound (PyObject *args)
 implementer for the unbound() method More...
 
PyObjectintersect (PyObject *args)
 implementer for the intersect() method More...
 
PyObjectisDegenerated (PyObject *args)
 implementer for the isDegenerated() method More...
 
static PyObjectstaticCallback_unbound (PyObject *self, PyObject *args)
 callback for the unbound() method More...
 
static PyObjectstaticCallback_intersect (PyObject *self, PyObject *args)
 callback for the intersect() method More...
 
static PyObjectstaticCallback_isDegenerated (PyObject *self, PyObject *args)
 callback for the isDegenerated() method More...
 

callbacks and implementers for the python object attributes

Py::Int getIndex (void) const
 getter for the Index attribute More...
 
Py::Boolean getBound (void) const
 getter for the Bound attribute More...
 
Py::Object getNormal (void) const
 getter for the Normal attribute More...
 
Py::List getPoints (void) const
 getter for the Points attribute More...
 
Py::Tuple getPointIndices (void) const
 getter for the PointIndices attribute More...
 
Py::Tuple getNeighbourIndices (void) const
 getter for the NeighbourIndices attribute More...
 
Py::Float getArea (void) const
 getter for the Area attribute More...
 
static PyObjectstaticCallback_getIndex (PyObject *self, void *closure)
 getter callback for the Index attribute More...
 
static int staticCallback_setIndex (PyObject *self, PyObject *value, void *closure)
 setter callback for the Index attribute More...
 
static PyObjectstaticCallback_getBound (PyObject *self, void *closure)
 getter callback for the Bound attribute More...
 
static int staticCallback_setBound (PyObject *self, PyObject *value, void *closure)
 setter callback for the Bound attribute More...
 
static PyObjectstaticCallback_getNormal (PyObject *self, void *closure)
 getter callback for the Normal attribute More...
 
static int staticCallback_setNormal (PyObject *self, PyObject *value, void *closure)
 setter callback for the Normal attribute More...
 
static PyObjectstaticCallback_getPoints (PyObject *self, void *closure)
 getter callback for the Points attribute More...
 
static int staticCallback_setPoints (PyObject *self, PyObject *value, void *closure)
 setter callback for the Points attribute More...
 
static PyObjectstaticCallback_getPointIndices (PyObject *self, void *closure)
 getter callback for the PointIndices attribute More...
 
static int staticCallback_setPointIndices (PyObject *self, PyObject *value, void *closure)
 setter callback for the PointIndices attribute More...
 
static PyObjectstaticCallback_getNeighbourIndices (PyObject *self, void *closure)
 getter callback for the NeighbourIndices attribute More...
 
static int staticCallback_setNeighbourIndices (PyObject *self, PyObject *value, void *closure)
 setter callback for the NeighbourIndices attribute More...
 
static PyObjectstaticCallback_getArea (PyObject *self, void *closure)
 getter callback for the Area attribute More...
 
static int staticCallback_setArea (PyObject *self, PyObject *value, void *closure)
 setter callback for the Area attribute More...
 

Additional Inherited Members

- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 
- Protected Attributes inherited from Base::PyObjectBase
char * attribute
 
PyObjectBaseparent
 
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Facet.

Member Typedef Documentation

Constructor & Destructor Documentation

FacetPy::FacetPy ( Facet pcObject,
PyTypeObject *  T = &Type 
)

Referenced by getFacetPtr(), and PyMake().

Member Function Documentation

Py::Float FacetPy::getArea ( void  ) const
Py::Boolean FacetPy::getBound ( void  ) const

getter for the Bound attribute

References getFacetPtr().

Referenced by getFacetPtr(), and staticCallback_getBound().

PyObject * FacetPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

Referenced by getFacetPtr(), and ~FacetPy().

Py::Int FacetPy::getIndex ( void  ) const

getter for the Index attribute

References getFacetPtr().

Referenced by getFacetPtr(), and staticCallback_getIndex().

Py::Tuple FacetPy::getNeighbourIndices ( void  ) const

getter for the NeighbourIndices attribute

References getFacetPtr(), Mesh::Facet::isBound(), and Mesh::Facet::NIndex.

Referenced by getFacetPtr(), and staticCallback_getNeighbourIndices().

Py::Object FacetPy::getNormal ( void  ) const

getter for the Normal attribute

References getFacetPtr(), and Base::PyObjectBase::setConst().

Referenced by getFacetPtr(), and staticCallback_getNormal().

Py::Tuple FacetPy::getPointIndices ( void  ) const

getter for the PointIndices attribute

References getFacetPtr(), Mesh::Facet::isBound(), and Mesh::Facet::PIndex.

Referenced by getFacetPtr(), and staticCallback_getPointIndices().

Py::List FacetPy::getPoints ( void  ) const

getter for the Points attribute

References getFacetPtr().

Referenced by getFacetPtr(), and staticCallback_getPoints().

virtual PyTypeObject* Mesh::FacetPy::GetType ( void  )
inlinevirtual

Reimplemented from Base::PyObjectBase.

PyObject * FacetPy::intersect ( PyObject args)
int FacetPy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constuctor)

Reimplemented from Base::PyObjectBase.

Referenced by getFacetPtr().

PyObject * FacetPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

References FacetPy().

Referenced by getFacetPtr().

std::string FacetPy::representation ( void  ) const
int FacetPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

Referenced by getFacetPtr(), and ~FacetPy().

PyObject * FacetPy::staticCallback_getArea ( PyObject self,
void *  closure 
)
static

getter callback for the Area attribute

References Base::BaseExceptionFreeCADError, getArea(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getBound ( PyObject self,
void *  closure 
)
static

getter callback for the Bound attribute

References Base::BaseExceptionFreeCADError, getBound(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getIndex ( PyObject self,
void *  closure 
)
static

getter callback for the Index attribute

References Base::BaseExceptionFreeCADError, getIndex(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getNeighbourIndices ( PyObject self,
void *  closure 
)
static

getter callback for the NeighbourIndices attribute

References Base::BaseExceptionFreeCADError, getNeighbourIndices(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getNormal ( PyObject self,
void *  closure 
)
static

getter callback for the Normal attribute

References Base::BaseExceptionFreeCADError, getNormal(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getPointIndices ( PyObject self,
void *  closure 
)
static

getter callback for the PointIndices attribute

References Base::BaseExceptionFreeCADError, getPointIndices(), and Base::PyObjectBase::isValid().

PyObject * FacetPy::staticCallback_getPoints ( PyObject self,
void *  closure 
)
static

getter callback for the Points attribute

References Base::BaseExceptionFreeCADError, getPoints(), and Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setArea ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Area attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setBound ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Bound attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setIndex ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Index attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setNeighbourIndices ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the NeighbourIndices attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setNormal ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Normal attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setPointIndices ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the PointIndices attribute

References Base::PyObjectBase::isValid().

int FacetPy::staticCallback_setPoints ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Points attribute

References Base::PyObjectBase::isValid().

PyObject * FacetPy::unbound ( PyObject args)

implementer for the unbound() method

References getFacetPtr(), Mesh::Facet::Index, and Mesh::Facet::Mesh.

Referenced by getFacetPtr(), and staticCallback_unbound().

Member Data Documentation

PyGetSetDef FacetPy::GetterSetter
static

Attribute structure of FacetPy.

PyMethodDef FacetPy::Methods
static
Initial value:
= {
{"unbound",
(PyCFunction) staticCallback_unbound,
METH_VARARGS,
"method unbound()\nCut the connection to a MeshObject. The facet becomes\nfree and is more or less a simple facet.\nAfter calling unbound() no topological operation will\nwork!\n "
},
{"intersect",
(PyCFunction) staticCallback_intersect,
METH_VARARGS,
"intersect(Facet) -> list \nGet a list of intersection points with another triangle.\n "
},
{"isDegenerated",
METH_VARARGS,
"isDegenerated([float]) -> boolean\nReturns true if the facet is degenerated, otherwise false.\n "
},
{NULL, NULL, 0, NULL}
}

Methods structure of FacetPy.

Referenced by ~FacetPy().


The documentation for this class was generated from the following files:
  • builds/webdocs/src/Mod/Mesh/App/FacetPy.h
  • src/src/Mod/Mesh/App/FacetPyImp.cpp
  • builds/webdocs/src/Mod/Mesh/App/FacetPy.cpp