MCPcopy Create free account
hub / github.com/blender/cycles / compute_aligned_space

Method compute_aligned_space

src/bvh/unaligned.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18BVHUnaligned::BVHUnaligned(const vector<Object *> &objects) : objects_(objects) {}
19
20Transform BVHUnaligned::compute_aligned_space(const BVHObjectBinning &range,
21 const BVHReference *references) const
22{
23 for (int i = range.start(); i < range.end(); ++i) {
24 const BVHReference &ref = references[i];
25 Transform aligned_space;
26 /* Use first primitive which defines correct direction to define
27 * the orientation space.
28 */
29 if (compute_aligned_space(ref, &aligned_space)) {
30 return aligned_space;
31 }
32 }
33 return transform_identity();
34}
35
36Transform BVHUnaligned::compute_aligned_space(const BVHRange &range,
37 const BVHReference *references) const

Callers 2

build_nodeMethod · 0.80
create_leaf_nodeMethod · 0.80

Calls 9

transform_identityFunction · 0.85
make_transform_frameFunction · 0.85
endMethod · 0.80
prim_objectMethod · 0.80
prim_typeMethod · 0.80
prim_indexMethod · 0.80
get_curveMethod · 0.80
normalize_lenFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected