[Manifold-l] Find midpoint of a line

F Whiteley franciswhiteley at btconnect.com
Mon Oct 2 08:19:43 CDT 2006


Pat,

 

Look at Manifold free samples at
http://www.manifold.net/products/freestuff.html

 

ScriptRandomPoints.map

 

ScriptBSpline2.map

 

Assuming you are in orthogonal coords  you could then do something like
this..

 

For each line,

 

Take end point P1 and subtract P2 to get V1

 

Divide V1 by 2

 

Create a new point by Adding V1 to P2

 

Next line

 

Francis

 

  _____  

From: manifold-l-bounces at lists.directionsmag.com
[mailto:manifold-l-bounces at lists.directionsmag.com] On Behalf Of Desjardins,
Pat EMPR:EX
Sent: 29 September 2006 17:36
To: manifold-l at lists.directionsmag.com
Subject: [Manifold-l] Find midpoint of a line

 

Hi, 

I have a project where I'm analysing landslides and their relationship to
underlying terrain geology. I have hundreds of landslides over a large area
to analyze. I'm hoping to write a script to do this but my programming
skills are not the best. The landslides are lines and the terrain are
polygons. I need to find the midpoint of the lines and place a point there.
I've searched but I can't find a method to do this.

Can anyone recommend a good free website that provides free VBscript
programming lessons? 

Thanks 

Pat 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.directionsmag.com/pipermail/manifold-l/attachments/20061002/0ff66725/attachment.htm


More information about the Manifold-l mailing list