<?xml version="1.0" encoding="utf-8"?>
<geocube version="3.0.5">

<Scene>
	<WorldInfo title="Section de cube par un plan."/>
	<Viewpoint description="vue par défaut" ypr="pi/8 pi/8 0" scale=".7"/>

	<IndexedFaceSet DEF="cube" coordIndex="0 1 2 3 -1, 2 3 7 6 -1, 7 6 5 4 -1, 5 4 0 1 -1, 0 3 7 4 -1, 1 2 6 5">
		<Coordinate point="0 0 0, 1 0 0, 1 1 0, 0 1 0, 0 0 1, 1 0 1, 1 1 1, 0 1 1" />
		<ColorRGBA color="1 1 1 0" />
	</IndexedFaceSet>

	<Line points="0 0 0, 0 0 1" visible="false">
		<Point DEF="A" position="1">
			<Label text="A"/>
		</Point>
	</Line>

	<Line points="0 0 0, 1 0 0" visible="false">
		<Point DEF="B" position=".5">
			<Label text="B"/>
		</Point>
	</Line>

	<Line points="0 0 0, 0 1 0" visible="false">
		<Point DEF="C" position="1.5">
			<Label text="C"/>
		</Point>
	</Line>

	<Plane DEF="P" points="A B C" />

	<Intersection node1="P" node2="cube">
		<IndexedFaceSet>
			<ColorRGBA color="1 .2 .2 1" />
		</IndexedFaceSet>
	</Intersection>

	<Line points="0 0 0, A" type="segment"/>
	<Line points="0 0 0, B" type="segment"/>
	<Line points="0 0 0, C" type="segment"/>
	<Line points="A B" type="segment"/>
	<Line points="B C" type="segment"/>
	<Line points="A C" type="segment"/>
</Scene>
</geocube>