Files
test2/source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.h
Tamito Kajiyama eabf741a8d Fix for the WithinImageBorderUP1D predicate not working with a ViewEdge such that
none of the SVertices are within the image boundary but an FEdge intersects with
the image boundary.

The problem was reported by edna through the BA Freestyle thread, with a .blend
file for reproducing the bug.  Thanks!
2012-05-28 23:53:28 +00:00

30 lines
834 B
C

#ifndef FREESTYLE_PYTHON_WITHINIMAGEBOUNDARYUP1D_H
#define FREESTYLE_PYTHON_WITHINIMAGEBOUNDARYUP1D_H
#include "../BPy_UnaryPredicate1D.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject WithinImageBoundaryUP1D_Type;
#define BPy_WithinImageBoundaryUP1D_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &WithinImageBoundaryUP1D_Type) )
/*---------------------------Python BPy_WithinImageBoundaryUP1D structure definition----------*/
typedef struct {
BPy_UnaryPredicate1D py_up1D;
} BPy_WithinImageBoundaryUP1D;
///////////////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif
#endif /* FREESTYLE_PYTHON_WITHINIMAGEBOUNDARYUP1D_H */