本文整理汇总了C++中AABB3::empty方法的典型用法代码示例。如果您正苦于以下问题:C++ AABB3::empty方法的具体用法?C++ AABB3::empty怎么用?C++ AABB3::empty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AABB3
的用法示例。
在下文中一共展示了AABB3::empty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getBoundingBox
/// \param m Specifies the transformation matrix to be applied.
/// \return The bounding box for the mesh under m.
AABB3 TriMesh::getBoundingBox(const Matrix4x3 &m) const
{
AABB3 bb;
bb.empty();
for (int i = 0; i < vertexCount; ++i)
bb.add(vertexList[i].p * m);
return bb;
}
示例2: getBoundingBox
/// \param m Specifies the transformation matrix applied to the model.
/// \return The bounding box of the model in transformed space.
AABB3 Model::getBoundingBox(const Matrix4x3 &m) const
{
AABB3 bb;
bb.empty();
for(int i = 0; i < m_partCount; ++i)
bb.add(m_partMeshList[i].getBoundingBox(m));
return bb;
}
示例3: getSubmodelBoundingBox
/// \param submodel Specifies the submodel whose bounding box is to be fetched.
/// \param m Specifies the transformation matrix representing the submodel in world space.
AABB3 ArticulatedModel::getSubmodelBoundingBox(int submodel, const Matrix4x3 &m) const
{
assert(submodel < m_nSubmodelCount);
AABB3 bb;
bb.empty();
for(int i = 0; i < m_nNextSubmodelPart[submodel]; ++i)
bb.add(m_partMeshList[m_nSubmodelPart[submodel][i]].getBoundingBox(m));
return bb;
}