MCPcopy Create free account
hub / github.com/RenderKit/embree / addHair

Method addHair

tutorials/verify/verify.cpp:357–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 std::pair<unsigned,Ref<SceneGraph::Node>> addHair (RandomSampler& sampler, RTCBuildQuality quality, const Vec3fa& pos, const float scale, const float r, size_t numHairs = 1, const avector<Vec3fa>& motion_vector = avector<Vec3fa>())
358 {
359 Ref<SceneGraph::Node> node = SceneGraph::createHairyPlane(RandomSampler_getInt(sampler),pos,Vec3fa(1,0,0),Vec3fa(0,0,1),scale,r,numHairs,SceneGraph::FLAT_CURVE);
360 if (motion_vector.size()) SceneGraph::set_motion_vector(node,motion_vector);
361 return addGeometry2(quality,node);
362 }
363
364 std::pair<unsigned,Ref<SceneGraph::Node>> addUserGeometryEmpty (RandomSampler& sampler, RTCBuildQuality quality, Sphere* sphere)
365 {

Callers 8

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 3

RandomSampler_getIntFunction · 0.85
Vec3faClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected