Skip to content

Commit 76aa7c4

Browse files
v1.0.0-rc.1
1 parent f2c972f commit 76aa7c4

File tree

107 files changed

+3135
-2597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3135
-2597
lines changed

docs/learn/code/common/occt/dimensions/angular-dimension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Angular dimensions measure the angle between two direction vectors and display t
3939
<TabItem value="blockly" label="Blockly">
4040
<BitByBitRenderCanvas
4141
requireManualStart={true}
42-
script={{"script":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</variable><variable id=\"US%1a6-s%$IBw4-r;O{0\">direction2</variable><variable id=\"@3f[l%x)^,^k=QkE]hc|\">center</variable></variables><block type=\"variables_set\" id=\"|Um)Ma@j-zCu1;*pErp@\" x=\"-183\" y=\"-512\"><field name=\"VAR\" id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</field><value name=\"VALUE\"><block type=\"bitbybit.vector.vectorXYZ\" id=\"dir1_vector\"><value name=\"X\"><block type=\"math_number\" id=\"dir1_x\"><field name=\"NUM\">1</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"dir1_y\"><field name=\"NUM\">0</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"dir1_z\"><field name=\"NUM\">0</field></block></value></block></value><next><block type=\"variables_set\" id=\"#|sI0xp23tki-Pabi`D(\"><field name=\"VAR\" id=\"US%1a6-s%$IBw4-r;O{0\">direction2</field><value name=\"VALUE\"><block type=\"bitbybit.vector.vectorXYZ\" id=\"dir2_vector\"><value name=\"X\"><block type=\"math_number\" id=\"dir2_x\"><field name=\"NUM\">0</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"dir2_y\"><field name=\"NUM\">1</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"dir2_z\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"variables_set\" id=\";{MlL9k.c=Y/n:1%wLF:\"><field name=\"VAR\" id=\"@3f[l%x)^,^k=QkE]hc|\">center</field><value name=\"VALUE\"><block type=\"bitbybit.point.pointXYZ\" id=\"center_point\"><value name=\"X\"><block type=\"math_number\" id=\"center_x\"><field name=\"NUM\">0</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"center_y\"><field name=\"NUM\">0</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"center_z\"><field name=\"NUM\">0</field></block></value></block></value><next><block type=\"bitbybit.draw.drawAnyAsyncNoReturn\" id=\"draw_dimension\"><value name=\"Entity\"><block type=\"bitbybit.occt.dimensions.simpleAngularDimension\" id=\"[]u95XF6c}iZ__Sm9wfp\"><value name=\"Direction1\"><block type=\"variables_get\" id=\"get_dir1\"><field name=\"VAR\" id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</field></block></value><value name=\"Direction2\"><block type=\"variables_get\" id=\"get_dir2\"><field name=\"VAR\" id=\"US%1a6-s%$IBw4-r;O{0\">direction2</field></block></value><value name=\"Center\"><block type=\"variables_get\" id=\"get_center\"><field name=\"VAR\" id=\"@3f[l%x)^,^k=QkE]hc|\">center</field></block></value><value name=\"Radius\"><block type=\"math_number\" id=\"gPma}*9Qz|LUB~GSfab3\"><field name=\"NUM\">2</field></block></value><value name=\"OffsetFromCenter\"><block type=\"math_number\" id=\"/r4C$dH,]Md@WvwY^yfR\"><field name=\"NUM\">0.3</field></block></value><value name=\"ExtraSize\"><block type=\"math_number\" id=\"YKS?~ue)}aJwgne1NZVo\"><field name=\"NUM\">0.1</field></block></value><value name=\"DecimalPlaces\"><block type=\"math_number\" id=\"X)sSSKphoi_mxA5:1OX{\"><field name=\"NUM\">1</field></block></value><value name=\"LabelSuffix\"><block type=\"text\" id=\"s#){l$(A-CChS{bk/JW1\"><field name=\"TEXT\">(deg)</field></block></value><value name=\"LabelSize\"><block type=\"math_number\" id=\"|A)76U}cz$mJw+Ho7ihG\"><field name=\"NUM\">0.3</field></block></value><value name=\"LabelOffset\"><block type=\"math_number\" id=\"et1HF;T[akom%Ld{J,DE\"><field name=\"NUM\">0.3</field></block></value><value name=\"Radians\"><block type=\"logic_boolean\" id=\"e$Y0Ep1{o7u_XrG~$Tz(\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"EndType\"><block type=\"bitbybit.occt.enums.dimensionEndTypeEnum\" id=\"}nk9^@gflNZbueTOpd8,\"><field name=\"bitbybit.occt.enums.dimensionEndTypeEnum\">'arrow'</field></block></value><value name=\"ArrowSize\"><block type=\"math_number\" id=\"`T!inI6V|9lS`Rrwnx$3\"><field name=\"NUM\">0.3</field></block></value><value name=\"ArrowAngle\"><block type=\"math_number\" id=\"A6vif%pOzDr!`wM!IaNV\"><field name=\"NUM\">30</field></block></value><value name=\"ArrowsFlipped\"><block type=\"logic_boolean\" id=\"7U;|0=KiD1Y9w$XRzDYf\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelRotation\"><block type=\"math_number\" id=\"EDt)/8k;DQiN{zr?(OqJ\"><field name=\"NUM\">0</field></block></value><value name=\"LabelFlipHorizontal\"><block type=\"logic_boolean\" id=\"o))gTh~VNgGD_Y~|dq2t\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelFlipVertical\"><block type=\"logic_boolean\" id=\"UH|daKRivVr^tx/$et`C\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelOverwrite\"><block type=\"text\" id=\"Ztb8d:pnO|X4_e{z6E^A\"><field name=\"TEXT\">1*val</field></block></value><value name=\"RemoveTrailingZeros\"><block type=\"logic_boolean\" id=\"qo5V{kh/`H+.k%3RypHc\"><field name=\"BOOL\">FALSE</field></block></value></block></value></block></next></block></next></block></next></block></xml>","version":"1.0.0-rc.0","type":"blockly"}}
42+
script={{"script":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</variable><variable id=\"US%1a6-s%$IBw4-r;O{0\">direction2</variable><variable id=\"@3f[l%x)^,^k=QkE]hc|\">center</variable></variables><block type=\"variables_set\" id=\"|Um)Ma@j-zCu1;*pErp@\" x=\"-183\" y=\"-512\"><field name=\"VAR\" id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</field><value name=\"VALUE\"><block type=\"bitbybit.vector.vectorXYZ\" id=\"dir1_vector\"><value name=\"X\"><block type=\"math_number\" id=\"dir1_x\"><field name=\"NUM\">1</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"dir1_y\"><field name=\"NUM\">0</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"dir1_z\"><field name=\"NUM\">0</field></block></value></block></value><next><block type=\"variables_set\" id=\"#|sI0xp23tki-Pabi`D(\"><field name=\"VAR\" id=\"US%1a6-s%$IBw4-r;O{0\">direction2</field><value name=\"VALUE\"><block type=\"bitbybit.vector.vectorXYZ\" id=\"dir2_vector\"><value name=\"X\"><block type=\"math_number\" id=\"dir2_x\"><field name=\"NUM\">0</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"dir2_y\"><field name=\"NUM\">1</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"dir2_z\"><field name=\"NUM\">1</field></block></value></block></value><next><block type=\"variables_set\" id=\";{MlL9k.c=Y/n:1%wLF:\"><field name=\"VAR\" id=\"@3f[l%x)^,^k=QkE]hc|\">center</field><value name=\"VALUE\"><block type=\"bitbybit.point.pointXYZ\" id=\"center_point\"><value name=\"X\"><block type=\"math_number\" id=\"center_x\"><field name=\"NUM\">0</field></block></value><value name=\"Y\"><block type=\"math_number\" id=\"center_y\"><field name=\"NUM\">0</field></block></value><value name=\"Z\"><block type=\"math_number\" id=\"center_z\"><field name=\"NUM\">0</field></block></value></block></value><next><block type=\"bitbybit.draw.drawAnyAsyncNoReturn\" id=\"draw_dimension\"><value name=\"Entity\"><block type=\"bitbybit.occt.dimensions.simpleAngularDimension\" id=\"[]u95XF6c}iZ__Sm9wfp\"><value name=\"Direction1\"><block type=\"variables_get\" id=\"get_dir1\"><field name=\"VAR\" id=\"*cM!)eZ`SWWP:O-jO1rl\">direction1</field></block></value><value name=\"Direction2\"><block type=\"variables_get\" id=\"get_dir2\"><field name=\"VAR\" id=\"US%1a6-s%$IBw4-r;O{0\">direction2</field></block></value><value name=\"Center\"><block type=\"variables_get\" id=\"get_center\"><field name=\"VAR\" id=\"@3f[l%x)^,^k=QkE]hc|\">center</field></block></value><value name=\"Radius\"><block type=\"math_number\" id=\"gPma}*9Qz|LUB~GSfab3\"><field name=\"NUM\">2</field></block></value><value name=\"OffsetFromCenter\"><block type=\"math_number\" id=\"/r4C$dH,]Md@WvwY^yfR\"><field name=\"NUM\">0.3</field></block></value><value name=\"ExtraSize\"><block type=\"math_number\" id=\"YKS?~ue)}aJwgne1NZVo\"><field name=\"NUM\">0.1</field></block></value><value name=\"DecimalPlaces\"><block type=\"math_number\" id=\"X)sSSKphoi_mxA5:1OX{\"><field name=\"NUM\">1</field></block></value><value name=\"LabelSuffix\"><block type=\"text\" id=\"s#){l$(A-CChS{bk/JW1\"><field name=\"TEXT\">(deg)</field></block></value><value name=\"LabelSize\"><block type=\"math_number\" id=\"|A)76U}cz$mJw+Ho7ihG\"><field name=\"NUM\">0.3</field></block></value><value name=\"LabelOffset\"><block type=\"math_number\" id=\"et1HF;T[akom%Ld{J,DE\"><field name=\"NUM\">0.3</field></block></value><value name=\"Radians\"><block type=\"logic_boolean\" id=\"e$Y0Ep1{o7u_XrG~$Tz(\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"EndType\"><block type=\"bitbybit.occt.enums.dimensionEndTypeEnum\" id=\"}nk9^@gflNZbueTOpd8,\"><field name=\"bitbybit.occt.enums.dimensionEndTypeEnum\">'arrow'</field></block></value><value name=\"ArrowSize\"><block type=\"math_number\" id=\"`T!inI6V|9lS`Rrwnx$3\"><field name=\"NUM\">0.3</field></block></value><value name=\"ArrowAngle\"><block type=\"math_number\" id=\"A6vif%pOzDr!`wM!IaNV\"><field name=\"NUM\">30</field></block></value><value name=\"ArrowsFlipped\"><block type=\"logic_boolean\" id=\"7U;|0=KiD1Y9w$XRzDYf\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelRotation\"><block type=\"math_number\" id=\"EDt)/8k;DQiN{zr?(OqJ\"><field name=\"NUM\">0</field></block></value><value name=\"LabelFlipHorizontal\"><block type=\"logic_boolean\" id=\"o))gTh~VNgGD_Y~|dq2t\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelFlipVertical\"><block type=\"logic_boolean\" id=\"UH|daKRivVr^tx/$et`C\"><field name=\"BOOL\">FALSE</field></block></value><value name=\"LabelOverwrite\"><block type=\"text\" id=\"Ztb8d:pnO|X4_e{z6E^A\"><field name=\"TEXT\">1*val</field></block></value><value name=\"RemoveTrailingZeros\"><block type=\"logic_boolean\" id=\"qo5V{kh/`H+.k%3RypHc\"><field name=\"BOOL\">FALSE</field></block></value></block></value></block></next></block></next></block></next></block></xml>","type":"blockly"}}
4343
title="Simple angular dimension between two directions"
4444
/>
4545
</TabItem>

docs/learn/code/common/occt/shapes/wire/wire-helix-spirals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import BitByBitRenderCanvas from '@site/src/components/BitByBitRenderCanvas';
2222
<TabItem value="rete" label="Rete">
2323
<BitByBitRenderCanvas
2424
requireManualStart={true}
25-
script={{"script":"{\"id\":\"rete-v2-json\",\"nodes\":{\"2abca66d21efd2a2\":{\"id\":\"2abca66d21efd2a2\",\"name\":\"bitbybit.occt.shapes.wire.createHelixWire\",\"customName\":\"create helix wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"radius\":1,\"pitch\":1,\"height\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{\"center\":{\"connections\":[{\"node\":\"26d17aed24ceb170\",\"output\":\"result\",\"data\":{}}]}},\"position\":[706.0512890586609,285.8208999785649]},\"26d17aed24ceb170\":{\"id\":\"26d17aed24ceb170\",\"name\":\"bitbybit.vector.vectorXYZ\",\"customName\":\"vector xyz\",\"async\":false,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":true,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"x\":-8,\"y\":0,\"z\":0},\"inputs\":{},\"position\":[308.13724588203286,400.4410333929026]},\"389d488161c3075a\":{\"id\":\"389d488161c3075a\",\"name\":\"bitbybit.occt.shapes.wire.createTaperedHelixWire\",\"customName\":\"create tapered helix wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"startRadius\":2,\"endRadius\":0.5,\"pitch\":1,\"height\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{\"center\":{\"connections\":[{\"node\":\"307bea8c538bbc14\",\"output\":\"result\",\"data\":{}}]}},\"position\":[1983.3245178411435,306.0315773435569]},\"5963964013669860\":{\"id\":\"5963964013669860\",\"name\":\"bitbybit.occt.shapes.wire.createFlatSpiralWire\",\"customName\":\"create flat spiral wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"startRadius\":0.5,\"endRadius\":5,\"numTurns\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{},\"position\":[1143.7762077506823,290.70325704546104]},\"307bea8c538bbc14\":{\"id\":\"307bea8c538bbc14\",\"name\":\"bitbybit.vector.vectorXYZ\",\"customName\":\"vector xyz\",\"async\":false,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":true,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"x\":8,\"y\":0,\"z\":0},\"inputs\":{},\"position\":[1587.768691450028,458.8546759665349]}}}","version":"1.0.0-rc.0","type":"rete"}}
25+
script={{"script":"{\"id\":\"rete-v2-json\",\"nodes\":{\"2abca66d21efd2a2\":{\"id\":\"2abca66d21efd2a2\",\"name\":\"bitbybit.occt.shapes.wire.createHelixWire\",\"customName\":\"create helix wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"radius\":1,\"pitch\":1,\"height\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{\"center\":{\"connections\":[{\"node\":\"26d17aed24ceb170\",\"output\":\"result\",\"data\":{}}]}},\"position\":[706.0512890586609,285.8208999785649]},\"26d17aed24ceb170\":{\"id\":\"26d17aed24ceb170\",\"name\":\"bitbybit.vector.vectorXYZ\",\"customName\":\"vector xyz\",\"async\":false,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":true,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"x\":-8,\"y\":0,\"z\":0},\"inputs\":{},\"position\":[308.13724588203286,400.4410333929026]},\"389d488161c3075a\":{\"id\":\"389d488161c3075a\",\"name\":\"bitbybit.occt.shapes.wire.createTaperedHelixWire\",\"customName\":\"create tapered helix wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"startRadius\":2,\"endRadius\":0.5,\"pitch\":1,\"height\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{\"center\":{\"connections\":[{\"node\":\"307bea8c538bbc14\",\"output\":\"result\",\"data\":{}}]}},\"position\":[1983.3245178411435,306.0315773435569]},\"5963964013669860\":{\"id\":\"5963964013669860\",\"name\":\"bitbybit.occt.shapes.wire.createFlatSpiralWire\",\"customName\":\"create flat spiral wire\",\"async\":true,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":false,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"startRadius\":0.5,\"endRadius\":5,\"numTurns\":5,\"center\":[0,0,0],\"direction\":[0,1,0],\"clockwise\":false,\"tolerance\":0.0001},\"inputs\":{},\"position\":[1143.7762077506823,290.70325704546104]},\"307bea8c538bbc14\":{\"id\":\"307bea8c538bbc14\",\"name\":\"bitbybit.vector.vectorXYZ\",\"customName\":\"vector xyz\",\"async\":false,\"drawable\":true,\"data\":{\"genericNodeData\":{\"hide\":true,\"oneOnOne\":false,\"flatten\":0,\"forceExecution\":false},\"x\":8,\"y\":0,\"z\":0},\"inputs\":{},\"position\":[1587.768691450028,458.8546759665349]}}}","type":"rete"}}
2626
title="Regular helix, tapered helix and flat spiral examples"
2727
/>
2828
</TabItem>

0 commit comments

Comments
 (0)