mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 18:00:33 +05:00
bos #29143 [CEA] Compute takes too much time in polyhedron per solid use case
more optimization: don't try to find more local algos if uniDimAlgoShapes is empty
This commit is contained in:
parent
f85bc0ab6f
commit
a065ed143c
@ -390,6 +390,8 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh,
|
|||||||
|
|
||||||
const TopAbs_ShapeEnum shapeType = sm->GetSubShape().ShapeType();
|
const TopAbs_ShapeEnum shapeType = sm->GetSubShape().ShapeType();
|
||||||
|
|
||||||
|
if ( !uniDimAlgoShapes.IsEmpty() )
|
||||||
|
{
|
||||||
// get a shape the algo is assigned to
|
// get a shape the algo is assigned to
|
||||||
if ( !GetAlgo( sm, & algoShape ))
|
if ( !GetAlgo( sm, & algoShape ))
|
||||||
continue; // strange...
|
continue; // strange...
|
||||||
@ -433,6 +435,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh,
|
|||||||
Compute( aMesh, aSubShape, aFlags | SHAPE_ONLY_UPWARD, aDim, aShapesId, localAllowed );
|
Compute( aMesh, aSubShape, aFlags | SHAPE_ONLY_UPWARD, aDim, aShapesId, localAllowed );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// --------------------------------
|
// --------------------------------
|
||||||
// apply the all-dimensional algo
|
// apply the all-dimensional algo
|
||||||
// --------------------------------
|
// --------------------------------
|
||||||
|
@ -237,6 +237,6 @@ private:
|
|||||||
int _MessInfo;
|
int _MessInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // namespace SMESHHOMARDImpl
|
} // namespace SMESHHOMARDImpl
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user