//============================================================================ // 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); }
// constructor algICP::algICP(PDTreeBase *pTree, const vctDynamicVector<vct3> &samplePts) : pTree(pTree) { SetSamples(samplePts); }