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

I described my problem with wrong words. I need only GEOMETRICAL info, and I wrongly used the word “node” instead of “point”. Sorry for the gross mistake.
I need to know if a POINT belongs to a surface in order to limit the use of uv_fromcoord to points that belong to the surface.
Regards
Andrea

-----Original Message-----
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: martedì 22 maggio 2007 12.10
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Special need for normals to surface at a specific point

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_


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

With GiD_Info commands you can know the Lines that bounded a surface, and then the points of this lines.

For fast access, you can use a tcl array to store the inverse information: the list of surfaces owning a point

in pseudo-code, can fill the surfaces array with something like this
foreach surface {
foreach line of the surface {
if verso==SAME1ST get the line startpoint
else get the line endpoint

lappend surfaces($numpoint) $numsurface
}
}

----- Original Message -----
From: “CALAON Andrea Dalmine R&D” acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu
Sent: Tuesday, May 22, 2007 7:24 PM
Subject: RE: [GiDlist] Special need for normals to surface at a specific point


I described my problem with wrong words. I need only GEOMETRICAL info, and I wrongly used the word “node” instead of “point”.
Sorry for the gross mistake.
I need to know if a POINT belongs to a surface in order to limit the use of uv_fromcoord to points that belong to the surface.
Regards
Andrea
-----Original Message-----
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: martedì 22 maggio 2007 12.10
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Special need for normals to surface at a specific point
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_


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


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