2 * $Id: CurNurb.h 10269 2007-03-15 01:09:14Z campbellbarton $
3 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version. The Blender
9 * Foundation also sells licenses for use in proprietary software under
10 * the Blender License. See http://www.blender.org/BL/ for information
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 * All rights reserved.
25 * This is a new part of Blender.
27 * Contributor(s): Stephen Swaney
29 * ***** END GPL/BL DUAL LICENSE BLOCK *****
36 #include "DNA_curve_types.h"
38 extern PyTypeObject CurNurb_Type
;
40 #define BPy_CurNurb_Check(v) ((v)->ob_type == &CurNurb_Type) /* for type checking */
42 /* Python BPy_CurNurb structure definition */
44 PyObject_HEAD
/* required py macro */
45 Nurb
* nurb
; /* pointer to Blender data */
48 /* internal ptrs to point data. do not free */
51 int atEnd
; /* iter exhausted flag */
61 PyObject
*CurNurb_Init( void );
62 PyObject
*CurNurb_CreatePyObject( Nurb
* bzt
);
63 Nurb
*CurNurb_FromPyObject( PyObject
* pyobj
);
65 PyObject
*CurNurb_getPoint( BPy_CurNurb
* self
, int index
);
66 PyObject
*CurNurb_pointAtIndex( Nurb
* nurb
, int index
);
68 PyObject
*CurNurb_appendPointToNurb( Nurb
* nurb
, PyObject
* args
);
70 #endif /* EXPP_NURB_H */