comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Direct->Object Graphics Help!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Direct->Object Graphics Help! [message #30489] Tue, 30 April 2002 14:25
Muks Raju is currently offline  Muks Raju
Messages: 6
Registered: April 2002
Junior Member
Hello
I have been given a program which draws some 3D figures using
direct graphics..using Shade_Volume and then PolyShade. Now I need to
get the 3D model into a VRML file so i need to use object graphics.
Could anyone tell me if the following is right ....v is the array of
vertices and p the array of polygons obtained from Shade_Volume.

myobj = OBJ_NEW('IDLgrPolygon',v,POLYGON=p)
oModel = OBJ_NEW('IDLgrModel')
oView = OBJ_NEW('IDLgrView')
oWin = OBJ_NEW('IDLgrWindow')
oModel->Add, myobj
oView->Add, oModel
oWin->draw,oView

ovrml = OBJ_NEW('IDLgrVRML',FILENAME='solar.wrl',QUALITY=2)
ovrml->Draw,oview

Thank you very much in advance for any help you can provide or any hints
towards a better way to do this.

Regards

Muks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: antialiased image from IDLgrWindow::Read() ??
Next Topic: sec : U Re: Memory Leakage......(I think)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 23:19:23 PDT 2025

Total time taken to generate the page: 0.63997 seconds