No subject

Moderator: GiD Team

Post Reply
Guest

No subject

Post by Guest »

coordinates v, must use
=20
set normal [GiD_Info parametric surface surface_id normal v]
=20
To know the u,v parameters of a point with coordinates x y z =
(located on the surface), must use
set uv [GiD_Info parametric surface surface_id uv_fromcoord x y =
z]
=20
Read GiD help about Cutomization-Tcl/Tk extension-Control =
functions-Info function
=20
As user, you can also know the normal of the surface on a point from the =
menu
Utilities-Id=20
then click the righ mouse button ,and select in the contextual menu =
"Normal in surface"
and click the desired point on a surface. The normal x y z will be =
shown in the lower message bar
=20
Regards

Enrique=20
=20
=20
----- Original Message -----=20
From: "CALAON Andrea Dalmine R&D" acalaon at dalmine.it =
mailto:acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu mailto:gidlist at gatxan.cimne.upc.edu =

Sent: Tuesday, May 15, 2007 9:21 PM
Subject: [GiDlist] Surface normals at any point


Dear GiD Team,
I need the normal to a surface (NURBS in general), at a point that
clearly is on the surface itself (the point is obtained as an
intersection between the surface and a line). Is there any way to =
obtain
from the GiD database through Tcl such information? I have seent that
for parametric surfaces this has been implemented.
=20
Best regards
=20
Andrea
=20
_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es mailto:GiDlist at gid.cimne.upc.es=20
http://gid.cimne.upc.es/mailman/listinfo/gidlist =
http://gid.cimne.upc.es/mailman/listinfo/gidlist =20


------_=_NextPart_001_01C797B1.E373C95D
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"
META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR
STYLE/STYLE
/HEAD
BODY
DIV dir=3Dltr align=3DleftSPAN class=3D625344711-16052007FONT =
face=3DArial=20
color=3D#0000ffYes, for parametric surfaces I would use somethig like =
this=20
code:/FONT/SPAN/DIV
DIV dir=3Dltr align=3DleftSPAN class=3D625344711-16052007FONT =
face=3DArial=20
color=3D#0000ff/FONT/SPAN /DIV
DIV dir=3Dltr align=3DleftSPAN class=3D625344711-16052007FONT =
face=3DArial=20
color=3D#0000ffset surface_id 10 .../FONT/SPAN/DIV
DIV dir=3Dltr align=3DleftSPAN class=3D625344711-16052007FONT =
face=3DArial=20
color=3D#0000ffset node_number 6 ...BRset xyz [lindex [GiD_Info=20
Coordinates $node_number geometry] 0]/FONT/SPAN/DIV
DIV dir=3Dltr align=3DleftSPAN class=3D625344711-16052007FONT =
face=3DArial=20
color=3D#0000ffset uv [GiD_Info parametric surface $surface_id =
uv_fromcoord=20
$xyz]BRputs $fout "normal: [GiD_Info parametric surface $surface_id =
normal=20
$uv]"/FONT/SPAN/DIV!-- Converted from text/rtf format --
PSPAN lang=3DitSPAN class=3D625344711-16052007FONT =
face=3DArialBut for NON=20
PARAMETRIC surfaces, is there any way to get the normal form=20
Tcl?/FONT/SPAN/SPAN/P
PSPAN lang=3DitFONT face=3DArial color=3D#0000ffSPAN=20
class=3D625344711-16052007Thanks/SPAN/FONT/SPAN/P
PSPAN lang=3DitAndrea /SPAN/P
DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft
HR tabIndex=3D-1
FONT face=3DTahoma size=3D2BFrom:/B =
gidlist-admin at gatxan.cimne.upc.edu=20
[mailto:gidlist-admin at gatxan.cimne.upc.edu] BOn Behalf Of /BPUB: =
Enrique=20
EscolanoBRBSent:/B mercoled=EC 16 maggio 2007 6.19BRBTo:/B=20
gidlist at gatxan.cimne.upc.eduBRBSubject:/B Re: [GiDlist] Surface =
normals at=20
any pointBR/FONTBR/DIV
DIV/DIV
DIVFONT face=3DArial size=3D2Hello Andrea,/FONT/DIV
DIVFONT face=3DArial size=3D2/FONT /DIV
DIVFONT face=3DArial size=3D2From Tcl, to know the normal of the =
surface=20
<surface_id> at parametric coordinates <u> <v>, must=20
use/FONT/DIV
DIVFONT face=3DArial size=3D2/FONT&nbsp;/DIV
DIVFONT face=3DArial color=3D#0000ff size=3D2set normal [GiD_Info =
parametric=20
surface <surface_id>&nbsp;normal <u> <v>]/FONT/DIV
DIVFONT face=3DArial size=3D2/FONT&nbsp;/DIV
DIVFONT face=3DArial size=3D2To know the u,v parameters of a point =
with=20
coordinates <x> <y> <z> (located on the surface), must =

