SrfControlPtGrid with Points

Is there any way to get SrfControlPtGrid to work with existing points? I mean like select the points already in the file?

If I paste the point locations into the command line, Rhino goes crazy and I have to quit and restart to continue.

After pasting points (Rhino unresponsive):

Hello - the command takes as input the number of points in each direction and then the points in order according to each row and column - it would be pretty hard to auto sort these reliably, I think.

-Pascal

The script below might work sometimes. It will attempt to sort the points if they are aligned along the XY axes. The grid must still be regular and rectangular (within tolerance) but the points do not need to be in a specific order.

FWIW…
SrfFromPointGridAutoXY.py (6.0 KB)

The problem is that when I enter them in, Rhino locks up.

Are there a lot of points? How are you entering them? Do you have a sample file for testing?

SrfPtGrid
_KeepPoints
19
27
-5760,-573.2242738,-3.55E-15
-5760,-593.875,3
-5760,-602.25,6
-5760,-613.625,12
-5760,-628,24
-5760,-643.125,48
-5760,-648.0625,72
-5760,-648.1875,96
-5760,-648.1875,120
-5760,-648.1875,144
-5760,-648.1875,168
-5760,-648.1875,192
-5760,-648.1875,216
-5760,-648.1875,240
-5760,-648.1875,264
-5760,-648.1875,288
-5760,-648.1875,318
-5760,-648.1875,348
-5760,-648.25,378
-5760,-648.25,415.25
-5760,-648.25,444
-5760,-648.25,474
-5760,-648.25,501
-5760,-648.25,528
-5760,-648.25,564
-5760,-648.25,600
-5760,-648.25,644.9375
-5712,-572.9541096,0
-5712,-593.625,3
-5712,-602.0625,6
-5712,-613.25,12
-5712,-627.625,24
-5712,-642.875,48
-5712,-647.875,72
-5712,-648,96
-5712,-648.0625,120
-5712,-648.0625,144
-5712,-648.0625,168
-5712,-648.0625,192
-5712,-648.125,216
-5712,-648.125,240
-5712,-648.125,264
-5712,-648.125,288
-5712,-648.125,318
-5712,-648.125,348
-5712,-648.125,378
-5712,-648.125,415.25
-5712,-648.125,444
-5712,-648.125,474
-5712,-648.1875,501
-5712,-648.1875,528
-5712,-648.1875,564
-5712,-648.1875,600
-5712,-648.2051641,644.9374807
-5664,-572.491552,0
-5664,-593.1875,3
-5664,-601.5625,6
-5664,-612.625,12
-5664,-627.0625,24
-5664,-642.4375,48
-5664,-647.4375,72
-5664,-647.625,96
-5664,-647.625,120
-5664,-647.6875,144
-5664,-647.6875,168
-5664,-647.75,192
-5664,-647.75,216
-5664,-647.75,240
-5664,-647.8125,264
-5664,-647.8125,288
-5664,-647.875,318
-5664,-647.875,348
-5664,-647.9375,378
-5664,-647.9375,415.25
-5664,-648,444
-5664,-648,474
-5664,-648.0625,501
-5664,-648.0625,528
-5664,-648.125,564
-5664,-648.125,600
-5664,-648.1527006,644.9374761
-5616,-571.8215633,3.55E-15
-5616,-592.625,3
-5616,-600.75,6
-5616,-611.6875,12
-5616,-626.125,24
-5616,-641.625,48
-5616,-646.8125,72
-5616,-647.125,96
-5616,-647.1875,120
-5616,-647.25,144
-5616,-647.25,168
-5616,-647.3125,192
-5616,-647.375,216
-5616,-647.375,240
-5616,-647.4375,264
-5616,-647.5,288
-5616,-647.5625,318
-5616,-647.625,348
-5616,-647.625,378
-5616,-647.6875,415.25
-5616,-647.75,444
-5616,-647.8125,474
-5616,-647.875,501
-5616,-647.9375,528
-5616,-648,564
-5616,-648,600
-5616,-648.1006458,644.9375392
-5568,-570.916497,-3.55E-15
-5568,-591.75,3
-5568,-599.6875,6
-5568,-610.5625,12
-5568,-624.875,24
-5568,-640.625,48
-5568,-646,72
-5568,-646.5625,96
-5568,-646.625,120
-5568,-646.625,144
-5568,-646.75,168
-5568,-646.75,192
-5568,-646.875,216
-5568,-646.9375,240
-5568,-647,264
-5568,-647.125,288
-5568,-647.1875,318
-5568,-647.25,348
-5568,-647.375,378
-5568,-647.4375,415.25
-5568,-647.5625,444
-5568,-647.625,474
-5568,-647.6875,501
-5568,-647.75,528
-5568,-647.875,564
-5568,-647.9375,600
-5568,-648.0397863,644.9376823
-5520,-569.739611,0
-5520,-590.5,3
-5520,-598.25,6
-5520,-609,12
-5520,-623.5,24
-5520,-639.375,48
-5520,-644.875,72
-5520,-645.5,96
-5520,-645.6875,120
-5520,-645.8125,144
-5520,-645.75,168
-5520,-646,192
-5520,-646.0625,216
-5520,-646.25,240
-5520,-646.3125,264
-5520,-646.375,288
-5520,-646.5625,318
-5520,-646.6875,348
-5520,-646.8125,378
-5520,-647,415.25
-5520,-647.125,444
-5520,-647.3125,474
-5520,-647.4375,501
-5520,-647.5625,528
-5520,-647.6875,564
-5520,-647.875,600
-5520,-647.9664809,644.9378005
-5472,-568.2502283,-7.11E-15
-5472,-588.8125,3
-5472,-596.625,6
-5472,-607.125,12
-5472,-621.875,24
-5472,-637.75,48
-5472,-643.5,72
-5472,-644.6875,96
-5472,-644.8125,120
-5472,-644.9375,144
-5472,-645.125,168
-5472,-645.25,192
-5472,-645.3125,216
-5472,-645.5625,240
-5472,-645.6875,264
-5472,-645.8125,288
-5472,-646.25,318
-5472,-646.1875,348
-5472,-646.4375,378
-5472,-646.625,415.25
-5472,-646.75,444
-5472,-647,474
-5472,-647.125,501
-5472,-647.25,528
-5472,-647.5,564
-5472,-647.6875,600
-5472,-647.8792459,644.9376354
-5424,-566.4096594,0
-5424,-586.5625,3
-5424,-594.0625,6
-5424,-604.875,12
-5424,-619.8125,24
-5424,-635.875,48
-5424,-642,72
-5424,-643.5625,96
-5424,-643.75,120
-5424,-643.875,144
-5424,-644.125,168
-5424,-644.3125,192
-5424,-644.5,216
-5424,-644.6875,240
-5424,-644.875,264
-5424,-645.0625,288
-5424,-645.25,318
-5424,-645.5,348
-5424,-645.75,378
-5424,-646,415.25
-5424,-646.25,444
-5424,-646.5,474
-5424,-646.75,501
-5424,-646.9375,528
-5424,-647.25,564
-5424,-647.5,600
-5424,-647.7778028,644.9369115
-5376,-564.1865397,0
-5376,-583.875,3
-5376,-591.5,6
-5376,-602.375,12
-5376,-617.5625,24
-5376,-633.9375,48
-5376,-640.5,72
-5376,-642.25,96
-5376,-642.5,120
-5376,-642.75,144
-5376,-643,168
-5376,-643.25,192
-5376,-643.5,216
-5376,-643.75,240
-5376,-643.9375,264
-5376,-644.1875,288
-5376,-644.5,318
-5376,-644.75,348
-5376,-645.125,378
-5376,-645.5,415.25
-5376,-645.75,444
-5376,-646.0625,474
-5376,-646.3125,501
-5376,-646.5625,528
-5376,-646.9375,564
-5376,-647.25,600
-5376,-647.6606809,644.9356749
-5328,-561.5602619,0
-5328,-580.8125,3
-5328,-588.5625,6
-5328,-599.5625,12
-5328,-615.0625,24
-5328,-631.5625,48
-5328,-638.625,72
-5328,-640.9375,96
-5328,-641.3125,120
-5328,-641.5625,144
-5328,-641.875,168
-5328,-642.1875,192
-5328,-642.4375,216
-5328,-642.75,240
-5328,-643,264
-5328,-643.3125,288
-5328,-643.6875,318
-5328,-644.0625,348
-5328,-644.375,378
-5328,-644.875,415.25
-5328,-645.25,444
-5328,-645.5625,474
-5328,-645.9375,501
-5328,-646.25,528
-5328,-646.625,564
-5328,-647.0625,600
-5328,-647.5227146,644.9346627
-5280,-558.5216738,0
-5280,-577.3125,3
-5280,-585.375,6
-5280,-596.625,12
-5280,-612.1875,24
-5280,-629.0625,48
-5280,-636.625,72
-5280,-639.25,96
-5280,-639.875,120
-5280,-640.1875,144
-5280,-640.5,168
-5280,-640.875,192
-5280,-641.1875,216
-5280,-641.625,240
-5280,-641.9375,264
-5280,-642.25,288
-5280,-642.75,318
-5280,-643.125,348
-5280,-643.5625,378
-5280,-644.125,415.25
-5280,-644.5625,444
-5280,-645,474
-5280,-645.4375,501
-5280,-645.8125,528
-5280,-646.3125,564
-5280,-646.75,600
-5280,-647.3540307,644.9353596
-5232,-555.0711355,0
-5232,-573.6875,3
-5232,-581.75,6
-5232,-593.5,12
-5232,-609.0625,24
-5232,-626.1875,48
-5232,-634.375,72
-5232,-637.625,96
-5232,-638.375,120
-5232,-638.8125,144
-5232,-639.1875,168
-5232,-639.5625,192
-5232,-639.9375,216
-5232,-640.4375,240
-5232,-640.8125,264
-5232,-641.1875,288
-5232,-641.75,318
-5232,-642.25,348
-5232,-642.75,378
-5232,-643.375,415.25
-5232,-643.875,444
-5232,-644.375,474
-5232,-644.8125,501
-5232,-645.25,528
-5232,-645.875,564
-5232,-646.4375,600
-5232,-647.1413104,644.9394846
-5184,-551.2149615,0
-5184,-569.75,3
-5184,-577.8125,6
-5184,-589.75,12
-5184,-605.875,24
-5184,-623.4375,48
-5184,-632,72
-5184,-635.75,96
-5184,-636.75,120
-5184,-637.1875,144
-5184,-637.6875,168
-5184,-638.125,192
-5184,-638.625,216
-5184,-639.125,240
-5184,-639.5625,264
-5184,-640,288
-5184,-640.625,318
-5184,-641.1875,348
-5184,-641.75,378
-5184,-642.5,415.25
-5184,-643.0625,444
-5184,-643.625,474
-5184,-644.125,501
-5184,-644.6875,528
-5184,-645.375,564
-5184,-646.0625,600
-5184,-646.8706983,644.9480258
-5136,-546.961798,-1.07E-14
-5136,-565.4375,3
-5136,-573.5625,6
-5136,-585.8125,12
-5136,-602.125,24
-5136,-620.125,48
-5136,-629.375,72
-5136,-633.5,96
-5136,-634.875,120
-5136,-635.375,144
-5136,-635.9375,168
-5136,-636.5,192
-5136,-637,216
-5136,-637.5625,240
-5136,-638.125,264
-5136,-638.625,288
-5136,-639.3125,318
-5136,-639.9375,348
-5136,-640.625,378
-5136,-641.4375,415.25
-5136,-642.125,444
-5136,-642.8125,474
-5136,-643.375,501
-5136,-644,528
-5136,-644.8125,564
-5136,-645.625,600
-5136,-646.5306896,644.9603692
-5088,-542.3204165,-3.55E-15
-5088,-560.9375,3
-5088,-569.625,6
-5088,-581.9375,12
-5088,-598.1875,24
-5088,-616.5625,48
-5088,-626.5625,72
-5088,-631.25,96
-5088,-633,120
-5088,-633.625,144
-5088,-634.1875,168
-5088,-634.75,192
-5088,-635.375,216
-5088,-636.0625,240
-5088,-636.625,264
-5088,-637.1875,288
-5088,-638,318
-5088,-638.75,348
-5088,-639.5,378
-5088,-640.4375,415.25
-5088,-641.1875,444
-5088,-641.9375,474
-5088,-642.5625,501
-5088,-643.25,528
-5088,-644.1875,564
-5088,-645.0625,600
-5088,-646.1134418,644.974179
-5040,-537.2996772,0
-5040,-556.0625,3
-5040,-564.75,6
-5040,-577.25,12
-5040,-594.1875,24
-5040,-612.875,48
-5040,-623.5,72
-5040,-628.75,96
-5040,-630.9375,120
-5040,-631.625,144
-5040,-632.3125,168
-5040,-633,192
-5040,-633.625,216
-5040,-634.625,240
-5040,-635,264
-5040,-635.6875,288
-5040,-636.5,318
-5040,-637.375,348
-5040,-638.1875,378
-5040,-639.25,415.25
-5040,-640.0625,444
-5040,-640.9375,474
-5040,-641.6875,501
-5040,-642.375,528
-5040,-643.5,564
-5040,-644.4375,600
-5040,-645.614105,644.9863104
-4992,-531.9103877,0
-4992,-550.9375,3
-4992,-559.75,6
-4992,-572.5625,12
-4992,-589.4375,24
-4992,-609.125,48
-4992,-620.25,72
-4992,-626.1875,96
-4992,-628.6875,120
-4992,-629.375,144
-4992,-630.1875,168
-4992,-630.875,192
-4992,-631.625,216
-4992,-632.4375,240
-4992,-633.1875,264
-4992,-633.875,288
-4992,-634.8125,318
-4992,-635.75,348
-4992,-636.6875,378
-4992,-637.875,415.25
-4992,-638.8125,444
-4992,-639.75,474
-4992,-640.5625,501
-4992,-641.4375,528
-4992,-642.5625,564
-4992,-643.6875,600
-4992,-645.0290466,644.9943831
-4944,-526.16786,0
-4944,-545.75,3
-4944,-554.625,6
-4944,-567.4375,12
-4944,-584.625,24
-4944,-604.9375,48
-4944,-616.75,72
-4944,-623.125,96
-4944,-626.1875,120
-4944,-627,144
-4944,-628,168
-4944,-628.8125,192
-4944,-629.625,216
-4944,-630.5,240
-4944,-631.25,264
-4944,-632.125,288
-4944,-633.125,318
-4944,-634.1875,348
-4944,-635.1875,378
-4944,-636.5,415.25
-4944,-637.5,444
-4944,-638.5,474
-4944,-639.4375,501
-4944,-640.375,528
-4944,-641.625,564
-4944,-642.875,600
-4944,-644.3543346,644.9981614
-4896,-520.0937006,-3.55E-15
-4896,-540.25,3
-4896,-549.3125,6
-4896,-562.375,12
-4896,-579.875,24
-4896,-600.6875,48
-4896,-613.125,72
-4896,-620.125,96
-4896,-623.5625,120
-4896,-624.5625,144
-4896,-625.5,168
-4896,-626.375,192
-4896,-627.3125,216
-4896,-628.125,240
-4896,-629.125,264
-4896,-630,288
-4896,-631.125,318
-4896,-632.3125,348
-4896,-633.4375,378
-4896,-634.875,415.25
-4896,-636,444
-4896,-637.125,474
-4896,-638.125,501
-4896,-639.1875,528
-4896,-640.5625,564
-4896,-641.875,600
-4896,-643.5853466,644.9999121

Hm - that and the control point version both run fine here on Windows, checking Mac…
Works on Mac as well.

-Pascal