Syntax
- inline Rule
- inline subdivision
- inline { operations }
- inline(geometryMergeStrategy) Rule
- inline(geometryMergeStrategy) subdivision
- inline(geometryMergeStrategy) { operations }
Parameters
- geometryMergeStrategy—selectorDefines how the geometry of the resulting shapes are combined:
- append — Default. Appends the geometry as is.
- unify — Uses the Boolean union operation.
- Syntax options:
- Rule — Name of a rule.
- subdivision — A subdivison operation (see Geometry Subdivision).
- { operations } — A sequence of shape operations in curly brackets.
Description
The inline keyword triggers the immediate derivation of the specified rule, subdivision operation, or shape operation sequence. The resulting shapes are then automatically merged into a single shape that replaces the current shape. In case it results in a single shape, it is taken as is. If it results in multiple shapes, their geometries are combined according to the geometryMergeStrategy. By default (if no strategy is specified) the geometries are just appended.
If the inlined shapes have conflicting material attributes, each shape's material is written to the geometry, meaning that all materials are preserved. For other attributes, the value of the current shape is kept if the inlined shapes have conflicting values or if more than one set operation has occurred.
Concept
This is the initial shape. | ![]() |
Two rules are applied to the initial shape: Volumes splits the shape and inserts different assets, while Colorize sets a yellow color. The rules modify the input shape independently and do not affect each other. This can be observed in the Model Hierarchy where both rules represent the root of a separate shape subtree. The leaf shapes in the full shape tree collectively form the visible model.
| ![]() |
Inlining Volumes enables the two rules to be sequentialized, allowing Colorize to take the combined result of Volumes as input. Essentially, an inlined rule can be used like a built-in shape operation (e.g., extrude) to directly modify the current shape.
The subtree generated by an inlined rule (e.g., Volumes) is collapsed and removed from the Model Hierarchy, providing control over the derivation order as well as the structure of the shape tree. | ![]() |
Geometry merge strategy
The correct geometryMergeStrategy depends on the modeling objective. Currently, two strategies are offered:
- append
Default. Used to simply collect the geometries of multiple shapes and put them into a single mesh. No geometry cleanup is performed and all components are kept as is.
- unify
Used to combine the geometries of intersecting shapes with Boolean operations. Intersecting faces get topologically connected and inner faces are removed.
Related
Examples
Mesh Topology
Inlining is used to combine the colored faces of a cube back into a single shape. The faces are simply appended and thus do not share vertices. This can be fixed using cleanupGeometry. | ![]() |
F-Shaped Building
Without inlining: The initial shape is split into an F-shape. Each piece is separately extruded and a separate detached roof is built on top. | ![]() |
With inlining: The FShapePieces rule is inlined, which combines all pieces into a single shape. With append the geometry is kept as is, which means the pieces are not connected via shared edges. To connect them and merge them into a single footprint polygon, the cleanupGeometry operation is used. This results in a single extruded mass and a single joint roof. | ![]() |
Best of Two Alternatives
Two different and tagged layouts are generated. Using inline(append) they are combined into a single shape. The comp function and tags are then used to compare the area of both layouts and continue only with the larger one. | ![]() |
Unify Spiral Steps
The StepsRec(nSteps) rule recursively generates the steps of the spiral stairs. When the rule is inlined using unify, the steps are combined into a single shape and their geometries merged into a single watertight mesh using Boolean 3D union operations. | ![]() |
Inline and Tags
The initial shape is split into three parts, with a different primitive geometry asset inserted into each part and then tagged. Inlining the split using unify merges them into a single watertight mesh while preserving the tags on the individual face components. | ![]() |
The same example in 2D. All original edges and tags are preserved, allowing to identify the intersecting parts using tags. | ![]() |