Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fef81a8
)
bos #18900 [CEA] SHAPER compilation issue PartSet_Validators.cpp
author
vsr
<vsr@opencascade.com>
Tue, 24 Mar 2020 08:37:24 +0000
(11:37 +0300)
committer
vsr
<vsr@opencascade.com>
Tue, 24 Mar 2020 08:38:17 +0000
(11:38 +0300)
src/PartSet/PartSet_Validators.cpp
patch
|
blob
|
history
diff --git
a/src/PartSet/PartSet_Validators.cpp
b/src/PartSet/PartSet_Validators.cpp
index 979ef341c75b3ee54ea4c9dccf02de5995664d4d..2f4d1a82bdc6755f27c96425a30d82364f7beeb5 100644
(file)
--- a/
src/PartSet/PartSet_Validators.cpp
+++ b/
src/PartSet/PartSet_Validators.cpp
@@
-75,7
+75,7
@@
int shapesNbPoints(const ModuleBase_ISelection* theSelection)
return aCount;
}
return aCount;
}
-typedef std::unordered_map<
GeomAbs_CurveType
, int> ShapeQuantity;
+typedef std::unordered_map<
int
, int> ShapeQuantity;
int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theEdges)
{
int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theEdges)
{
@@
-90,7
+90,7
@@
int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theE
Standard_Real aStart, aEnd;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(aEdge, aStart, aEnd);
GeomAdaptor_Curve aAdaptor(aCurve);
Standard_Real aStart, aEnd;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(aEdge, aStart, aEnd);
GeomAdaptor_Curve aAdaptor(aCurve);
- theEdges[aAdaptor.GetType()] += 1;
+ theEdges[
(int)
aAdaptor.GetType()] += 1;
aCount++;
}
}
aCount++;
}
}