Import cloud points options?

Next
 From:  Matadem
11686.1 
Good day.
I have finally got my cnc probe working.
the issue I have now is that it outputs the file like this.
X1.7116 Y0.0000 Z0.0000
X1.7138 Y0.0203 Z0.0000
X1.7149 Y0.0406 Z0.0000
X1.7166 Y0.0610 Z0.0000

and If I am not mistaken Moi can import it only like this?
1.7116, 0.0000 ,0.0000

Anyone might know a quick way to change it from what Moi can read or that can Moi read it as is?
the main export is as the attached pic....so is there way for Moi to read it as is it will save me allot of time.

Thanks!

EDITED: 24 Mar by MATADEM

Image Attachments:
Size: 85.4 KB, Downloaded: 33 times, Dimensions: 399x631px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
11686.2 In reply to 11686.1 

I’ve done it before with Notepads “find and replace”

I think i resorted to excel once also. More powerful options for tuples..

I didn't ask Michael about it though. Maybe he has a more eloquent way…

EDITED: 24 Mar by BURRMAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
11686.3 
A cool free prog about cloud points! ;)
http://cloudcompare.org
---
Pilou
Is beautiful that please without concept!
My Moi French Site
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11686.4 In reply to 11686.1 
Hi Matadem, here's a modified version of the ImportPointFile script which should handle your CAM program's point output.

This one should skip the G1 at the start of a line and will remove any X or Y label on the coordinates.

Instructions for installing a plugin here.

Hope this helps,
- Michael

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
11686.5 
Michael can it do z as well?
I tried the script and it works fast and efficient as always.
Tnx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11686.6 In reply to 11686.5 
Hi Matadem,

re:
> Michael can it do z as well?

I didn't see any z coordinates in your example, but it if it has a 'Z' label on it like it does for X and Y you can update the script to handle that.

Open the ImportPointFilematadem.js file in a text editor and on line 112 which currently has this:
code:
			if ( val[0].toUpperCase() == 'X' || val[0].toUpperCase() == 'Y' )


Change it to this instead:
code:
			if ( val[0].toUpperCase() == 'X' || val[0].toUpperCase() == 'Y' || val[0].toUpperCase() == 'Z' )


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
11686.7 
Works good!

Tnx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  KENMO
11686.8 In reply to 11686.7 
Sorry if I am interrupting this thread, but can this script import point clouds created via photogrammeyry. I use Zephyr3D for my photscans.

Cheers

Ken
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
11686.9 In reply to 11686.8 
Hi Ken,

re:
> Sorry if I am interrupting this thread, but can this script import point clouds created via
> photogrammeyry. I use Zephyr3D for my photscans.

The script can import points that are listed in .csv file.

It should be a text file with the x,y,z coordinates for one point on each line of the file.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All