Coin Logo http://www.sim.no/
http://www.coin3d.org/

SbTesselator.h
1 #ifndef COIN_SBTESSELATOR_H
2 #define COIN_SBTESSELATOR_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) by Kongsberg Oil & Gas Technologies.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Kongsberg Oil & Gas Technologies
18  * about acquiring a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/tools/SbPimplPtr.h>
29 #include <Inventor/SbVec3f.h>
30 #include <stddef.h>
31 
32 typedef void SbTesselatorCB(void * v0, void * v1, void * v2, void * data);
33 
34 class COIN_DLL_API SbTesselator {
35 public:
36  SbTesselator(SbTesselatorCB * func = NULL, void * data = NULL);
37  ~SbTesselator(void);
38 
39  void beginPolygon(SbBool keepVertices = FALSE,
40  const SbVec3f & normal = SbVec3f(0.0f, 0.0f, 0.0f));
41  void addVertex(const SbVec3f &v, void * data);
42  void endPolygon(void);
43  void setCallback(SbTesselatorCB * func, void * data);
44 
45 private:
46  class PImpl;
47  SbPimplPtr<PImpl> pimpl;
48 
49  SbTesselator(const SbTesselator & rhs); // N/A
50  SbTesselator & operator = (const SbTesselator & rhs); // N/A
51 
52 }; // SbTessellator
53 
54 #endif // !COIN_SBTESSELATOR_H
The SbTesselator class is used to tessellate polygons into triangles.SbTesselator is used within Coin...
Definition: SbTesselator.h:34
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:40

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated for Coin by Doxygen 1.8.14.