See the top rated post in this thread. Click here

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: vlax-curve-... functions

  1. #11
    Active Member
    Join Date
    2007-09
    Location
    Croatia
    Posts
    55
    Login to Give a bone
    0

    Default Re: vlax-curve-... functions

    Quote Originally Posted by Opie View Post
    Try this link, relaxed-curves.

    Works!

    Pretty good essay,
    one thing steel unclear, the part;
    "VLAX-CURVE-GETCLOSESTPOINTTOPROJECTION, that projects a point onto the curve in a specific direction and returns the closest point, if any."

    Does it mean next:
    Projects the point and the curve in a given plane by normal vector on it, let us say (0,0,1)--horizontal plane, and then gives us a closestpoint on that projected curve (in this case horizontal planar curve, 2 dimenzional point )

    or :

    projects only point on that plane, and gives us closest point on "untouched" curve

    or:
    ????

    Thank You in advance!!

    Pozdrav iz Hrvatske

  2. #12
    Active Member
    Join Date
    2007-09
    Location
    Croatia
    Posts
    55
    Login to Give a bone
    0

    Default Re: vlax-curve-... functions

    Quote Originally Posted by marijan.marsic View Post
    Works!

    Pretty good essay,
    one thing steel unclear, the part;
    "VLAX-CURVE-GETCLOSESTPOINTTOPROJECTION, that projects a point onto the curve in a specific direction and returns the closest point, if any."

    Does it mean next:
    Projects the point and the curve in a given plane by normal vector on it, let us say (0,0,1)--horizontal plane, and then gives us a closestpoint on that projected curve (in this case horizontal planar curve, 2 dimenzional point )

    or :

    projects only point on that plane, and gives us closest point on "untouched" curve

    or:
    ????

    Thank You in advance!!

    Pozdrav iz Hrvatske

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    Found :

    Returns the closest point (in WCS) on a curve after projecting the curve onto a plane

    (vlax-curve-getClosestPointToProjection <curve-obj> <givenPnt> <normal> [extend])
    Arguments
    * Demands the vl-load-com function.

    <curve-obj> - the VLA-object of curve to be measured.

    <givenPnt> - a point (in WCS) for which to find the nearest point on the curve.

    <normal> - a normal vector (in WCS) for the plane to project onto.

    [extend] - if specified and not nil, vlax-curve-getClosestPointToProjection extends the curve when searching for the nearest point.

    vlax-curve-getClosestPointToProjection projects the curve onto the plane defined by the givenPnt and normal, and then calculates the nearest point on that projected curve to givenPnt. The resulting point is then projected back onto the original curve, and vlax-curve-getClosestPointToProjection returns that projected point.

    Return Values
    A 3D point list representing a point on the curve, if successful; otherwise nil.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 0
    Last Post: 2012-11-24, 07:38 PM
  2. vlax-curve and UCS
    By irneb in forum AutoLISP
    Replies: 4
    Last Post: 2010-01-25, 01:02 PM
  3. Map VBA's VLAX ?
    By KevinBarnett in forum AutoCAD Map 3D - General
    Replies: 0
    Last Post: 2005-01-27, 09:00 AM
  4. Dwgprops, and vlax functions
    By JasonSelf in forum AutoLISP
    Replies: 1
    Last Post: 2004-09-04, 01:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •