| 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 | { |
no test coverage detected