MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / DefineStrands

Method DefineStrands

src/luxcore/luxcoreimpl.cpp:470–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void SceneImpl::DefineStrands(const string &shapeName, const cyHairFile &strandsFile,
471 const StrandsTessellationType tesselType,
472 const unsigned int adaptiveMaxDepth, const float adaptiveError,
473 const unsigned int solidSideCount, const bool solidCapBottom, const bool solidCapTop,
474 const bool useCameraPosition) {
475 // Invalidate the scene properties cache
476 scenePropertiesCache.Clear();
477
478 scene->DefineStrands(shapeName, strandsFile,
479 (slg::StrendsShape::TessellationType)tesselType, adaptiveMaxDepth, adaptiveError,
480 solidSideCount, solidCapBottom, solidCapTop,
481 useCameraPosition);
482}
483
484bool SceneImpl::IsMeshDefined(const std::string &meshName) const {
485 return scene->IsMeshDefined(meshName);

Callers 2

Scene_DefineStrandsFunction · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected