Exemplo n.º 1
0
void StageObject::InitBox(const vector<const Box_t*>& vec_group)
{
    Box_t temp_box(*vec_group.front());

    for (auto box : vec_group)
    {
        temp_box += *box;
    }

    //LOGE("[STAGEOBJECT][InitBox] final pos %s ",temp_box.position.Print().c_str());
    //LOGE("[STAGEOBJECT][InitBox] final hv  %s ",temp_box.halfVec.Print().c_str());
    SetBox(temp_box);

}
Exemplo n.º 2
0
//-------------------------------------------------------------------------
// Purpose       : Get the bounding box of the object.
//
// Special Notes :
//
// Creator       : Steve Owen
//
// Creation Date : 07/16/00
//-------------------------------------------------------------------------
CubitBox FacetPoint::bounding_box() const 
{
  CubitVector temp_vector = this->coordinates();
  CubitBox temp_box(temp_vector);
  return temp_box;
}