Scroll to navigation

SbClip.h(3) Coin SbClip.h(3)

NAME

SbClip.h -

SYNOPSIS

#include <Inventor/lists/SbList.h>
 
#include <Inventor/SbVec3f.h>
 
#include <stddef.h>
 

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. "

Typedefs


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

Author

Generated automatically by Doxygen for Coin from the source code.
Thu May 29 2014 Version 4.0.0a