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

Method addSubdivSphere

tutorials/verify/verify.cpp:341–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 std::pair<unsigned,Ref<SceneGraph::Node>> addSubdivSphere (RandomSampler& sampler, RTCBuildQuality quality, const Vec3fa& pos, const float r, size_t numPhi, float level, size_t maxFaces = -1, const avector<Vec3fa>& motion_vector = avector<Vec3fa>())
342 {
343 Ref<SceneGraph::Node> node = SceneGraph::createSubdivSphere(pos,r,numPhi,level);
344 if (motion_vector.size()) SceneGraph::set_motion_vector(node,motion_vector);
345 if (maxFaces != size_t(-1)) SceneGraph::resize_randomly(sampler,node,maxFaces);
346 addRandomSubdivFeatures(sampler,node.dynamicCast<SceneGraph::SubdivMeshNode>(),10,10,0);
347 return addGeometry2(quality,node);
348 }
349
350 std::pair<unsigned,Ref<SceneGraph::Node>> addSphereHair (RandomSampler& sampler, RTCBuildQuality quality, const Vec3fa& center, const float radius, const avector<Vec3fa>& motion_vector = avector<Vec3fa>())
351 {

Callers 7

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

Calls 2

addRandomSubdivFeaturesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected