[GiDlist] VRMLout and GiD6.3.0b

Moderator: GiD Team

Post Reply
Mark Smith

[GiDlist] VRMLout and GiD6.3.0b

Post by Mark Smith »

Answered my own question. The problem can be rectified by changing the
following lines in the VRMLout.bas file:

geometry
*if(I==1)
IndexedFaceSet {
*else

To:

geometry
*if(I==1)
IndexedFaceSet {
solid FALSE
*else

The solid FALSE shows both faces of the triangle elements so it doesn't
matter what way round they are.

My vrml viewer does not like files zipped with pkzip so use gzip instead
http://www.gzip.org/ and modify the bat file to contain the line (put
gzip.exe in the VRML problem type directory)

%3\gzip.exe -c %1.wrl %1.wrz

Regards
Mark



-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 29 April 2002 22:44
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] VRMLout and GiD6.3.0b


The VRML viewers only show the front face of the triangles, but not the back
face.

In GiD, you can swap group surface normals to force a desired orientation,
but if it is
desired view front and back it is necessary write two repeated triangles
with opposite normals?

I' unknow the VRML order to show the thwo faces.

Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: "Gidlist (E-mail)" gidlist at gatxan.cimne.upc.es
Sent: Monday, April 29, 2002 6:51 PM
Subject: [GiDlist] VRMLout and GiD6.3.0b


Dear GiDteam.
I downloaded the recent course notes and installed the VRMLout problem
type
but it seems that GiD orders the nodes of triangular elements in a way
which
is not 100% vrml IndexedFaceSet compatible (some elements appear
invisible) swapping the node ordering on certain elements solves the
problem.
I realise that the VRMLout was only an example problem type but any
suggestions about element renumbering would be helpful.
Regards
Mark



--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------
Enrique Escolano

[GiDlist] VRMLout and GiD6.3.0b

Post by Enrique Escolano »

Thanks
The GiD Courses Material are now updated with your answer.

Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, April 30, 2002 12:17 PM
Subject: RE: [GiDlist] VRMLout and GiD6.3.0b


Answered my own question. The problem can be rectified by changing the
following lines in the VRMLout.bas file:

geometry
*if(I==1)
IndexedFaceSet {
*else

To:

geometry
*if(I==1)
IndexedFaceSet {
solid FALSE
*else

The solid FALSE shows both faces of the triangle elements so it doesn't
matter what way round they are.

My vrml viewer does not like files zipped with pkzip so use gzip instead
http://www.gzip.org/ and modify the bat file to contain the line (put
gzip.exe in the VRML problem type directory)

%3\gzip.exe -c %1.wrl %1.wrz

Regards
Mark



-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 29 April 2002 22:44
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] VRMLout and GiD6.3.0b


The VRML viewers only show the front face of the triangles, but not the
back
face.

In GiD, you can swap group surface normals to force a desired orientation,
but if it is
desired view front and back it is necessary write two repeated triangles
with opposite normals?

I' unknow the VRML order to show the thwo faces.

Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: "Gidlist (E-mail)" gidlist at gatxan.cimne.upc.es
Sent: Monday, April 29, 2002 6:51 PM
Subject: [GiDlist] VRMLout and GiD6.3.0b


Dear GiDteam.
I downloaded the recent course notes and installed the VRMLout problem
type
but it seems that GiD orders the nodes of triangular elements in a way
which
is not 100% vrml IndexedFaceSet compatible (some elements appear
invisible) swapping the node ordering on certain elements solves the
problem.
I realise that the VRMLout was only an example problem type but any
suggestions about element renumbering would be helpful.
Regards
Mark



--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by
Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------



_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

Post Reply