fix regression with seam edges made by the previous revision

This commit is contained in:
eap 2011-05-23 08:25:50 +00:00
parent 08865d94da
commit e32634a346

View File

@ -582,9 +582,14 @@ bool NETGENPlugin_Mesher::fillNgMesh(const netgen::OCCGeometry& occgeom,
if ( p1.node->GetPosition()->GetTypeOfPosition() == SMDS_TOP_VERTEX ) //an EDGE begins
{
isSeam = helper.IsRealSeam( p1.node->getshapeId() );
if ( isSeam )
otherSeamParam = helper.GetOtherParam( helper.GetPeriodicIndex() & 1 ? p2.u : p2.v );
isSeam = false;
if ( helper.IsRealSeam( p1.node->getshapeId() ))
{
geomEdge = fSide.Edge( fSide.EdgeIndex( 0.5 * ( p1.normParam + p2.normParam )));
isSeam = helper.IsRealSeam( geomEdge );
if ( isSeam )
otherSeamParam = helper.GetOtherParam( helper.GetPeriodicIndex() & 1 ? p2.u : p2.v );
}
}
netgen::Segment seg;
// ng node ids