Personal tools
You are here: Home Forum Other... (new forum, problems, etc.) Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Up to Other... (new forum, problems, etc.)

Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Posted by schmitt_r at July 04. 2017

Dear Salome users,

the script at the end of this post is creating two faces and partioning them, whereas it keeps the sub-shape information. After loading it and dump it again with Version 8.2.0 the line

[from_Face_1, from_Translation_1] = geompy.RestoreGivenSubShapes(Partition_1, [Face_1, Translation_1], GEOM.FSM_GetInPlaceByHistory, False, True)

has changed to

[0000000009003D20, 0000000009002F10] = geompy.RestoreGivenSubShapes(0000000009004180, [00000000096D4700, 00000000096D06F0], GEOM.FSM_GetInPlaceByHistory, False, True)

In Version 7.8.0 of Salome the dump worked correctly keeping the names of the sub-shapes.

Regards,

RĂ¼diger

-------------------------------------------------------------------------------------------------------------------------------------

# -*- coding: utf-8 -*-

###
### This file is generated automatically by SALOME v7.8.0 with dump python functionality
###

import sys
import salome

salome.salome_init()
theStudy = salome.myStudy

import salome_notebook
notebook = salome_notebook.NoteBook(theStudy)

###
### GEOM component
###

import GEOM
from salome.geom import geomBuilder
import math
import SALOMEDS


geompy = geomBuilder.New(theStudy)

O = geompy.MakeVertex(0, 0, 0)
OX = geompy.MakeVectorDXDYDZ(1, 0, 0)
OY = geompy.MakeVectorDXDYDZ(0, 1, 0)
OZ = geompy.MakeVectorDXDYDZ(0, 0, 1)
Face_1 = geompy.MakeFaceHW(100, 100, 1)
Translation_1 = geompy.MakeTranslation(Face_1, 100, 0, 0)
Partition_1 = geompy.MakePartition([Face_1, Translation_1], [], [], [], geompy.ShapeType["FACE"], 0, [], 0)
geompy.addToStudy( O, 'O' )
geompy.addToStudy( OX, 'OX' )
geompy.addToStudy( OY, 'OY' )
geompy.addToStudy( OZ, 'OZ' )
geompy.addToStudy( Face_1, 'Face_1' )
geompy.addToStudy( Translation_1, 'Translation_1' )
geompy.addToStudy( Partition_1, 'Partition_1' )
[from_Face_1, from_Translation_1] = geompy.RestoreGivenSubShapes(Partition_1, [Face_1, Translation_1], GEOM.FSM_GetInPlaceByHistory, False, True)


if salome.sg.hasDesktop():
  salome.sg.updateObjBrowser(1)

 

Re: Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Posted by Vadim SANDLER at July 06. 2017

Hello,

The bug has been fixed, see
https://git.salome-platform.org/gitweb/?p=modules/geom.git;a=commit;h=4084b64c

Thank you for the bug report.

Regards,
Vadim.

Re: Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Posted by schmitt_r at October 05. 2017

Hello,

in windows-version 8.3 the bug is still existant!

 

Regards,

RĂ¼diger

 

Previously Vadim SANDLER wrote:

Hello,

The bug has been fixed, see
https://git.salome-platform.org/gitweb/?p=modules/geom.git;a=commit;h=4084b64c

Thank you for the bug report.

Regards,
Vadim.

 

Re: Problem with dump of geompy.RestoreGivenSubShapes in Salome 8.2.0

Posted by Vadim SANDLER at October 05. 2017

Exactly!

If you look at the commit log

https://git.salome-platform.org/gitweb/?p=modules/geom.git;a=shortlog;h=refs/heads/master

you can see that the bug has been fixed after version 8.3.0 is released.

Thus, the fix will be available with SALOME 8.4.

Quick reply
URLs will be automatically hyperlinked. Basic HTML tags are OK.
Powered by Ploneboard
History
Activate by schmitt_r on Jul 04, 2017 12:00 PM
Document Actions