mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
Correct name of an argument
static int GetOrderedEdges (const TopoDS_Face& theFace, TopoDS_Vertex theFirstVertex, std::list< TopoDS_Edge >& theEdges, - std::list< int > & theNbVertexInWires, + std::list< int > & theNbEdgesInWires, const bool theShapeAnalysisAlgo=false);
This commit is contained in:
parent
47134513c5
commit
631ad5cae2
@ -960,7 +960,7 @@ int SMESH_Block::GetShapeIDByParams ( const gp_XYZ& theCoord )
|
|||||||
* \param theFirstVertex - the vertex of the outer wire to set first in the returned
|
* \param theFirstVertex - the vertex of the outer wire to set first in the returned
|
||||||
* list ( theFirstVertex may be NULL )
|
* list ( theFirstVertex may be NULL )
|
||||||
* \param theEdges - all ordered edges of theFace (outer edges goes first).
|
* \param theEdges - all ordered edges of theFace (outer edges goes first).
|
||||||
* \param theNbVertexInWires - nb of vertices (== nb of edges) in each wire
|
* \param theNbEdgesInWires - nb of edges (== nb of vertices in closed wire) in each wire
|
||||||
* \param theShapeAnalysisAlgo - if true, ShapeAnalysis::OuterWire() is used to find
|
* \param theShapeAnalysisAlgo - if true, ShapeAnalysis::OuterWire() is used to find
|
||||||
* the outer wire else BRepTools::OuterWire() is used.
|
* the outer wire else BRepTools::OuterWire() is used.
|
||||||
* \retval int - nb of wires
|
* \retval int - nb of wires
|
||||||
@ -974,7 +974,7 @@ int SMESH_Block::GetShapeIDByParams ( const gp_XYZ& theCoord )
|
|||||||
int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace,
|
int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace,
|
||||||
TopoDS_Vertex theFirstVertex,
|
TopoDS_Vertex theFirstVertex,
|
||||||
list< TopoDS_Edge >& theEdges,
|
list< TopoDS_Edge >& theEdges,
|
||||||
list< int > & theNbVertexInWires,
|
list< int > & theNbEdgesInWires,
|
||||||
const bool theShapeAnalysisAlgo)
|
const bool theShapeAnalysisAlgo)
|
||||||
{
|
{
|
||||||
// put wires in a list, so that an outer wire comes first
|
// put wires in a list, so that an outer wire comes first
|
||||||
@ -991,7 +991,7 @@ int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// loop on edges of wires
|
// loop on edges of wires
|
||||||
theNbVertexInWires.clear();
|
theNbEdgesInWires.clear();
|
||||||
list<TopoDS_Wire>::iterator wlIt = aWireList.begin();
|
list<TopoDS_Wire>::iterator wlIt = aWireList.begin();
|
||||||
for ( ; wlIt != aWireList.end(); wlIt++ )
|
for ( ; wlIt != aWireList.end(); wlIt++ )
|
||||||
{
|
{
|
||||||
@ -1009,7 +1009,7 @@ int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace,
|
|||||||
for ( TopoDS_Iterator e( *wlIt ); e.More(); e.Next(), ++iE )
|
for ( TopoDS_Iterator e( *wlIt ); e.More(); e.Next(), ++iE )
|
||||||
theEdges.push_back( TopoDS::Edge( e.Value() ));
|
theEdges.push_back( TopoDS::Edge( e.Value() ));
|
||||||
}
|
}
|
||||||
theNbVertexInWires.push_back( iE );
|
theNbEdgesInWires.push_back( iE );
|
||||||
iE = 0;
|
iE = 0;
|
||||||
if ( wlIt == aWireList.begin() && theEdges.size() > 1 ) { // the outer wire
|
if ( wlIt == aWireList.begin() && theEdges.size() > 1 ) { // the outer wire
|
||||||
// orient closed edges
|
// orient closed edges
|
||||||
@ -1047,7 +1047,7 @@ int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace,
|
|||||||
theEdges.splice(theEdges.end(), theEdges,
|
theEdges.splice(theEdges.end(), theEdges,
|
||||||
theEdges.begin(), ++theEdges.begin());
|
theEdges.begin(), ++theEdges.begin());
|
||||||
TopExp::Vertices( theEdges.front(), vv[0], vv[1], true );
|
TopExp::Vertices( theEdges.front(), vv[0], vv[1], true );
|
||||||
if ( iE++ > theNbVertexInWires.back() ) {
|
if ( iE++ > theNbEdgesInWires.back() ) {
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
gp_Pnt p = BRep_Tool::Pnt( theFirstVertex );
|
gp_Pnt p = BRep_Tool::Pnt( theFirstVertex );
|
||||||
MESSAGE ( " : Warning : vertex "<< theFirstVertex.TShape().operator->()
|
MESSAGE ( " : Warning : vertex "<< theFirstVertex.TShape().operator->()
|
||||||
|
@ -277,7 +277,7 @@ public:
|
|||||||
static int GetOrderedEdges (const TopoDS_Face& theFace,
|
static int GetOrderedEdges (const TopoDS_Face& theFace,
|
||||||
TopoDS_Vertex theFirstVertex,
|
TopoDS_Vertex theFirstVertex,
|
||||||
std::list< TopoDS_Edge >& theEdges,
|
std::list< TopoDS_Edge >& theEdges,
|
||||||
std::list< int > & theNbVertexInWires,
|
std::list< int > & theNbEdgesInWires,
|
||||||
const bool theShapeAnalysisAlgo=false);
|
const bool theShapeAnalysisAlgo=false);
|
||||||
// Return nb wires and a list of oredered edges.
|
// Return nb wires and a list of oredered edges.
|
||||||
// It is used to assign indices to subshapes.
|
// It is used to assign indices to subshapes.
|
||||||
|
Loading…
Reference in New Issue
Block a user