Skip to main content

Features: holes, bosses, pockets and more

A feature changes a solid in one place, the way a machinist or a CAD program thinks about it: drill a hole here, raise a boss there, cut a pocket, push a face out. bitbybit.occt.features does each in one call, where booleans would need a tool shape built first.

Holes on frames​

holes, counterboredHoles and countersunkHoles drill one hole at each frame you give them. A frame's origin is where the hole enters, and its normal points out of the material, so the hole runs against it. Make the frames with the bitbybit.frame functions: grid and polar lay out a pattern on a face in one call.

  • depth 0 drills through the whole shape; tipAngle 118 gives the point of a twist drill, 0 a flat bottom.
  • A counterbore sinks a cap screw's head: wider than the hole and shallower than it.
  • A countersink sinks a flat head: a cone at the mouth, at countersinkAngle.

Here six counterbored holes go through a plate, one at each frame of a two by three grid on its top face:

A plate with counterbored holes
Bitbybit Platform

A plate with counterbored holes in Rete

rete logoRete
Script Source (rete)
{
"id": "rete-v2-json",
"nodes": {
"plate": {
"id": "plate",
"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": 1,
"center": [
0,
0.5,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"top": {
"id": "top",
"name": "bitbybit.frame.zx",
"customName": "zx",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"origin": [
0,
1,
0
]
},
"inputs": {},
"position": [
40,
426
]
},
"grid": {
"id": "grid",
"name": "bitbybit.frame.grid",
"customName": "grid",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"countX": 2,
"countY": 3,
"spacingX": 3,
"spacingY": 3,
"centered": true
},
"inputs": {
"frame": {
"connections": [
{
"node": "top",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"holes": {
"id": "holes",
"name": "bitbybit.occt.features.counterboredHoles",
"customName": "counterbored holes",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"diameter": 0.6,
"depth": 0,
"tipAngle": 0,
"counterboreDiameter": 1.1,
"counterboreDepth": 0.4
},
"inputs": {
"shape": {
"connections": [
{
"node": "plate",
"output": "result",
"data": {}
}
]
},
"frames": {
"connections": [
{
"node": "grid",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
40
]
}
},
"modules": {}
}

Bosses and pockets from a profile​

boss grows material out of a face, and pocket cuts into it, by sweeping a profile, a face that lies on one of the solid's faces (sketchFaceIndex). How far is set by extent: a length, through everything, or up to another face. taperedBoss and taperedPocket lean the sides by an angle, as a moulded part needs; revolvedBoss and revolvedPocket turn the profile about an axis, for a collar on a shaft or a groove for a circlip.

Here both tapered features start from a face drawn on the top of a block. sketchFaceIndex says which face of the base the profile lies on, and it is found by rule, not counted. The boss changes the block, so the top is found again before the pocket:

A tapered boss and a tapered pocket
Bitbybit Platform

A tapered boss and a tapered pocket in Rete

rete logoRete
Script Source (rete)
{
"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": 30,
"length": 20,
"height": 6,
"center": [
0,
3,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"up": {
"id": "up",
"name": "bitbybit.occt.select.faces.facing",
"customName": "faces facing",
"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
]
},
"top": {
"id": "top",
"name": "bitbybit.lists.getFirstItem",
"customName": "get first item",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"clone": true
},
"inputs": {
"list": {
"connections": [
{
"node": "up",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"round": {
"id": "round",
"name": "bitbybit.occt.shapes.face.createCircleFace",
"customName": "circle face",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 5,
"center": [
-7,
6,
0
],
"direction": [
0,
1,
0
]
},
"inputs": {},
"position": [
40,
426
]
},
"boss": {
"id": "boss",
"name": "bitbybit.occt.features.taperedBoss",
"customName": "tapered boss",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"sketchFaceIndex": 0,
"angle": 12,
"extent": "length",
"length": 8,
"untilFaceIndex": 0
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"profile": {
"connections": [
{
"node": "round",
"output": "result",
"data": {}
}
]
},
"sketchFaceIndex": {
"connections": [
{
"node": "top",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"flat": {
"id": "flat",
"name": "bitbybit.occt.select.faces.onPlane",
"customName": "faces on plane",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"origin": [
0,
6,
0
],
"normal": [
0,
1,
0
],
"tolerance": 1e-7
},
"inputs": {
"shape": {
"connections": [
{
"node": "boss",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
40
]
},
"stillTop": {
"id": "stillTop",
"name": "bitbybit.lists.getFirstItem",
"customName": "get first item",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"clone": true
},
"inputs": {
"list": {
"connections": [
{
"node": "flat",
"output": "result",
"data": {}
}
]
}
},
"position": [
2140,
40
]
},
"square": {
"id": "square",
"name": "bitbybit.occt.shapes.face.createSquareFace",
"customName": "square face",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"size": 8,
"center": [
8,
6,
0
],
"direction": [
0,
1,
0
]
},
"inputs": {},
"position": [
40,
720
]
},
"pocket": {
"id": "pocket",
"name": "bitbybit.occt.features.taperedPocket",
"customName": "tapered pocket",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"sketchFaceIndex": 0,
"angle": 12,
"extent": "length",
"length": 4,
"untilFaceIndex": 0
},
"inputs": {
"shape": {
"connections": [
{
"node": "boss",
"output": "result",
"data": {}
}
]
},
"profile": {
"connections": [
{
"node": "square",
"output": "result",
"data": {}
}
]
},
"sketchFaceIndex": {
"connections": [
{
"node": "stillTop",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
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": [
-20,
45,
-50
],
"lookAt": [
0,
5,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
2980,
40
]
}
},
"modules": {}
}

rib and groove add or cut a thin wall that follows a wire, such as a stiffening rib under a shelf.

Here a rib fills the inside corner of a bracket. The feature lies on the left of its wire, seen from the side the frame's normal points to, so the slanted line runs from the shelf up to the wall to have the corner on its left. thickness and otherSideThickness lie on either side of the frame's plane:

A shelf bracket with a stiffening rib
Bitbybit Platform

A shelf bracket with a stiffening rib in Rete

rete logoRete
Script Source (rete)
{
"id": "rete-v2-json",
"nodes": {
"shelf": {
"id": "shelf",
"name": "bitbybit.occt.sketch.commands.hLine",
"customName": "h line",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"length": 30,
"id": ""
},
"inputs": {},
"position": [
40,
40
]
},
"lip": {
"id": "lip",
"name": "bitbybit.occt.sketch.commands.vLine",
"customName": "v line",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"length": 3,
"id": ""
},
"inputs": {},
"position": [
40,
288
]
},
"under": {
"id": "under",
"name": "bitbybit.occt.sketch.commands.hLine",
"customName": "h line",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"length": -27,
"id": ""
},
"inputs": {},
"position": [
40,
536
]
},
"inside": {
"id": "inside",
"name": "bitbybit.occt.sketch.commands.vLine",
"customName": "v line",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"length": 27,
"id": ""
},
"inputs": {},
"position": [
40,
784
]
},
"cap": {
"id": "cap",
"name": "bitbybit.occt.sketch.commands.hLine",
"customName": "h line",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"length": -3,
"id": ""
},
"inputs": {},
"position": [
40,
1032
]
},
"back": {
"id": "back",
"name": "bitbybit.occt.sketch.commands.close",
"customName": "close",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"id": ""
},
"inputs": {},
"position": [
40,
1280
]
},
"commands": {
"id": "commands",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "shelf",
"output": "result",
"data": {}
},
{
"node": "lip",
"output": "result",
"data": {}
},
{
"node": "under",
"output": "result",
"data": {}
},
{
"node": "inside",
"output": "result",
"data": {}
},
{
"node": "cap",
"output": "result",
"data": {}
},
{
"node": "back",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"upright": {
"id": "upright",
"name": "bitbybit.frame.create",
"customName": "frame",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"origin": [
0,
0,
0
],
"normal": [
0,
0,
1
],
"direction": [
1,
0,
0
]
},
"inputs": {},
"position": [
40,
1520
]
},
"outline": {
"id": "outline",
"name": "bitbybit.occt.sketch.pen",
"customName": "pen",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"start": [
0,
0
],
"makeFace": true
},
"inputs": {
"commands": {
"connections": [
{
"node": "commands",
"output": "list",
"data": {}
}
]
},
"frame": {
"connections": [
{
"node": "upright",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"bracket": {
"id": "bracket",
"name": "bitbybit.occt.operations.extrude",
"customName": "extrude",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
0,
20
]
},
"inputs": {
"shape": {
"connections": [
{
"node": "outline",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"slant": {
"id": "slant",
"name": "bitbybit.occt.shapes.edge.line",
"customName": "line",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"start": [
24,
3,
10
],
"end": [
3,
22,
10
]
},
"inputs": {},
"position": [
40,
1814
]
},
"midPlane": {
"id": "midPlane",
"name": "bitbybit.frame.create",
"customName": "frame",
"async": false,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"origin": [
0,
0,
10
],
"normal": [
0,
0,
1
],
"direction": [
1,
0,
0
]
},
"inputs": {},
"position": [
40,
2062
]
},
"ribbed": {
"id": "ribbed",
"name": "bitbybit.occt.features.rib",
"customName": "rib",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"thickness": 1.5,
"otherSideThickness": 1.5
},
"inputs": {
"shape": {
"connections": [
{
"node": "bracket",
"output": "result",
"data": {}
}
]
},
"wire": {
"connections": [
{
"node": "slant",
"output": "result",
"data": {}
}
]
},
"frame": {
"connections": [
{
"node": "midPlane",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
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": [
49,
41,
71
],
"lookAt": [
15,
14,
10
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
2140,
40
]
}
},
"modules": {}
}

Changing faces directly​

  • pushPullFaces moves chosen faces along their normals and stretches the faces around them to follow: raise a top, thicken a wall, lengthen a block. A negative distance moves inward.
  • removeFaces takes faces away and closes the gap by extending the faces around them: delete a hole, a fillet or a chamfer from an imported part.

Choose the faces by rule with bitbybit.occt.select, so the feature keeps working when the part changes.

Here one drilled block is changed twice. In the middle one the wall of the hole is removed and the block closes up, and in the last one the top face is pushed up by 2, with the hole growing to follow:

A hole closed, a block raised
Bitbybit Platform

A hole closed, a block raised in Rete

rete logoRete
Script Source (rete)
{
"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": 12,
"length": 8,
"height": 4,
"center": [
0,
2,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"drill": {
"id": "drill",
"name": "bitbybit.occt.shapes.solid.createCylinder",
"customName": "cylinder",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 1.5,
"height": 6,
"center": [
3,
-1,
0
],
"direction": [
0,
1,
0
],
"angle": 360,
"originOnCenter": false
},
"inputs": {},
"position": [
40,
426
]
},
"tools": {
"id": "tools",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "drill",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"part": {
"id": "part",
"name": "bitbybit.occt.booleans.difference",
"customName": "difference",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"keepEdges": false,
"strategy": "oneAfterAnother"
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"shapes": {
"connections": [
{
"node": "tools",
"output": "list",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"holeWall": {
"id": "holeWall",
"name": "bitbybit.occt.select.faces.ofType",
"customName": "faces of type",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"type": "cylinder"
},
"inputs": {
"shape": {
"connections": [
{
"node": "part",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"closed": {
"id": "closed",
"name": "bitbybit.occt.features.removeFaces",
"customName": "remove faces",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
}
},
"inputs": {
"shape": {
"connections": [
{
"node": "part",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "holeWall",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
40
]
},
"closedBeside": {
"id": "closedBeside",
"name": "bitbybit.occt.transforms.translate",
"customName": "translate",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"translation": [
0,
0,
10
]
},
"inputs": {
"shape": {
"connections": [
{
"node": "closed",
"output": "result",
"data": {}
}
]
}
},
"position": [
2140,
40
]
},
"top": {
"id": "top",
"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": "part",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
334
]
},
"raised": {
"id": "raised",
"name": "bitbybit.occt.features.pushPullFaces",
"customName": "push pull faces",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"distance": 2
},
"inputs": {
"shape": {
"connections": [
{
"node": "part",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "top",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
288
]
},
"raisedBeside": {
"id": "raisedBeside",
"name": "bitbybit.occt.transforms.translate",
"customName": "translate",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"translation": [
0,
0,
20
]
},
"inputs": {
"shape": {
"connections": [
{
"node": "raised",
"output": "result",
"data": {}
}
]
}
},
"position": [
2140,
288
]
},
"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,
280
]
},
"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,
858
]
},
"drawPart": {
"id": "drawPart",
"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": "part",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
40
]
},
"drawClosedBeside": {
"id": "drawClosedBeside",
"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": "closedBeside",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
334
]
},
"drawRaisedBeside": {
"id": "drawRaisedBeside",
"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": "raisedBeside",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
628
]
},
"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": [
36,
26,
-10
],
"lookAt": [
0,
2,
10
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
2560,
922
]
}
},
"modules": {}
}

Drafts and corners​

bitbybit.occt.draft.draftAngle tilts faces so a moulded part can be pulled out of its mould. bitbybit.occt.corners rounds or bevels a single corner, chosen by a point near it rather than by edge indexes.

Draw a shape with surfaceAnalysis set to draftAngle and the viewer shows how each face stands against the pull. A face looking along draftDirection is red, one standing straight is green at 0, and one looking away is blue. On this block the two end walls have 6 degrees of draft and the long walls have none, so the long walls would drag. The ball beside it shows every angle at once, with its parting line as the green band around the middle:

Which walls leave the mould
Bitbybit Platform

Which walls leave the mould in Rete

rete logoRete
Script Source (rete)
{
"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": 4,
"center": [
0,
2,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"facingRight": {
"id": "facingRight",
"name": "bitbybit.occt.select.faces.facing",
"customName": "faces facing",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
1,
0,
0
],
"angle": 1
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"facingLeft": {
"id": "facingLeft",
"name": "bitbybit.occt.select.faces.facing",
"customName": "faces facing",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
-1,
0,
0
],
"angle": 1
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
380
]
},
"rightIndex": {
"id": "rightIndex",
"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": "facingRight",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"leftIndex": {
"id": "leftIndex",
"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": "facingLeft",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
334
]
},
"rightWall": {
"id": "rightWall",
"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": "block",
"output": "result",
"data": {}
}
]
},
"index": {
"connections": [
{
"node": "rightIndex",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"leftWall": {
"id": "leftWall",
"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": "block",
"output": "result",
"data": {}
}
]
},
"index": {
"connections": [
{
"node": "leftIndex",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
288
]
},
"walls": {
"id": "walls",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "rightWall",
"output": "result",
"data": {}
},
{
"node": "leftWall",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
40
]
},
"drafted": {
"id": "drafted",
"name": "bitbybit.occt.draft.draftAngle",
"customName": "draft angle",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
],
"angle": 6,
"neutralPlaneOrigin": [
0,
0,
0
],
"neutralPlaneDirection": [
0,
1,
0
],
"flag": true
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"faces": {
"connections": [
{
"node": "walls",
"output": "list",
"data": {}
}
]
}
},
"position": [
2140,
40
]
},
"ball": {
"id": "ball",
"name": "bitbybit.occt.shapes.solid.createSphere",
"customName": "sphere",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 3,
"center": [
10,
3,
0
]
},
"inputs": {},
"position": [
40,
426
]
},
"draft": {
"id": "draft",
"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": "#ffffff",
"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": true,
"backFaceColour": "#0000ff",
"backFaceOpacity": 1,
"edgeArrowSize": 0,
"edgeArrowAngle": 15,
"keepMeshData": false,
"allowQualityDecrease": true,
"forceFaceDeflection": false,
"drawIsoCurves": false,
"isoCurvesU": 5,
"isoCurvesV": 5,
"isoCurvesColour": "#808080",
"surfaceAnalysis": "draftAngle",
"draftDirection": [
0,
1,
0
],
"analysisMin": -8,
"analysisMax": 8
},
"inputs": {},
"position": [
40,
674
]
},
"drawDrafted": {
"id": "drawDrafted",
"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": "drafted",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "draft",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
40
]
},
"drawBall": {
"id": "drawBall",
"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": "ball",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "draft",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
340
]
},
"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": [
10,
16,
-32
],
"lookAt": [
4,
2.5,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
2560,
640
]
}
},
"modules": {}
}

draft.makeDraft starts from a wire instead of a solid and grows a tapered skirt from it, leaning each side by angle:

A tapered skirt from a wire
Bitbybit Platform

A tapered skirt from a wire in Rete

rete logoRete
Script Source (rete)
{
"id": "rete-v2-json",
"nodes": {
"outline": {
"id": "outline",
"name": "bitbybit.occt.shapes.wire.createRectangleWire",
"customName": "rectangle wire",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"width": 8,
"length": 5,
"center": [
0,
0,
0
],
"direction": [
0,
1,
0
]
},
"inputs": {},
"position": [
40,
40
]
},
"skirt": {
"id": "skirt",
"name": "bitbybit.occt.draft.makeDraft",
"customName": "make draft",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"direction": [
0,
1,
0
],
"angle": 10,
"lengthMax": 3,
"internal": false
},
"inputs": {
"shape": {
"connections": [
{
"node": "outline",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"paper": {
"id": "paper",
"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": "#ffffff",
"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": true,
"backFaceColour": "#ffffff",
"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": {},
"position": [
40,
380
]
},
"drawSkirt": {
"id": "drawSkirt",
"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": "skirt",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "paper",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
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": [
8,
12,
-14
],
"lookAt": [
0,
1.5,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
880,
334
]
}
},
"modules": {}
}

corners.filletCornerByPoint rounds the corner nearest each point you give it, and chamferCornerByPoint bevels it. The rounding is widest at the corner and tapers away along the edges that meet there, so you pick a corner by where it is, with no edge indexes, and every other corner stays sharp:

One corner rounded by a point near it
Bitbybit Platform

One corner rounded by a point near it in Rete

rete logoRete
Script Source (rete)
{
"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": 10,
"height": 10,
"center": [
0,
5,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"corners": {
"id": "corners",
"name": "bitbybit.json.parse",
"customName": "parse",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"text": "[[5, 10, -5]]"
},
"inputs": {},
"position": [
40,
426
]
},
"rounded": {
"id": "rounded",
"name": "bitbybit.occt.corners.filletCornerByPoint",
"customName": "fillet corner by point",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"points": [],
"radius": 2,
"taperFactor": 1,
"snapTolerance": 0,
"mode": "auto"
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"points": {
"connections": [
{
"node": "corners",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
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,
472
]
},
"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,
666
]
},
"drawRounded": {
"id": "drawRounded",
"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": "rounded",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
880,
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": [
16,
19,
-22
],
"lookAt": [
0,
5,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
880,
334
]
}
},
"modules": {}
}

History​

Every feature has a ...WithHistory twin that also reports what became of each face, so a later step can find the faces a feature made: the wall of a hole, the top of a boss. Picking faces and edges explains what a history holds.

  • The features built from a profile or a wire report two histories, the base's and then the profile's: in the profile's, facesFromEdges holds the face each of its edges made. For ribWithHistory that is the rib's walls, with firstFaces and lastFaces its two flat sides, and grooveWithHistory the same for a groove. taperedBossWithHistory and taperedPocketWithHistory give the leaning walls and, in lastFaces, the top of the boss or the floor of the pocket; revolvedBossWithHistory and revolvedPocketWithHistory give the faces each profile edge turned into, such as a ring's outer wall and its two sides.
  • draftAngleWithHistory reports a drafted face as its tilted successor in faces. makeDraftWithHistory and makeDraftToShapeWithHistory grow a skirt from a wire or a shape, freely or up to a stop shape, and report in facesFromEdges the skirt faces each edge grew.

The booleans have history too. differenceWithHistory reports the block's history first and then one for each tool, and in a tool's history edgesFromFaces lists the edges its faces cut into the block. So the two rims of the round hole come straight from the round tool, with no need to search for them by size or position:

Rounding the rims of one cut only
Bitbybit Platform

Rounding the rims of one cut only in Rete

rete logoRete
Script Source (rete)
{
"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": 14,
"length": 10,
"height": 4,
"center": [
0,
2,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
40
]
},
"round": {
"id": "round",
"name": "bitbybit.occt.shapes.solid.createCylinder",
"customName": "cylinder",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"radius": 2.2,
"height": 8,
"center": [
-3.6,
-2,
0
],
"direction": [
0,
1,
0
],
"angle": 360,
"originOnCenter": false
},
"inputs": {},
"position": [
40,
426
]
},
"square": {
"id": "square",
"name": "bitbybit.occt.shapes.solid.createBox",
"customName": "box",
"async": true,
"drawable": true,
"data": {
"genericNodeData": {
"hide": true,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"width": 3.6,
"length": 3.6,
"height": 8,
"center": [
3.6,
2,
0
],
"originOnCenter": true
},
"inputs": {},
"position": [
40,
858
]
},
"tools": {
"id": "tools",
"name": "bitbybit.lists.createList",
"customName": "create list",
"async": false,
"drawable": false,
"data": {},
"inputs": {
"listElements": {
"connections": [
{
"node": "round",
"output": "result",
"data": {}
},
{
"node": "square",
"output": "result",
"data": {}
}
]
}
},
"position": [
460,
40
]
},
"cut": {
"id": "cut",
"name": "bitbybit.occt.booleans.differenceWithHistory",
"customName": "difference with history",
"async": true,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"keepEdges": false,
"strategy": "oneAfterAnother"
},
"inputs": {
"shape": {
"connections": [
{
"node": "block",
"output": "result",
"data": {}
}
]
},
"shapes": {
"connections": [
{
"node": "tools",
"output": "list",
"data": {}
}
]
}
},
"position": [
880,
40
]
},
"histories": {
"id": "histories",
"name": "bitbybit.json.getValueOnProp",
"customName": "get value on prop",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"property": "histories"
},
"inputs": {
"json": {
"connections": [
{
"node": "cut",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
40
]
},
"roundHistory": {
"id": "roundHistory",
"name": "bitbybit.lists.getItem",
"customName": "get item",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"index": 1,
"clone": true
},
"inputs": {
"list": {
"connections": [
{
"node": "histories",
"output": "result",
"data": {}
}
]
}
},
"position": [
1720,
40
]
},
"edgesFromFaces": {
"id": "edgesFromFaces",
"name": "bitbybit.json.getValueOnProp",
"customName": "get value on prop",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"property": "edgesFromFaces"
},
"inputs": {
"json": {
"connections": [
{
"node": "roundHistory",
"output": "result",
"data": {}
}
]
}
},
"position": [
2140,
40
]
},
"rims": {
"id": "rims",
"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": "edgesFromFaces",
"output": "result",
"data": {}
}
]
}
},
"position": [
2560,
40
]
},
"cutShape": {
"id": "cutShape",
"name": "bitbybit.json.getValueOnProp",
"customName": "get value on prop",
"async": false,
"drawable": false,
"data": {
"genericNodeData": {
"hide": false,
"oneOnOne": false,
"flatten": 0,
"forceExecution": false
},
"property": "shape"
},
"inputs": {
"json": {
"connections": [
{
"node": "cut",
"output": "result",
"data": {}
}
]
}
},
"position": [
1300,
288
]
},
"part": {
"id": "part",
"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": "cutShape",
"output": "result",
"data": {}
}
]
},
"indexes": {
"connections": [
{
"node": "rims",
"output": "result",
"data": {}
}
]
}
},
"position": [
2980,
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,
280
]
},
"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,
1244
]
},
"drawPart": {
"id": "drawPart",
"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": "part",
"output": "result",
"data": {}
}
]
},
"options": {
"connections": [
{
"node": "steel",
"output": "result",
"data": {}
}
]
}
},
"position": [
3400,
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": [
5,
22,
-21
],
"lookAt": [
0,
2,
0
],
"lowerBetaLimit": 1,
"upperBetaLimit": 179,
"angularSensibilityX": 1000,
"angularSensibilityY": 1000,
"maxZ": 1000,
"panningSensibility": 1000,
"wheelPrecision": 3
},
"inputs": {},
"position": [
3400,
334
]
}
},
"modules": {}
}

