Debian Codegraph @

vcg/wrap/bmt/strip_mesh.h

raw symbols SCIP
1 /****************************************************************************
2 * VCGLib o o *
3 * Visual and Computer Graphics Library o o *
4 * _ O _ *
5 * Copyright(C) 2004 \/)\/ *
6 * Visual Computing Lab /\/| *
7 * ISTI - Italian National Research Council | *
8 * \ *
9 * All rights reserved. *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
20 * for more details. *
21 * *
22 ****************************************************************************/
23 /****************************************************************************
24 History
25
26 $Log: strip_mesh.h,v $
27 Revision 1.1 2004/04/07 12:46:30 ponchio
28 Backup (working on it).
29
30
31 ****************************************************************************/
32
33 #ifndef VCG_STRIP_MESH_H
34 #define VCG_STRIP_MESH_H
35
36 #include <vector>
37
38 namespace vcg {
39
40
41 class StripMesh {
42 public:
43 enum Signature { NORMAL = 1, COLOR = 2, STRIP = 4 };
44
45 StripMesh(char *s);
46
47 private:
48 unsigned short _vert_size;
49 unsigned short _norm_size;
50 unsigned short _color_size;
51 unsigned short _strip_size;
52
53 Point3f *_vert_start;
54 short *_norm_start;
55 unsigned char *_color_start;
56 unsigned short *_strip_start;
57 };
58
59 class StripMeshBuilder {
60 public:
61 std::vector<Point3f> vert;
62 std::vector<short> norm;
63 std::vector<unsigned char> color;
64 std::vector<unsigned short> strip;
65
66 unsigned int Signature();
67 ///required size;
68 unsigned int Size();
69 void Write(char *buffer, unsigned int size);
70 };
71
72 }//namespace
73 #endif