use/FONT/DIV
DIVFONT face=3DArial color=3D#0000ff size=3D2set uv [GiD_Info =
parametric surface=20
<surface_id>&nbsp;uv_fromcoord <x> <y> =
<z>]/FONT/DIV
DIVFONT face=3DArial size=3D2/FONT&nbsp;/DIV
DIVFONT face=3DArial size=3D2Read GiD help =
about&nbsp;Cutomization->Tcl/Tk=20
extension->Control functions->Info functionBR&nbsp;/FONT/DIV
DIVFONT face=3DArial size=3D2As&nbsp;user, you can&nbsp;also know =
the normal of=20
the surface on a point from the menuBRUtilities->Id /FONT/DIV
DIVFONT face=3DArial size=3D2then click the righ mouse button ,and =
select in the=20
contextual menu "Normal in surface"BR&nbsp;and click&nbsp;the=20
desired&nbsp;point on a surface. The normal x y z will&nbsp;be =
shown&nbsp;in=20
the&nbsp;lower message barBR&nbsp;/FONT/DIV
DIVFONT face=3DArial size=3D2Regards/FONT/DIV
DIVBRFONT face=3DArial =
size=3D2Enrique&nbsp;BR&nbsp;/FONT/DIV
DIVFONT face=3DArial size=3D2/FONT&nbsp;/DIV
DIVFONT face=3DArial size=3D2----- Original Message ----- /FONT
DIVFONT face=3DArial size=3D2From: "CALAON Andrea Dalmine R&D" =
</FONTA=20
href=3D"mailto:acalaon at dalmine.it"FONT face=3DArial=20
size=3D2acalaon at dalmine.it/FONT/AFONT face=3DArial =
size=3D2>/FONT/DIV
DIVFONT face=3DArial size=3D2To: </FONTA=20
href=3D"mailto:gidlist at gatxan.cimne.upc.edu"FONT face=3DArial=20
size=3D2gidlist at gatxan.cimne.upc.edu/FONT/AFONT face=3DArial=20
size=3D2>/FONT/DIV
DIVFONT face=3DArial size=3D2Sent: Tuesday, May 15, 2007 9:21 =
PM/FONT/DIV
DIVFONT face=3DArial size=3D2Subject: [GiDlist] Surface normals at =
any=20
point/FONT/DIV/DIV
DIVFONT face=3DArialBRFONT size=3D2/FONT/FONT/DIVFONT =
face=3DArial=20
size=3D2> Dear GiD Team,BR> I need the normal to a surface =
(NURBS in=20
general), at a point thatBR> clearly is on the surface itself (the =
point is=20
obtained as anBR> intersection between the surface and a line). Is =
there=20
any way to obtainBR> from the GiD database through Tcl such =
information? I=20
have seent thatBR> for parametric surfaces this has been=20
implemented.BR> BR> Best regardsBR> BR> =
AndreaBR>=20
BR> _______________________________________________BR> GiDlist =
mailing=20
listBR> /FONTA href=3D"mailto:GiDlist at gid.cimne.upc.es"FONT =
face=3DArial=20
size=3D2GiDlist at gid.cimne.upc.es/FONT/ABRFONT face=3DArial =
size=3D2>=20
/FONTA =
href=3D"http://gid.cimne.upc.es/mailman/listinfo/gidlist"FONT=20
face=3DArial =
size=3D2a href="http://gid.cimne.upc.es/mailman/listinf ... ONT/a/A=20
/BODY/HTML


------_=_NextPart_001_01C797B1.E373C95D--
Post Reply