static int pySpaceTreeNode_setBounds(pySpaceTreeNode* self, PyObject* value, void*) { if (value == NULL || !pyBounds3Ext_Check(value)) { PyErr_SetString(PyExc_TypeError, "bounds should be an hsBounds3Ext"); return -1; } self->fThis->setBounds(*((pyBounds3Ext*)value)->fThis); return 0; }
static int pyViewFaceModifier_setMaxBounds(pyViewFaceModifier* self, PyObject* value, void*) { if (value == NULL || !pyBounds3Ext_Check(value)) { PyErr_SetString(PyExc_TypeError, "maxBounds should be an hsBounds3Ext"); return -1; } self->fThis->setMaxBounds(*((pyBounds3Ext*)value)->fThis); return 0; }
static int pyDrawableSpans_setMaxBounds(pyDrawableSpans* self, PyObject* value, void*) { if (value == NULL || !pyBounds3Ext_Check(value)) { PyErr_SetString(PyExc_TypeError, "maxWorldBounds should be an hsBounds3Ext"); return -1; } self->fThis->setMaxWorldBounds(*((pyBounds3Ext*)value)->fThis); return 0; }
static int pyGeometrySpan_setWorldBounds(pyGeometrySpan* self, PyObject* value, void*) { if (value == NULL || !pyBounds3Ext_Check(value)) { PyErr_SetString(PyExc_TypeError, "worldBounds should be an hsBounds3Ext"); return -1; } self->fThis->setWorldBounds(*((pyBounds3Ext*)value)->fThis); return 0; }
static int pyMobileOccluder_setLocalBounds(pyMobileOccluder* self, PyObject* value, void*) { if (value == NULL || value == Py_None) { self->fThis->setLocalBounds(hsBounds3Ext()); return 0; } if (!pyBounds3Ext_Check(value)) { PyErr_SetString(PyExc_TypeError, "localBounds should be an hsBounds3Ext"); return -1; } self->fThis->setLocalBounds(*((pyBounds3Ext*)value)->fThis); return 0; }