Magnetic lines
From H3D.org
This example shows the use of MagneticSurface.
<!!-- magneticlines.x3d --> <Group> <Shape> <Appearance> <Material emissiveColor="1 0 0"/> <MagneticSurface /> </Appearance> <LineSet vertexCount="4"> <Coordinate point="0.1 0.1 0, 0.1 -0.1 0, -0.1 -0.1 0, -0.1 0.1 0"/> <HapticsOptions maxDistance="0.15" /> </LineSet> </Shape> </Group>
We create a Shape with LineSet to model the lines in our program. To simulate magnetic lines, we merely add the MagneticSurface node in Appearance.
[edit]

