Difference solids

Difference solids script details
Author
matas
Type
Blockly logo image
blockly
App Version
0.14.4
Visibility
public
Date Created
Feb 23, 2024, 5:22:16 PM
Last Edit Date
Feb 23, 2024, 5:24:42 PM

Script Details

The Code
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="l5/.Vj:-%/7j#Mp-KG-{">box</variable> <variable id="$,ptpAm%U=h@sH/96hTi">sphere</variable> <variable id="OE@k$FUN36JWm^coa`u~">cylinder</variable> </variables> <block type="variables_set" id="I`U?.]|X:A}`{)9SZ{x)" x="-418" y="-1317"> <field name="VAR" id="l5/.Vj:-%/7j#Mp-KG-{">box</field> <value name="VALUE"> <block type="bitbybit.occt.shapes.solid.createBox" id="5`S[E1UCYhl/VS=Q_P3V"> <value name="Width"> <block type="math_number" id="7(tS5YiaFY)fP]z2Gy=?"> <field name="NUM">5</field> </block> </value> <value name="Length"> <block type="math_number" id="~=,]X^toALK]n=W5H/n6"> <field name="NUM">8</field> </block> </value> <value name="Height"> <block type="math_number" id="XLQ:AgP*MiE5595Jr+$p"> <field name="NUM">5</field> </block> </value> <value name="Center"> <block type="bitbybit.point.pointXYZ" id="Y/U#if|`(h@*w+aoJIMD"> <value name="X"> <block type="math_number" id="o/K86r3y:)#H|7j6N;iA"> <field name="NUM">0</field> </block> </value> <value name="Y"> <block type="math_number" id="d-.7A/[qU(RsaV,;/m-{"> <field name="NUM">0</field> </block> </value> <value name="Z"> <block type="math_number" id="nL5w|xi%EwUrI{_U(52!"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="!,ejK/hPJ+UxE]^uKecE"> <field name="VAR" id="$,ptpAm%U=h@sH/96hTi">sphere</field> <value name="VALUE"> <block type="bitbybit.occt.shapes.solid.createSphere" id="28j-evJlfTTT_ZJmBVLr"> <value name="Radius"> <block type="math_number" id="N@e4Q8YX*1k$o$Z()Q2*"> <field name="NUM">3</field> </block> </value> <value name="Center"> <block type="bitbybit.point.pointXYZ" id="Fbgp45mPsf0OTLC3-7Fn"> <value name="X"> <block type="math_number" id="*g!LWGj[~,1vLsf5~/mM"> <field name="NUM">-1.5</field> </block> </value> <value name="Y"> <block type="math_number" id="S*l,er@XNSxuiM;Y;pxe"> <field name="NUM">1.5</field> </block> </value> <value name="Z"> <block type="math_number" id="?)e:0Uw;CEMpaw*=blg0"> <field name="NUM">-5</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="KCGdMO`WfJZHOr*}E,CQ"> <field name="VAR" id="OE@k$FUN36JWm^coa`u~">cylinder</field> <value name="VALUE"> <block type="bitbybit.occt.shapes.solid.createCylinder" id="(I3!-TyrzZ,@rr%0^e%^"> <value name="Radius"> <block type="math_number" id="HN.G4scLmzR;eUlv;$b]"> <field name="NUM">3</field> </block> </value> <value name="Height"> <block type="math_number" id="?)K2.6HH4Z~9h%Y.7;/-"> <field name="NUM">7</field> </block> </value> <value name="Center"> <block type="bitbybit.point.pointXYZ" id="-YxXPEHvRmNp+rF~=rem"> <value name="X"> <block type="math_number" id="^D@@@d5uZk%)PW#:RXd:"> <field name="NUM">3</field> </block> </value> <value name="Y"> <block type="math_number" id="}/a}|-Q#ORM7W~Y|zY1P"> <field name="NUM">0</field> </block> </value> <value name="Z"> <block type="math_number" id="I5xl{Y+)!j~^`(I4RQLB"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="Direction"> <block type="bitbybit.vector.vectorXYZ" id="p=#w%c@Hiz;%o|N%oR[A"> <value name="X"> <block type="math_number" id="60#8mXW%AOPaR%QE6$T^"> <field name="NUM">0</field> </block> </value> <value name="Y"> <block type="math_number" id="h15Rui?{Id@b6bKC.=_B"> <field name="NUM">1</field> </block> </value> <value name="Z"> <block type="math_number" id=".-c62k/j-E2;2KdmAgJq"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <next> <block type="bitbybit.draw.drawAnyAsyncNoReturn" id="UO^K1-FNciNjT{DsaF2S"> <value name="Entity"> <block type="bitbybit.occt.booleans.difference" id="4D0=3FaNd$f/J^Db+vU)"> <value name="Shape"> <block type="variables_get" id="b?gv83]7nG5Tmdy;-{U6"> <field name="VAR" id="l5/.Vj:-%/7j#Mp-KG-{">box</field> </block> </value> <value name="Shapes"> <block type="lists_create_with" id="z*}swV`%[FwIlXV-kXlO"> <mutation items="2"> </mutation> <value name="ADD0"> <block type="variables_get" id=")7Z7.=wG=Af3dh[5#9O["> <field name="VAR" id="OE@k$FUN36JWm^coa`u~">cylinder</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="ZsBN:h[2m.;_qIl2joB;"> <field name="VAR" id="$,ptpAm%U=h@sH/96hTi">sphere</field> </block> </value> </block> </value> <value name="KeepEdges"> <block type="logic_boolean" id="dQd]Z,sZV2Pr*BP+NgJ$"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </xml>