RE: terrain ascii xyz import

2013-04-19 Thread adrian wyer
many thanks Klemens, between my hacking, and Dan's off-list python genius,
we managed to get it working.

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Klemens
Kopetzky
Sent: 19 April 2013 15:43
To: softimage@listproc.autodesk.com
Subject: RE: terrain ascii xyz import

 

Hi Adrian,

 

Recently I had to import some xyz point cloud data as well (for a building
though, rather than a terrain) and noticed the same thing. So I literally
butchered his great script to import the colours as well (sorry Dan). I am
by no means a programmer, but the script worked for me, maybe it works for
you too. Just use at your own risk ;-).

Regards,

 

Klemens

 

P.S.: Sorry for the attachment everyone.

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of adrian wyer
Sent: 18 April 2013 18:21
To: softimage@listproc.autodesk.com
Subject: RE: terrain ascii xyz import

 

so the Lidar problem has reared it's ugly head again!

 

Dan, i noticed in your script you are pulling RGBA data and writing to the
cache file but it doesn't seem to read into the new cloud... any
thoughts?

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of adrian wyer
Sent: 24 January 2013 12:41
To: softimage@listproc.autodesk.com
Subject: RE: terrain ascii xyz import

 

cheers! in the end, we left the client to deal with their own lidar
wrangling, using the lidar software to kick out rudimentary animation

 

i just know in a few weeks they'll come back wanting us to take over

 

hehe

 

be interested to see your results

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: 24 January 2013 12:33
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

Hey Adrian,

That's really Cool!! Love the style on that!!

I'll post a test of what I've done when it's ready.

Cheers

 

 

On 22 January 2013 18:04, adrian wyer adrian.w...@fluid-pictures.com
wrote:

Hay Chris look forward to seeing the results.

 

here's the test that i spat out using meshlab to importa renamed  XYZ data
to a random mesh then doing a 'add points at point locations' on the random
mesh that meshlab generates

 

http://www.fluid-pictures.com/lidar_test_low.mov

 

colour at vertices is the next step...

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: 22 January 2013 15:14


To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

OK in the end found a quick 'n dirty solution that was slightly surprising.
It was actually possible to shrinkwrap a grid onto the pointcloud. The
slight problem with this is that you need to use one of the Closest
Vertex/Surface options, for it to work. On terrain that has plenty of
elevation, the grid gets deformed across laterally in places. So it was a
case of simply scaling the pointcloud to 0.01 in the y, shrinkwrap the grid
onto that, freeze, then scale the grid y to 100 again. It needs a little
filtering of points, but that works fine. Gives an acceptable result.

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com

Version: 2012.0.2221 / Virus Database: 2639/5549 - Release Date: 01/21/13





 

-- 

  http://mintmotion.co.uk/img/mint.png 

Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2639/5553 - Release Date: 01/23/13

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2639/5553 - Release Date: 01/23/13

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2240 / Virus Database: 2641/5745 - Release Date: 04/14/13



RE: terrain ascii xyz import

2013-04-18 Thread adrian wyer
so the Lidar problem has reared it's ugly head again!

 

Dan, i noticed in your script you are pulling RGBA data and writing to the
cache file but it doesn't seem to read into the new cloud... any
thoughts?

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of adrian wyer
Sent: 24 January 2013 12:41
To: softimage@listproc.autodesk.com
Subject: RE: terrain ascii xyz import

 

cheers! in the end, we left the client to deal with their own lidar
wrangling, using the lidar software to kick out rudimentary animation

 

i just know in a few weeks they'll come back wanting us to take over

 

hehe

 

be interested to see your results

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: 24 January 2013 12:33
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

Hey Adrian,

That's really Cool!! Love the style on that!!

I'll post a test of what I've done when it's ready.

Cheers

 

 

On 22 January 2013 18:04, adrian wyer adrian.w...@fluid-pictures.com
wrote:

Hay Chris look forward to seeing the results.

 

here's the test that i spat out using meshlab to importa renamed  XYZ data
to a random mesh then doing a 'add points at point locations' on the random
mesh that meshlab generates

 

http://www.fluid-pictures.com/lidar_test_low.mov

 

colour at vertices is the next step...

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: 22 January 2013 15:14


To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

OK in the end found a quick 'n dirty solution that was slightly surprising.
It was actually possible to shrinkwrap a grid onto the pointcloud. The
slight problem with this is that you need to use one of the Closest
Vertex/Surface options, for it to work. On terrain that has plenty of
elevation, the grid gets deformed across laterally in places. So it was a
case of simply scaling the pointcloud to 0.01 in the y, shrinkwrap the grid
onto that, freeze, then scale the grid y to 100 again. It needs a little
filtering of points, but that works fine. Gives an acceptable result.

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com

Version: 2012.0.2221 / Virus Database: 2639/5549 - Release Date: 01/21/13





 

-- 

  http://mintmotion.co.uk/img/mint.png 

Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2639/5553 - Release Date: 01/23/13

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2639/5553 - Release Date: 01/23/13



RE: terrain ascii xyz import

2013-01-22 Thread adrian wyer
Hay Chris look forward to seeing the results.

 

here's the test that i spat out using meshlab to importa renamed  XYZ data
to a random mesh then doing a 'add points at point locations' on the random
mesh that meshlab generates

 

http://www.fluid-pictures.com/lidar_test_low.mov

 

colour at vertices is the next step...

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: 22 January 2013 15:14
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

OK in the end found a quick 'n dirty solution that was slightly surprising.
It was actually possible to shrinkwrap a grid onto the pointcloud. The
slight problem with this is that you need to use one of the Closest
Vertex/Surface options, for it to work. On terrain that has plenty of
elevation, the grid gets deformed across laterally in places. So it was a
case of simply scaling the pointcloud to 0.01 in the y, shrinkwrap the grid
onto that, freeze, then scale the grid y to 100 again. It needs a little
filtering of points, but that works fine. Gives an acceptable result.

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2639/5549 - Release Date: 01/21/13



Re: terrain ascii xyz import

2013-01-09 Thread Dan Yargici
Hey Chris, was that script of any use?  Just curious! :)

It's quite slow, as I'm sure you've noticed as you said it was a large file!

Never could find a way to speed it up.  I just put it down to Python being
slow in the end... :/

DAN



On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.comwrote:

 ok thanks guys. I'll see how this goes. I can always break the file down
 into smaller pieces maybe. Or if Dan's script works well, take a percentage
 of the point instead.
 I'll report back!



 On 7 January 2013 16:51, Vladimir Jankijevic 
 vladi...@elefantstudios.chwrote:

 oh, all right. If it's huge then this won't work that well I think :(


 On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
  wrote:

 That's what I was thinking. Once I get the file into soft, I'll know
 what I'm dealing with. It's a pretty huge file of points.


 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

 With that, then you can use ICE on a grid of sufficient points and set
 up a tree like...

 Get Point ID and pointcloud getdata -- ID To Location --
 .PointPosition -- Set Point Position

 (Who knows how the terrain is ordered though. It might look horrid.)



 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.comwrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my
 old .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.com wrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just
 a grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got
 any ideas or can supply a simple script we can modify that'll read this
 data and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.comwrote:

 If it’s ASCII, an importer can probably be written fairly easily.***
 *

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris
 Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk






 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




 --
 ---
 Vladimir Jankijevic
 Technical Direction

 Elefant Studios AG
 Lessingstrasse 15
 CH-8002 Zürich

 +41 44 500 48 20

 www.elefantstudios.ch
 ---




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




RE: terrain ascii xyz import

2013-01-09 Thread adrian wyer
Hey Dan, i gave it a swing, but regardless of my .xyz file formatting, i
always get the error message;  Error - no points found or not a valid XYZ
file!!!

 

have you got an xyz file that works for you, that you caould strip to just a
couple of lines so i can see the format?

 

the one i'm trying is like this;



 

647680.01, 508967.136, 185.622

647680.099, 508967.133, 185.609

647680.124, 508953.779, 184.757

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Dan Yargici
Sent: 09 January 2013 09:34
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

Hey Chris, was that script of any use?  Just curious! :)

 

It's quite slow, as I'm sure you've noticed as you said it was a large file!

 

Never could find a way to speed it up.  I just put it down to Python being
slow in the end... :/

 

DAN

 

 

On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

ok thanks guys. I'll see how this goes. I can always break the file down
into smaller pieces maybe. Or if Dan's script works well, take a percentage
of the point instead.

I'll report back!

 

 

On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.ch
wrote:

oh, all right. If it's huge then this won't work that well I think :(

 

On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

That's what I was thinking. Once I get the file into soft, I'll know what
I'm dealing with. It's a pretty huge file of points.

 

On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

With that, then you can use ICE on a grid of sufficient points and set up a
tree like...

Get Point ID and pointcloud getdata -- ID To Location -- .PointPosition
-- Set Point Position

 

(Who knows how the terrain is ordered though. It might look horrid.)

 

On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:

Hey Chris, I quickly (read - some things may not work!) refactored my old
.PLY importer for you. should work...

 

Just rename as .py and run in the script editor.

 

Like Alan suggested though, it's just point data so it just makes a
pointcloud.

 

Hope it helps.

 

DAN

 

 

On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

Hi,

Sorry for the slow reply on this. We have an xyz file, which is just a grid
of points, like this:-

 

-105.25,39.75,1757.129 

-105.25,39.749958,1758.791 

-105.25,39.749917,1760.882 

-105.25,39.749875,1763.025 

-105.25,39.749833,1765.183 

-105.25,39.7497916667,1767.467 

-105.25,39.749750,1768.741 

-105.25,39.749708,1771.766 

-105.25,39.749667,1773.832 

-105.25,39.749625,1775.873 

-105.25,39.749583,1777.84 

-105.25,39.7495416667,1779.369 

-105.25,39.749500,1781.255 

-105.25,39.749458,1783.423 

-105.25,39.749417,1785.815 

-105.25,39.749375,1788.552 

-105.25,39.749333,1791.749 

-105.25,39.7492916667,1795.332 

-105.25,39.749250,1800.269 

-105.25,39.749208,1804.516 

-105.25,39.749167,1808.3 

 

So it must be relatively easy to convert this into a grid? Anyone got any
ideas or can supply a simple script we can modify that'll read this data and
generate a new grid or adjust the height of an existing grid?

 

Thanks 

 

Chris

 

 

 

On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

If it’s ASCII, an importer can probably be written fairly easily.

 

Do you have a sample file?

 

 

Matt

 

 

 

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: Friday, December 14, 2012 5:19 AM
To: softimage@listproc.autodesk.com
Subject: terrain ascii xyz import

 

Hello,

Anyone know how to get these into soft?

 

Cheers

 

Chris

 





 

-- 



Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

 

 

 





 

-- 



Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

 





 

-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 tel:%2B41%2044%20500%2048%2020  44 500 48 20

www.elefantstudios.ch
--- 





 

-- 

  http://mintmotion.co.uk/img/mint.png 

Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

 

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2637/5519 - Release Date: 01/08/13



Re: terrain ascii xyz import

2013-01-09 Thread Dan Yargici
Hi Adrian.

I used the data that Chris pasted into his mail to test with and that had
no spaces...

I use huge regular expression to parse the file for valid point data lines
and it doesn't expect spaces.  I'll tweak it and send it again if you
like...

DAN



On Wed, Jan 9, 2013 at 12:22 PM, adrian wyer adrian.w...@fluid-pictures.com
 wrote:

 ** ** ** **

 Hey Dan, i gave it a swing, but regardless of my .xyz file formatting, i
 always get the error message;  Error - no points found or not a valid XYZ
 file!!!

 ** **

 have you got an xyz file that works for you, that you caould strip to just
 a couple of lines so i can see the format?

 ** **

 the one i'm trying is like this;

 

 ** **

 647680.01, 508967.136, 185.622

 647680.099, 508967.133, 185.609

 647680.124, 508953.779, 184.757

 ** **
  --

 *From:* **softimage-boun...@listproc.autodesk.com** [mailto:**
 softimage-boun...@listproc.autodesk.com**] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 09:34
 *To:* **softimage@listproc.autodesk.com**
 *Subject:* Re: terrain ascii xyz import

 ** **

 Hey Chris, was that script of any use?  Just curious! :)

 ** **

 It's quite slow, as I'm sure you've noticed as you said it was a large
 file!

 ** **

 Never could find a way to speed it up.  I just put it down to Python being
 slow in the end... :/

 ** **

 DAN

 ** **

 ** **

 On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 ok thanks guys. I'll see how this goes. I can always break the file down
 into smaller pieces maybe. Or if Dan's script works well, take a percentage
 of the point instead.

 I'll report back!

 ** **

 ** **

 On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.ch
 wrote:

 oh, all right. If it's huge then this won't work that well I think :(

 ** **

 On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.

 ** **

 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:***
 *

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get** **Point** **ID and pointcloud getdata -- ID To Location
 -- .PointPosition -- Set Point Position

 ** **

 (Who knows how the terrain is ordered though. It might look horrid.)

 ** **

 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:
 

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

 ** **

 Just rename as .py and run in the script editor.

 ** **

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 ** **

 Hope it helps.

 ** **

 DAN

 ** **

 ** **

 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 Hi,

 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 ** **

 -105.25,39.75,1757.129 

 -105.25,39.749958,1758.791 

 -105.25,39.749917,1760.882 

 -105.25,39.749875,1763.025 

 -105.25,39.749833,1765.183 

 -105.25,39.7497916667,1767.467 

 -105.25,39.749750,1768.741 

 -105.25,39.749708,1771.766 

 -105.25,39.749667,1773.832 

 -105.25,39.749625,1775.873 

 -105.25,39.749583,1777.84 

 -105.25,39.7495416667,1779.369 

 -105.25,39.749500,1781.255 

 -105.25,39.749458,1783.423 

 -105.25,39.749417,1785.815 

 -105.25,39.749375,1788.552 

 -105.25,39.749333,1791.749 

 -105.25,39.7492916667,1795.332 

 -105.25,39.749250,1800.269 

 -105.25,39.749208,1804.516 

 -105.25,39.749167,1808.3 

 ** **

 So it must be relatively easy to convert this into a grid? Anyone got any
 ideas or can supply a simple script we can modify that'll read this data
 and generate a new grid or adjust the height of an existing grid?

 ** **

 Thanks 

 ** **

 Chris

 ** **

 ** **

 ** **

 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

  

 Do you have a sample file?

  

  

 Matt

  

  

  

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

  

 Hello,

 Anyone know how to get

RE: terrain ascii xyz import

2013-01-09 Thread adrian wyer
if you can be bothered, i know as much about Python as i do about open heart
surgery.!

 

it's just testing stuff at the moment, waiting to get some proper Lidar data
from the client

 

a

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Dan Yargici
Sent: 09 January 2013 10:30
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

Hi Adrian.

 

I used the data that Chris pasted into his mail to test with and that had no
spaces...

 

I use huge regular expression to parse the file for valid point data lines
and it doesn't expect spaces.  I'll tweak it and send it again if you
like...

 

DAN

 

 

On Wed, Jan 9, 2013 at 12:22 PM, adrian wyer
adrian.w...@fluid-pictures.com wrote:

Hey Dan, i gave it a swing, but regardless of my .xyz file formatting, i
always get the error message;  Error - no points found or not a valid XYZ
file!!!

 

have you got an xyz file that works for you, that you caould strip to just a
couple of lines so i can see the format?

 

the one i'm trying is like this;



 

647680.01, 508967.136, 185.622

647680.099, 508967.133, 185.609

647680.124, 508953.779, 184.757

 

  _  

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Dan Yargici
Sent: 09 January 2013 09:34
To: softimage@listproc.autodesk.com
Subject: Re: terrain ascii xyz import

 

Hey Chris, was that script of any use?  Just curious! :)

 

It's quite slow, as I'm sure you've noticed as you said it was a large file!

 

Never could find a way to speed it up.  I just put it down to Python being
slow in the end... :/

 

DAN

 

 

On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

ok thanks guys. I'll see how this goes. I can always break the file down
into smaller pieces maybe. Or if Dan's script works well, take a percentage
of the point instead.

I'll report back!

 

 

On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.ch
wrote:

oh, all right. If it's huge then this won't work that well I think :(

 

On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

That's what I was thinking. Once I get the file into soft, I'll know what
I'm dealing with. It's a pretty huge file of points.

 

On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

With that, then you can use ICE on a grid of sufficient points and set up a
tree like...

Get Point ID and pointcloud getdata -- ID To Location -- .PointPosition
-- Set Point Position

 

(Who knows how the terrain is ordered though. It might look horrid.)

 

On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:

Hey Chris, I quickly (read - some things may not work!) refactored my old
.PLY importer for you. should work...

 

Just rename as .py and run in the script editor.

 

Like Alan suggested though, it's just point data so it just makes a
pointcloud.

 

Hope it helps.

 

DAN

 

 

On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
wrote:

Hi,

Sorry for the slow reply on this. We have an xyz file, which is just a grid
of points, like this:-

 

-105.25,39.75,1757.129 

-105.25,39.749958,1758.791 

-105.25,39.749917,1760.882 

-105.25,39.749875,1763.025 

-105.25,39.749833,1765.183 

-105.25,39.7497916667,1767.467 

-105.25,39.749750,1768.741 

-105.25,39.749708,1771.766 

-105.25,39.749667,1773.832 

-105.25,39.749625,1775.873 

-105.25,39.749583,1777.84 

-105.25,39.7495416667,1779.369 

-105.25,39.749500,1781.255 

-105.25,39.749458,1783.423 

-105.25,39.749417,1785.815 

-105.25,39.749375,1788.552 

-105.25,39.749333,1791.749 

-105.25,39.7492916667,1795.332 

-105.25,39.749250,1800.269 

-105.25,39.749208,1804.516 

-105.25,39.749167,1808.3 

 

So it must be relatively easy to convert this into a grid? Anyone got any
ideas or can supply a simple script we can modify that'll read this data and
generate a new grid or adjust the height of an existing grid?

 

Thanks 

 

Chris

 

 

 

On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

If it’s ASCII, an importer can probably be written fairly easily.

 

Do you have a sample file?

 

 

Matt

 

 

 

From: softimage-boun...@listproc.autodesk.com
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: Friday, December 14, 2012 5:19 AM
To: softimage@listproc.autodesk.com
Subject: terrain ascii xyz import

 

Hello,

Anyone know how to get these into soft?

 

Cheers

 

Chris

 





 

-- 



Chris Marshall

Mint Motion Limited

029 20 37 27 57

07730 533 115

www.mintmotion.co.uk

Re: terrain ascii xyz import

2013-01-09 Thread Dan Yargici
Yeah, it's actually quite amazing how slow it is!

DAN



On Wed, Jan 9, 2013 at 2:43 PM, adrian wyer
adrian.w...@fluid-pictures.comwrote:

 ** ** ** ** **

 it works, but on a 4 million point Lidar scan it's VERY SLOW.
 hehehe

 ** **

 i found another way to import, renamed the .xyz to .asc opened it in
 Meshlab, which converts it into an explosion of polygons, export an obj,
 create an empty point cloud and add points at the point locations of the
 exploded mesh

 ** **

 bit of a run around, but it's fast

 ** **

 thanks

 ** **
  --

 *From:* **softimage-boun...@listproc.autodesk.com** [mailto:**
 softimage-boun...@listproc.autodesk.com**] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 10:56

 *To:* **softimage@listproc.autodesk.com**
 *Subject:* Re: terrain ascii xyz import
 

  ** **

 Try that.

 ** **

 ** **

 On Wed, Jan 9, 2013 at 12:46 PM, adrian wyer 
 adrian.w...@fluid-pictures.com wrote:

 if you can be bothered, i know as much about Python as i do about open
 heart surgery.!

  

 it's just testing stuff at the moment, waiting to get some proper Lidar
 data from the client

  

 a

  
  --

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 10:30


 *To:* softimage@listproc.autodesk.com
 *Subject:* Re: terrain ascii xyz import

  

 Hi Adrian.

  

 I used the data that Chris pasted into his mail to test with and that had
 no spaces...

  

 I use huge regular expression to parse the file for valid point data lines
 and it doesn't expect spaces.  I'll tweak it and send it again if you
 like...

  

 DAN

  

  

 On Wed, Jan 9, 2013 at 12:22 PM, adrian wyer 
 adrian.w...@fluid-pictures.com wrote:

 Hey Dan, i gave it a swing, but regardless of my .xyz file formatting, i
 always get the error message;  Error - no points found or not a valid XYZ
 file!!!

  

 have you got an xyz file that works for you, that you caould strip to just
 a couple of lines so i can see the format?

  

 the one i'm trying is like this;

 

  

 647680.01, 508967.136, 185.622

 647680.099, 508967.133, 185.609

 647680.124, 508953.779, 184.757

  
  --

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 09:34
 *To:* softimage@listproc.autodesk.com
 *Subject:* Re: terrain ascii xyz import

  

 Hey Chris, was that script of any use?  Just curious! :)

  

 It's quite slow, as I'm sure you've noticed as you said it was a large
 file!

  

 Never could find a way to speed it up.  I just put it down to Python being
 slow in the end... :/

  

 DAN

  

  

 On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 ok thanks guys. I'll see how this goes. I can always break the file down
 into smaller pieces maybe. Or if Dan's script works well, take a percentage
 of the point instead.

 I'll report back!

  

  

 On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.ch
 wrote:

 oh, all right. If it's huge then this won't work that well I think :(

  

 On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.

  

 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:***
 *

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get** **Point** **ID and pointcloud getdata -- ID To Location
 -- .PointPosition -- Set Point Position

  

 (Who knows how the terrain is ordered though. It might look horrid.)

  

 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:
 

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

  

 Just rename as .py and run in the script editor.

  

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

  

 Hope it helps.

  

 DAN

  

  

 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 Hi,

 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

  

 -105.25,39.75,1757.129 

 -105.25,39.749958,1758.791 

 -105.25,39.749917,1760.882 

 -105.25,39.749875,1763.025 

 -105.25,39.749833,1765.183

Re: terrain ascii xyz import

2013-01-09 Thread Dan Yargici
I should add that it was never intended to work with that many points, it's
probably slow to even open the PPG right?  I wrote it to get the number of
points first to display in the PPG...


On Wed, Jan 9, 2013 at 2:57 PM, Dan Yargici danyarg...@gmail.com wrote:

 Yeah, it's actually quite amazing how slow it is!

 DAN



 On Wed, Jan 9, 2013 at 2:43 PM, adrian wyer 
 adrian.w...@fluid-pictures.com wrote:

 ** ** ** ** **

 it works, but on a 4 million point Lidar scan it's VERY SLOW.
 hehehe

 ** **

 i found another way to import, renamed the .xyz to .asc opened it in
 Meshlab, which converts it into an explosion of polygons, export an obj,
 create an empty point cloud and add points at the point locations of the
 exploded mesh

 ** **

 bit of a run around, but it's fast

 ** **

 thanks

 ** **
  --

 *From:* **softimage-boun...@listproc.autodesk.com** [mailto:**
 softimage-boun...@listproc.autodesk.com**] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 10:56

 *To:* **softimage@listproc.autodesk.com**
 *Subject:* Re: terrain ascii xyz import
 

  ** **

 Try that.

 ** **

 ** **

 On Wed, Jan 9, 2013 at 12:46 PM, adrian wyer 
 adrian.w...@fluid-pictures.com wrote:

 if you can be bothered, i know as much about Python as i do about open
 heart surgery.!

  

 it's just testing stuff at the moment, waiting to get some proper Lidar
 data from the client

  

 a

  
  --

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 10:30


 *To:* softimage@listproc.autodesk.com
 *Subject:* Re: terrain ascii xyz import

  

 Hi Adrian.

  

 I used the data that Chris pasted into his mail to test with and that had
 no spaces...

  

 I use huge regular expression to parse the file for valid point data
 lines and it doesn't expect spaces.  I'll tweak it and send it again if you
 like...

  

 DAN

  

  

 On Wed, Jan 9, 2013 at 12:22 PM, adrian wyer 
 adrian.w...@fluid-pictures.com wrote:

 Hey Dan, i gave it a swing, but regardless of my .xyz file formatting, i
 always get the error message;  Error - no points found or not a valid XYZ
 file!!!

  

 have you got an xyz file that works for you, that you caould strip to
 just a couple of lines so i can see the format?

  

 the one i'm trying is like this;

 

  

 647680.01, 508967.136, 185.622

 647680.099, 508967.133, 185.609

 647680.124, 508953.779, 184.757

  
  --

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Dan Yargici
 *Sent:* 09 January 2013 09:34
 *To:* softimage@listproc.autodesk.com
 *Subject:* Re: terrain ascii xyz import

  

 Hey Chris, was that script of any use?  Just curious! :)

  

 It's quite slow, as I'm sure you've noticed as you said it was a large
 file!

  

 Never could find a way to speed it up.  I just put it down to Python
 being slow in the end... :/

  

 DAN

  

  

 On Mon, Jan 7, 2013 at 6:54 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 ok thanks guys. I'll see how this goes. I can always break the file down
 into smaller pieces maybe. Or if Dan's script works well, take a percentage
 of the point instead.

 I'll report back!

  

  

 On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.ch
 wrote:

 oh, all right. If it's huge then this won't work that well I think :(

  

 On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.

  

 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:**
 **

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get** **Point** **ID and pointcloud getdata -- ID To Location
 -- .PointPosition -- Set Point Position

  

 (Who knows how the terrain is ordered though. It might look horrid.)

  

 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com
 wrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

  

 Just rename as .py and run in the script editor.

  

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

  

 Hope it helps.

  

 DAN

  

  

 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
 wrote:

 Hi,

 Sorry for the slow reply on this. We have an xyz file, which is just

Re: terrain ascii xyz import

2013-01-07 Thread Alan Fregtman
You want a pointcloud? Because that's just positions. It's not defining
topology.

You could probably make a grid of enough points and stick them to that
pointcloud, but it could look shitty.



On Mon, Jan 7, 2013 at 10:09 AM, Chris Marshall
chrismarshal...@gmail.comwrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got any
 ideas or can supply a simple script we can modify that'll read this data
 and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




Re: terrain ascii xyz import

2013-01-07 Thread Dan Yargici
Hey Chris, I quickly (read - some things may not work!) refactored my old
.PLY importer for you. should work...

Just rename as .py and run in the script editor.

Like Alan suggested though, it's just point data so it just makes a
pointcloud.

Hope it helps.

DAN



On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.comwrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got any
 ideas or can supply a simple script we can modify that'll read this data
 and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk


import sys
import random
import gzip
import os
import re
from struct import pack
import win32com.client
from win32com.client import constants

## Globals
null = None
false = 0
true = 1
xsi = Application
pr = xsi.LogMessage

def main():
# Browse for the .XYZ file
xyzFilePath = GetXYZfilePath()
if xyzFilePath:
# Retreive the point data from the .XYZ file
pointsList = GetPointsList(xyzFilePath)
nbPoints = len(pointsList)
if nbPoints  0:
# Get user input
oPset = GetInputValues(nbPoints)
if oPset:
pointsPerc = oPset.pPointsPerc.value

# Take the list of point data and rework it for 
softimage - Use user input to filter/modify the data.
pointDataList = ParsePoints(pointsList, 
pointsPerc)
nbPoints = len(pointDataList)

# Write the icecache
cachePath = WriteIceCache(xyzFilePath, 
pointDataList, oPset.pPointSize.value)

# Create an empty pointcloud under a model
cloudModel = 
xsi.ActiveSceneRoot.AddModel(,xyzfileName + _model)
pointCloud = 
cloudModel.AddPrimitive(pointcloud, xyzfileName)

# Load in out newly created icecache
xsi.AddFileCacheSource(pointCloud, cachePath)

# Cleanup...
xsi.FreezeObj(pointCloud)
xsi.DeleteObj(cloudModel.Fullname + .Mixer)
# I figure one more command isn't gonna hurt 
after the 3 above this... ;)
xsi.SetValue(pointCloud.Fullname + 
.particledisplay.displaytype, 1, )
else:
pr(Aborting!!!)
xsi.DeleteObj(oPset)
else:
pr(Error - no points found or not a valid XYZ file!!!)
else:
pr(Error - no XYZ file!!!)
return

def GetInputValues(nbPoints):
# Setup the Custom Pset and inspect Modally - Define the Pset as a 
global
global oPset
oPset = xsi.ActiveSceneRoot.AddCustomProperty(XYZ_ImportOptions)
pImportPerc = oPset.AddParameter2(pPointsPerc, constants.siInt2, 100, 
0, 100, 0, 100

Re: terrain ascii xyz import

2013-01-07 Thread Chris Marshall
OK Thanks, I'll take a look!! Cheers



On 7 January 2013 16:22, Dan Yargici danyarg...@gmail.com wrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.comwrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got any
 ideas or can supply a simple script we can modify that'll read this data
 and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk





-- 

Chris Marshall
Mint Motion Limited
029 20 37 27 57
07730 533 115
www.mintmotion.co.uk


Re: terrain ascii xyz import

2013-01-07 Thread Alan Fregtman
With that, then you can use ICE on a grid of sufficient points and set up a
tree like...

Get Point ID and pointcloud getdata -- ID To Location -- .PointPosition
-- Set Point Position

(Who knows how the terrain is ordered though. It might look horrid.)



On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.comwrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got any
 ideas or can supply a simple script we can modify that'll read this data
 and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk





Re: terrain ascii xyz import

2013-01-07 Thread Chris Marshall
That's what I was thinking. Once I get the file into soft, I'll know what
I'm dealing with. It's a pretty huge file of points.


On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get Point ID and pointcloud getdata -- ID To Location --
 .PointPosition -- Set Point Position

 (Who knows how the terrain is ordered though. It might look horrid.)



 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.com wrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my old
 .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall chrismarshal...@gmail.com
  wrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got
 any ideas or can supply a simple script we can modify that'll read this
 data and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk






-- 

Chris Marshall
Mint Motion Limited
029 20 37 27 57
07730 533 115
www.mintmotion.co.uk


Re: terrain ascii xyz import

2013-01-07 Thread Dan Yargici
One good thing about my script is that you can ask it to take a small
percentage of points if you want to have a quick preview.

Also if you get bored and cancel during import you still get all the points
processed up to that point.  :)

