[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAA2JYT3D48R6G8B1P74YB":3,"skill-same:01M7FAA2JYT3D48R6G8B1P74YB":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7FAA2JYT3D48R6G8B1P74YB","bonsai-syntax-geometry",null,"Use when creating or editing IFC geometry representations in Bonsai -- profile extrusions, boolean operations, mesh-to-IFC conversion, or geometry context setup. Prevents the common mistake of creating geometry without specifying the representation context (Body\u002FAxis\u002F FootPrint). Covers IfcExtrudedAreaSolid, IfcShapeRepresentation, and the relationship between Blender mesh data and IFC geometric representations. Keywords: IFC geometry, extrusion, IfcExtrudedAreaSolid, IfcShapeRepresentation, boolean, geometry context, Body, Axis, mesh to IFC, profile, create 3D shape in IFC, geometry not showing.","lagzgabrielmuller-dot\u002Fkit-ingenieria-3d","lagzgabrielmuller-dot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333339260?v=4","01M7F985KYC0XB2XZ97B5YWH4C","01M7F985MHK8N2NVE4VAR5WBWS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: bonsai-syntax-geometry\ndescription: >\n  Use when creating or editing IFC geometry representations in Bonsai -- profile extrusions,\n  boolean operations, mesh-to-IFC conversion, or geometry context setup. Prevents the common\n  mistake of creating geometry without specifying the representation context (Body\u002FAxis\u002F\n  FootPrint). Covers IfcExtrudedAreaSolid, IfcShapeRepresentation, and the relationship\n  between Blender mesh data and IFC geometric representations.\n  Keywords: IFC geometry, extrusion, IfcExtrudedAreaSolid, IfcShapeRepresentation, boolean, geometry context, Body, Axis, mesh to IFC, profile, create 3D shape in IFC, geometry not showing.\nlicense: MIT\ncompatibility: Designed for Claude Code. Requires Python 3.x.\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# Bonsai Geometry Syntax\n\n> **Version**: Bonsai v0.8.x | IfcOpenShell v0.8+ | Blender 4.2.0+ | Python 3.11\n> **Module path**: `bonsai.bim.module.geometry` — NEVER `blenderbim.*`\n> **Dependencies**: bonsai-core-architecture, ifcos-syntax-api\n\n## Critical Warnings\n\n1. **ALWAYS** create a Body context before adding geometry. Call `ifcopenshell.util.representation.get_context(model, \"Model\", \"Body\", \"MODEL_VIEW\")` and create the context if it returns `None`.\n2. **ALWAYS** use `ifcopenshell.api.run(\"geometry.assign_representation\", ...)` to connect a representation to an element. NEVER set `product.Representation` directly.\n3. **ALWAYS** call `bpy.ops.bim.edit_object_placement()` (or `ifcopenshell.api.run(\"geometry.edit_object_placement\", ...)`) after moving a Blender object. Changing `obj.location` or `obj.matrix_world` does NOT update `IfcLocalPlacement`.\n4. **ALWAYS** call `geometry.unassign_representation` before `geometry.remove_representation`. Removing an assigned representation leaves dangling references.\n5. **NEVER** create `IfcExtrudedAreaSolid` via `model.create_entity()`. Use `geometry.add_wall_representation()`, `geometry.add_profile_representation()`, or `ShapeBuilder.extrude()` — they handle units, context assignment, and `RepresentationType` automatically.\n6. **NEVER** pass a single element to `vertices` in `add_mesh_representation()`. The parameter expects `[[item1_verts], [item2_verts]]` — a list of lists, parallel to `faces`.\n7. **ALWAYS** use `feature.add_feature()` for openings in Bonsai v0.8.0+. The older `void.add_opening()` still works in standalone IfcOpenShell but is superseded in Bonsai.\n8. **NEVER** assume `RepresentationType` is set automatically by `model.create_entity(\"IfcShapeRepresentation\", ...)`. Use API functions or `ShapeBuilder.get_representation()` which auto-detect the correct type.\n\n## Decision Tree: How to Create Geometry\n\n```\nWhat geometry do you need?\n|\n+-- Parametric wall (rectangle cross-section)?\n|   --> geometry.add_wall_representation(context, length, height, thickness)\n|\n+-- Parametric slab (extruded footprint)?\n|   --> geometry.add_slab_representation(context, depth, polyline=[(x,y),...])\n|\n+-- Standard profile extrusion (I-beam, rectangle, circle, L, T, U, Z, C)?\n|   --> 1. profile.add_parameterized_profile(ifc_class=\"IfcRectangleProfileDef\")\n|   --> 2. attribute.edit_attributes(product=profile, attributes={\"XDim\": 0.4, \"YDim\": 0.4})\n|   --> 3. geometry.add_profile_representation(context, profile=profile, depth=3.0)\n|\n+-- Custom profile extrusion (arbitrary shape)?\n|   --> 1. profile.add_arbitrary_profile(profile=[(x,y), ...])\n|   --> 2. geometry.add_profile_representation(context, profile=profile, depth=3.0)\n|\n+-- Arbitrary mesh from Blender (tessellated)?\n|   --> geometry.add_mesh_representation(context, vertices=[[...]], faces=[[...]])\n|\n+-- Complex parametric solid (sphere, block, swept disk)?\n|   --> ShapeBuilder: builder.sphere(), builder.block(), builder.create_swept_disk_solid()\n|   --> Then: builder.get_representation(context, [solid])\n|\n+-- Geometry with boolean cuts (clipped walls, angled tops)?\n|   --> Option A: clippings parameter in add_wall\u002Fslab\u002Fprofile_representation\n|   --> Option B: geometry.add_boolean(first_item, second_items, operator=\"DIFFERENCE\")\n|\n+-- 2D axis line (wall centerline, beam axis)?\n|   --> geometry.add_axis_representation(context, axis=[(x1,y1), (x2,y2)])\n|\n+-- Blender mesh -> IFC in Bonsai (live editing)?\n|   --> bpy.ops.bim.update_representation(obj=\"ObjectName\")\n```\n\n## Representation Contexts\n\n### Two-Step Context Setup\n\n```python\nimport ifcopenshell.api\nimport ifcopenshell.util.representation\n\n# Step 1: Check for existing context\nbody = ifcopenshell.util.representation.get_context(\n    model, \"Model\", \"Body\", \"MODEL_VIEW\")\n\n# Step 2: Create if missing\nif not body:\n    model3d = ifcopenshell.api.run(\"context.add_context\", model,\n        context_type=\"Model\")\n    body = ifcopenshell.api.run(\"context.add_context\", model,\n        context_type=\"Model\", context_identifier=\"Body\",\n        target_view=\"MODEL_VIEW\", parent=model3d)\n```\n\n### Context Types and Sub-Contexts\n\n| Parent Context | Sub-Context Identifier | Target View | Purpose |\n|---|---|---|---|\n| Model | Body | MODEL_VIEW | Main 3D solid geometry |\n| Model | Axis | GRAPH_VIEW | Centerline\u002Faxis (walls, beams) |\n| Model | Box | MODEL_VIEW | Bounding box (clash detection) |\n| Model | FootPrint | MODEL_VIEW | 2D floor projection |\n| Model | Profile | ELEVATION_VIEW | Cross-section profile |\n| Model | Clearance | MODEL_VIEW | Clearance zones |\n| Plan | Annotation | PLAN_VIEW | 2D annotations, dimensions |\n| Plan | Axis | PLAN_VIEW | 2D centerline for plan views |\n\n**ALWAYS** create the root context first (no `parent`), then create subcontexts with `parent=root_context`.\n\n## Representation Types Reference\n\n| RepresentationType | IFC Items | Typical Use |\n|---|---|---|\n| `\"SweptSolid\"` | `IfcExtrudedAreaSolid`, `IfcRevolvedAreaSolid` | Walls, columns, beams, slabs |\n| `\"Clipping\"` | `IfcBooleanClippingResult` | Walls\u002Fslabs with angled cuts |\n| `\"Brep\"` | `IfcFacetedBrep` | Arbitrary mesh (IFC2X3 or forced) |\n| `\"Tessellation\"` | `IfcPolygonalFaceSet`, `IfcTriangulatedFaceSet` | Arbitrary mesh (IFC4+) |\n| `\"AdvancedBrep\"` | `IfcAdvancedBrep` | NURBS\u002Fcurved geometry |\n| `\"SurfaceModel\"` | `IfcFaceBasedSurfaceModel` | Open shells |\n| `\"Curve2D\"` | `IfcPolyline`, `IfcIndexedPolyCurve` | 2D axis lines |\n| `\"Curve3D\"` | `IfcPolyline`, `IfcIndexedPolyCurve` | 3D axis lines |\n| `\"MappedRepresentation\"` | `IfcMappedItem` | Type-shared geometry |\n| `\"BoundingBox\"` | `IfcBoundingBox` | Box context only |\n\n## Common Operations\n\n### Create Wall Geometry\n\n```python\nimport ifcopenshell.api\n\n# Requires: body context, wall element already created\nrepresentation = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall, representation=representation)\nifcopenshell.api.run(\"geometry.edit_object_placement\", model, product=wall)\n```\n\n### Create Profile Extrusion (Column)\n\n```python\nimport ifcopenshell.api\n\nprofile = ifcopenshell.api.run(\"profile.add_parameterized_profile\", model,\n    ifc_class=\"IfcRectangleProfileDef\")\nifcopenshell.api.run(\"attribute.edit_attributes\", model,\n    product=profile, attributes={\"XDim\": 0.4, \"YDim\": 0.4})\n\nrepresentation = ifcopenshell.api.run(\"geometry.add_profile_representation\", model,\n    context=body, profile=profile, depth=3.0)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=column, representation=representation)\n```\n\n### Create Mesh Representation\n\n```python\nimport ifcopenshell.api\n\n# Vertices and faces as list-of-lists (one sub-list per representation item)\nvertices = [[(0.,0.,0.), (1.,0.,0.), (1.,1.,0.), (0.,1.,0.),\n             (0.,0.,1.), (1.,0.,1.), (1.,1.,1.), (0.,1.,1.)]]\nfaces = [[(0,1,2,3), (4,5,6,7), (0,1,5,4), (1,2,6,5), (2,3,7,6), (3,0,4,7)]]\n\nrepresentation = ifcopenshell.api.run(\"geometry.add_mesh_representation\", model,\n    context=body, vertices=vertices, faces=faces)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=element, representation=representation)\n```\n\n### Boolean Clipping (Angled Wall Top)\n\n```python\nimport ifcopenshell.api\n\n# Option A: Via clippings parameter (preferred for simple cuts)\nrepresentation = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2,\n    clippings=[{\"location\": (0.0, 0.0, 2.5), \"normal\": (0.0, -0.3, 1.0)}])\n\n# Option B: Via add_boolean (for complex operations)\n# first_item = existing IfcExtrudedAreaSolid from representation.Items[0]\n# second_item = IfcHalfSpaceSolid\nresults = ifcopenshell.api.run(\"geometry.add_boolean\", model,\n    first_item=first_item, second_items=[second_item], operator=\"DIFFERENCE\")\n```\n\n### Create Opening (Void)\n\n```python\nimport ifcopenshell.api\n\nopening = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcOpeningElement\", name=\"Door Opening\")\n\n# Create opening geometry (box shape)\nopening_repr = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=0.9, height=2.1, thickness=0.3)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=opening, representation=opening_repr)\n\n# Attach opening to wall (Bonsai v0.8+: use feature.add_feature)\nifcopenshell.api.run(\"feature.add_feature\", model,\n    feature=opening, element=wall)\n\n# Optionally fill with door\nifcopenshell.api.run(\"feature.add_filling\", model,\n    opening=opening, element=door)\n```\n\n### Remove Representation (Correct Order)\n\n```python\nimport ifcopenshell.api\n\n# Step 1: Unassign from product\nifcopenshell.api.run(\"geometry.unassign_representation\", model,\n    product=element, representation=representation)\n\n# Step 2: Remove the representation entity\nifcopenshell.api.run(\"geometry.remove_representation\", model,\n    representation=representation)\n```\n\n### ShapeBuilder: Parametric Geometry\n\n```python\nfrom ifcopenshell.util.shape_builder import ShapeBuilder\n\nbuilder = ShapeBuilder(model)\n\n# Extrude a rectangle\nrect = builder.rectangle(size=(0.4, 0.4))\nprofile = builder.profile(rect, name=\"Column Profile\")\nsolid = builder.extrude(profile, magnitude=3.0)\nrepresentation = builder.get_representation(body, [solid])\n\n# Assign to element\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=column, representation=representation)\n```\n\n## Bonsai Operators (Blender Context)\n\n| Operator | Purpose |\n|---|---|\n| `bpy.ops.bim.edit_object_placement()` | Sync Blender transform to IFC |\n| `bpy.ops.bim.update_representation(obj=\"Name\")` | Sync Blender mesh to IFC representation |\n| `bpy.ops.bim.add_representation()` | Add new IFC representation to object |\n| `bpy.ops.bim.switch_representation()` | Switch active representation |\n| `bpy.ops.bim.remove_representation()` | Remove a representation |\n| `bpy.ops.bim.copy_representation()` | Copy representation from active to selected |\n| `bpy.ops.bim.override_mode_set_edit()` | Enter edit mode (IFC-aware) |\n| `bpy.ops.bim.override_mode_set_object()` | Return to object mode (saves IFC) |\n| `bpy.ops.bim.enable_editing_representation_items()` | Enable per-item editing |\n| `bpy.ops.bim.remove_representation_item()` | Remove single representation item |\n\n### Representation Class Hints for `update_representation`\n\nWhen calling `bpy.ops.bim.update_representation(ifc_representation_class=\"...\")`, valid values:\n\n| Value | Effect |\n|---|---|\n| `\"IfcExtrudedAreaSolid\u002FIfcRectangleProfileDef\"` | Auto-detect rectangular extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcCircleProfileDef\"` | Auto-detect cylindrical extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcArbitraryClosedProfileDef\"` | Auto-detect arbitrary profile extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcArbitraryProfileDefWithVoids\"` | Profile extrusion with holes |\n| `\"IfcExtrudedAreaSolid\u002FIfcMaterialProfileSetUsage\"` | Profile from material set |\n| `\"\"` (empty\u002Fomitted) | Tessellation\u002FBrep (mesh as-is) |\n\n## MappedItems: Type Geometry Sharing\n\nWhen `type.assign_type` is called, geometry on the `IfcTypeProduct` is shared to all instances via `IfcMappedItem`. Each instance references the type's `IfcRepresentationMap` with its own transformation.\n\n**ALWAYS** assign geometry to the type, not individual occurrences, when using typed elements. This ensures geometry is shared efficiently.\n\n```python\n# Add geometry to type (not occurrence)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall_type, representation=representation)\n\n# Assign type to occurrence: geometry is automatically mapped\nifcopenshell.api.run(\"type.assign_type\", model,\n    related_objects=[wall], relating_type=wall_type)\n```\n\n## Version Notes\n\n### IFC2X3 vs IFC4+ Geometry Differences\n\n| Feature | IFC2X3 | IFC4+ |\n|---|---|---|\n| Mesh representation | `IfcFacetedBrep` only | `IfcPolygonalFaceSet` (preferred), `IfcTriangulatedFaceSet` |\n| Curve types | `IfcPolyline` | `IfcIndexedPolyCurve` (preferred), `IfcPolyline` |\n| Boolean result | `IfcBooleanResult` | `IfcBooleanClippingResult` (for DIFFERENCE + SweptSolid) |\n| Triangulated mesh | Not available | `IfcTriangulatedFaceSet` |\n\n### Bonsai v0.8.0+ Changes\n\n- `void.add_opening()` superseded by `feature.add_feature()` for all feature types\n- `feature.add_feature()` handles subtraction (`IfcRelVoidsElement`), addition (`IfcRelProjectsElement`), and surface features (`IfcRelAdheresToElement`)\n- Relationship API functions now require **list** parameters: `products=[element]`, not `product=element`\n\n## References\n\n- [methods.md](references\u002Fmethods.md) — Complete geometry API signatures\n- [examples.md](references\u002Fexamples.md) — Working geometry code examples\n- [anti-patterns.md](references\u002Fanti-patterns.md) — Geometry mistakes to avoid\n\n## Sources\n\n- Bonsai source: `bonsai\u002Fbim\u002Fmodule\u002Fgeometry\u002F` (v0.8.x)\n- IfcOpenShell API: `ifcopenshell\u002Fapi\u002Fgeometry\u002F` (v0.8+)\n- IfcOpenShell ShapeBuilder: `ifcopenshell\u002Futil\u002Fshape_builder.py`\n- Bonsai Documentation: https:\u002F\u002Fdocs.bonsaibim.org\n- IfcOpenShell Docs: https:\u002F\u002Fdocs.ifcopenshell.org\n","# Bonsai Geometry Syntax\n\n> **Version**: Bonsai v0.8.x | IfcOpenShell v0.8+ | Blender 4.2.0+ | Python 3.11\n> **Module path**: `bonsai.bim.module.geometry` — NEVER `blenderbim.*`\n> **Dependencies**: bonsai-core-architecture, ifcos-syntax-api\n\n## Critical Warnings\n\n1. **ALWAYS** create a Body context before adding geometry. Call `ifcopenshell.util.representation.get_context(model, \"Model\", \"Body\", \"MODEL_VIEW\")` and create the context if it returns `None`.\n2. **ALWAYS** use `ifcopenshell.api.run(\"geometry.assign_representation\", ...)` to connect a representation to an element. NEVER set `product.Representation` directly.\n3. **ALWAYS** call `bpy.ops.bim.edit_object_placement()` (or `ifcopenshell.api.run(\"geometry.edit_object_placement\", ...)`) after moving a Blender object. Changing `obj.location` or `obj.matrix_world` does NOT update `IfcLocalPlacement`.\n4. **ALWAYS** call `geometry.unassign_representation` before `geometry.remove_representation`. Removing an assigned representation leaves dangling references.\n5. **NEVER** create `IfcExtrudedAreaSolid` via `model.create_entity()`. Use `geometry.add_wall_representation()`, `geometry.add_profile_representation()`, or `ShapeBuilder.extrude()` — they handle units, context assignment, and `RepresentationType` automatically.\n6. **NEVER** pass a single element to `vertices` in `add_mesh_representation()`. The parameter expects `[[item1_verts], [item2_verts]]` — a list of lists, parallel to `faces`.\n7. **ALWAYS** use `feature.add_feature()` for openings in Bonsai v0.8.0+. The older `void.add_opening()` still works in standalone IfcOpenShell but is superseded in Bonsai.\n8. **NEVER** assume `RepresentationType` is set automatically by `model.create_entity(\"IfcShapeRepresentation\", ...)`. Use API functions or `ShapeBuilder.get_representation()` which auto-detect the correct type.\n\n## Decision Tree: How to Create Geometry\n\n```\nWhat geometry do you need?\n|\n+-- Parametric wall (rectangle cross-section)?\n|   --> geometry.add_wall_representation(context, length, height, thickness)\n|\n+-- Parametric slab (extruded footprint)?\n|   --> geometry.add_slab_representation(context, depth, polyline=[(x,y),...])\n|\n+-- Standard profile extrusion (I-beam, rectangle, circle, L, T, U, Z, C)?\n|   --> 1. profile.add_parameterized_profile(ifc_class=\"IfcRectangleProfileDef\")\n|   --> 2. attribute.edit_attributes(product=profile, attributes={\"XDim\": 0.4, \"YDim\": 0.4})\n|   --> 3. geometry.add_profile_representation(context, profile=profile, depth=3.0)\n|\n+-- Custom profile extrusion (arbitrary shape)?\n|   --> 1. profile.add_arbitrary_profile(profile=[(x,y), ...])\n|   --> 2. geometry.add_profile_representation(context, profile=profile, depth=3.0)\n|\n+-- Arbitrary mesh from Blender (tessellated)?\n|   --> geometry.add_mesh_representation(context, vertices=[[...]], faces=[[...]])\n|\n+-- Complex parametric solid (sphere, block, swept disk)?\n|   --> ShapeBuilder: builder.sphere(), builder.block(), builder.create_swept_disk_solid()\n|   --> Then: builder.get_representation(context, [solid])\n|\n+-- Geometry with boolean cuts (clipped walls, angled tops)?\n|   --> Option A: clippings parameter in add_wall\u002Fslab\u002Fprofile_representation\n|   --> Option B: geometry.add_boolean(first_item, second_items, operator=\"DIFFERENCE\")\n|\n+-- 2D axis line (wall centerline, beam axis)?\n|   --> geometry.add_axis_representation(context, axis=[(x1,y1), (x2,y2)])\n|\n+-- Blender mesh -> IFC in Bonsai (live editing)?\n|   --> bpy.ops.bim.update_representation(obj=\"ObjectName\")\n```\n\n## Representation Contexts\n\n### Two-Step Context Setup\n\n```python\nimport ifcopenshell.api\nimport ifcopenshell.util.representation\n\n# Step 1: Check for existing context\nbody = ifcopenshell.util.representation.get_context(\n    model, \"Model\", \"Body\", \"MODEL_VIEW\")\n\n# Step 2: Create if missing\nif not body:\n    model3d = ifcopenshell.api.run(\"context.add_context\", model,\n        context_type=\"Model\")\n    body = ifcopenshell.api.run(\"context.add_context\", model,\n        context_type=\"Model\", context_identifier=\"Body\",\n        target_view=\"MODEL_VIEW\", parent=model3d)\n```\n\n### Context Types and Sub-Contexts\n\n| Parent Context | Sub-Context Identifier | Target View | Purpose |\n|---|---|---|---|\n| Model | Body | MODEL_VIEW | Main 3D solid geometry |\n| Model | Axis | GRAPH_VIEW | Centerline\u002Faxis (walls, beams) |\n| Model | Box | MODEL_VIEW | Bounding box (clash detection) |\n| Model | FootPrint | MODEL_VIEW | 2D floor projection |\n| Model | Profile | ELEVATION_VIEW | Cross-section profile |\n| Model | Clearance | MODEL_VIEW | Clearance zones |\n| Plan | Annotation | PLAN_VIEW | 2D annotations, dimensions |\n| Plan | Axis | PLAN_VIEW | 2D centerline for plan views |\n\n**ALWAYS** create the root context first (no `parent`), then create subcontexts with `parent=root_context`.\n\n## Representation Types Reference\n\n| RepresentationType | IFC Items | Typical Use |\n|---|---|---|\n| `\"SweptSolid\"` | `IfcExtrudedAreaSolid`, `IfcRevolvedAreaSolid` | Walls, columns, beams, slabs |\n| `\"Clipping\"` | `IfcBooleanClippingResult` | Walls\u002Fslabs with angled cuts |\n| `\"Brep\"` | `IfcFacetedBrep` | Arbitrary mesh (IFC2X3 or forced) |\n| `\"Tessellation\"` | `IfcPolygonalFaceSet`, `IfcTriangulatedFaceSet` | Arbitrary mesh (IFC4+) |\n| `\"AdvancedBrep\"` | `IfcAdvancedBrep` | NURBS\u002Fcurved geometry |\n| `\"SurfaceModel\"` | `IfcFaceBasedSurfaceModel` | Open shells |\n| `\"Curve2D\"` | `IfcPolyline`, `IfcIndexedPolyCurve` | 2D axis lines |\n| `\"Curve3D\"` | `IfcPolyline`, `IfcIndexedPolyCurve` | 3D axis lines |\n| `\"MappedRepresentation\"` | `IfcMappedItem` | Type-shared geometry |\n| `\"BoundingBox\"` | `IfcBoundingBox` | Box context only |\n\n## Common Operations\n\n### Create Wall Geometry\n\n```python\nimport ifcopenshell.api\n\n# Requires: body context, wall element already created\nrepresentation = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall, representation=representation)\nifcopenshell.api.run(\"geometry.edit_object_placement\", model, product=wall)\n```\n\n### Create Profile Extrusion (Column)\n\n```python\nimport ifcopenshell.api\n\nprofile = ifcopenshell.api.run(\"profile.add_parameterized_profile\", model,\n    ifc_class=\"IfcRectangleProfileDef\")\nifcopenshell.api.run(\"attribute.edit_attributes\", model,\n    product=profile, attributes={\"XDim\": 0.4, \"YDim\": 0.4})\n\nrepresentation = ifcopenshell.api.run(\"geometry.add_profile_representation\", model,\n    context=body, profile=profile, depth=3.0)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=column, representation=representation)\n```\n\n### Create Mesh Representation\n\n```python\nimport ifcopenshell.api\n\n# Vertices and faces as list-of-lists (one sub-list per representation item)\nvertices = [[(0.,0.,0.), (1.,0.,0.), (1.,1.,0.), (0.,1.,0.),\n             (0.,0.,1.), (1.,0.,1.), (1.,1.,1.), (0.,1.,1.)]]\nfaces = [[(0,1,2,3), (4,5,6,7), (0,1,5,4), (1,2,6,5), (2,3,7,6), (3,0,4,7)]]\n\nrepresentation = ifcopenshell.api.run(\"geometry.add_mesh_representation\", model,\n    context=body, vertices=vertices, faces=faces)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=element, representation=representation)\n```\n\n### Boolean Clipping (Angled Wall Top)\n\n```python\nimport ifcopenshell.api\n\n# Option A: Via clippings parameter (preferred for simple cuts)\nrepresentation = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2,\n    clippings=[{\"location\": (0.0, 0.0, 2.5), \"normal\": (0.0, -0.3, 1.0)}])\n\n# Option B: Via add_boolean (for complex operations)\n# first_item = existing IfcExtrudedAreaSolid from representation.Items[0]\n# second_item = IfcHalfSpaceSolid\nresults = ifcopenshell.api.run(\"geometry.add_boolean\", model,\n    first_item=first_item, second_items=[second_item], operator=\"DIFFERENCE\")\n```\n\n### Create Opening (Void)\n\n```python\nimport ifcopenshell.api\n\nopening = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcOpeningElement\", name=\"Door Opening\")\n\n# Create opening geometry (box shape)\nopening_repr = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=0.9, height=2.1, thickness=0.3)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=opening, representation=opening_repr)\n\n# Attach opening to wall (Bonsai v0.8+: use feature.add_feature)\nifcopenshell.api.run(\"feature.add_feature\", model,\n    feature=opening, element=wall)\n\n# Optionally fill with door\nifcopenshell.api.run(\"feature.add_filling\", model,\n    opening=opening, element=door)\n```\n\n### Remove Representation (Correct Order)\n\n```python\nimport ifcopenshell.api\n\n# Step 1: Unassign from product\nifcopenshell.api.run(\"geometry.unassign_representation\", model,\n    product=element, representation=representation)\n\n# Step 2: Remove the representation entity\nifcopenshell.api.run(\"geometry.remove_representation\", model,\n    representation=representation)\n```\n\n### ShapeBuilder: Parametric Geometry\n\n```python\nfrom ifcopenshell.util.shape_builder import ShapeBuilder\n\nbuilder = ShapeBuilder(model)\n\n# Extrude a rectangle\nrect = builder.rectangle(size=(0.4, 0.4))\nprofile = builder.profile(rect, name=\"Column Profile\")\nsolid = builder.extrude(profile, magnitude=3.0)\nrepresentation = builder.get_representation(body, [solid])\n\n# Assign to element\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=column, representation=representation)\n```\n\n## Bonsai Operators (Blender Context)\n\n| Operator | Purpose |\n|---|---|\n| `bpy.ops.bim.edit_object_placement()` | Sync Blender transform to IFC |\n| `bpy.ops.bim.update_representation(obj=\"Name\")` | Sync Blender mesh to IFC representation |\n| `bpy.ops.bim.add_representation()` | Add new IFC representation to object |\n| `bpy.ops.bim.switch_representation()` | Switch active representation |\n| `bpy.ops.bim.remove_representation()` | Remove a representation |\n| `bpy.ops.bim.copy_representation()` | Copy representation from active to selected |\n| `bpy.ops.bim.override_mode_set_edit()` | Enter edit mode (IFC-aware) |\n| `bpy.ops.bim.override_mode_set_object()` | Return to object mode (saves IFC) |\n| `bpy.ops.bim.enable_editing_representation_items()` | Enable per-item editing |\n| `bpy.ops.bim.remove_representation_item()` | Remove single representation item |\n\n### Representation Class Hints for `update_representation`\n\nWhen calling `bpy.ops.bim.update_representation(ifc_representation_class=\"...\")`, valid values:\n\n| Value | Effect |\n|---|---|\n| `\"IfcExtrudedAreaSolid\u002FIfcRectangleProfileDef\"` | Auto-detect rectangular extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcCircleProfileDef\"` | Auto-detect cylindrical extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcArbitraryClosedProfileDef\"` | Auto-detect arbitrary profile extrusion |\n| `\"IfcExtrudedAreaSolid\u002FIfcArbitraryProfileDefWithVoids\"` | Profile extrusion with holes |\n| `\"IfcExtrudedAreaSolid\u002FIfcMaterialProfileSetUsage\"` | Profile from material set |\n| `\"\"` (empty\u002Fomitted) | Tessellation\u002FBrep (mesh as-is) |\n\n## MappedItems: Type Geometry Sharing\n\nWhen `type.assign_type` is called, geometry on the `IfcTypeProduct` is shared to all instances via `IfcMappedItem`. Each instance references the type's `IfcRepresentationMap` with its own transformation.\n\n**ALWAYS** assign geometry to the type, not individual occurrences, when using typed elements. This ensures geometry is shared efficiently.\n\n```python\n# Add geometry to type (not occurrence)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall_type, representation=representation)\n\n# Assign type to occurrence: geometry is automatically mapped\nifcopenshell.api.run(\"type.assign_type\", model,\n    related_objects=[wall], relating_type=wall_type)\n```\n\n## Version Notes\n\n### IFC2X3 vs IFC4+ Geometry Differences\n\n| Feature | IFC2X3 | IFC4+ |\n|---|---|---|\n| Mesh representation | `IfcFacetedBrep` only | `IfcPolygonalFaceSet` (preferred), `IfcTriangulatedFaceSet` |\n| Curve types | `IfcPolyline` | `IfcIndexedPolyCurve` (preferred), `IfcPolyline` |\n| Boolean result | `IfcBooleanResult` | `IfcBooleanClippingResult` (for DIFFERENCE + SweptSolid) |\n| Triangulated mesh | Not available | `IfcTriangulatedFaceSet` |\n\n### Bonsai v0.8.0+ Changes\n\n- `void.add_opening()` superseded by `feature.add_feature()` for all feature types\n- `feature.add_feature()` handles subtraction (`IfcRelVoidsElement`), addition (`IfcRelProjectsElement`), and surface features (`IfcRelAdheresToElement`)\n- Relationship API functions now require **list** parameters: `products=[element]`, not `product=element`\n\n## References\n\n- [methods.md](references\u002Fmethods.md) — Complete geometry API signatures\n- [examples.md](references\u002Fexamples.md) — Working geometry code examples\n- [anti-patterns.md](references\u002Fanti-patterns.md) — Geometry mistakes to avoid\n\n## Sources\n\n- Bonsai source: `bonsai\u002Fbim\u002Fmodule\u002Fgeometry\u002F` (v0.8.x)\n- IfcOpenShell API: `ifcopenshell\u002Fapi\u002Fgeometry\u002F` (v0.8+)\n- IfcOpenShell ShapeBuilder: `ifcopenshell\u002Futil\u002Fshape_builder.py`\n- Bonsai Documentation: https:\u002F\u002Fdocs.bonsaibim.org\n- IfcOpenShell Docs: https:\u002F\u002Fdocs.ifcopenshell.org\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when creating or editing IFC geometry representations in Bonsai -- profile extrusions, boolean operations, mesh-to-IFC conversion, or geometry context setup. Prevents the common mistake of creating geometry without specifying the representation context (Body\u002FAxis\u002F FootPrint). Covers IfcExtrudedAreaSolid, IfcShapeRepresentation, and the relationship between Blender mesh data and IFC geometric representations. Keywords: IFC geometry, extrusion, IfcExtrudedAreaSolid, IfcShapeRepresentation, boolean, geometry context, Body, Axis, mesh to IFC, profile, create 3D shape in IFC, geometry not showing.\n","Designed for Claude Code. Requires Python 3.x.","main","9bb7acf0c2ec4f44373969cb14e55af3c9a8385f","plugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot","2026-11-09 13:26:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill bonsai-syntax-geometry",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill bonsai-syntax-geometry",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill bonsai-syntax-geometry","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",10156,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",16865,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",20191,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fbonsai\u002Fsyntax\u002Fbonsai-syntax-geometry\u002Freferences\u002Fmethods.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7FBFSZ93YM463CGS91D0TZG","manimce-best-practices","Trigger when: (1) User mentions \"manim\" or \"Manim Community\" or \"ManimCE\", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.\n\nBest practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX\u002FMathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.\n\nNOT for ManimGL\u002F3b1b version (which uses `manimlib` imports and `manimgl` CLI).","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7FB2K59HNNXS9WKHAMWHC3C","drawio","Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML\u002FER, org charts, Mermaid\u002FCSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For publication figures (paper, thesis, IEEE, camera-ready) use drawio-academic-skills instead.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7FB2BWX7GWK9H2X8BGCYDDD","drawio-academic-skills","Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE\u002FACM submission, manuscript, camera-ready, Word\u002FLaTeX figure, or other publication. Applies venue, figure-type, color, caption\u002Flegend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio-academic-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7FB22JESEAV8T15DJT3D444","uncertainty-and-units","Tracks physical units and propagates measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7FB1ANRSG28R335FDY9SA3R","statistical-analysis","Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fstatistical-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7FB15KRA9D7JCPH4P9T6XJY","simpy","Builds, inspects, tests, and analyzes bounded process-based discrete-event simulations with SimPy. Use for event scheduling, resource queues, interrupts, monitoring, independent replications, warm-up, and reproducible output analysis.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[]]