points cloud

Discussion in 'Software' started by Mirko, May 20, 2005.

  1. Mirko
    Joined: Apr 2004
    Posts: 23
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Milan, Italy

    Mirko Junior Member

    I've been drawing an hull of the series 60, but my points are in a excel file, I don't want to copy them by hand, and I would create a points file to export under rhino, I tried to create three columns with the coordinates of the points, but rhino hasn't been able to open it...can you help me?

    THANKS!
     
  2. Raggi_Thor
    Joined: Jan 2004
    Posts: 2,457
    Likes: 64, Points: 0, Legacy Rep: 711
    Location: Trondheim, NORWAY

    Raggi_Thor Nav.arch/Designer/Builder

    You can create a script as a standard text file, it should look like
    POINT 1,2,3
    POINT 2,3,4
    POINT 3,4,5
    and so on

    If you have three columns named x, y and z in excel you can make a new column with the formula = "POINT " & X &"," & Y "," & Z
    or simmilar. This column can be pasted into the script file.
    Then you can use the command LoadScript and RunScript.
    After the point objects are created you can make it into a point cloud.
     
  3. DMacPherson
    Joined: Mar 2005
    Posts: 139
    Likes: 28, Points: 28, Legacy Rep: 209
    Location: Durham, NH USA

    DMacPherson Senior Member

    One quick way to do this is to save your excel page as a CSV comma-delimited file. Save just the points in X-Y-Z in three columns - make sure there is no other text or data. (The first row needs to be data.) Then Open this as a Points file (CSV) in Rhino. It will create a point cloud. Check the Rhino help for "points file import". (I also use this technique to plot data with 3 variables for visualization.)

    Don MacPherson
     
  4. Raggi_Thor
    Joined: Jan 2004
    Posts: 2,457
    Likes: 64, Points: 0, Legacy Rep: 711
    Location: Trondheim, NORWAY

    Raggi_Thor Nav.arch/Designer/Builder

    Thanks Don, that seems to be a much faster way.
     
  5. Mirko
    Joined: Apr 2004
    Posts: 23
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Milan, Italy

    Mirko Junior Member

    some problem in excel

    I tried to save the points cloud as cvs file, but for exporting it in rhino all coordinates have to be in the same column...my coordinates are in three different colums, I tried to join them, but after the colums have been joined excel shows only the datas of the left side...

    best regards...

    forgive my english
     
  6. DaveB
    Joined: Dec 2003
    Posts: 129
    Likes: 1, Points: 0, Legacy Rep: 11
    Location: Canada

    DaveB Senior Member

    post the file

    Hey,

    Can you post the file? (text or excel)

    I think it would be easier to help you that way...

    Best regards,

    Dave
     
  7. Mirko
    Joined: Apr 2004
    Posts: 23
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Milan, Italy

    Mirko Junior Member

    I've never posted a file...would you mind showing me the way...thanks!!!
     
  8. CGN
    Joined: Jan 2003
    Posts: 547
    Likes: 9, Points: 18, Legacy Rep: 138
    Location: MX

    CGN Senior Member

    Follow this:

    "Post reply", click on "manage attachements" a small window will pop up and click on "browse", find the file that you want to upload (click "upload"), once is loaded, click on "close this window" and your file will be ready to be posted with your reply.
     
  9. Tim B
    Joined: Jan 2003
    Posts: 1,438
    Likes: 59, Points: 0, Legacy Rep: 841
    Location: Southern England

    Tim B Senior Member

    Ok, copy all the values you need into a new sheet in excel. Save this sheet as a *.CSV file. Open it in Notepad, you should get:

    xxx,yyy,zzz
    xxx,yyy,zzz
    etc.

    If you are using Rhino 2 or 3 goto File->Import then choose "points file (*.txt,*.csv...." and select your file. You will get a dialogue box asking about the exact format, choose "Comma Delimited" and click ok.

    If you are using Rhino version 1, edit the file so that...
    Points
    xxx,yyy,zzz
    xxx,yyy,zzz
    etc.
    xxx,yyy,zzz
    Enter

    Then rename the file to *.txt Import it into Rhino using ReadCommandFile.

    Tim B.
     
  10. Mirko
    Joined: Apr 2004
    Posts: 23
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Milan, Italy

    Mirko Junior Member

    I'm sorry for my late reply, but I was studing for the exam of security of the ship...Tim, I'm going to try the way you showed me...I'll reply soon!

    BEST REGARDS
     

  11. Mirko
    Joined: Apr 2004
    Posts: 23
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Milan, Italy

    Mirko Junior Member

    Tim, I've to thank you, the way you showed me has worked!

    BEST REGARDS!

    MIRKO!
     
Loading...
Forum posts represent the experience, opinion, and view of individual users. Boat Design Net does not necessarily endorse nor share the view of each individual post.
When making potentially dangerous or financial decisions, always employ and consult appropriate professionals. Your circumstances or experience may be different.