Example #1
0
//============================================================================
//		NCGShading::SetSamples : Set the shading samples.
//----------------------------------------------------------------------------
void NCGShading::SetSamples(const NShadingSample *theSamples)
{	NShadingSampleList		theList;



	// Validate our parameters
	NN_ASSERT(theSamples != NULL);



	// Set the samples
	while (true)
		{
		theList.push_back(*theSamples);
		if (theSamples->theValue >= 1.0f)
			break;

		theSamples++;
		}
	
	SetSamples(theList);
}
Example #2
0
// constructor
algICP::algICP(PDTreeBase *pTree, const vctDynamicVector<vct3> &samplePts)
  : pTree(pTree)
{
  SetSamples(samplePts);
}