1#ifndef COIN_SBTESSELATOR_H
2#define COIN_SBTESSELATOR_H
27#include <Inventor/SbBasic.h>
28#include <Inventor/lists/SbList.h>
29#include <Inventor/SbVec3f.h>
36typedef void SbTesselatorCB(
void * v0,
void * v1,
void * v2,
void * data);
40 SbTesselator(SbTesselatorCB * func = NULL,
void * data = NULL);
47 void setCallback(SbTesselatorCB * func,
void * data);
50 struct SbTVertex * newVertex(
void);
54 SbList <struct SbTVertex*> vertexStorage;
57 SbTVertex * headV, * tailV;
62 void (*callback)(
void * v0,
void * v1,
void * v2,
void * data);
67 void emitTriangle(SbTVertex * v);
68 void cutTriangle(SbTVertex * t);
69 void calcPolygonNormal(
void);
72 const SbVec3f &c,
float &cx,
float &cy);
74 float circleSize(SbTVertex * v);
76 SbBool clippable(SbTVertex * v);
77 SbBool isTriangle(SbTVertex * v);
78 SbBool pointInTriangle(SbTVertex * p, SbTVertex * t);
79 float area(SbTVertex * t);
81 static float heap_evaluate(
void * v);
82 static int heap_compare(
void * v0,
void * v1);
void beginPolygon(SbBool keepVertices=0, const SbVec3f &normal=SbVec3f(0.0f, 0.0f, 0.0f))
Definition SbTesselator.cpp:213
void endPolygon(void)
Definition SbTesselator.cpp:261
void setCallback(SbTesselatorCB *func, void *data)
Definition SbTesselator.cpp:401
void addVertex(const SbVec3f &v, void *data)
Definition SbTesselator.cpp:234
SbTesselator(SbTesselatorCB *func=NULL, void *data=NULL)
Definition SbTesselator.cpp:177
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:37
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen. 1.13.2