Every feature​

FunctionWhat it does
bossGrows a boss out of a base by sweeping a profile face that lies on one of its faces along direction.
bossWithHistoryGrows a boss as boss does, and reports two histories: the base's, then the profile's, whose facesFromEdges holds the side each profile edge swept and lastFaces the far end.
counterboredHolesDrills holes as holes does, each with a wider, flat-bottomed counterbore at its mouth that sinks a screw head below the surface.
counterboredHolesWithHistoryDrills holes as counterboredHoles does, and reports a history for the shape, then one per hole in the order of frames.
countersunkHolesDrills holes as holes does, each with a cone-shaped countersink at its mouth that sinks a flat screw head flush with the surface.
countersunkHolesWithHistoryDrills holes as countersunkHoles does, and reports a history for the shape, then one per hole in the order of frames.
grooveCuts a groove into a base: the part of the base's section on the left of a wire as it runs, seen from the side the frame's normal points to, removed across the plane.
grooveWithHistoryCuts a groove as groove does, and reports two histories: the base's, then the wire's, whose facesFromEdges holds the wall each wire edge cut and firstFaces and lastFaces the groove's two flat sides.
holesDrills plain holes into a shape, one at each frame: its origin is where the hole enters and its normal points out of the material.
holesWithHistoryDrills holes as holes does, and reports a history for the shape, then one per hole in the order of frames.
pocketCuts a pocket into a base by sweeping a profile face that lies on one of its faces along direction, which points into the base.
pocketWithHistoryCuts a pocket as pocket does, and reports two histories: the base's, then the profile's, whose facesFromEdges holds the wall each profile edge swept and lastFaces the floor.
pushPullFacesMoves faces of a shape along their outward normals and stretches the faces around them to follow, such as raising the top of a block.
pushPullFacesWithHistoryMoves faces as pushPullFaces does, and reports one history, the shape's: each face, edge and vertex lists what it became, so a moved face is followed to where it went, curved ones too.
removeFacesRemoves faces from a solid and closes the gap by extending the faces around them, as when a hole or a rounded edge is deleted from a part.
removeFacesWithHistoryRemoves faces as removeFaces does, and reports one history, the shape's: a removed face's faces entry is empty, and each face that stays lists the face it became, grown over the gap.
revolvedBossAdds a ring to a base by turning a profile face about an axis, such as a collar round a shaft: the profile lies on a face of the base, in a plane through the axis.
revolvedBossWithHistoryAdds a ring as revolvedBoss does, and reports two histories: the base's, then the profile's, whose facesFromEdges holds the face each profile edge turned into, such as the ring's outer wall and its two sides.
revolvedPocketCuts a groove round a base by turning a profile face about an axis, such as the seat of a circlip on a shaft: the profile lies on a face of the base, in a plane through the axis.
revolvedPocketWithHistoryCuts a groove round a base as revolvedPocket does, and reports two histories: the base's, whose side splits into the pieces on either side of the groove, then the profile's, whose facesFromEdges holds the groove's floor and walls.
ribAdds a rib to a base: the region between a wire and the base's faces, on the wire's left as it runs seen from the side the frame's normal points to, filled and thickened across the plane.
ribWithHistoryAdds a rib as rib does, and reports two histories: the base's, then the wire's, whose facesFromEdges holds the face each wire edge made and firstFaces and lastFaces the rib's two flat sides.
taperedBossGrows a boss out of a base as boss does, straight out of the sketch face, with its sides leaning by angle degrees.
taperedBossWithHistoryGrows a tapered boss as taperedBoss does, and reports two histories: the base's, then the profile's, whose facesFromEdges holds the leaning side each profile edge swept and lastFaces the top.
taperedPocketCuts a pocket into a base as pocket does, straight in from the sketch face, with its sides leaning by angle degrees.
taperedPocketWithHistoryCuts a tapered pocket as taperedPocket does, and reports two histories: the base's, then the profile's, whose facesFromEdges holds the leaning wall each profile edge swept and lastFaces the floor.
FunctionWhat it does
draftAngleTilts the selected faces of a shape by a draft angle so the part can be pulled out of a mold along direction.
draftAngleWithHistoryDrafts faces as draftAngle does, and reports what each face, edge and vertex of the shape became: a drafted face becomes its tilted successor in faces.
makeDraftGrows a tapered skirt from a wire, or the edges of a shape: each edge is swept along direction, leaning outward by angle degrees, until the skirt is lengthMax long.
makeDraftToShapeGrows a tapered skirt from a wire or the edges of a shape like makeDraft, stopping it where it meets stopShape.
makeDraftToShapeWithHistoryGrows a skirt up to a stop shape as makeDraftToShape does, and reports what each edge of the wire or shape swept, as makeDraftWithHistory does.
makeDraftWithHistoryGrows a skirt as makeDraft does, and reports what each edge of the wire or shape swept: facesFromEdges[i] holds the skirt faces edge i grew.
FunctionWhat it does
chamferCornerByPointBevels the corner nearest each given point on a shell or solid, touching only that corner.
classifyCornerByPointLooks up the corner nearest each given point and reports what kind it is, without changing the shape.
cornerByPointReportRuns the same corner rounding as filletCornerByPoint and returns a report instead of the shape: for each point, which corner was found, how it was classified, what was done and whether it succeeded.
filletCornerByPointRounds the corner nearest each given point on a shell or solid, touching only that corner.