MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / Init

Method Init

BakingLab/MeshBaker.cpp:359–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357 SG ProjectedResult[SGCount];
358
359 void Init(uint64 numSamples)
360 {
361 CurrSampleIdx = 0;
362 NumSamples = numSamples;
363
364 if(NumSamples != SampleDirs.Size())
365 SampleDirs.Init(NumSamples);
366 if(NumSamples != Samples.Size())
367 Samples.Init(NumSamples);
368
369 const SG* initialGuess = InitialGuess();
370 for(uint64 i = 0; i < SGCount; ++i)
371 ProjectedResult[i] = initialGuess[i];
372 }
373
374 Float3 SampleDirection(Float2 samplePoint)
375 {

Callers

nothing calls this directly

Calls 3

InitialGuessFunction · 0.85
SizeMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected