.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Perpendicular Points on Polyline

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Prajith76
1745 Views, 3 Replies

Perpendicular Points on Polyline

Hi,

 

Is there is any way to get perpendicular points on both sides of a polyline at a specified distance?

 

 

I tried to offset the polyline (PL) on both directions as (PL1 & PL2) but still confused how to get a perpendicular point on PL1 & PL2 with a given point on PL.

 

Your inputs will be much appreciated.

 

Prajith.

3 REPLIES 3
Message 2 of 4
joshuamodglin
in reply to: Prajith76

Prajith,

 

Do a search for 'Polar' points in this Forum. This should provide you the answer you are looking for.

Josh Modglin
Advanced Technologies Solutions Logo
Message 3 of 4
caddzone
in reply to: Prajith76

You can use the GetFirstDerivative() method to get the direction

of the tangent vector at a given point on the polyline, which is

at a right angle with the perpendiuclar vector.

 



AcadXTabs for AutoCAD
Supporting AutoCAD 2000-2011


Message 4 of 4
Prajith76
in reply to: Prajith76

Hi Friends,

 

Goal achieved using the below function.

 

  Shared Function PolarPoint(ByVal BasePoint As Point3d, ByVal angle As Double, ByVal distance As Double) As Point3d
        Dim x As Double = distance * Sin(angle)
        Dim y As Double = distance * Cos(angle)
        Return New Point3d(BasePoint.X - x, BasePoint.Y + y, BasePoint.Z)
    End Function

 

Hi Tony,

I am not familiar with GetFirstDerivative() method. Certainly I will look at it how it goes.

 

Thanks a lot.

 

Prajith.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost