ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: CreateVRMLFromString using VB
Sender: thirunavukkarasu.mg@gmail.com 24.04.07 21:08

Dear friends,
i'm writing a program which can understand the given 3d coordinate points and create shapes using coordindex. for a small number of coord points createVRMLFromString works fine. But when i'm reading the coord details from external file (file size may go upto 25MB)i'm appending the string statement till it reach the end of file, then i'm using CreateVRMLFromString to display it the browser. but when i'm appending it in the string it takes long time and memory. how to overcome this? Is there any other better methodology avaialble for this?

Ex:
open file1 for output as #1
do while not eof(1)
k=k+1
input #1,n1(k),n2(k),n3(k)
if s<>"" then
s1=s1&n1(k)&" " & n2(K)&" " &n3(k) & vbcrlf
else
s1=n1(k)&" " & n2(K)&" " &n3(k) & vbcrlf
end if

If CLOR <> "" Then
CLOR = CLOR & " " & 0.5 & " " & 0.7 & " " & 0.3 & "," & vbCrLf
Else
CLOR = 0.5 & " " & 0.7 & " " & 0.3 & "," & vbCrLf
End If
Next i
End If
.
.
.
.
s = "DEF ROOT Transform {translation 0 0 0 children Shape " & _
"{appearance Appearance {material Material {diffuseColor 0.753 0.753 0.753 emissiveColor 0.2 0.3 0.2}}" & _
"geometry IndexedFaceSet { solid FALSE " & _
"coord Coordinate {" & _
"point [" & S1 & "]}" & _
"color DEF Clr Color {" & _
"color [" & CLOR & "]} " & _
"colorPerVertex TRUE " & _
"normalPerVertex TRUE " & _
"coordIndex [" & CLORI & "] " & _
"}}}"

 


CreateVRMLFromString using VB / thirunavukkarasu.mg@gmail.com / 24.04.07 21:08

Messages in thread: 1


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.