Personal tools
You are here: Home Forum Use Fusing geometries does not return geometry of same type

Fusing geometries does not return geometry of same type

Up to Use

Fusing geometries does not return geometry of same type

Posted by Fynn at March 13. 2017

Hi,

I have a problem regarding fusing surfaces: I can't apply a sub-mesh on fused surfaces and I can't group a mesh surface through its corresponding geometry surface, if this surface is the result of a fusion operation.

The attached script illustrates my problem: 

I define a cube and use MakeFuse to combine a side surface with the bottom surface, 'sideBottom'. When I mesh the geometry I define sub-meshes for the 'top' surface and the 'sideBottom' surface. Then the algorithm fails to create the 'sideBottom' mesh but creates the 'top' mesh without problem. Same happens for the last operation, where I define groups on the mesh through the respective geometry elements. Again, this operation works fine for 'top' and fails for 'sideBottom'.

So how can I group geometry surfaces that'll be defined as a sub-mesh later?

Cheers,

Fynn

Attachments

Re: Fusing geometries does not return geometry of same type

Posted by Saint Michael at March 13. 2017

Hi Fynn

To group surfaces for a sub-mesh create either

1) a group:
sideBottom = geompy.CreateGroup( "sideBottom", geompy.ShapeType["FACE"] )
geompy.UnionList( [ faceList[0], faceList[4] ] )

2) a compound:
sideBottom = geompy.MakeCompound( [ faceList[0], faceList[4] ] )

BTW use sorted sub-shapes to have a script working the same way in different salome versions:
faceList = geompy.SubShapeAllSorted(cube, geompy.ShapeType["FACE"])

St.Michael

Re: Fusing geometries does not return geometry of same type

Posted by Fynn at March 13. 2017

Hi Saint Michael,

Thanks for the quick reply; it works well!

 

Powered by Ploneboard
Document Actions