Thick Solids from Complex Faces
Thick solids are powerful 3D modeling features that create volumetric objects by adding thickness to planar or curved faces. While simple circular or rectangular faces are common starting points, thick solids truly shine when working with complex, curved surfaces created through advanced operations like lofting.
Understanding Thick Solids
A thick solid operation takes a face (planar or curved) and extrudes it in the direction of its surface normal(s) to create a solid with the specified thickness. This operation is particularly useful for:
- Shell structures: Creating hollow objects with consistent wall thickness
- Architectural elements: Building walls, roofs, and structural components
- Mechanical parts: Designing brackets, housings, and enclosures
- Organic shapes: Creating complex curved objects with controlled thickness
Complex Face Creation Through Lofting
To demonstrate the versatility of thick solids, we'll create a complex curved face using the loft operation. Lofting creates a smooth surface between multiple cross-sectional curves, allowing us to build sophisticated organic shapes.
The Process
- Create Multiple Curved Cross-Sections: Use interpolation algorithms to create smooth curves through defined points
- Loft Between Curves: Generate a complex surface that smoothly transitions between the cross-sections
- Apply Thick Solid: Add uniform thickness to create a 3D solid
Convex vs Concave Considerations
Thick solid operations work on both:
- Convex faces: Outward-curving surfaces (like the outside of a sphere)
- Concave faces: Inward-curving surfaces (like the inside of a bowl)
The algorithm automatically determines the correct direction for thickness application based on the face normals.
Practical Applications
This technique is invaluable for:
- Product Design: Creating ergonomic handles, grips, and curved components
- Architecture: Designing complex roof structures and curved walls
- Art and Sculpture: Building organic, flowing forms
- Engineering: Developing aerodynamic shapes and fluid-flow components
Interactive Examples
The following examples demonstrate creating thick solids from complex lofted surfaces, showing how sophisticated 3D geometry can emerge from simple point-based definitions.

- Rete
- Blockly
- TypeScript
{
"id": "rete-v2-json",
"nodes": {
"createList": {
"id": "createList",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "bottomPoint1",
"output": "result",
"data": {}
},
{
"node": "bottomPoint2",
"output": "result",
"data": {}
},
{
"node": "bottomPoint3",
"output": "result",
"data": {}
},
{
"node": "bottomPoint4",
"output": "result",
"data": {}
},
{
"node": "bottomPoint5",
"output": "result",
"data": {}
}
]
}
},
"position": [
381,
-759
]
},
"bottomPoint1": {
"id": "bottomPoint1",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -3,
"y": 0,
"z": -2
},
"inputs": {},
"position": [
-200,
-1531
]
},
"bottomPoint2": {
"id": "bottomPoint2",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -1,
"y": 0,
"z": 0
},
"inputs": {},
"position": [
-201,
-1185
]
},
"bottomPoint3": {
"id": "bottomPoint3",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0,
"y": 0,
"z": 1
},
"inputs": {},
"position": [
-202,
-841
]
},
"bottomPoint4": {
"id": "bottomPoint4",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 1,
"y": 0,
"z": 0
},
"inputs": {},
"position": [
-202,
-501
]
},
"bottomPoint5": {
"id": "bottomPoint5",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 3,
"y": 0,
"z": -2
},
"inputs": {},
"position": [
-203,
-160
]
},
"createList2": {
"id": "createList2",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "middlePoint1",
"output": "result",
"data": {}
},
{
"node": "middlePoint2",
"output": "result",
"data": {}
},
{
"node": "middlePoint3",
"output": "result",
"data": {}
},
{
"node": "middlePoint4",
"output": "result",
"data": {}
},
{
"node": "middlePoint5",
"output": "result",
"data": {}
}
]
}
},
"position": [
360,
639
]
},
"middlePoint1": {
"id": "middlePoint1",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -2,
"y": 2,
"z": -1
},
"inputs": {},
"position": [
-207,
182
]
},
"middlePoint2": {
"id": "middlePoint2",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -0.5,
"y": 2,
"z": 1.5
},
"inputs": {},
"position": [
-209,
523
]
},
"middlePoint3": {
"id": "middlePoint3",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0,
"y": 2,
"z": 2
},
"inputs": {},
"position": [
-210,
863
]
},
"middlePoint4": {
"id": "middlePoint4",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0.5,
"y": 2,
"z": 1.5
},
"inputs": {},
"position": [
-209,
1203
]
},
"middlePoint5": {
"id": "middlePoint5",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 2,
"y": 2,
"z": -1
},
"inputs": {},
"position": [
-207,
1536
]
},
"createList3": {
"id": "createList3",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "topPoint1",
"output": "result",
"data": {}
},
{
"node": "topPoint2",
"output": "result",
"data": {}
},
{
"node": "topPoint3",
"output": "result",
"data": {}
},
{
"node": "topPoint4",
"output": "result",
"data": {}
},
{
"node": "topPoint5",
"output": "result",
"data": {}
}
]
}
},
"position": [
325,
2381
]
},
"topPoint1": {
"id": "topPoint1",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -1.5,
"y": 4,
"z": 0
},
"inputs": {},
"position": [
-206,
1880
]
},
"topPoint2": {
"id": "topPoint2",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": -0.5,
"y": 4,
"z": 0.5
},
"inputs": {},
"position": [
-203,
2227
]
},
"topPoint3": {
"id": "topPoint3",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0,
"y": 4,
"z": 1
},
"inputs": {},
"position": [
-202,
2572
]
},
"topPoint4": {
"id": "topPoint4",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0.5,
"y": 4,
"z": 0.5
},
"inputs": {},
"position": [
-195,
2919
]
},
"topPoint5": {
"id": "topPoint5",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 1.5,
"y": 4,
"z": 0
},
"inputs": {},
"position": [
-193,
3276
]
},
"bottomWire": {
"id": "bottomWire",
"name": "bitbybit.occt.shapes.wire.interpolatePoints",
"customName": "interpolate points",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"periodic": false,
"tolerance": 0.1,
"parametrization": "chordLength"
},
"inputs": {
"points": {
"connections": [
{
"node": "createList",
"output": "list",
"data": {}
}
]
}
},
"position": [
800,
100
]
},
"middleWire": {
"id": "middleWire",
"name": "bitbybit.occt.shapes.wire.interpolatePoints",
"customName": "interpolate points",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"periodic": false,
"tolerance": 0.1,
"parametrization": "chordLength"
},
"inputs": {
"points": {
"connections": [
{
"node": "createList2",
"output": "list",
"data": {}
}
]
}
},
"position": [
800,
600
]
},
"topWire": {
"id": "topWire",
"name": "bitbybit.occt.shapes.wire.interpolatePoints",
"customName": "interpolate points",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"periodic": false,
"tolerance": 0.1,
"parametrization": "chordLength"
},
"inputs": {
"points": {
"connections": [
{
"node": "createList3",
"output": "list",
"data": {}
}
]
}
},
"position": [
800,
1100
]
},
"createList4": {
"id": "createList4",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "bottomWire",
"output": "result",
"data": {}
},
{
"node": "middleWire",
"output": "result",
"data": {}
},
{
"node": "topWire",
"output": "result",
"data": {}
}
]
}
},
"position": [
1200,
600
]
},
"loftSurface": {
"id": "loftSurface",
"name": "bitbybit.occt.operations.loft",
"customName": "loft",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"makeSolid": false
},
"inputs": {
"shapes": {
"connections": [
{
"node": "createList4",
"output": "list",
"data": {}
}
]
}
},
"position": [
1600,
600
]
},
"thickSolid": {
"id": "thickSolid",
"name": "bitbybit.occt.operations.makeThickSolidSimple",
"customName": "make thick solid simple",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"offset": 0.1
},
"inputs": {
"shape": {
"connections": [
{
"node": "loftSurface",
"output": "result",
"data": {}
}
]
},
"offset": {
"connections": [
{
"node": "numberSlider",
"output": "result",
"data": {}
}
]
}
},
"position": [
2003,
976
]
},
"numberSlider": {
"id": "numberSlider",
"name": "bitbybit.math.numberSlider",
"customName": "number slider",
"async": false,
"drawable": false,
"data": {
"options": {
"min": 0.1,
"max": 1,
"step": 0.05,
"width": 300,
"updateOnDrag": false
},
"number": 0.1
},
"inputs": {},
"position": [
1540,
1165
]
},
"translateSolid": {
"id": "translateSolid",
"name": "bitbybit.occt.transforms.translate",
"customName": "translate",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"translation": [
0,
0,
0
]
},
"inputs": {
"shape": {
"connections": [
{
"node": "thickSolid",
"output": "result",
"data": {}
}
]
},
"translation": {
"connections": [
{
"node": "offsetVector",
"output": "result",
"data": {}
}
]
}
},
"position": [
2396,
1214
]
},
"offsetVector": {
"id": "offsetVector",
"name": "bitbybit.vector.vectorXYZ",
"customName": "vector xyz",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"x": 0,
"y": 0,
"z": 3
},
"inputs": {},
"position": [
1991,
1412
]
},
"drawLoftSurface": {
"id": "drawLoftSurface",
"name": "bitbybit.draw.drawAnyAsync",
"customName": "draw any async",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
}
},
"inputs": {
"entity": {
"connections": [
{
"node": "loftSurface",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "surfaceStyle",
"output": "result",
"data": {}
}
]
}
},
"position": [
2987,
116
]
},
"drawThickSolid": {
"id": "drawThickSolid",
"name": "bitbybit.draw.drawAnyAsync",
"customName": "draw any async",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
}
},
"inputs": {
"entity": {
"connections": [
{
"node": "translateSolid",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "solidStyle",
"output": "result",
"data": {}
}
]
}
},
"position": [
2955,
1422
]
},
"surfaceStyle": {
"id": "surfaceStyle",
"name": "bitbybit.draw.optionsOcctShapeSimple",
"customName": "options occt shape simple",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"precision": 0.01,
"drawFaces": true,
"faceColour": "#00ff00",
"drawEdges": true,
"edgeColour": "#ffffff",
"edgeWidth": 2,
"drawTwoSided": true,
"backFaceColour": "#0000ff",
"backFaceOpacity": 1
},
"inputs": {},
"position": [
2386,
-325
]
},
"solidStyle": {
"id": "solidStyle",
"name": "bitbybit.draw.optionsOcctShapeSimple",
"customName": "options occt shape simple",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"precision": 0.01,
"drawFaces": true,
"faceColour": "#ff6600",
"drawEdges": true,
"edgeColour": "#ffffff",
"edgeWidth": 2,
"drawTwoSided": true,
"backFaceColour": "#0000ff",
"backFaceOpacity": 1
},
"inputs": {},
"position": [
2395,
1607
]
}
},
"modules": {}
}
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="bottomPoints">bottomPoints</variable><variable id="middlePoints">middlePoints</variable><variable id="topPoints">topPoints</variable><variable id="bottomWire">bottomWire</variable><variable id="middleWire">middleWire</variable><variable id="topWire">topWire</variable><variable id="wireList">wireList</variable><variable id="loftSurface">loftSurface</variable><variable id="thickness">thickness</variable><variable id="thickSolid">thickSolid</variable><variable id="offsetVector">offsetVector</variable><variable id="translatedSolid">translatedSolid</variable><variable id="surfaceOptions">surfaceOptions</variable><variable id="solidOptions">solidOptions</variable></variables><block type="variables_set" x="50" y="50"><field name="VAR" id="bottomPoints">bottomPoints</field><value name="VALUE"><block type="lists_create_with"><mutation items="5"></mutation><value name="ADD0"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-3</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">-2</field></block></value></block></value><value name="ADD1"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-1</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="ADD2"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">1</field></block></value></block></value><value name="ADD3"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">1</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="ADD4"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">3</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">-2</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="middlePoints">middlePoints</field><value name="VALUE"><block type="lists_create_with"><mutation items="5"></mutation><value name="ADD0"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-2</field></block></value><value name="Y"><block type="math_number"><field name="NUM">2</field></block></value><value name="Z"><block type="math_number"><field name="NUM">-1</field></block></value></block></value><value name="ADD1"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-0.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">2</field></block></value><value name="Z"><block type="math_number"><field name="NUM">1.5</field></block></value></block></value><value name="ADD2"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">2</field></block></value><value name="Z"><block type="math_number"><field name="NUM">2</field></block></value></block></value><value name="ADD3"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">2</field></block></value><value name="Z"><block type="math_number"><field name="NUM">1.5</field></block></value></block></value><value name="ADD4"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">2</field></block></value><value name="Y"><block type="math_number"><field name="NUM">2</field></block></value><value name="Z"><block type="math_number"><field name="NUM">-1</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="topPoints">topPoints</field><value name="VALUE"><block type="lists_create_with"><mutation items="5"></mutation><value name="ADD0"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-1.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">4</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="ADD1"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">-0.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">4</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0.5</field></block></value></block></value><value name="ADD2"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">4</field></block></value><value name="Z"><block type="math_number"><field name="NUM">1</field></block></value></block></value><value name="ADD3"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">4</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0.5</field></block></value></block></value><value name="ADD4"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">1.5</field></block></value><value name="Y"><block type="math_number"><field name="NUM">4</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="bottomWire">bottomWire</field><value name="VALUE"><block type="bitbybit.occt.shapes.wire.interpolatePoints"><value name="Points"><block type="variables_get"><field name="VAR" id="bottomPoints">bottomPoints</field></block></value><value name="Periodic"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">0.1</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="middleWire">middleWire</field><value name="VALUE"><block type="bitbybit.occt.shapes.wire.interpolatePoints"><value name="Points"><block type="variables_get"><field name="VAR" id="middlePoints">middlePoints</field></block></value><value name="Periodic"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">0.1</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="topWire">topWire</field><value name="VALUE"><block type="bitbybit.occt.shapes.wire.interpolatePoints"><value name="Points"><block type="variables_get"><field name="VAR" id="topPoints">topPoints</field></block></value><value name="Periodic"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">0.1</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="wireList">wireList</field><value name="VALUE"><block type="lists_create_with"><mutation items="3"></mutation><value name="ADD0"><block type="variables_get"><field name="VAR" id="bottomWire">bottomWire</field></block></value><value name="ADD1"><block type="variables_get"><field name="VAR" id="middleWire">middleWire</field></block></value><value name="ADD2"><block type="variables_get"><field name="VAR" id="topWire">topWire</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="loftSurface">loftSurface</field><value name="VALUE"><block type="bitbybit.occt.operations.loft"><value name="Shapes"><block type="variables_get"><field name="VAR" id="wireList">wireList</field></block></value><value name="MakeSolid"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="thickness">thickness</field><value name="VALUE"><block type="math_number"><field name="NUM">0.1</field></block></value><next><block type="variables_set"><field name="VAR" id="thickSolid">thickSolid</field><value name="VALUE"><block type="bitbybit.occt.operations.makeThickSolidSimple"><value name="Shape"><block type="variables_get"><field name="VAR" id="loftSurface">loftSurface</field></block></value><value name="Offset"><block type="variables_get"><field name="VAR" id="thickness">thickness</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="offsetVector">offsetVector</field><value name="VALUE"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">0</field></block></value><value name="Z"><block type="math_number"><field name="NUM">3</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="translatedSolid">translatedSolid</field><value name="VALUE"><block type="bitbybit.occt.transforms.translate"><value name="Shape"><block type="variables_get"><field name="VAR" id="thickSolid">thickSolid</field></block></value><value name="Translation"><block type="variables_get"><field name="VAR" id="offsetVector">offsetVector</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="surfaceOptions">surfaceOptions</field><value name="VALUE"><block type="bitbybit.draw.optionsOcctShapeSimple"><value name="Precision"><block type="math_number"><field name="NUM">0.01</field></block></value><value name="DrawFaces"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="FaceColour"><block type="colour_picker"><field name="COLOUR">#00ff00</field></block></value><value name="DrawEdges"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="EdgeColour"><block type="colour_picker"><field name="COLOUR">#ffffff</field></block></value><value name="EdgeWidth"><block type="math_number"><field name="NUM">2</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="solidOptions">solidOptions</field><value name="VALUE"><block type="bitbybit.draw.optionsOcctShapeSimple"><value name="Precision"><block type="math_number"><field name="NUM">0.01</field></block></value><value name="DrawFaces"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="FaceColour"><block type="colour_picker"><field name="COLOUR">#ff6600</field></block></value><value name="DrawEdges"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="EdgeColour"><block type="colour_picker"><field name="COLOUR">#ffffff</field></block></value><value name="EdgeWidth"><block type="math_number"><field name="NUM">2</field></block></value></block></value><next><block type="bitbybit.draw.drawAnyAsyncNoReturn"><value name="Entity"><block type="variables_get"><field name="VAR" id="loftSurface">loftSurface</field></block></value><value name="Options"><block type="variables_get"><field name="VAR" id="surfaceOptions">surfaceOptions</field></block></value><next><block type="bitbybit.draw.drawAnyAsyncNoReturn"><value name="Entity"><block type="variables_get"><field name="VAR" id="translatedSolid">translatedSolid</field></block></value><value name="Options"><block type="variables_get"><field name="VAR" id="solidOptions">solidOptions</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>
// Import required modules from global bitbybit variable
const { wire } = bitbybit.occt.shapes;
const { operations } = bitbybit.occt;
const { transforms } = bitbybit.occt;
const { InterpolationDto, LoftDto, ThisckSolidSimpleDto, TranslateDto } = Bit.Inputs.OCCT;
type Point3 = Bit.Inputs.Base.Point3;
type Vector3 = Bit.Inputs.Base.Vector3;
// Define a type alias for pointers
type TopoDSWirePointer = Bit.Inputs.OCCT.TopoDSWirePointer;
type TopoDSFacePointer = Bit.Inputs.OCCT.TopoDSFacePointer;
type TopoDSShapePointer = Bit.Inputs.OCCT.TopoDSShapePointer;
// Define points for bottom curve (wave-like pattern)
const bottomPoints = [
[-3, 0, -2],
[-1, 0, 0],
[0, 0, 1],
[1, 0, 0],
[3, 0, -2]
] as Point3[];
// Define points for middle curve (elevated and more curved)
const middlePoints = [
[-2, 2, -1],
[-0.5, 2, 1.5],
[0, 2, 2],
[0.5, 2, 1.5],
[2, 2, -1]
] as Point3[];
// Define points for top curve (simpler, less curved)
const topPoints = [
[-1.5, 4, 0],
[-0.5, 4, 0.5],
[0, 4, 1],
[0.5, 4, 0.5],
[1.5, 4, 0]
] as Point3[];
// Create interpolated wires from points
const bottomWireOpt = new InterpolationDto();
bottomWireOpt.points = bottomPoints;
bottomWireOpt.periodic = false;
bottomWireOpt.tolerance = 0.1;
const bottomWire = await wire.interpolatePoints(bottomWireOpt);
const middleWireOpt = new InterpolationDto();
middleWireOpt.points = middlePoints;
middleWireOpt.periodic = false;
middleWireOpt.tolerance = 0.1;
const middleWire = await wire.interpolatePoints(middleWireOpt);
const topWireOpt = new InterpolationDto();
topWireOpt.points = topPoints;
topWireOpt.periodic = false;
topWireOpt.tolerance = 0.1;
const topWire = await wire.interpolatePoints(topWireOpt);
// Create lofted surface from the three wires
const loftOpt = new LoftDto<TopoDSWirePointer>();
loftOpt.shapes = [bottomWire, middleWire, topWire];
loftOpt.makeSolid = false;
const loftSurface = await operations.loft(loftOpt);
// Create thick solid from the lofted surface
const thickness = 0.1;
const thickSolidOpt = new ThisckSolidSimpleDto<TopoDSFacePointer>();
thickSolidOpt.shape = loftSurface;
thickSolidOpt.offset = thickness;
const thickSolid = await operations.makeThickSolidSimple(thickSolidOpt);
// Translate the thick solid for better visualization
const offsetVector = [0, 0, 3] as Vector3;
const translateOpt = new TranslateDto<TopoDSShapePointer>();
translateOpt.shape = thickSolid;
translateOpt.translation = offsetVector;
const translatedSolid = await transforms.translate(translateOpt);
// Create drawing options for the original surface (green)
const surfaceOptions = new Bit.Inputs.Draw.DrawOcctShapeSimpleOptions();
surfaceOptions.precision = 0.01;
surfaceOptions.drawFaces = true;
surfaceOptions.faceColour = "#00ff00";
surfaceOptions.drawEdges = true;
surfaceOptions.edgeColour = "#ffffff";
surfaceOptions.edgeWidth = 2;
// Create drawing options for the thick solid (orange)
const solidOptions = new Bit.Inputs.Draw.DrawOcctShapeSimpleOptions();
solidOptions.precision = 0.01;
solidOptions.drawFaces = true;
solidOptions.faceColour = "#ff6600";
solidOptions.drawEdges = true;
solidOptions.edgeColour = "#ffffff";
solidOptions.edgeWidth = 2;
// Draw both the original lofted surface and the thick solid
bitbybit.draw.drawAnyAsync({ entity: loftSurface, options: surfaceOptions });
bitbybit.draw.drawAnyAsync({ entity: translatedSolid, options: solidOptions });
Hollowing a tray
operations.makeThickSolidByJoin hollows a solid: it takes away the faces you name and gives what remains a wall of thickness offset, inward when the offset is negative.
The order of the steps matters here. The removed face has to meet the walls at a sharp edge, so round the walls and the floor first, hollow, and round the rim last. Hollowing a block whose rim is already rounded can fail, give a broken solid, or hand the block back whole with no error, so check that the volume dropped:

