| 1 |
Geometry and Representations |
| 2 |
============================ |
| 3 |
|
| 4 |
Understanding IFC Elements and Geometry |
| 5 |
--------------------------------------- |
| 6 |
|
| 7 |
In Bonsai, it's crucial to understand the relationship between IFC elements, their classification, types, and geometry. |
| 8 |
These concepts work together but serve different purposes. |
| 9 |
|
| 10 |
IFC Classification |
| 11 |
^^^^^^^^^^^^^^^^^^ |
| 12 |
|
| 13 |
Every IFC element has a two-level classification: |
| 14 |
|
| 15 |
1. IFC Class: The top level (e.g., IfcWall) |
| 16 |
2. Predefined Type: The second level (e.g., PARTITIONING) |
| 17 |
|
| 18 |
This classification is purely for categorization and filtering. It doesn't determine the element's geometry or appearance. |
| 19 |
|
| 20 |
Types and Occurrences |
| 21 |
^^^^^^^^^^^^^^^^^^^^^ |
| 22 |
|
| 23 |
IFC uses the concept of "Types" and "Occurrences": |
| 24 |
|
| 25 |
- Types: Define common properties or materials shared by multiple elements. |
| 26 |
- Occurrences: Individual instances of a type. |
| 27 |
|
| 28 |
If a type has geometry associated with it, all its occurrences must have the same geometry (similar to instancing or cloning in other applications). |
| 29 |
However, if a type has no material or geometry, it doesn't impact the geometry of its occurrences. |
| 30 |
|
| 31 |
Representations |
| 32 |
--------------- |
| 33 |
|
| 34 |
In IFC, unlike traditional 3D modeling: |
| 35 |
|
| 36 |
- An object may have no geometry, one geometry, or multiple geometries. |
| 37 |
- Each geometry is called a "Representation". |
| 38 |
- Representations are differentiated by their "Context". A "Context" defines what the geometry is used for (e.g., 3D Body, 2D Plan, etc.). |
| 39 |
|
| 40 |
The most common context is the 3D Body context, which represents the physical shape of the object. |
| 41 |
|
| 42 |
Representation Types |
| 43 |
^^^^^^^^^^^^^^^^^^^^ |
| 44 |
|
| 45 |
IFC supports various geometry types: |
| 46 |
|
| 47 |
- Mesh-like: Facetations, tessellations, triangulations, or planar breps. |
| 48 |
- Solid modeling: CSGs, swept solids, extrusions, lofts, etc. |
| 49 |
|
| 50 |
In Bonsai, you can create simple mesh geometries (like a cube) and assign them to IFC elements. |
| 51 |
However, for more complex elements like walls, slabs, or columns, other representation types are more appropriate. |
| 52 |
|
| 53 |
Parametric Materials |
| 54 |
^^^^^^^^^^^^^^^^^^^^ |
| 55 |
|
| 56 |
IFC standardizes certain parametric modeling techniques: |
| 57 |
|
| 58 |
1. Material Layers: Uses an axis line and material layers to derive the body of an object by extruding layers of different thicknesses to a particular height. |
| 59 |
2. Material Profiles: Extrudes a profile (arbitrary or parametric) along a 3D axis. |
| 60 |
|
| 61 |
These are typically defined at the type level and inherited by occurrences. |
| 62 |
|
| 63 |
Working with Representations in Bonsai |
| 64 |
-------------------------------------- |
| 65 |
|
| 66 |
- Creating swept solids: Currently, the best method is to use parametric material layers (e.g., for walls) or material profiles. |
| 67 |
- Mesh editing: For mesh-like representations, you can edit them directly in Blender's edit mode. |
| 68 |
- Non-mesh modeling: Bonsai currently has limited tools for direct modeling of non-mesh geometries. |
| 69 |
Future updates will include more intuitive interfaces for this purpose. |
| 70 |
- Deleting representations: This should be avoided as it can create invalid IFC data. |
| 71 |
If you delete a representation, the element should no longer be visible in the 3D view. |
| 72 |
|
| 73 |
.. note:: |
| 74 |
The current implementation allows low-level manipulation of IFC data, which requires a deep understanding of IFC rules. |
| 75 |
Users should exercise caution when manually editing representations or other low-level IFC data. |
| 76 |
|
| 77 |
Future Developments |
| 78 |
------------------- |
| 79 |
|
| 80 |
The Bonsai team plans to develop more intuitive interfaces for non-mesh direct modeling tools in future versions. |
| 81 |
This will make it easier to create and manipulate complex geometric representations without needing to understand the intricacies of IFC data structures. |