~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/bmesh/intern/bmesh_private.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * The Original Code is Copyright (C) 2004 Blender Foundation.
 
19
 * All rights reserved.
 
20
 *
 
21
 * The Original Code is: all of this file.
 
22
 *
 
23
 * Contributor(s): Geoffrey Bantle.
 
24
 *
 
25
 * ***** END GPL LICENSE BLOCK *****
 
26
 */
 
27
 
 
28
#ifndef __BMESH_PRIVATE_H__
 
29
#define __BMESH_PRIVATE_H__
 
30
 
 
31
/** \file blender/bmesh/intern/bmesh_private.h
 
32
 *  \ingroup bmesh
 
33
 *
 
34
 *  Private function prototypes for bmesh public API.
 
35
 *  This file is a grab-bag of functions from various
 
36
 *  parts of the bmesh internals.
 
37
 */
 
38
 
 
39
/* returns positive nonzero on error */
 
40
int bmesh_elem_check(void *element, const char htype);
 
41
 
 
42
#define BM_CHECK_ELEMENT(el)                                                  \
 
43
    if (bmesh_elem_check(el, ((BMHeader *)el)->htype)) {                      \
 
44
        printf("check_element failure, with code %i on line %i in file\n"     \
 
45
        "    \"%s\"\n\n",                                                     \
 
46
        bmesh_elem_check(el, ((BMHeader *)el)->htype),                    \
 
47
        __LINE__, __FILE__);                                                  \
 
48
    }
 
49
 
 
50
#define BM_DISK_EDGE_LINK_GET(e, v)  (                                        \
 
51
        ((v) == ((BMEdge *)(e))->v1) ?                                            \
 
52
                &((e)->v1_disk_link) :                                                \
 
53
                &((e)->v2_disk_link)                                                  \
 
54
    )
 
55
 
 
56
int bmesh_radial_length(BMLoop *l);
 
57
int bmesh_disk_count(BMVert *v);
 
58
 
 
59
/* NOTE: ensure different parts of the API do not conflict
 
60
 * on using these internal flags!*/
 
61
#define _FLAG_JF        1 /* join faces */
 
62
#define _FLAG_MF        2 /* make face */
 
63
#define _FLAG_MV        2 /* make face, vertex */
 
64
 
 
65
#define BM_ELEM_API_FLAG_ENABLE(element, f)  ((element)->oflags[0].pflag |=  (f))
 
66
#define BM_ELEM_API_FLAG_DISABLE(element, f) ((element)->oflags[0].pflag &= ~(f))
 
67
#define BM_ELEM_API_FLAG_TEST(element, f)    ((element)->oflags[0].pflag &   (f))
 
68
 
 
69
void calc_poly_plane(float (*verts)[3], const int nverts);
 
70
void poly_rotate_plane(const float normal[3], float (*verts)[3], const int nverts);
 
71
 
 
72
/* include the rest of our private declarations */
 
73
#include "bmesh_structure.h"
 
74
#include "bmesh_operators_private.h"
 
75
 
 
76
#endif /* __BMESH_PRIVATE_H__ */