'This example creates a new primitive
newscene
dim nurbssphere, meshsphere
'Create a nurbs sphere and name it aSphere. Assign to variable nurbssphere
set nurbssphere = CreatePrim( "Sphere", "NurbsSurface", "aSphere" )
'Create a mesh sphere and name it bSphere. Assign to variable meshsphere.
'Make bSphere child of aSphere
set meshsphere = CreatePrim( "Sphere", "MeshSurface", "bSphere", "aSphere" )
'Logged information:
'INFO : "Sphere information: X3DObject polymsh"
logmessage "Sphere information: " & typename( meshsphere) & " " & meshsphere.type |