mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-15 17:43:07 +05:00
0021672: [CEA 565] Dump Study from script
GetSubShapeIndices() from the last function
This commit is contained in:
parent
f738320ebc
commit
0bbd959702
@ -453,7 +453,7 @@ GEOM::ListOfLong* GEOM_Object_i::GetSubShapeIndices()
|
|||||||
GEOM::ListOfLong_var anIndices = new GEOM::ListOfLong;
|
GEOM::ListOfLong_var anIndices = new GEOM::ListOfLong;
|
||||||
|
|
||||||
if(!_impl->IsMainShape()) {
|
if(!_impl->IsMainShape()) {
|
||||||
Handle(GEOM_Function) aFunction = _impl->GetFunction(1); //Get Sub-shape function (always the first (and last) one)
|
Handle(GEOM_Function) aFunction = _impl->GetLastFunction(); //Get Sub-shape function (always the first (and last) one)
|
||||||
if(aFunction.IsNull()) return anIndices._retn();
|
if(aFunction.IsNull()) return anIndices._retn();
|
||||||
GEOM_ISubShape ISS(aFunction);
|
GEOM_ISubShape ISS(aFunction);
|
||||||
Handle(TColStd_HArray1OfInteger) anArray = ISS.GetIndices();
|
Handle(TColStd_HArray1OfInteger) anArray = ISS.GetIndices();
|
||||||
|
Loading…
Reference in New Issue
Block a user