[BACK]Return to rotTransDragger.iv CVS log [TXT][DIR] Up to [Development] / inventor / apps / examples / Toolmaker / 08.Manips

File: [Development] / inventor / apps / examples / Toolmaker / 08.Manips / rotTransDragger.iv (download)

Revision 1.1.1.1 (vendor branch), Tue Aug 15 12:55:56 2000 UTC (17 years, 2 months ago) by naaman
Branch: sgi, MAIN
CVS Tags: start, release-2_1_5-9, release-2_1_5-8, release-2_1_5-10, HEAD
Changes since 1.1: +0 -0 lines

Initial check-in based on 2.1.5 (SGI IRIX) source tree.

#Inventor V2.0 ascii

# This is an example from the Inventor Toolmaker,
# chapter 8, example 13.
# 
# Geometry resource file for the RotTransDragger


# Geometry for the rotating parts.
DEF rotTransRotatorRotator Separator {
    Material { 
	diffuseColor  [ .05 .18 .125 ]
	emissiveColor [ .05 .18 .125 ]
    }
    DrawStyle { lineWidth 2 }
    Cylinder {
	radius 1.85
	height .15
	parts SIDES
    }
}

DEF rotTransRotatorRotatorActive Separator {
    Material { 
	diffuseColor  [ .05 .2025 .18 ]
	emissiveColor [ .05 .2025 .18 ]
    }
    DrawStyle { lineWidth 2 }
    Cylinder {
	radius 1.85
	height .15
	parts SIDES
    }
}

# Do not display the axis feedback used
# by the cylinder manips.
DEF rotTransRotatorFeedback Separator {
}
DEF rotTransRotatorFeedbackActive Separator {
}

DEF rotTransTranslatorTranslator Separator {
    Material { diffuseColor .6 .6 .6 }
    DrawStyle { style LINES }
    Sphere {
	radius 1.732
    }
}

DEF rotTransTranslatorTranslatorActive Separator {
    Material { diffuseColor .6 .6 0 }
    DrawStyle { style LINES }
    Sphere {
	radius 1.732
    }
}

# Don't show anything for feedback during inactive state
DEF rotTransTranslatorFeedback Separator {
}

DEF rotTransTranslatorFeedbackActive Separator {
    Material { diffuseColor .5  .9 .9 }
    # An arrow aligned with the x axis.
    RotationXYZ {
	axis Z
	angle 1.57079
    }
    Separator {

	#stick
	Cylinder { height 4.0 radius 0.05 }

	#left arrowhead
	Translation { translation 0 2.2 0 }
	Cone { height 0.4 bottomRadius 0.2 }

	#right arrowhead
	Translation { translation 0 -4.4 0 }
	RotationXYZ { axis Z angle 3.14159 }
	Cone { height 0.4 bottomRadius 0.2 }
   }
}