Subscribe to this thread
Home - General / All posts - creating an offset line ver8
Sev
464 post(s)
#06-Jun-24 09:44

Hi everyone, I'm trying to create an offset line (in this instance a fenceline) to an existing line. My thought was to create a buffer to the existing line, and then use the buffer edge to create the new line. This works perfectly if the offset intersect (change in direction) is less than 180 degrees, but not if it's over as the buffer creates a curve. I need it to stay straight on the outer curve until it meets the new section. I hope that makes sense, I'll add a screenshot. Is there a simple way to achieve this?

Attachments:
2024-06-06_194249.jpg

rk
635 post(s)
online
#07-Jun-24 14:09

Like this? (from https://www.postgis.net/docs/ST_Buffer.html)

There is https://github.com/rkolka/OnionTopologySuite that exposes such funtions to Manifold 9.

I attached mxb and my add-in .zip.

This zip is a newer build than on github. paste the contents of zip under {manifold}\extras\

Attachments:
m9_mitred_buffer_flat_cap.mxb
OnionTopologySuite.zip

Sloots

693 post(s)
#12-Jun-24 08:18

Thanks! Might be very usefull someday.


http://www.mppng.nl/manifold/pointlabeler

ColinD

2,084 post(s)
#12-Jun-24 12:31

Double thanks, I needed that, worked well.


Aussie Nature Shots

Sev
464 post(s)
#01-Aug-24 03:49

Yes, exactly! Thanks so much @rk! Can't wait to have a play.

Sorry for the late reply.

Sev.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.