mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
check orientation when re-loading points from a proxy mesh
This commit is contained in:
parent
3c2cd16c45
commit
083e873dfe
@ -358,6 +358,11 @@ const vector<UVPtStruct>& StdMeshers_FaceSide::GetUVPtStruct(bool isXConst,
|
||||
{
|
||||
const UVPtStructVec& edgeUVPtStruct = proxySubMesh[iE]->GetUVPtStructVec();
|
||||
std::copy( edgeUVPtStruct.begin(), edgeUVPtStruct.end(), & points[iPt] );
|
||||
// check orientation
|
||||
double du1 = edgeUVPtStruct.back().param - edgeUVPtStruct[0].param;
|
||||
double du2 = myLast[iE] - myFirst[iE];
|
||||
if ( du1 * du2 < 0 )
|
||||
std::reverse( & points[iPt], & points[iPt + edgeUVPtStruct.size()]);
|
||||
// update normalized params
|
||||
if ( myEdge.size() > 1 ) {
|
||||
for ( size_t i = 0; i < edgeUVPtStruct.size(); ++i, ++iPt )
|
||||
|
Loading…
Reference in New Issue
Block a user