×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Point - direction type line

Point - direction type line

Point - direction type line

(OP)
Could you please explain how this is done by CATIA?
1. There is surface (S) and a point (P) on it. Also a line (L) that goes through the point (P).
2. In command line - point-direction type, select inputs above such that the surface (S) is the support and the line (L) is the direction...
3. Finally will be a computed curve on the supprot. But how is this curve made by CATIA? This is not made by a projection.

RE: Point - direction type line

Hello asaese,

Are you referring to a line normal (perpendicular) to a surface through a point?
My other question is whether you ask for the mathematics behind the generation of the line normal to a surface, or the methodology in CATIA to achieve that?


CATIA v5 — user & trainer
ANSYS — user (beginner)

RE: Point - direction type line

(OP)
Hello Tibix,

Thanks for your care about the subject.

Not normal, the line is used as the direction and would have any component of x, y, z.
Actuallay I'd like to know the methodoloy to achieve the computed curve on the surface.

RE: Point - direction type line

each surface can be described by equation as below

S(x,y,z)=0

It can also be described as S(x,y,z)=f(x,y)-z=0

thus:
z=f(x,y)

so the parapendicular vector can be described as below:

n^=[df/dx,df/dy,1]*lambda
where
d/dx - partial differention
lambda - variable (used to normalize lenght of vector)

For specified point You need find values of those differentions

LukaszSz. Poland, Warsaw University of Technology, Faculty of Power and Aeronautical Engineering : MEchanical Engineering. BsC - 2013

RE: Point - direction type line

It would help (a lot) if you could explain which are the starting elements and what is that you wish to accomplish... Just like in geometry, CATIA has many options to create a line.

RE: Point - direction type line

HybridShapeLineNormal.Surface property will return surface to which line is normal

If Yours part is not large (doesn't contain lot of surfaces) You can do loop through all surfaces and check if oSurface (as below) is same as one of the listed surfaces

here is the example code

(as input select surface)

CODE -->

Sub CATMain(oSurface)

Dim LineNormal
Dim linesString
 linesString="Lines normal to  "&oSurface.Name&" :"
Set partDocument1 = CATIA.ActiveDocument
Set SurfRef = partDocument1.Part.CreateReferenceFromObject(oSurface)
Set selection1 = partDocument1.Selection
if selection1.count>0 then
for i=1 to selection1.count
if TypeName(selection1.item(i).value)="HybridShapeLineNormal" then
'if SurfRef is selection1.item(i).value.Surface then
if SurfRef.DisplayName = selection1.item(i).value.Surface.DisplayName then
set LineNormal=selection1.item(i).value
linesString=linesString&Chr(10)&LineNormal.Name
End If
End If
next

msgbox linesString
Else

end if


End Sub 

anyway, bolded condition isn't working for me so i'm comparising names

LukaszSz. Poland, Warsaw University of Technology, Faculty of Power and Aeronautical Engineering : MEchanical Engineering. BsC - 2013

RE: Point - direction type line

(OP)
@ lukaszsz
Thank you but I'm not researching about how the normal vector is computed at a point on surface. I'm just researching which way the laid down curve on the surfac support is achieved, when using a point-direction line but with a surface support.

@ TibiX
You know, to know how CATIA works is my aim. I'm not running into a trouble in a design.
Not bad have a look here:
http://www.3dcadforums.com/catia-forum/6831-surfac...

RE: Point - direction type line

Guessing here...

vector L (x,y,z) from line is projected on surface as vector L'(u,v) at point O, line passing by point O on support is define by all point P on S with OP = K x L'

What I noticed:

on a cylinder surface S I create point P
at P I create a line L1 with a compass direction
then I create line L2 on support S with direction L1

using develop I bring L2 on a plane and when I analyze it, it is a line.

if I project L1 on S I have P1, when I develop P1 (as I did with L2), the result is a curve.

Hope this is clear to someone smile

Eric N.
indocti discant et ament meminisse periti

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources