inventor/SoKnot.cpp
void SoKnot::setKnot(Tube<Vector3>* t, const float Tol) {

  this->original = t;

  if (knot==NULL)
    knot = new Tube<Vector3>;
  else {
    delete knot;
    knot = new Tube<Vector3>;
  }

  *knot = *original;

  knot->makeMesh(t->nodes(),
		 t->segments(),		 
		 t->radius(),
		 Tol);

  _old_segments = t->segments();
  _old_nodes = t->nodes();
  _old_radius = t->radius();


/*
  sogl_tube_texcoords = NULL;

  // Fixme reinit the new texcoords
  reset_texcoords(t->segments(),t->nodes());
*/
}
/*!
  Initializes the SoKnot instance, given a Tube
  object \a t and a tolerance \a Tol for the mesh generation routine.
  
  The original Tube \a t will not be changed in any way. Every time
  an action on the Tube object is necessary, the work is carried out
  on a copy, internally of the SoKnot instance.

  \sa getKnot()
*/
Initializes the SoKnot instance, given a Tube
object \a t and a tolerance \a Tol for the mesh generation routine.

The original Tube \a t will not be changed in any way. Every time
an action on the Tube object is necessary, the work is carried out
on a copy, internally of the SoKnot instance.

\sa getKnot()
Initializes the SoKnot instance given a Tube object \ a t and a tolerance \ a Tol for the mesh generation routine . The original Tube \ a t will not be changed in any way . Every time an action on the Tube object is necessary the work is carried out on a copy internally of the SoKnot instance . \ sa getKnot ()
void SoKnot::setKnot(Tube<Vector3>* t, const float Tol) {
  this->original = t;
  if (knot==NULL)
    knot = new Tube<Vector3>;
  else {
    delete knot;
    knot = new Tube<Vector3>;
  }
  *knot = *original;
  knot->makeMesh(t->nodes(),
		 t->segments(),		 
		 t->radius(),
		 Tol);
  _old_segments = t->segments();
  _old_nodes = t->nodes();
  _old_radius = t->radius();
}
void SoKnot :: setKnot ( Tube < Vector3 > * t , const float Tol ) { this -> original = t ; if ( knot == NULL ) knot = new Tube < Vector3 > ; else { delete knot ; knot = new Tube < Vector3 > ; } * knot = * original ; knot -> makeMesh ( t -> nodes ( ) , t -> segments ( ) , t -> radius ( ) , Tol ) ; _old_segments = t -> segments ( ) ; _old_nodes = t -> nodes ( ) ; _old_radius = t -> radius ( ) ; }
Initializes the SoKnot instance, given a Tube
object \a t and a tolerance \a Tol for the mesh generation routine.
Initializes the SoKnot instance given a Tube object \ a t and a tolerance \ a Tol for the mesh generation routine .
/*
  sogl_tube_texcoords = NULL;

  // Fixme reinit the new texcoords
  reset_texcoords(t->segments(),t->nodes());
*/