inventor/SoKnot.cpp
void SoKnot::getPrimitiveCount(SoGetPrimitiveCountAction * action) {

  if (!this->shouldPrimitiveCount(action)) return;
  action->addNumTriangles(2 * this->segments.getValue() *
                          this->nodes.getValue());

}
/*!
  Action method for the SoGetPrimitiveCountAction.

  Calculates the number of triangle, line segment
  and point primitives for the node and adds these
  to the counters of the action.

  Nodes influencing how geometry nodes calculates
  their primitive count also overrides this method
  to change the relevant state variables.

  Reimplemented from SoShape.
*/
Action method for the SoGetPrimitiveCountAction.
Calculates the number of triangle, line segment
and point primitives for the node and adds these
to the counters of the action.

Nodes influencing how geometry nodes calculates
their primitive count also overrides this method
to change the relevant state variables.


Action method for the SoGetPrimitiveCountAction . Calculates the number of triangle line segment and point primitives for the node and adds these to the counters of the action . Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables .
void SoKnot::getPrimitiveCount(SoGetPrimitiveCountAction * action) {
  if (!this->shouldPrimitiveCount(action)) return;
  action->addNumTriangles(2 * this->segments.getValue() *
                          this->nodes.getValue());
}
void SoKnot :: getPrimitiveCount ( SoGetPrimitiveCountAction * action ) { if ( ! this -> shouldPrimitiveCount ( action ) ) return ; action -> addNumTriangles ( 2 * this -> segments . getValue ( ) * this -> nodes . getValue ( ) ) ; }
Action method for the SoGetPrimitiveCountAction.
Action method for the SoGetPrimitiveCountAction .