Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to identify the internal/external faces of an open cube ?

Message 1 of 5
318 Views, 4 Replies

How to identify the internal/external faces of an open cube ?

Hello, I am creating a simple object to then perform operations on it... I have managed to identify the external faces, top, bottom, front, back, left and right... but I don't know what would be the best way to identify the opposite interior faces to the exteriors





Could you recommend me any technique for this?


Thank you

Message 2 of 5
in reply to: michelmarroche

 Without fully understanding your requirements, I'm not sure what will be best, but I would look at the findBRepUsingRay method.

Brian Ekins
Inventor and Fusion 360 API Expert
Message 3 of 5

Thanks Brian, I'm going to look at this method, I didn't know...


What I am trying to do is the following:


- I create a sketch
- extruded the same
- I apply a shell
- and now I need to apply a split body to the inner faces separately





With this I generate a module assembled by bodies (plates in my case)


That's why I need to be able to identify each of the internal faces of the cube. I am already identifying the exteriors according to their axis.


This is how it would look after applying the split bodies..





Message 4 of 5
in reply to: michelmarroche

Your picture doesn't look like a shelled cube but instead like five thin blocks put together to make a cube shape. If it is a block that's been hollowed out with a Shell feature and the shell is to the inside, you can use the faces property of the ShellFeature, and it will return the five created by the shell, which are the inside faces.


You can also iterate over the surfaces and get their normals. The normals of the outside faces will be the same as the inside faces. for example, the normal of the left inside face will be the same as the right outside face, but since you already have the right face, you can eliminate it from the list, and you'll be left with the inside faces. You could also traverse the topology of the solid to get to the inside faces. It's really a bit of a puzzle to figure out something that will work and then continue to look for something that is either simpler or more efficient, or ideally both.

Brian Ekins
Inventor and Fusion 360 API Expert
Message 5 of 5
in reply to: BrianEkins

Excellent idea to use the face normals to compare them and thus be able to identify them!


I am trying with the "findBRepUsingRay" method, although I am getting the result, I have not yet been able to interact with this result to extract which face I am coming across.


I'll try the normal ones... thanks again Brian !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators

Autodesk Design & Make Report