Author Topic: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve  (Read 1808 times)

0 Members and 1 Guest are viewing this topic.

Sheldon1874

  • Mosquito
  • Posts: 19
Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« on: January 31, 2014, 07:40:09 PM »
Dear Swamp,

What are your suggestions as to the best way of moving all points on a 3d polyline to a 2d reference line so that the "z" of the 3d is retained and only the 2d component changes?

Please See Attached BiMP file.

Cheers

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #1 on: January 31, 2014, 07:48:32 PM »

Can you explain what you want in a different manner.

I can't visualise what you want without guessing.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Sheldon1874

  • Mosquito
  • Posts: 19
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #2 on: January 31, 2014, 07:57:55 PM »
OK,

So the points on the 3d line need to be on a single plane.  So I think, define a 2d line and move the points to that line and retain the "z" value.

Or, the 3d line is a surveyed line and the output required is a "straight" line and not "wobbly". How to make straight?

Cheers

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #3 on: January 31, 2014, 08:09:28 PM »
Perhaps someone else can understand what you require.

To me, the thing that makes a line 3d is that the Z component changes. To convert it to 2d the Z is converted to one plane.
I can't visualise converting a 3d line to 2d without modifying the Z component.
Sorry.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Sheldon1874

  • Mosquito
  • Posts: 19
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #4 on: January 31, 2014, 08:23:54 PM »
OK,

How about this,

Make a 3d line co-planer to a plane defined by a 2d line in the XY plane?


Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #5 on: January 31, 2014, 08:51:00 PM »

Would you like the polyline converted to a 2d polyline or stay a 3dPolyline with the Z component changed to 0 relative to the 'plane' of the line nominated.

Note that the line does not have a plane. A plane can be extrapolated using the 'Normal'  property of the line.


aside.
Are you using Civil3D or AutoCAD?



kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Sheldon1874

  • Mosquito
  • Posts: 19
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #6 on: January 31, 2014, 08:56:07 PM »
Using AutoCAD.  Would like the line to remain 3d poly with the "z" value constant but "XY" changed?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #7 on: January 31, 2014, 08:57:29 PM »
The Geometry Extensions library posted by gile may be a good place to start.

http://www.theswamp.org/index.php?topic=31865.msg373672#msg373672

Have a look at GetProjectedPolyline
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Sheldon1874

  • Mosquito
  • Posts: 19
Re: Move 3d Points to a 2d Refrence Line - Simplest Way to Achieve
« Reply #8 on: January 31, 2014, 09:31:13 PM »
Nice one.

Yet again, Then Swamp "Gees It Laldi".

Thanks Kerry.  Some times no matter how much one may search the forum the result may remain elusive.  Until some such as yourself can translate between terms.

Thank you.