sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] PLY Importer

    已排程 已置頂 已鎖定 已移動 Plugins
    33 貼文 7 Posters 104.2k 瀏覽 7 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • J 離線
      Jim
      最後由 Jim 編輯

      [mod=Jim:1caoabps]Mar, 2014. My .ply plugin has been adopted by SketchUp, and the code is being hosted on Github. It should soon be available in the Extensions Warehouse.

      In the meantime, my original version can be downloaded here. Version 1.0.0, Plugins > jf_import_ply_file[/mod:1caoabps]

      Mar 28, 2014 - v1.0.0

      • Release v1.0.0 in order to establish a release version reference point.

      This exteniosn imports ASCII.ply files

      This importer handles only vertices and faces.

      Here's a model repository of .ply files -

      Here are a few more .ply files.

      Google search for ASCII .ply files.

      Some .ply files are huge, and both the import and the resulting model may bring SketchUp to a "white screen" state.

      For SketchUp 7+

      Hi

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        @jim said:

        Some .ply files are huge, and both the import and the resulting model may bring SketchUp to a "white screen" state.

        Performance is greatly improved if you create a PolygonMesh and use Entities.fill_from_mesh.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 條回覆 最後回覆 回覆 引用 0
        • J 離線
          Jim
          最後由 編輯

          I need another me.

          Hi

          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            jim2 = jim.clone

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 條回覆 最後回覆 回覆 引用 0
            • J 離線
              Jim
              最後由 編輯

              Ok, new version posted - uses PolygonMesh.

              Hi

              1 條回覆 最後回覆 回覆 引用 0
              • thomthomT 離線
                thomthom
                最後由 編輯

                hm...

                
                while true
                  jim.clone
                end
                
                

                😄

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 條回覆 最後回覆 回覆 引用 0
                • J 離線
                  Jim
                  最後由 編輯

                  Here's a reasonably-size example:

                  403 Forbidden

                  favicon

                  (www.cs.virginia.edu)

                  cow.jpg

                  Moo.

                  Hi

                  1 條回覆 最後回覆 回覆 引用 0
                  • N 離線
                    notareal
                    最後由 編輯

                    Nice. Expecting to see some Chinese gardens with high poly dragons?

                    Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                    1 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      driven
                      最後由 編輯

                      import works,

                      and scrubs up, OK

                      but, how do you skin a cow on a Mac?

                      Hi,
                      this could be very handy, but the skinning is not working on mac? is it possible to tweak the code?

                      john

                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                      1 條回覆 最後回覆 回覆 引用 0
                      • J 離線
                        Jim
                        最後由 編輯

                        I don't understand SketchUp sometimes - my cow looked fine and was skinned on import. I did not need to do any cleanup.

                        Hi

                        1 條回覆 最後回覆 回覆 引用 0
                        • D 離線
                          driven
                          最後由 編輯

                          how do I revert to standard import to see if it bring faces?

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 條回覆 最後回覆 回覆 引用 0
                          • thomthomT 離線
                            thomthom
                            最後由 編輯

                            maybe the data is read somewhat differently on Mac..?

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 條回覆 最後回覆 回覆 引用 0
                            • J 離線
                              Jim
                              最後由 編輯

                              Line endings? Seems doubtful, but maybe.. will check.

                              Hi

                              1 條回覆 最後回覆 回覆 引用 0
                              • thomthomT 離線
                                thomthom
                                最後由 編輯

                                that - or interpretation of commas/periods depending on locale settings...
                                stabbing in the dark here

                                Thomas Thomassen — SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

                                1 條回覆 最後回覆 回覆 引用 0
                                • J 離線
                                  Jim
                                  最後由 編輯

                                  After reading the spec again, I'm surprised my "naive" implementation from 2006 works at all. I probably had the same thought then as I am having right now - it's hardly worth the effort for such an obscure file format. Good programming exercise, though.

                                  Hi

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • D 離線
                                    driven
                                    最後由 編輯

                                    Hi again,

                                    I certainly don't NEED it enough to warrant any effort, importing via MeshLab as either odj, dae or dxf is very painless on a mac, for the odd occasion that I'd want to.

                                    the cow, which I copy pasted into a text file, re-named cow.ply is the only .ply I've had any success importing to SU and it won't open in MeshLad (I get a missing header message)

                                    I'm more in need of 'skink-wrapping' of complex engineering geometry which I can't seem to find for Mac SU usage.

                                    john

                                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • J 離線
                                      Jim
                                      最後由 編輯

                                      I re-wrote this so it should work with most ascii .ply files that have vertex and face elements. See first post for download.

                                      Hi

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • D 離線
                                        driven
                                        最後由 編輯

                                        Hi Jim, thanks

                                        I'll try it out later on and see if there's still a Mac issue, cheers

                                        BTW have you ever had a play with Apanta Studio, the PC editor [that's now ported to Mac?]

                                        john

                                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • D 離線
                                          driven
                                          最後由 編輯

                                          took longer to upload the Jpeg then to load into SU so that's very good, but I now have a request because I may have a use... can it import into a component, to save SU re-calculating all the faces?
                                          came in so fast

                                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • J 離線
                                            Jim
                                            最後由 編輯

                                            If there is any geometry in the model (i.e. the model is not empty,) then the import is made in a Group. Will that work?

                                            Glad to see it working.

                                            Hi

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement