Bitbybit runner cube example in Blockly

Bitbybit runner cube example in Blockly script details
Type
Blockly logo image
blockly
App Version
0.15.13
Visibility
public
Date Created
Jul 21, 2024, 2:43:48 PM
Last Edit Date
Jul 22, 2024, 12:42:32 PM

Script Details

The Code
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="_DJUCx+SE9SH3xGN1yo-">size</variable> <variable id="K],h0m5CA/p:@(d}jL)q">cubeMesh</variable> </variables> <block type="variables_set" id="TpuuxC2nOh~F5q=5c4{i" x="939" y="-298"> <field name="VAR" id="_DJUCx+SE9SH3xGN1yo-">size</field> <value name="VALUE"> <block type="bitbybit.runner.getRunnerInputValue" id="T}wb0d1H1WU4~rHqU6Z8"> <value name="Property"> <block type="text" id="))|_yz$OaS^UU8kI5r!$"> <field name="TEXT">size</field> </block> </value> </block> </value> <next> <block type="controls_if" id="gBOREBm4^D%21f7g2GAr"> <value name="IF0"> <block type="logic_negate" id="a!54OP*F+/vyHMT(6!p]"> <value name="BOOL"> <block type="variables_get" id="U=1tRyc6cG3CN^7f:1E+"> <field name="VAR" id="_DJUCx+SE9SH3xGN1yo-">size</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="!XXE^VXr*QcV3b?1sX8e"> <field name="VAR" id="_DJUCx+SE9SH3xGN1yo-">size</field> <value name="VALUE"> <block type="math_number" id="*!g;!/N-XM^`?17ANEcw"> <field name="NUM">1</field> </block> </value> </block> </statement> <next> <block type="variables_set" id="glmyDYydQL2=ex8bMhvA"> <field name="VAR" id="K],h0m5CA/p:@(d}jL)q">cubeMesh</field> <value name="VALUE"> <block type="base_time_await_return" id="H9k.WKw7O5?dsysdzRg?"> <value name="Promise"> <block type="bitbybit.draw.drawAnyAsync" id="3n^@/8zZXkRWbQFt?[(m"> <value name="Entity"> <block type="bitbybit.occt.fillets.filletEdges" id="6-?FxF/TH`00-Uh|_T12"> <value name="Shape"> <block type="bitbybit.occt.shapes.solid.createCube" id="NjKMI;:*GYJ2).3M?yj6"> <value name="Size"> <block type="variables_get" id="#GiqH1I-B|FAwr$O]yuQ"> <field name="VAR" id="_DJUCx+SE9SH3xGN1yo-">size</field> </block> </value> <value name="Center"> <block type="bitbybit.point.pointXYZ" id="..HOv-y|X^q[[1Ktwe5h"> <value name="X"> <block type="math_number" id="1k7i]oML(;2VOAJbhqad"> <field name="NUM">0</field> </block> </value> <value name="Y"> <block type="math_number" id="T4v#wdY({5vgxbLkK,3V"> <field name="NUM">0</field> </block> </value> <value name="Z"> <block type="math_number" id=",U4KG,+W|/G8$!Z*7WNe"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <value name="Radius"> <block type="math_number" id="T4X)S])jP[|ZQX$Ghya4"> <field name="NUM">0.4</field> </block> </value> </block> </value> <value name="Options"> <block type="bitbybit.draw.optionsOcctShapeSimple" id="D6NqR%pIp.xzBt?@?tV4"> <value name="Precision"> <block type="math_number" id="+gI|`k);rE#Q5p/2)9aE"> <field name="NUM">0.005</field> </block> </value> <value name="DrawFaces"> <block type="logic_boolean" id="6v},po.Bo3pTR=AliWmO"> <field name="BOOL">TRUE</field> </block> </value> <value name="FaceColour"> <block type="colour_picker" id="-9c[v3QN;=c):0z_,nQv"> <field name="COLOUR">#000099</field> </block> </value> <value name="DrawEdges"> <block type="logic_boolean" id="yKIqn0u8[sSMp}7/)/R}"> <field name="BOOL">TRUE</field> </block> </value> <value name="EdgeColour"> <block type="colour_picker" id="XDSFsc*R[}bp:+5axLbf"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="EdgeWidth"> <block type="math_number" id="*g6LsjH2*-fg=lAr9Gx*"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="bitbybit.runner.setRunnerResultValue" id="#sP(;i?@t;x-M0rw:m)B"> <value name="Value"> <block type="variables_get" id="{BLbxT(e#=Ta`*:wPXW,"> <field name="VAR" id="K],h0m5CA/p:@(d}jL)q">cubeMesh</field> </block> </value> <value name="Property"> <block type="text" id=",@UKLQBJ|:iH-=2p|4tW"> <field name="TEXT">cubeMesh</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </xml>