DiscussionsIssue archiveOther usage issues

Archived discussion

retrieve coordonates on a surface

Other usage issuesMon, 08/28/2000 - 13:232 replies

Browse this forum
QuestionAuthor

I'd like to retreive the coordonates on a surface : for each given x and y I would like to know the value of z...

Simple, but how to do ?

Thanks for your help,

Norbert

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello, Norbert!

You shoud create a point:

gp_Pnt P(x, y, 0.);

and a direction:

gp_Dir D(0., 0., 1.);

Then create a line which is passed through this point and has given direction:

Handle (Geom_Line) l = new Geom_Line(P, D);

And then you should intersect this line with your surface using :

GeomAPI_IntCS Inters(l,S);

Best regards, Commenter-1.

02Author

Thank you very much, I'll try to do this this evenening,

best rgs,

Norbert