home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "02_02 Engine Spin"
- ClientHeight = 4620
- ClientLeft = 915
- ClientTop = 1230
- ClientWidth = 5820
- Height = 4995
- Left = 855
- LinkTopic = "Form1"
- ScaleHeight = 4620
- ScaleWidth = 5820
- Top = 915
- Width = 5940
- Begin TgsVisual3SpaceLibCtl.V3Space V3Space1
- Height = 4575
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 5775
- _Version = 131072
- _ExtentX = 10186
- _ExtentY = 8070
- _StockProps = 0
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Form_Initialize()
- Call V3Space1.deleteSceneGraph
- Dim root As SoSeparator
- Dim myRotXYZ As SoRotationXYZ
- Set root = New SoSeparator
- Set myRotXYZ = New SoRotationXYZ
- 'VB doesn't support OLE Types ???
- Call myRotXYZ.axis.setValue(0)
- Call root.addChild(myRotXYZ)
- Dim myMaterial As SoMaterial
- Dim color As SbVec3f
- Set myMaterial = New SoMaterial
- Set color = New SbVec3f
- Call color.setValue(1#, 0#, 0#)
- Call myMaterial.diffuseColor.setValueColor(color)
- Call root.addChild(myMaterial)
- Dim myCone As SoCone
- Set myCone = New SoCone
- Call root.addChild(myCone)
- Dim myCounter As SoElapsedTime
- Dim engineOut As SoEngineOutput
- Set myCounter = New SoElapsedTime
- Set engineOut = myCounter.timeout
- Call myRotXYZ.angle.connectFromEngine(engineOut)
- Call V3Space1.setSceneRoot(root)
- Call V3Space1.setDecorations(False)
- Call V3Space1.viewAll
- End Sub
-