std::map<int,string> FaceId2SizeMap;
TopTools_IndexedMapOfShape EdgesWithSizeMap;
std::map<int,string> EdgeId2SizeMap;
-TopTools_IndexedMapOfShape VertecesWithSizeMap;
+TopTools_IndexedMapOfShape VerticesWithSizeMap;
std::map<int,string> VertexId2SizeMap;
std::map<int,PyObject*> FaceId2PythonSmp;
std::map<int,std::vector<double> > FaceId2AttractorCoords;
-TopTools_IndexedMapOfShape FacesWithEnforcedVerteces;
+TopTools_IndexedMapOfShape FacesWithEnforcedVertices;
std::map< int, std::set< std::vector<double> > > FaceId2EnforcedVertexCoords;
bool HasSizeMapOnFace=false;
FaceId2SizeMap.clear();
EdgesWithSizeMap.Clear();
EdgeId2SizeMap.clear();
- VertecesWithSizeMap.Clear();
+ VerticesWithSizeMap.Clear();
VertexId2SizeMap.clear();
FaceId2PythonSmp.clear();
EdgeId2PythonSmp.clear();
VertexId2PythonSmp.clear();
FaceId2AttractorCoords.clear();
- FacesWithEnforcedVerteces.Clear();
+ FacesWithEnforcedVertices.Clear();
FaceId2EnforcedVertexCoords.clear();
}
coords.push_back(z0);
int key = 0;
- if (! FacesWithEnforcedVerteces.Contains(TopoDS::Face(GeomShape))) {
- key = FacesWithEnforcedVerteces.Add(TopoDS::Face(GeomShape));
+ if (! FacesWithEnforcedVertices.Contains(TopoDS::Face(GeomShape))) {
+ key = FacesWithEnforcedVertices.Add(TopoDS::Face(GeomShape));
}
else {
- key = FacesWithEnforcedVerteces.FindIndex(TopoDS::Face(GeomShape));
+ key = FacesWithEnforcedVertices.FindIndex(TopoDS::Face(GeomShape));
}
// If a node is already created by an attractor, do not create enforced vertex
}
EdgeId2SizeMap[key] = smIt->second;
}
- // Group of verteces
+ // Group of vertices
if (it.Value().ShapeType() == TopAbs_VERTEX){
HasSizeMapOnVertex = true;
HasSizeMapOnEdge = true;
HasSizeMapOnFace = true;
- if (! VertecesWithSizeMap.Contains(TopoDS::Vertex(it.Value()))) {
- key = VertecesWithSizeMap.Add(TopoDS::Vertex(it.Value()));
+ if (! VerticesWithSizeMap.Contains(TopoDS::Vertex(it.Value()))) {
+ key = VerticesWithSizeMap.Add(TopoDS::Vertex(it.Value()));
}
else {
- key = VertecesWithSizeMap.FindIndex(TopoDS::Vertex(it.Value()));
+ key = VerticesWithSizeMap.FindIndex(TopoDS::Vertex(it.Value()));
// MESSAGE("Vertex with key " << key << " already in map");
}
VertexId2SizeMap[key] = smIt->second;
HasSizeMapOnVertex = true;
HasSizeMapOnEdge = true;
HasSizeMapOnFace = true;
- if (! VertecesWithSizeMap.Contains(TopoDS::Vertex(GeomShape))) {
- key = VertecesWithSizeMap.Add(TopoDS::Vertex(GeomShape));
+ if (! VerticesWithSizeMap.Contains(TopoDS::Vertex(GeomShape))) {
+ key = VerticesWithSizeMap.Add(TopoDS::Vertex(GeomShape));
}
else {
- key = VertecesWithSizeMap.FindIndex(TopoDS::Vertex(GeomShape));
+ key = VerticesWithSizeMap.FindIndex(TopoDS::Vertex(GeomShape));
// MESSAGE("Vertex with key " << key << " already in map");
}
VertexId2SizeMap[key] = smIt->second;
//
- // Enforced Verteces
+ // Enforced Vertices
//
- MESSAGE("Setting Enforced Verteces");
- const BLSURFPlugin_Hypothesis::TEnforcedVertexMap enforcedVertexMap = BLSURFPlugin_Hypothesis::GetAllEnforcedVerteces(hyp);
+ MESSAGE("Setting Enforced Vertices");
+ const BLSURFPlugin_Hypothesis::TEnforcedVertexMap enforcedVertexMap = BLSURFPlugin_Hypothesis::GetAllEnforcedVertices(hyp);
BLSURFPlugin_Hypothesis::TEnforcedVertexMap::const_iterator enfIt = enforcedVertexMap.begin();
for ( ; enfIt != enforcedVertexMap.end(); ++enfIt ) {
if ( !enfIt->second.empty() ) {
FaceId2SizeMap.clear();
EdgesWithSizeMap.Clear();
EdgeId2SizeMap.clear();
- VertecesWithSizeMap.Clear();
+ VerticesWithSizeMap.Clear();
VertexId2SizeMap.clear();
MESSAGE("BEGIN SetParameters");
}
}
- // Enforced Verteces
- faceKey = FacesWithEnforcedVerteces.FindIndex(f);
+ // Enforced Vertices
+ faceKey = FacesWithEnforcedVertices.FindIndex(f);
std::map<int,std::set<std::vector<double> > >::const_iterator evmIt = FaceId2EnforcedVertexCoords.find(faceKey);
if (evmIt != FaceId2EnforcedVertexCoords.end()) {
- std::cout << "Some enforced verteces are defined" << std::endl;
+ std::cout << "Some enforced vertices are defined" << std::endl;
int ienf = 0;
std::set<std::vector<double> > evl;
// std::vector<double> ev;
MESSAGE("Face indice: " << iface);
- MESSAGE("Adding enforced verteces");
+ MESSAGE("Adding enforced vertices");
evl = evmIt->second;
- MESSAGE("Number of verteces to add: "<< evl.size())
+ MESSAGE("Number of vertices to add: "<< evl.size())
std::set< std::vector<double> >::const_iterator evlIt = evl.begin();
for (; evlIt != evl.end(); ++evlIt) {
// ev = *evlIt;
/****************************************************************************************
- VERTECES
+ VERTICES
*****************************************************************************************/
int vertexKey = -1;
for (TopExp_Explorer ex_edge(e ,TopAbs_VERTEX); ex_edge.More(); ex_edge.Next()) {
if(*ip <= 0)
*ip = pmap.Add(v);
- vertexKey = VertecesWithSizeMap.FindIndex(v);
+ vertexKey = VerticesWithSizeMap.FindIndex(v);
if (HasSizeMapOnVertex){
- vertexKey = VertecesWithSizeMap.FindIndex(v);
+ vertexKey = VerticesWithSizeMap.FindIndex(v);
if (VertexId2SizeMap.find(vertexKey)!=VertexId2SizeMap.end()){
theSizeMapStr = VertexId2SizeMap[faceKey];
if (theSizeMapStr.find(bad_end) == (theSizeMapStr.size()-bad_end.size()-1))
FacesWithSizeMap.Statistics(std::cout);
std::cout << "EdgesWithSizeMap" << std::endl;
EdgesWithSizeMap.Statistics(std::cout);
- std::cout << "VertecesWithSizeMap" << std::endl;
- VertecesWithSizeMap.Statistics(std::cout);
- std::cout << "FacesWithEnforcedVerteces" << std::endl;
- FacesWithEnforcedVerteces.Statistics(std::cout);
+ std::cout << "VerticesWithSizeMap" << std::endl;
+ VerticesWithSizeMap.Statistics(std::cout);
+ std::cout << "FacesWithEnforcedVertices" << std::endl;
+ FacesWithEnforcedVertices.Statistics(std::cout);
return true;
}