magneticlines_exp.x3d

来自「matlab aamtool box」· X3D 代码 · 共 58 行

X3D
58
字号
<Group>
  <Shape>
    <Appearance>
      <Material emissiveColor="1 0 0"/>
      <MagneticSurface stiffness="0.3"/>
    </Appearance>
    <LineSet DEF="LINESET" vertexCount="2, 3">
      <Coordinate point="0.1 0.1 0, 0.1 -0.1 0, -0.1 -0.1 0, -0.1 0.1 0, 1 1 1"/> 
    </LineSet>
  </Shape>


  <!--Shape>
    <Appearance>
      <Material />
      <MagneticSurface />
    </Appearance>
    <IndexedLineSet
         coordIndex="2 1 0 3 2 -1
                      " >
      <Color
          color=".2 .2 .2
                   .2 .2 .2
                   .8 .2 .8
                   .8 .2 .8
                   .8 .2 .2
                   .8 .2 .2
                   .8 .2 .2
                   .8 .2 .2" />
      <Coordinate
          point="-0.30   0.37   0.60
                     +0.30  -0.37  -0.60
                     +2.07  -0.31  -0.50
                     -2.07   0.31   0.50
                     +0.03  -0.10   1.52
                     +0.03   1.41   0.58
                     -0.03   0.10  -1.52
                     -0.03  -1.41  -0.58" />
    </IndexedLineSet>
  </Shape-->

  <Shape>
    <Appearance>
      <Material emissiveColor="0 0 1"/>
      <MagneticSurface stiffness="0.9"/>
    </Appearance>
    <SpherePointSet DEF="POINTSET">
      <Coordinate point="0.1 0.1 0, 0.1 -0.1 0, -0.1 -0.1 0, -0.1 0.1 0, 1 1 1"/>
    </SpherePointSet>

  </Shape>
  
  <ROUTE
      fromNode="LINESET" fromField="coord"
      toNode="POINTSET" toField="coord" />
  

</Group>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?