mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-26 23:20:33 +05:00
Fix regression of SALOME_TESTS/Grids/geom/import_export_STEP_00/A2
This commit is contained in:
parent
702de9ae7d
commit
31d723907d
@ -73,7 +73,7 @@
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
TopoDS_Shape GetShape(const Handle(Standard_Transient) &theEnti,
|
TopoDS_Shape GetShape(const Handle(Standard_Transient) &theEnti,
|
||||||
const Handle(Transfer_TransientProcess) &theTP)
|
const Handle(Transfer_TransientProcess) &theTP)
|
||||||
{
|
{
|
||||||
TopoDS_Shape aResult;
|
TopoDS_Shape aResult;
|
||||||
Handle(Transfer_Binder) aBinder = theTP->Find(theEnti);
|
Handle(Transfer_Binder) aBinder = theTP->Find(theEnti);
|
||||||
@ -94,8 +94,8 @@ TopoDS_Shape GetShape(const Handle(Standard_Transient) &theEnti,
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
TDF_Label GetLabel(const Handle(Standard_Transient) &theEnti,
|
TDF_Label GetLabel(const Handle(Standard_Transient) &theEnti,
|
||||||
const TDF_Label &theShapeLabel,
|
const TDF_Label &theShapeLabel,
|
||||||
const TopoDS_Shape &aShape)
|
const TopoDS_Shape &aShape)
|
||||||
{
|
{
|
||||||
TDF_Label aResult;
|
TDF_Label aResult;
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ Standard_Integer STEPPlugin_ImportDriver::Execute( TFunction_Logbook& log ) cons
|
|||||||
|
|
||||||
// Check if any BRep entity has been read, there must be at least a vertex
|
// Check if any BRep entity has been read, there must be at least a vertex
|
||||||
if ( !TopExp_Explorer( aResShape, TopAbs_VERTEX ).More() )
|
if ( !TopExp_Explorer( aResShape, TopAbs_VERTEX ).More() )
|
||||||
anError = "No geometrical data in the imported file.";
|
StdFail_NotDone::Raise( "No geometrical data in the imported file." );
|
||||||
|
|
||||||
// BEGIN: Store names and materials of sub-shapes from file
|
// BEGIN: Store names and materials of sub-shapes from file
|
||||||
TopTools_IndexedMapOfShape anIndices;
|
TopTools_IndexedMapOfShape anIndices;
|
||||||
|
Loading…
Reference in New Issue
Block a user