DAN


On Mon, Jan 7, 2013 at 6:40 PM, Chris Marshall chrismarshal...@gmail.comwrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.


 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get Point ID and pointcloud getdata -- ID To Location --
 .PointPosition -- Set Point Position

 (Who knows how the terrain is ordered though. It might look horrid.)



 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.comwrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my
 old .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.com wrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got
 any ideas or can supply a simple script we can modify that'll read this
 data and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk






 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




Re: terrain ascii xyz import

2013-01-07 Thread Vladimir Jankijevic
oh, all right. If it's huge then this won't work that well I think :(


On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall chrismarshal...@gmail.comwrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.


 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

 With that, then you can use ICE on a grid of sufficient points and set up
 a tree like...

 Get Point ID and pointcloud getdata -- ID To Location --
 .PointPosition -- Set Point Position

 (Who knows how the terrain is ordered though. It might look horrid.)



 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.comwrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my
 old .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.com wrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got
 any ideas or can supply a simple script we can modify that'll read this
 data and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk






 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




-- 
---
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---


Re: terrain ascii xyz import

2013-01-07 Thread Chris Marshall
ok thanks guys. I'll see how this goes. I can always break the file down
into smaller pieces maybe. Or if Dan's script works well, take a percentage
of the point instead.
I'll report back!



On 7 January 2013 16:51, Vladimir Jankijevic vladi...@elefantstudios.chwrote:

 oh, all right. If it's huge then this won't work that well I think :(


 On Mon, Jan 7, 2013 at 5:40 PM, Chris Marshall 
 chrismarshal...@gmail.comwrote:

 That's what I was thinking. Once I get the file into soft, I'll know what
 I'm dealing with. It's a pretty huge file of points.


 On 7 January 2013 16:34, Alan Fregtman alan.fregt...@gmail.com wrote:

 With that, then you can use ICE on a grid of sufficient points and set
 up a tree like...

 Get Point ID and pointcloud getdata -- ID To Location --
 .PointPosition -- Set Point Position

 (Who knows how the terrain is ordered though. It might look horrid.)



 On Mon, Jan 7, 2013 at 11:22 AM, Dan Yargici danyarg...@gmail.comwrote:

 Hey Chris, I quickly (read - some things may not work!) refactored my
 old .PLY importer for you. should work...

 Just rename as .py and run in the script editor.

 Like Alan suggested though, it's just point data so it just makes a
 pointcloud.

 Hope it helps.

 DAN



 On Mon, Jan 7, 2013 at 5:09 PM, Chris Marshall 
 chrismarshal...@gmail.com wrote:

 Hi,
 Sorry for the slow reply on this. We have an xyz file, which is just a
 grid of points, like this:-

 -105.25,39.75,1757.129
 -105.25,39.749958,1758.791
 -105.25,39.749917,1760.882
 -105.25,39.749875,1763.025
 -105.25,39.749833,1765.183
 -105.25,39.7497916667,1767.467
 -105.25,39.749750,1768.741
 -105.25,39.749708,1771.766
 -105.25,39.749667,1773.832
 -105.25,39.749625,1775.873
 -105.25,39.749583,1777.84
 -105.25,39.7495416667,1779.369
 -105.25,39.749500,1781.255
 -105.25,39.749458,1783.423
 -105.25,39.749417,1785.815
 -105.25,39.749375,1788.552
 -105.25,39.749333,1791.749
 -105.25,39.7492916667,1795.332
 -105.25,39.749250,1800.269
 -105.25,39.749208,1804.516
 -105.25,39.749167,1808.3

 So it must be relatively easy to convert this into a grid? Anyone got
 any ideas or can supply a simple script we can modify that'll read this
 data and generate a new grid or adjust the height of an existing grid?

 Thanks

 Chris




 On 14 December 2012 19:12, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris
 Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **




 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk






 --

 Chris Marshall
 Mint Motion Limited
 029 20 37 27 57
 07730 533 115
 www.mintmotion.co.uk




 --
 ---
 Vladimir Jankijevic
 Technical Direction

 Elefant Studios AG
 Lessingstrasse 15
 CH-8002 Zürich

 +41 44 500 48 20

 www.elefantstudios.ch
 ---




-- 

Chris Marshall
Mint Motion Limited
029 20 37 27 57
07730 533 115
www.mintmotion.co.uk


Re: terrain ascii xyz import

2012-12-16 Thread christian
maybe a bit late to the party (and maybe the plugin doesn't even work
anymore) but have you looked at http://sukio.de/resources/Terrain_Import.htm?


On Fri, Dec 14, 2012 at 8:12 PM, Matt Lind ml...@carbinestudios.com wrote:

 If it’s ASCII, an importer can probably be written fairly easily.

 ** **

 Do you have a sample file?

 ** **

 ** **

 Matt

 ** **

 ** **

 ** **

 *From:* softimage-boun...@listproc.autodesk.com [mailto:
 softimage-boun...@listproc.autodesk.com] *On Behalf Of *Chris Marshall
 *Sent:* Friday, December 14, 2012 5:19 AM
 *To:* softimage@listproc.autodesk.com
 *Subject:* terrain ascii xyz import

 ** **

 Hello,

 Anyone know how to get these into soft?

 ** **

 Cheers

 ** **

 Chris

 ** **



Re: terrain ascii xyz import

2012-12-14 Thread Chris Marshall
Thanks a lot Alan!!
Just trying it out now.
Will report back.
Cheers
Chris



On 14 December 2012 14:57, Alan Fregtman alan.fregt...@gmail.com wrote:

 What does the format look like? Is it a pointcloud only or does it define
 topology also?

 Either way, you can import it into the opensource freeware MeshLab
 http://meshlab.sourceforge.net/ and export it in a friendlier format. The
 program can also do meshing from pointclouds, if it turns out not to have a
 topological description.




 On Fri, Dec 14, 2012 at 8:19 AM, Chris Marshall chrismarshal...@gmail.com
  wrote:

 Hello,
 Anyone know how to get these into soft?

 Cheers

 Chris





RE: terrain ascii xyz import

2012-12-14 Thread Matt Lind
If it's ASCII, an importer can probably be written fairly easily.

Do you have a sample file?


Matt



From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Chris Marshall
Sent: Friday, December 14, 2012 5:19 AM
To: softimage@listproc.autodesk.com
Subject: terrain ascii xyz import

Hello,
Anyone know how to get these into soft?

Cheers

Chris