Heilan X3D Browser

DeformableSphere

Type

ChildNode.

Description

A sphere which may be deformed by manipulating it's attributes. This is a test node for my final audiovisual instrument, hence the slightly counterintuitive attributes (they make more sense when considering the physical interface I'm designing for it).

Attributes

leftGrab SFFloat (input) 'Grabs' the left side of the sphere, an operation which modulates the other attributes.

rightGrab SFFloat (input) 'Grabs' the right side of the sphere, an operation which modulates the other attributes.

stretch SFFloat (input) When the grabs are 0, stretches the sphere along the x dimension. Otherwise changes the sculpting position (x-axis) of the left and/or right sides.

twist SFFloat (input) When the grabs are 0, twists the sphere around the x axis. Otherwise changes the sculpting position (rotating around the object) of the left and/or right sides.

leftSculpt SFFloat (input) When leftGrab is non-zero, controls the radius (from the sphere's centre) of the vertex at the current left sculpting position.

rightSculpt SFFloat (input) When rightGrab is non-zero, controls the radius (from the sphere's centre) of the vertex at the current right sculpting position.

Example Use

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE X3D>
<X3D profile="Full">
	<Scene>
		<NavigationInfo type="ANY" headlight="FALSE"/>

		<Transform DEF="temp" translation="0.0 0.0 -8.0">
			<DeformableSphere DEF="bob"/>
		</Transform>
	</Scene>
</X3D>