Lines through Points

Is there any simple way to to lines to a set of points?

In the attached file I have a set of points that define nine line segments within 1/32" of an inch. I have a lot of similar data sets.

There a simple way to find and draw line segments though such a set automagically?

Problem Points.zip (25.6 KB)

Why do you upload a .zip file and not the .3dm file directly?

If you want line segments which through each point use CurveThroughPt and set Degree=1
Select points to build curve through
Select points to build curve through. Press Enter when done
Press Enter to accept settings ( Degree=1 CurveType=ControlPoint Closed=No )

For “best fit” line through a set of points use LineThroughPt
The line may not start and end exactly on points.
Adjacent lines may not coincide.

To check deviation of the line from the points use PointDeviation

The .3dm files are so big and compress so small making upload easier.

The lines just need to be close to the points. Ideally, they would go through the corners points. I would like to be able to do multiple segments at once.

A line is defined by two points. If a line segment goes through the corner points then the line is defined and the other points are not needed.

cool, never thought even to try. that is pretty effective.

the files rhino creates are so big, even though the geometry should be compressed it does not seem to do a good job. a simple polysurface causes 3 mb to vanish from my drive, compressing it with zip creats a 25 kb file… not sure how many terra byte i already waisted on upload download and not to forget storing them locally…

back to the topic.
use CurveThroughPt with degree 1 as @davidcockey explained.

now if you need a simpler line which reduces the kinks almost to the segements, set your absolute tolerance and your angle tolerance to something like 1 and use SimplifyCrv.

you should end up with somthing like that.

setting both tolerances higher will simplify it stronger

I typically get 1:100 compression with zip on rhino files.

Really?
So you tipically compress let’s say a 1GB Rhino file to a zip archive with slightly more than 10 MB?
That frankly sounds ridiculous.
How do you achieve such an incredible compression?

I suspect it is the nature of the files made as examples for uploading here.


Interesting.
I am lucky to get 50% compression on .3dm files that I typically work on.
As you say, this probably has to do with the nature of these files.

I started a thread specific to file size. V7 File with no objects over 1 MB - Why? - #2 by davidcockey

It looks like V7, but not V6 or V5, includes over a MB of “empty” space when saving a .3dm file.