[GiDlist] Special need for normals to surface at a specific

Dear GiD Team,
I need to write in my .dat file the normals to many surfaces at many different points.
Any point lays exactly on a specific surface because all nodes have been obtained using something like:


GiD_Process MEscape Geometry Create IntSurfLine $i $j Mescape

In this way, in the GiD database, the node belongs only to the line intersecting the surface and not to the surface itself.
If now I use the command:

set uv [GiD_Info parametric surface $surface_id uv_fromcoord $x $y $z]

(where x, y and z are the point coordinates) in many cases I get an answer (u,v values) even if the node is DOES NOT LAY on the surface given with $surface_id.
Is there any way to find if a node lays (belongs to) on a surface, in order to filter the uv requests only for the right surface?

Thanks for any suggestion.

Best regards,

Andrea Calaon

R&D - Dalmine - Rolling Technology

via Levate, 2
24044 Dalmine fraz. Sabbio Bergamasco (BG),
Italy

Office: +39 (035) 560 4079

I do not know exactly what you want to do with your normals.
In any case, I recommend you to check more closely all the “local
axes” infrastructure in GiD. It is quite powerful and works with
the concept of axes orthogonal to the surface at every point.

Regards,


Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com ramsan at compassis.com
c/ Tuset, 8 7-2 tel. +34 93 218 19 89
08006 Barcelona, Spain fax. +34 93 396 97 46

En Tue, 22 May 2007 16:16:46 +0200, CALAON Andrea Dalmine R&D
acalaon at dalmine.it escribió:

Dear GiD Team,
I need to write in my .dat file the normals to many surfaces at many
different points.
Any point lays exactly on a specific surface because all nodes have been
obtained using something like:

GiD_Process MEscape Geometry Create IntSurfLine $i $j Mescape

In this way, in the GiD database, the node belongs only to the line
intersecting the surface and not to the surface itself.
If now I use the command:
set uv [GiD_Info parametric surface $surface_id uv_fromcoord $x $y $z]
(where x, y and z are the point coordinates) in many cases I get an
answer (u,v values) even if the node is DOES NOT LAY on the surface
given with $surface_id.
Is there any way to find if a node lays (belongs to) on a surface, in
order to filter the uv requests only for the right surface?
Thanks for any suggestion.
Best regards,
Andrea Calaon
R&D - Dalmine - Rolling Technology
via Levate, 2
24044 Dalmine fraz. Sabbio Bergamasco (BG),
Italy
Office: +39 (035) 560 4079


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_

\

Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com ramsan at compassis.com
c/ Tuset, 8 7-2 tel. +34 93 218 19 89
08006 Barcelona, Spain fax. +34 93 396 97 46

Hi,

As you said, uv_fromcoord try to find the u,v of the surface that minimize the distance to the specified point, also if this point
is not on the surface. You can check the distance from the point to the surface point to decide if it is on the surface with your
tolerance.


To knon the surface number, you can assign a condition with an special #FUNC# field , something like this

QUESTION: SurfaceNum#FUNC#(NumEntity)
VALUE: 0

When transfering this condition to mesh entities, this field will store the identifier number of the source geometric entity

Enrique


----- Original Message -----
From: “Ramon Ribó” ramsan at compassis.com
To: gidlist at gatxan.cimne.upc.edu
Sent: Tuesday, May 22, 2007 4:30 PM
Subject: Re: [GiDlist] Special need for normals to surface at a specific point



I do not know exactly what you want to do with your normals.
In any case, I recommend you to check more closely all the "local
axes" infrastructure in GiD. It is quite powerful and works with
the concept of axes orthogonal to the surface at every point.
Regards,

Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com ramsan at compassis.com
c/ Tuset, 8 7-2 tel. +34 93 218 19 89
08006 Barcelona, Spain fax. +34 93 396 97 46
En Tue, 22 May 2007 16:16:46 +0200, CALAON Andrea Dalmine R&D
acalaon at dalmine.it escribió:
Dear GiD Team,
I need to write in my .dat file the normals to many surfaces at many
different points.
Any point lays exactly on a specific surface because all nodes have been
obtained using something like:

GiD_Process MEscape Geometry Create IntSurfLine $i $j Mescape

In this way, in the GiD database, the node belongs only to the line
intersecting the surface and not to the surface itself.
If now I use the command:
set uv [GiD_Info parametric surface $surface_id uv_fromcoord $x $y $z]
(where x, y and z are the point coordinates) in many cases I get an
answer (u,v values) even if the node is DOES NOT LAY on the surface
given with $surface_id.
Is there any way to find if a node lays (belongs to) on a surface, in
order to filter the uv requests only for the right surface?
Thanks for any suggestion.
Best regards,
Andrea Calaon
R&D - Dalmine - Rolling Technology
via Levate, 2
24044 Dalmine fraz. Sabbio Bergamasco (BG),
Italy
Office: +39 (035) 560 4079


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_



Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com ramsan at compassis.com
c/ Tuset, 8 7-2 tel. +34 93 218 19 89
08006 Barcelona, Spain fax. +34 93 396 97 46


GiDlist mailing list
GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist_