mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 02:40:32 +05:00
0021825: Error in the example of "Projection Algorithms" in the user's guide
check if MakeComputed() is really OK
This commit is contained in:
parent
02c33dab50
commit
9e5d5fd0d5
@ -72,8 +72,6 @@ StdMeshers_Projection_2D::StdMeshers_Projection_2D(int hypId, int studyId, SMESH
|
||||
:SMESH_2D_Algo(hypId, studyId, gen)
|
||||
{
|
||||
_name = "Projection_2D";
|
||||
_shapeType = (1 << TopAbs_FACE); // 1 bit per shape type
|
||||
|
||||
_compatibleHypothesis.push_back("ProjectionSource2D");
|
||||
_sourceHypo = 0;
|
||||
}
|
||||
@ -808,7 +806,7 @@ bool StdMeshers_Projection_2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape&
|
||||
SMESH_subMesh* tgtSubMesh = tgtMesh->GetSubMesh( tgtFace );
|
||||
|
||||
if ( tgtMesh == srcMesh ) {
|
||||
if ( !TAssocTool::MakeComputed( srcSubMesh ))
|
||||
if ( !TAssocTool::MakeComputed( srcSubMesh ) || !srcSubMesh->IsMeshComputed() )
|
||||
return error(COMPERR_BAD_INPUT_MESH,"Source mesh not computed");
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user