正方体打洞的立体几何构造
2021-11-03 13:01
本范例演示了如何在正方体内部进行打洞的立体几何构造。通过使用 GeoGebra 的 Sequence 命令以及线段和参数控制,动态展示了正方体被挖去部分体积后的空间结构。该模型有助于直观理解三维空间中的几何体切割、体积变化以及复杂多面体的拓扑结构,适合立体几何教学与空间想象力训练。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.672.0" app="classic" platform="w" id="eaa39136-9b5b-42c6-9303-8bd9b95edc30" xsi:noNamespaceSchemaLocation="https://ggb123.cn/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="800" height="600" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.43" orientation="1" />
</panes>
<views>
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 | 1009 || 6" visible="false" inframe="false" stylebar="false" location="1,3,3" size="300" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="false" location="3" size="344" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="615" tab="ALGEBRA" window="100,100,250,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="300" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="300" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="128" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1" size="357" window="100,100,700,550" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="900" window="50,50,500,500" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 51 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 , 538 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="true" inframe="false" stylebar="false" location="1" size="448" window="100,100,600,400" />
</views>
<toolbar show="true" items="0 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="false" cmd="true" top="false" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="16"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="344" height="547"/>
<coordSystem xZero="526.2082974106092" yZero="396.7758999926821" scale="49.760655132050346" yscale="49.76065513205035"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<kernel>
<uses3D val="true"/>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="3"/>
<angleUnit val="degree"/>
<algebraStyle val="3" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<euclidianView3D>
<coordSystem xZero="-1.9572174125528319" yZero="-1.13" zZero="-1.5000000000000002" scale="42.860678915374635" xAngle="20" zAngle="-60"/>
<evSettings axes="false" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" gridType="3"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="2" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<plate show="false"/>
<bgColor r="255" g="255" b="255"/>
<clipping use="false" show="false" size="1"/>
<projection type="0"/>
</euclidianView3D>
<construction title="正方体打洞" author="" date="">
<element type="numeric" label="t">
<value val="3"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0" max="3" width="4" x="-9.168052474388944" y="5.140123242226756" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
<caption val="层数"/>
</element>
<command name="Sequence">
<input a0="Sequence[Sequence[Cube[(p, 3 - j, i), (p + 1, 3 - j, i), (p + 1, 4 - j, i)], p, 0, 3], j, 0, t]" a1="i" a2="0" a3="3"/>
<output a0="l1" randomResult="{{{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}}, {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}}, {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}}, {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}}}"/>
</command>
<element type="list" label="l1">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.85"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Cube[(1, 3 - j, 1), (2, 3 - j, 1), (2, 4 - j, 1)]" a1="j" a2="0" a3="t"/>
<output a0="l2" randomResult="{1, 1, 1, 1}"/>
</command>
<element type="list" label="l2">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="1"/>
<layer val="1"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Cube[(1, 3 - j, 2), (2, 3 - j, 2), (2, 4 - j, 2)]" a1="j" a2="0" a3="t"/>
<output a0="l3" randomResult="{1, 1, 1, 1}"/>
</command>
<element type="list" label="l3">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="1"/>
<layer val="1"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Cube[(2, 3 - j, 2), (3, 3 - j, 2), (3, 4 - j, 2)]" a1="j" a2="0" a3="t"/>
<output a0="l4" randomResult="{1, 1, 1, 1}"/>
</command>
<element type="list" label="l4">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="1"/>
<layer val="1"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Cube[(1, 2, i), (2, 2, i), (2, 3, i)]" a1="i" a2="0" a3="3"/>
<output a0="l5" randomResult="{1, 1, 1, 1}"/>
</command>
<element type="list" label="l5">
<show object="true" label="false" ev="4"/>
<condition showObject="t ≥ 1"/>
<objColor r="0" g="0" b="255" alpha="1"/>
<layer val="1"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Cube[(i, 1, 2), (i + 1, 1, 2), (i + 1, 2, 2)]" a1="i" a2="0" a3="3"/>
<output a0="l6" randomResult="{1, 1, 1, 1}"/>
</command>
<element type="list" label="l6">
<show object="true" label="false" ev="4"/>
<condition showObject="t ≥ 2"/>
<objColor r="0" g="0" b="255" alpha="1"/>
<layer val="1"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="63" y="206"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetViewDirection[Vector[(0,1,0)]]"/>
<font serif="false" sizeM="2" size="16" style="0"/>
<caption val="主视图"/>
</element>
</construction>
</geogebra>