# IFC entity for the relationship between 3D geometry and its surfaces?

**URL:** https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781
**Category:** Developers
**Tags:** ifc2x3, ifc4
**Created:** [July 2, 2021, 8:30am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781 "2021-07-02T08:30:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@Hao](https://forums.buildingsmart.org/u/Hao)
#### Post date: [July 2, 2021, 8:30am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/1 "2021-07-02T08:30:18Z")

</div>

Hi, let say there is a rectangular beam consisting of six surfaces (i.e., 1 top, 1 bottom, and 4 sides). What is the IFC entity for the relationship between the 3D beam and the six surfaces (i.e., denote that the beam has these six surfaces)? Is it `IfcRelAggregates`? Thanks!

---

<div class="post-metadata">

### Author: ![tauscher](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/tauscher/32/816_2.png) [@tauscher](https://forums.buildingsmart.org/u/tauscher)
#### Post date: [July 2, 2021, 12:11pm UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/2 "2021-07-02T12:11:46Z")

</div>

That depends whether you are interested in the geometrical relationship between the solid and its faces or the semantic relationship between the beam and its surface facing a room or other building element.

In the first case (geometric), it would be an attribute for some subtype of `IfcRepresentationItem`. For example if you consider `IfcFacetedBrep`, that would be `IfcClosedShell.CfsFaces` leading to the faces of the (outer or interior) shell.

In the second case (semantic), the relation is not actually between the building element (e.g. column) and the surface, but between the element and the room or object on the “other” side of the surface. The surface geometry is an optional attribute of the relation. That would be `IfcRelConnects` and subtypes, for example`IfcRelSpaceBoundary` or `IfcRelConnectsElements`. Note that not all subtypes of `IfcRelConnects` have provision for surface (connection) geometry, but most of them mandate the objects on both sides of the connection to be present.

---

<div class="post-metadata">

### Author: ![Hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@Hao](https://forums.buildingsmart.org/u/Hao)
#### Post date: [July 5, 2021, 8:10am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/3 "2021-07-05T08:10:26Z")

</div>

Thanks @tauscher for your explaination!

I mean the first case (the geometirc relationship between the solid and its faces). I think what you mentioned here, like `IfcRepresentationItem, IfcFacetedBrep, IfcClosedShell.CfsFaces,` are the entities to represent the surfaces? But I am wondering what’s the entity to represent that the solid **“has”** the surfaces (the **“ownership”** relationship between the solid and its surfaces), maybe an example is the `IfcRelConnectsElements` to represent the connectivity of two joined elements.

---

<div class="post-metadata">

### Author: ![Bernold.K](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@Bernold.K](https://forums.buildingsmart.org/u/Bernold.K)
#### Post date: [July 19, 2021, 7:11am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/4 "2021-07-19T07:11:11Z")

</div>

Actually both examples have a “semantic” meaning. Geometry does not know about a directional meaning or relation to a superior global classification system (i.e. top, bottom, left, right etc.). I’m not aware of any IFC example which dissembles the faces of it’s representation. It would require the knowledge of what is meant by up and down in prior. It also depends on the final transformation (in terms of geometry in a scene graph). And finally it would blow up the model size massively. Most solutions try to post-compute those relations and annotate surfaces in an internal object model.

---

<div class="post-metadata">

### Author: ![Hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@Hao](https://forums.buildingsmart.org/u/Hao)
#### Post date: [July 25, 2021, 9:04am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/5 "2021-07-25T09:04:24Z")

</div>

Thanks for your replies @Bernold.K @tauscher .

After looking into the IFC instance diagram in `https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/schema/templates/surface-3d-geometry.htm`, I guess the answers are `IfcProductDefinitionShape` and `IfcShapeRepresentation`?

---

<div class="post-metadata">

### Author: ![Bernold.K](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@Bernold.K](https://forums.buildingsmart.org/u/Bernold.K)
#### Post date: [July 26, 2021, 6:40am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/6 "2021-07-26T06:40:28Z")

</div>

Hi,  
concerning the relation between product and shape, you are right. But it’s not an expression for the “ownership” between shape and its faces necessarily. It depends on how the exporting software will decompose (or not) a shape. I saw examples where each face became a shape (correcting myself in the upper comment, but only faces without a semantic meaning) and on the opposite where everything was bound to a single shape (with faces without meaning). If you are looking for “faces” of “solids”, you have to take a look into the bunch of implementations (i.e. see the inheritance of [https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2\_TC1/HTML/link/ifcgeometricrepresentationitem.htm](https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/link/ifcgeometricrepresentationitem.htm)). If you’re looking for an explicit common relation between solids and faces, there’s no in the IFC (as far I know, and with respect to the bunch of implementations, it’s really hard to have one).

Best,  
Bernold

---

<div class="post-metadata">

### Author: ![Hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@Hao](https://forums.buildingsmart.org/u/Hao)
#### Post date: [July 29, 2021, 3:17am UTC](https://forums.buildingsmart.org/t/ifc-entity-for-the-relationship-between-3d-geometry-and-its-surfaces/3781/7 "2021-07-29T03:17:21Z")

</div>

Thanks! @Bernold.K