- Rete
- Blockly
- TypeScript
{
"id": "rete-v2-json",
"nodes": {
"block": {
"id": "block",
"name": "bitbybit.occt.shapes.solid.createBox",
"customName": "box",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"width": 10,
"length": 6,
"height": 3,
"center": [
0,
1.5,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"uprights": {
"id": "uprights",
"name": "bitbybit.occt.select.edges.along",
"customName": "edges along",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
],
"angle": 0
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"walls": {
"id": "walls",
"name": "bitbybit.occt.fillets.filletEdges",
"customName": "fillet edges",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 0.6
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "uprights",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"floorEdges": {
"id": "floorEdges",
"name": "bitbybit.occt.select.edges.extreme",
"customName": "extreme edges",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
-1,
0
],
"tolerance": 1e-7
},
"inputs": {
"shape": {
"connections": [
{
"node": "walls",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"body": {
"id": "body",
"name": "bitbybit.occt.fillets.filletEdges",
"customName": "fillet edges",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 0.6
},
"inputs": {
"shape": {
"connections": [
{
"node": "walls",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "floorEdges",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
40
]
},
"topFaces": {
"id": "topFaces",
"name": "bitbybit.occt.select.faces.extreme",
"customName": "extreme faces",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
],
"tolerance": 1e-7
},
"inputs": {
"shape": {
"connections": [
{
"node": "body",
"output": "result",
"data": {}
}
]
}
},
"position": [
2140,
40
]
},
"topIndex": {
"id": "topIndex",
"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": "topFaces",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
40
]
},
"top": {
"id": "top",
"name": "bitbybit.occt.shapes.face.getFace",
"customName": "get face",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"index": 0
},
"inputs": {
"shape": {
"connections": [
{
"node": "body",
"output": "result",
"data": {}
}
]
},
"index": {
"connections": [
{
"node": "topIndex",
"output": "result",
"data": {}
}
]
}
},
"position": [
2980,
40
]
},
"openings": {
"id": "openings",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "top",
"output": "result",
"data": {}
}
]
}
},
"position": [
3400,
40
]
},
"hollow": {
"id": "hollow",
"name": "bitbybit.occt.operations.makeThickSolidByJoin",
"customName": "make thick solid by join",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"offset": -0.2,
"tolerance": 0.001,
"intersection": false,
"selfIntersection": false,
"joinType": "arc",
"removeIntEdges": false
},
"inputs": {
"shape": {
"connections": [
{
"node": "body",
"output": "result",
"data": {}
}
]
},
"shapes": {
"connections": [
{
"node": "openings",
"output": "list",
"data": {}
}
]
}
},
"position": [
3820,
40
]
},
"rim": {
"id": "rim",
"name": "bitbybit.occt.select.edges.extreme",
"customName": "extreme edges",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
],
"tolerance": 1e-7
},
"inputs": {
"shape": {
"connections": [
{
"node": "hollow",
"output": "result",
"data": {}
}
]
}
},
"position": [
4240,
40
]
},
"tray": {
"id": "tray",
"name": "bitbybit.occt.fillets.filletEdges",
"customName": "fillet edges",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 0.08
},
"inputs": {
"shape": {
"connections": [
{
"node": "hollow",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "rim",
"output": "result",
"data": {}
}
]
}
},
"position": [
4660,
40
]
},
"steel": {
"id": "steel",
"name": "bitbybit.draw.optionsOcctShape",
"customName": "options occt shape",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"faceOpacity": 1,
"edgeOpacity": 1,
"edgeColour": "#5f6773",
"faceColour": "#ff0000",
"vertexColour": "#ff00ff",
"edgeWidth": 2,
"edgeWidthBySize": false,
"vertexSize": 0.03,
"drawEdges": true,
"drawFaces": true,
"drawVertices": false,
"precision": 0.01,
"angularDeflection": 0.5,
"relativeDeflection": false,
"precisionShare": 0,
"drawEdgeIndexes": false,
"edgeIndexHeight": 0.06,
"edgeIndexColour": "#ff00ff",
"drawFaceIndexes": false,
"faceIndexHeight": 0.06,
"faceIndexColour": "#0000ff",
"drawTwoSided": false,
"backFaceColour": "#0000ff",
"backFaceOpacity": 1,
"edgeArrowSize": 0,
"edgeArrowAngle": 15,
"keepMeshData": false,
"allowQualityDecrease": true,
"forceFaceDeflection": false,
"drawIsoCurves": false,
"isoCurvesU": 5,
"isoCurvesV": 5,
"isoCurvesColour": "#808080",
"surfaceAnalysis": "none",
"draftDirection": [
0,
1,
0
]
},
"inputs": {
"faceMaterial": {
"connections": [
{
"node": "steelMaterial",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
380
]
},
"steelMaterial": {
"id": "steelMaterial",
"name": "bitbybit.draw.createPBRMaterial",
"customName": "create pbr material",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"name": "PBRMaterial",
"baseColor": "#eef0f2",
"metallic": 0.7,
"roughness": 0.3,
"alpha": 1,
"emissiveColor": "#000000",
"emissiveIntensity": 1,
"zOffset": 0,
"zOffsetUnits": 0,
"alphaMode": "opaque",
"alphaCutoff": 0.5,
"doubleSided": false,
"wireframe": false,
"unlit": false
},
"inputs": {},
"position": [
40,
426
]
},
"drawTray": {
"id": "drawTray",
"name": "bitbybit.draw.drawAnyAsync",
"customName": "draw any async",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
}
},
"inputs": {
"entity": {
"connections": [
{
"node": "tray",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
5080,
40
]
},
"view": {
"id": "view",
"name": "bitbybit.babylon.scene.adjustActiveArcRotateCamera",
"customName": "adjust active arc rotate camera",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"position": [
7,
12,
-13
],
"lookAt": [
0,
1,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
5080,
334
]
}
},
"modules": {}
}
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="block">block</variable><variable id="walls">walls</variable><variable id="body">body</variable><variable id="topFaces">topFaces</variable><variable id="hollow">hollow</variable></variables><block type="variables_set" x="40" y="200"><field name="VAR" id="block">block</field><value name="VALUE"><block type="bitbybit.occt.shapes.solid.createBox"><value name="Width"><block type="math_number"><field name="NUM">10</field></block></value><value name="Length"><block type="math_number"><field name="NUM">6</field></block></value><value name="Height"><block type="math_number"><field name="NUM">3</field></block></value><value name="Center"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1.5</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="OriginOnCenter"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value></block></value><next><block type="variables_set"><field name="VAR" id="walls">walls</field><value name="VALUE"><block type="bitbybit.occt.fillets.filletEdges"><value name="Shape"><block type="variables_get"><field name="VAR" id="block">block</field></block></value><value name="Radius"><block type="math_number"><field name="NUM">0.6</field></block></value><value name="Indexes"><block type="bitbybit.occt.select.edges.along"><value name="Shape"><block type="variables_get"><field name="VAR" id="block">block</field></block></value><value name="Direction"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="Angle"><block type="math_number"><field name="NUM">0</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="body">body</field><value name="VALUE"><block type="bitbybit.occt.fillets.filletEdges"><value name="Shape"><block type="variables_get"><field name="VAR" id="walls">walls</field></block></value><value name="Radius"><block type="math_number"><field name="NUM">0.6</field></block></value><value name="Indexes"><block type="bitbybit.occt.select.edges.extreme"><value name="Shape"><block type="variables_get"><field name="VAR" id="walls">walls</field></block></value><value name="Direction"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">-1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">1e-7</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="topFaces">topFaces</field><value name="VALUE"><block type="base_time_await_return"><value name="Promise"><block type="bitbybit.occt.select.faces.extreme"><value name="Shape"><block type="variables_get"><field name="VAR" id="body">body</field></block></value><value name="Direction"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">1e-7</field></block></value></block></value></block></value><next><block type="variables_set"><field name="VAR" id="hollow">hollow</field><value name="VALUE"><block type="bitbybit.occt.operations.makeThickSolidByJoin"><value name="Shape"><block type="variables_get"><field name="VAR" id="body">body</field></block></value><value name="Shapes"><block type="lists_create_with"><mutation items="1"></mutation><value name="ADD0"><block type="bitbybit.occt.shapes.face.getFace"><value name="Shape"><block type="variables_get"><field name="VAR" id="body">body</field></block></value><value name="Index"><block type="bitbybit.lists.getItem"><value name="List"><block type="variables_get"><field name="VAR" id="topFaces">topFaces</field></block></value><value name="Index"><block type="math_number"><field name="NUM">0</field></block></value><value name="Clone"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value></block></value></block></value></block></value><value name="Offset"><block type="math_number"><field name="NUM">-0.2</field></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">0.001</field></block></value><value name="Intersection"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="SelfIntersection"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="JoinType"><block type="bitbybit.occt.enums.joinTypeEnum"><field name="bitbybit.occt.enums.joinTypeEnum">'arc'</field></block></value><value name="RemoveIntEdges"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value><next><block type="bitbybit.draw.drawAnyAsyncNoReturn"><value name="Entity"><block type="bitbybit.occt.fillets.filletEdges"><value name="Shape"><block type="variables_get"><field name="VAR" id="hollow">hollow</field></block></value><value name="Radius"><block type="math_number"><field name="NUM">0.08</field></block></value><value name="Indexes"><block type="bitbybit.occt.select.edges.extreme"><value name="Shape"><block type="variables_get"><field name="VAR" id="hollow">hollow</field></block></value><value name="Direction"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="Tolerance"><block type="math_number"><field name="NUM">1e-7</field></block></value></block></value></block></value><value name="Options"><block type="bitbybit.draw.optionsOcctShape"><value name="FaceOpacity"><block type="math_number"><field name="NUM">1</field></block></value><value name="EdgeOpacity"><block type="math_number"><field name="NUM">1</field></block></value><value name="EdgeColour"><block type="colour_picker"><field name="COLOUR">#5f6773</field></block></value><value name="FaceColour"><block type="colour_picker"><field name="COLOUR">#ff0000</field></block></value><value name="VertexColour"><block type="colour_picker"><field name="COLOUR">#ff00ff</field></block></value><value name="FaceMaterial"><block type="bitbybit.draw.createPBRMaterial"><value name="Name"><block type="text"><field name="TEXT">PBRMaterial</field></block></value><value name="BaseColor"><block type="colour_picker"><field name="COLOUR">#eef0f2</field></block></value><value name="Metallic"><block type="math_number"><field name="NUM">0.7</field></block></value><value name="Roughness"><block type="math_number"><field name="NUM">0.3</field></block></value><value name="Alpha"><block type="math_number"><field name="NUM">1</field></block></value><value name="EmissiveColor"><block type="colour_picker"><field name="COLOUR">#000000</field></block></value><value name="EmissiveIntensity"><block type="math_number"><field name="NUM">1</field></block></value><value name="ZOffset"><block type="math_number"><field name="NUM">0</field></block></value><value name="ZOffsetUnits"><block type="math_number"><field name="NUM">0</field></block></value><value name="AlphaMode"><block type="bitbybit.draw.enums.alphaModeEnum"><field name="bitbybit.draw.enums.alphaModeEnum">'opaque'</field></block></value><value name="AlphaCutoff"><block type="math_number"><field name="NUM">0.5</field></block></value><value name="DoubleSided"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Wireframe"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Unlit"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value></block></value><value name="EdgeWidth"><block type="math_number"><field name="NUM">2</field></block></value><value name="EdgeWidthBySize"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="VertexSize"><block type="math_number"><field name="NUM">0.03</field></block></value><value name="DrawEdges"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="DrawFaces"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="DrawVertices"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="Precision"><block type="math_number"><field name="NUM">0.01</field></block></value><value name="AngularDeflection"><block type="math_number"><field name="NUM">0.5</field></block></value><value name="RelativeDeflection"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="PrecisionShare"><block type="math_number"><field name="NUM">0</field></block></value><value name="DrawEdgeIndexes"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="EdgeIndexHeight"><block type="math_number"><field name="NUM">0.06</field></block></value><value name="EdgeIndexColour"><block type="colour_picker"><field name="COLOUR">#ff00ff</field></block></value><value name="DrawFaceIndexes"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="FaceIndexHeight"><block type="math_number"><field name="NUM">0.06</field></block></value><value name="FaceIndexColour"><block type="colour_picker"><field name="COLOUR">#0000ff</field></block></value><value name="DrawTwoSided"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="BackFaceColour"><block type="colour_picker"><field name="COLOUR">#0000ff</field></block></value><value name="BackFaceOpacity"><block type="math_number"><field name="NUM">1</field></block></value><value name="EdgeArrowSize"><block type="math_number"><field name="NUM">0</field></block></value><value name="EdgeArrowAngle"><block type="math_number"><field name="NUM">15</field></block></value><value name="KeepMeshData"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="AllowQualityDecrease"><block type="logic_boolean"><field name="BOOL">TRUE</field></block></value><value name="ForceFaceDeflection"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="DrawIsoCurves"><block type="logic_boolean"><field name="BOOL">FALSE</field></block></value><value name="IsoCurvesU"><block type="math_number"><field name="NUM">5</field></block></value><value name="IsoCurvesV"><block type="math_number"><field name="NUM">5</field></block></value><value name="IsoCurvesColour"><block type="colour_picker"><field name="COLOUR">#808080</field></block></value><value name="SurfaceAnalysis"><block type="bitbybit.occt.enums.surfaceAnalysisEnum"><field name="bitbybit.occt.enums.surfaceAnalysisEnum">'none'</field></block></value><value name="DraftDirection"><block type="bitbybit.vector.vectorXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value></block></value><next><block type="bitbybit.babylon.scene.adjustActiveArcRotateCamera"><value name="Position"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">7</field></block></value><value name="Y"><block type="math_number"><field name="NUM">12</field></block></value><value name="Z"><block type="math_number"><field name="NUM">-13</field></block></value></block></value><value name="LookAt"><block type="bitbybit.point.pointXYZ"><value name="X"><block type="math_number"><field name="NUM">0</field></block></value><value name="Y"><block type="math_number"><field name="NUM">1</field></block></value><value name="Z"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="LowerBetaLimit"><block type="math_number"><field name="NUM">1</field></block></value><value name="UpperBetaLimit"><block type="math_number"><field name="NUM">179</field></block></value><value name="AngularSensibilityX"><block type="math_number"><field name="NUM">1000</field></block></value><value name="AngularSensibilityY"><block type="math_number"><field name="NUM">1000</field></block></value><value name="MaxZ"><block type="math_number"><field name="NUM">1000</field></block></value><value name="PanningSensibility"><block type="math_number"><field name="NUM">1000</field></block></value><value name="WheelPrecision"><block type="math_number"><field name="NUM">3</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>
const block = await bitbybit.occt.shapes.solid.createBox({ width: 10, length: 6, height: 3, center: [0, 1.5, 0] });
const uprights = await bitbybit.occt.select.edges.along({ shape: block, direction: [0, 1, 0] });
const walls = await bitbybit.occt.fillets.filletEdges({ shape: block, radius: 0.6, indexes: uprights });
const floorEdges = await bitbybit.occt.select.edges.extreme({ shape: walls, direction: [0, -1, 0] });
const body = await bitbybit.occt.fillets.filletEdges({ shape: walls, radius: 0.6, indexes: floorEdges });
const [topIndex] = await bitbybit.occt.select.faces.extreme({ shape: body, direction: [0, 1, 0] });
const top = await bitbybit.occt.shapes.face.getFace({ shape: body, index: topIndex });
const hollow = await bitbybit.occt.operations.makeThickSolidByJoin({ shape: body, shapes: [top], offset: -0.2 });
const rim = await bitbybit.occt.select.edges.extreme({ shape: hollow, direction: [0, 1, 0] });
const tray = await bitbybit.occt.fillets.filletEdges({ shape: hollow, radius: 0.08, indexes: rim });
const steel = new Bit.Inputs.Draw.DrawOcctShapeOptions();
steel.faceMaterial = bitbybit.draw.createPBRMaterial({ baseColor: "#eef0f2", metallic: 0.7, roughness: 0.3 });
steel.edgeColour = "#5f6773";
steel.drawTwoSided = false;
await bitbybit.draw.drawAnyAsync({ entity: tray, options: steel });
bitbybit.babylon.scene.adjustActiveArcRotateCamera({ position: [7, 12, -13], lookAt: [0, 1, 0] });
Key Learning Points
Design Considerations
When working with thick solids from complex faces:
- Surface Continuity: Ensure your lofted surface has smooth transitions to avoid artifacts in the thick solid
- Thickness Distribution: The algorithm maintains consistent thickness perpendicular to the surface
- Self-Intersections: Complex shapes may create self-intersecting geometry; consider your design carefully
- Normal Direction: The thickness direction is determined automatically by face normals
Advanced Techniques
- Multi-Surface Lofting: Create even more complex shapes by lofting between numerous cross-sections
- Hybrid Operations: Combine with other OCCT operations like fillets, chamfers, or boolean operations
Performance Tips
- Point Density: Balance curve smoothness with computational efficiency
- Surface Complexity: More complex lofted surfaces require more processing time
- Memory Usage: Large thick solids can consume significant memory resources
Summary
Thick solids from complex lofted faces represent one of the most powerful techniques in 3D modeling. By combining:
- Interpolated curves for smooth cross-sections
- Loft operations for complex surface generation
- Thick solid operations for volumetric creation
You can create sophisticated 3D geometry that would be difficult or impossible to achieve through simple primitive operations. This approach bridges the gap between mathematical precision and organic design freedom.



