Panda3D
Loading...
Searching...
No Matches
vertexMembership.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file vertexMembership.I
10 * @author drose
11 * @date 2003-07-21
12 */
13
14/**
15 *
16 */
17INLINE VertexMembership::
18VertexMembership(EggGroup *group, double membership) :
19 _group(group),
20 _membership(membership)
21{
22}
23
24/**
25 *
26 */
27INLINE VertexMembership::
28VertexMembership(const VertexMembership &copy) :
29 _group(copy._group),
30 _membership(copy._membership)
31{
32}
33
34/**
35 *
36 */
37INLINE void VertexMembership::
38operator = (const VertexMembership &copy) {
39 _group = copy._group;
40 _membership = copy._membership;
41}
42
43/**
44 *
45 */
46INLINE bool VertexMembership::
47operator < (const VertexMembership &other) const {
48 if (_membership != other._membership) {
49 return _membership < other._membership;
50 }
51 return _group < other._group;
52}
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Definition eggGroup.h:34
This class is used to help EggOptchar quantize the membership of one vertex among its various groups.