Skip to main content

Hexagon Holes On Face

OCCT category icon with a stylized logo representation

Hexagonal patterns are found throughout nature - from honeycomb structures to crystal formations. The subdivideToHexagonHoles function brings this efficiency to your designs, creating optimal packing patterns with superior strength-to-weight ratios. This function is ideal for biomimetic designs, structural panels, and advanced filtration systems where hexagonal geometry provides maximum efficiency.

Bitbybit Platform

Hexagon holes on face

rete logoRete
Script Source (rete)
{
"id": "rete-v2-json",
"nodes": {
"5426441c41e8f5cf": {
"id": "5426441c41e8f5cf",
"name": "bitbybit.occt.shapes.face.createRectangleFace",
"customName": "rectangle face",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"width": 20,
"length": 14,
"center": [
0,
0,
0
],
"direction": [
0,
1,
0
]
},
"inputs": {},
"position": [
345.2983055114746,
314.52503173302796
]
},
"6cabc11ad209ab15": {
"id": "6cabc11ad209ab15",
"name": "bitbybit.occt.operations.extrude",
"customName": "extrude",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
]
},
"inputs": {
"shape": {
"connections": [
{
"node": "1371efdcc602ecab",
"output": "result",
"data": {}
}
]
}
},
"position": [
1526.870162325427,
316.83038734970324
]
},
"1371efdcc602ecab": {
"id": "1371efdcc602ecab",
"name": "bitbybit.lists.getItem",
"customName": "get item",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"index": 0,
"clone": true
},
"inputs": {
"list": {
"connections": [
{
"node": "81861028eefcb119",
"output": "result",
"data": {}
}
]
}
},
"position": [
1158.6260102344884,
318.1207836219716
]
},
"550f3b6b8b2aa505": {
"id": "550f3b6b8b2aa505",
"name": "bitbybit.json.parse",
"customName": "parse",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"text": "[0.9]"
},
"inputs": {},
"position": [
350.8630642517603,
710.2281472271986
]
},
"81861028eefcb119": {
"id": "81861028eefcb119",
"name": "bitbybit.occt.shapes.face.subdivideToHexagonHoles",
"customName": "subdivide to hexagon holes",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"nrHexagonsU": 10,
"nrHexagonsV": 10,
"flatU": false,
"holesToFaces": false,
"offsetFromBorderU": 0.01,
"offsetFromBorderV": 0.01
},
"inputs": {
"shape": {
"connections": [
{
"node": "5426441c41e8f5cf",
"output": "result",
"data": {}
}
]
},
"scalePatternU": {
"connections": [
{
"node": "550f3b6b8b2aa505",
"output": "result",
"data": {}
}
]
},
"scalePatternV": {
"connections": [
{
"node": "550f3b6b8b2aa505",
"output": "result",
"data": {}
}
]
}
},
"position": [
781.6836832631826,
317.85078716306583
]
}
}
}

Understanding Hexagonal Hole Subdivision

The subdivideToHexagonHoles function creates honeycomb-like patterns by intelligently arranging hexagonal holes in an optimal packing configuration. Unlike rectangular grids, hexagonal patterns provide the most efficient use of space while maintaining structural integrity - a principle observed throughout nature from beehives to crystal structures.

This approach is particularly valuable for applications requiring:

  • Maximum strength-to-weight ratio
  • Optimal material efficiency
  • Natural aesthetic appeal
  • Superior structural properties
  • Biomimetic design principles

Key Parameters and Hexagonal Properties

Grid Division Controls

nrHexagonsU and nrHexagonsV: These parameters control the number of hexagonal divisions in each direction. The function automatically handles the complex geometry of hexagonal packing, including the offset pattern that creates the characteristic honeycomb structure.

offsetFromBorderU and offsetFromBorderV: Due to the efficient packing of hexagons, smaller offset values (0.01-0.05) typically work well, as hexagons naturally create more uniform edge spacing than rectangular patterns.

Hexagonal Orientation Control

flatU: This unique parameter controls hexagon orientation:

  • false: Creates "pointy-top" hexagons (⬢) - optimal for structural applications
  • true: Creates "flat-top" hexagons (⬣) - often preferred for visual applications

The orientation affects both aesthetics and structural properties, with pointy-top configurations typically providing better load distribution.

Scale Pattern Optimization

For hexagonal patterns, scale patterns work differently than rectangular grids:

  • Uniform scaling: [1.0] or [0.9] often produces the most visually pleasing results
  • Gentle variations: [0.9, 0.95, 0.9] create subtle size variations without disrupting the natural flow
  • Gradient effects: [1.0, 0.8, 0.6, 0.8, 1.0] can create interesting radial or linear transitions

Design Considerations and Applications

Hexagonal patterns offer unique advantages through their natural efficiency. You can create organic flow patterns using gentle scale variations like [0.95, 0.9, 0.85, 0.9, 0.95] or breathing effects with [0.7, 0.85, 1.0, 0.85, 0.7]. The six-sided geometry naturally distributes loads more evenly than rectangular patterns while providing maximum area coverage with minimum material usage.

These patterns excel in aerospace applications for lightweight structural panels, architectural facades that combine aesthetics with efficiency, and biomedical devices that mimic natural cellular structures. The flatU parameter controls orientation - use false for pointy-top hexagons in structural applications or true for flat-top configurations when visual appeal is the priority.

Start with uniform scaling patterns to understand the basic behavior, then experiment with gentle variations. The mathematical perfection of hexagonal geometry means even simple patterns often produce sophisticated results that balance natural beauty with superior functional performance.