Personal tools
You are here: Home Forum Use Removing internal boundaries

Removing internal boundaries

Up to Use

Removing internal boundaries

Posted by Mohammed Hussain at September 19. 2012

Hi Everyone,

Is there a way to remove internal boundaries when two or more objects are merged?

 

Thanks,

Mohammed

 

 

Re: Removing internal boundaries

Posted by Saint Michael at September 20. 2012

Hi Mohammed

It's not quite clear what you mean by "objects are merged". I suppose you mean Partition, right? In this case there is no a ready-to- use operation to remove faces shared by two adjacent solids but it's easy to write a script that would do it.

I can provide such a script if it is what you are looking for.

St.Michael

Re: Removing internal boundaries

Posted by Mayank Sabharwal at September 20. 2012

Hi Everyone,

I have a compound geometry built by compounding individual boxes. Is there a way to remove the internal boundaries of this compound?

 

Mayank

Re: Removing internal boundaries

Posted by Saint Michael at September 20. 2012

Previously Mayank Sabharwal wrote:

Hi Everyone,

I have a compound geometry built by compounding individual boxes. Is there a way to remove the internal boundaries of this compound?

 

Mayank

 

Hi Mayank,

You case is similar to one of Mohammed. First, you need to perform Partition of your compound (Object =your compound) to find intersections between your boxes. Second, you are to construct a shell and then a solid of only outer faces. As I said there is no such an operation in SALOME but this can be done in a script.

St.Michael

Re: Removing internal boundaries

Posted by Mohammed Hussain at September 21. 2012

Previously Saint Michael wrote:

Hi Mohammed

It's not quite clear what you mean by "objects are merged". I suppose you mean Partition, right? In this case there is no a ready-to- use operation to remove faces shared by two adjacent solids but it's easy to write a script that would do it.

I can provide such a script if it is what you are looking for.

St.Michael

Hi St. Michael,

Many thanks. Could you provide me the script please?

Mohammed

 

 

Re: Removing internal boundaries

Posted by Saint Michael at September 21. 2012

Enjoy!

St.Michael

Attachments

Re: Removing internal boundaries

Posted by Mohammed Hussain at September 21. 2012

Previously Saint Michael wrote:

Enjoy!

St.Michael

Many thanks St. Michael!

Mohammed

 

Re: Removing internal boundaries

Posted by Michael Page at July 11. 2013

Hi,

How can I do to use this script on an existing geometry in Geometry module?

Thank you,

Michael Page

Re: Removing internal boundaries

Posted by Saint Michael at July 11. 2013

Hi Michael Page

Suppose you need to set up 'boxes' python variable to a geom object present in the Study. You need to know an Entry (looking like "0:1:1:3") of your geom object, and you can see this Entry if you switch on Entry column of the Object Browser (right mouse click on Name column and select Entry in the pop-up menu).

Knowing the Entry (say "0:1:1:1") you write in the script

boxes = salome.myStudy.FindObjectID("0:1:1:1").GetObject()

That's all.

St.Michael

Re: Removing internal boundaries

Posted by Saint Michael at July 11. 2013

Sorry, a mistype. A right function name is FindObjectID.

Re: Removing internal boundaries

Posted by Christophe Bourcier at July 11. 2013

Or alternatively:

boxes = salome.IDToObject("0:1:1:5")

 

Or if the object is selected:

entry = salome.sg.getSelected(0)


boxes = salome.IDToObject(entry)

 

 

Christophe

Re: Removing internal boundaries

Posted by Christophe Bourcier at July 11. 2013

Remove internal faces will be a built-in functionality in the next Salome release.

Christophe

Powered by Ploneboard
Document Actions