本文整理汇总了C++中PolyhedronPtr::compute_bounding_box方法的典型用法代码示例。如果您正苦于以下问题:C++ PolyhedronPtr::compute_bounding_box方法的具体用法?C++ PolyhedronPtr::compute_bounding_box怎么用?C++ PolyhedronPtr::compute_bounding_box使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PolyhedronPtr
的用法示例。
在下文中一共展示了PolyhedronPtr::compute_bounding_box方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
double MSDM2_Component::getMaxDim(PolyhedronPtr polyhedron_ptr)
{
polyhedron_ptr->compute_bounding_box();
double max=polyhedron_ptr->xmax()-polyhedron_ptr->xmin();
if(polyhedron_ptr->ymax()-polyhedron_ptr->ymin()>max)
max = polyhedron_ptr->ymax()-polyhedron_ptr->ymin();
if(polyhedron_ptr->zmax()-polyhedron_ptr->zmin()>max)
max = polyhedron_ptr->zmax()-polyhedron_ptr->zmin();
return max;
}
示例2: BuildPolyhedron
void Implicit_Surface_Meshing_Component::BuildPolyhedron(const C2t3& c2t3,PolyhedronPtr pMesh)
{
Polyhedron_C2t3_Importer <Polyhedron::HalfedgeDS> builder (c2t3);
pMesh->delegate(builder);//build the polyhedron
//compute these properties in order to display the polyhedron in Mepp
pMesh->compute_bounding_box();
pMesh->compute_normals();
pMesh->compute_type();
(void)pMesh->calc_nb_components();
(void)pMesh->calc_nb_boundaries();
}