mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-05 05:04:17 +05:00
Small fix for compilation
This commit is contained in:
parent
b4273597dd
commit
e5c1402a68
@ -104,6 +104,7 @@
|
|||||||
|
|
||||||
#include <GEOMAlgo_PassKeyShape.hxx>
|
#include <GEOMAlgo_PassKeyShape.hxx>
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
static
|
static
|
||||||
void GetCount(const TopoDS_Shape& aS,
|
void GetCount(const TopoDS_Shape& aS,
|
||||||
@ -1080,7 +1081,7 @@ Standard_Integer GEOMAlgo_AlgoTools::PointCloudInFace(const TopoDS_Face& theFace
|
|||||||
if (aNbFaces != theNbPnts)
|
if (aNbFaces != theNbPnts)
|
||||||
{
|
{
|
||||||
Standard_Real aTotalArea = 0.;
|
Standard_Real aTotalArea = 0.;
|
||||||
std::vector<std::pair<TopoDS_Shape, Standard_Real>> aFacesAndAreas (aNbFaces);
|
std::vector<std::pair<TopoDS_Shape, Standard_Real> > aFacesAndAreas (aNbFaces);
|
||||||
for (Standard_Integer ii = 1; ii <= aNbFaces; ii++)
|
for (Standard_Integer ii = 1; ii <= aNbFaces; ii++)
|
||||||
{
|
{
|
||||||
GProp_GProps aProps;
|
GProp_GProps aProps;
|
||||||
@ -1174,7 +1175,6 @@ Standard_Integer GEOMAlgo_AlgoTools::PointCloudInFace(const TopoDS_Face& theFace
|
|||||||
aBB.Add (aGlobalRes, res);
|
aBB.Add (aGlobalRes, res);
|
||||||
|
|
||||||
aBB.MakeCompound (theCompound);
|
aBB.MakeCompound (theCompound);
|
||||||
Standard_Integer anIndPoint = 0;
|
|
||||||
for (TopExp_Explorer aGlobalExplo(aGlobalRes, TopAbs_FACE); aGlobalExplo.More(); aGlobalExplo.Next())
|
for (TopExp_Explorer aGlobalExplo(aGlobalRes, TopAbs_FACE); aGlobalExplo.More(); aGlobalExplo.Next())
|
||||||
{
|
{
|
||||||
const TopoDS_Face& aFace = TopoDS::Face (aGlobalExplo.Current());
|
const TopoDS_Face& aFace = TopoDS::Face (aGlobalExplo.Current());
|
||||||
|
Loading…
Reference in New Issue
Block a user