23#include <Inventor/SbLinear.h>
24#include <Inventor/elements/SoTangentBindingElement.h>
55 SoTangentGenerator(
bool useLines,
int approxNumVertices = 16 );
56 ~SoTangentGenerator();
64 void setupApproxShapeSize( int32_t approxNumVertices );
70 void beginLineStrip();
71 void lineStripVertex(
const SbVec3f& point );
84 void setupIndexedVertexArray(
const SbVec3f* pointArray );
90 void lineStripVertex(
const int32_t pointIndex );
100 int getNumTangents()
const
102 return m_numVertTangents;
109 const SbVec3f* getTangents()
const
111 return m_vertTangents;
118 const SbVec3f& getTangent( int32_t i )
const
120 return m_vertTangents[i];
136 void setTangent( int32_t index,
const SbVec3f& newTangent );
144 void setTangentBuffer( int32_t numTangents,
const SbVec3f* tangents );
149 std::vector<SbVec3f> m_tangents;
150 std::vector<SbVec3f> m_polylinePoints;
155 int32_t m_numVertTangents;
158 static int s_generationMode;
Binding
The choice of values is for compatibility with Open Inventor 2.0 binary format files: