Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
SbClip.h File Reference
#include <Inventor/lists/SbList.h>
#include <Inventor/SbVec3f.h>
#include <stddef.h>

Go to the source code of this file.

Classes

class  SbClip
 The SbClip class is a generic polygon clipper class.It is used by first adding all vertices in the polygon, and then clipping against any number of planes. If you need to supply additional information per vertex (e.g. texture coordinates), you should supply a callback in the constructor, and a pointer to your vertex structure in addVertex(). For every new vertex created, the callback is called with the line being clipped, including the pointers to your vertex structures and the position of the new (clipped against some plane) vertex. You should then create a new vertex structure, calculate your data (e.g. a new texture coordinate) and return a pointer to this structure. More...
 

Typedefs

typedef void * SbClipCallback(const SbVec3f &v0, void *vdata0, const SbVec3f &v1, void *vdata1, const SbVec3f &newvertex, void *userdata)
 

Typedef Documentation

◆ SbClipCallback

void * SbClipCallback

The type definition for the callback function when additional data handling per vertex is required.