How to merge the faces of 2 surface components under certain distance? (geometry files attached)

ke zhang
ke zhang Altair Community Member
edited November 2020 in Community Q&A

Hi all,

I have 2 components imported from 2 .stl files. And now 2 surfaces with many egdes have been generated from stl mesh. As we can see from the image below, in the up-right corner, some part the geometry was masked to show inner part of the geometry. And the 2 surface are crossing with each other, because physically they should share same boundary in that area.

I need to make the two geometry (red and blue)in the up-right corner part share same boundary. So I can generate the surfacemesh, and they can share the same elements on that boundary. Is there any way to merge the boundaries of 2 geometries when they are very close? Thank you.

 

Ke

 

Download:

 

image

 

image

Used version: Hypermesh 2017

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2020

    Try: Geom => edge edit => replace  and play with "cleanup tolerance"

     

    image

  • ke zhang
    ke zhang Altair Community Member
    edited November 2020

    Try: Geom => edge edit => replace  and play with "cleanup tolerance"

     

    image

    Thank you. I have tried the method, but what I want to do is merging 2 almost parallel surfaces together, not combining the 2 edges into 1. Is there any way to do that?

     

    image

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2020

    By moving edge-1 of surface-1 to edge-2 of surface-2 then two surfaces were merged, right?

     

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2020

    Have a look at my test: two different surfaces with gap

    image

    Moving 1st edge to 2nd edge (TOL> gap)

    image

    Get the shared edge between two surfaces

    image

    Disable shared edge to get only one surface:

    image

     

     

     

     

     

     

     

     

  • ke zhang
    ke zhang Altair Community Member
    edited November 2020

    Have a look at my test: two different surfaces with gap

    image

    Moving 1st edge to 2nd edge (TOL> gap)

    image

    Get the shared edge between two surfaces

    image

    Disable shared edge to get only one surface:

    image

     

     

     

     

     

     

     

     

    Thank you for your detailed explanation. I am really sorry for not describing the problems clearly. The sketch is misleading, which is only a cut plane of our 3D model.

    The two surfaces are all enclosed 3D surfaces (animal organ's 3D outline) and some parts of them are contacted or overlapped with each other physically. But they are from 2 different stl files and in hypermesh, the parts should be perfectly overlapped are now crossed with each other due to errors I think. I mean are there any ways to merge the "contacted part" of the two surfaces together to be one surface? Thanks a lot.

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2020
    ke zhang said:

    Thank you for your detailed explanation. I am really sorry for not describing the problems clearly. The sketch is misleading, which is only a cut plane of our 3D model.

    The two surfaces are all enclosed 3D surfaces (animal organ's 3D outline) and some parts of them are contacted or overlapped with each other physically. But they are from 2 different stl files and in hypermesh, the parts should be perfectly overlapped are now crossed with each other due to errors I think. I mean are there any ways to merge the "contacted part" of the two surfaces together to be one surface? Thanks a lot.

    I can not help without shared model.

  • ke zhang
    ke zhang Altair Community Member
    edited November 2020

    I can not help without shared model.

    Please see the following simplified model. There are 2 surfaces inside the file.

     

    https://www.dropbox.com/s/tk5n0t2zjb5ip0i/models.7z?dl=0

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited November 2020
    ke zhang said:

    Please see the following simplified model. There are 2 surfaces inside the file.

     

    https://www.dropbox.com/s/tk5n0t2zjb5ip0i/models.7z?dl=0

    I have a look at your models. It's very complicated with Hypermesh. No way to do quickly with Hypermesh. All should be done manually, so a lot of work.

    Maybe there is other CAD software could do this task?

  • ke zhang
    ke zhang Altair Community Member
    edited November 2020

    I have a look at your models. It's very complicated with Hypermesh. No way to do quickly with Hypermesh. All should be done manually, so a lot of work.

    Maybe there is other CAD software could do this task?

    Thank you very much. I will find other softwares to do the job. Maybe solidworks can solve the problem and then I can go back with hypermesh for the meshing part.

     

     

  • ArthurJANNOT
    ArthurJANNOT
    Altair Employee
    edited November 2020

    Hello Ke Zhang,

    Can you share again the model to see if I can help you please?

    To make some automatic cleanup geometry you have different tools in HyperMesh as :
    Geometry / Edge edit / Equivalence --> Make the replace and toogle operatin with many surfaces and is more automatic things than replace and toogle. Pay attention, the tolerance need to be very small compare to the entire modelimage
    Geommetry/Autocleanup --> you need to give parameter file and criteria file to prepar geometry for the mesh
    image

    If your both geometry are solid :
    Geometry / Solid edit / Boolean
    image

    Best regards,

    Arthur

  • ke zhang
    ke zhang Altair Community Member
    edited November 2020

    Hello Ke Zhang,

    Can you share again the model to see if I can help you please?

    To make some automatic cleanup geometry you have different tools in HyperMesh as :
    Geometry / Edge edit / Equivalence --> Make the replace and toogle operatin with many surfaces and is more automatic things than replace and toogle. Pay attention, the tolerance need to be very small compare to the entire modelimage
    Geommetry/Autocleanup --> you need to give parameter file and criteria file to prepar geometry for the mesh
    image

    If your both geometry are solid :
    Geometry / Solid edit / Boolean
    image

    Best regards,

    Arthur

    Hi Arthur,

     

    Thank you so much for your help! This problem is big trouble for me. 

     

    Please download the file from the following link. I also restored the link in my question text.

     

    The models are surfaces, one is not enclosed (modelout.iges), but you can add a surface to the

    bottom of it to make it enclosed.

     

    https://www.dropbox.com/s/1twiihmrgtxjww0/Model_Dropbox.7z?dl=0

     

    Thanks a lot!

     

    Ke

  • ArthurJANNOT
    ArthurJANNOT
    Altair Employee
    edited November 2020
    ke zhang said:

    Hi Arthur,

     

    Thank you so much for your help! This problem is big trouble for me. 

     

    Please download the file from the following link. I also restored the link in my question text.

     

    The models are surfaces, one is not enclosed (modelout.iges), but you can add a surface to the

    bottom of it to make it enclosed.

     

    https://www.dropbox.com/s/1twiihmrgtxjww0/Model_Dropbox.7z?dl=0

     

    Thanks a lot!

     

    Ke

    Hello,

    Thanks for the model. Due to the complexity of the surfaces generated, a lot of operations is necessary to rebuild geometry. I'm interested to see if we can work with another way by using mesh from stl. And maybe coupling HyperMesh with other softwares from Altair to help you.

    Can you share me the initial stl file please? I would like to see if we can make operation on the stl mesh rather than geometry extraction.

    Regards,

    Arthur