pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Cannot create "MeshVS_EntityType &"

Open cedricadam2 opened this issue 3 years ago • 2 comments

I want to have access to mesh geometry using : Coords = TColStd_Array1OfReal() Type = MeshVS_EntityType.MeshVS_ET_Node NbNodes = data_source.GetGeom (ID, is_element, Coords, Type) but I obtain this error : NbNodes = data_source.GetGeom (ID, is_element, Coords, [MeshVS_EntityType.MeshVS_ET_Node]) File "...\OCC\Core\MeshVS.py", line 2145, in GetGeom return _MeshVS.MeshVS_DataSource_GetGeom(self, *args) TypeError: in method 'MeshVS_DataSource_GetGeom', argument 6 of type 'MeshVS_EntityType &'

How can I create a "MeshVS_EntityType &" variable ?

cedricadam2 avatar Jan 09 '22 13:01 cedricadam2

In the current master branch, the GetGeom method takes only three arguments. The type is returned.

tpaviot avatar Jan 11 '22 04:01 tpaviot

Thank you, it works on current master branch.

cedricadam2 avatar Jan 11 '22 08:01 cedricadam2