Esempio n. 1
0
    GAABB3 compute_bounds() const
    {
        GAABB3 bbox;
        bbox.invalidate();

        const size_t curve1_count = m_curves1.size();
        const size_t curve3_count = m_curves3.size();

        for (size_t i = 0; i < curve1_count; ++i)
            bbox.insert(m_curves1[i].compute_bbox());

        for (size_t i = 0; i < curve3_count; ++i)
            bbox.insert(m_curves3[i].compute_bbox());

        return bbox;
    }
Esempio n. 2
0
GAABB3 Assembly::compute_local_bbox() const
{
    GAABB3 bbox = compute_non_hierarchical_local_bbox();

    bbox.insert(
        compute_parent_bbox<GAABB3>(
            assembly_instances().begin(),
            assembly_instances().end()));

    return bbox;
}