21 Replies Latest reply on Nov 12, 2010 9:55 AM by Lenny Bucholz

    Move an imported .STL surface part 1Million meters to SW origin?

    Walter Perko

      Hi,


      I have a surface model .STL that when imported into SolidWorks 2009 ends up being about 1Million meters behind the front face origin ... how can I move the surface model forward so that I can cut 'n trim etc? 


       

      C U L8r,  Walt Perko

      http://www.brainless.org/RoboToons/T-Shirts&Totes.html

        • Re: Move an imported .STL surface part 1Million meters to SW origin?
          Kelvin Lamport

          Zoom in on the model, and create a new Coordinate System (CS) where required

          Save As the part as a Parasolid using the Options function to select the new CS

          Re-open the Parasolid file and the new CS will be the default

          • Re: Move an imported .STL surface part 1Million meters to SW origin?
            Lenny Bucholz

            SW only has a 1 kilometer cube work space limitation

            • Re: Move an imported .STL surface part 1Million meters to SW origin?
              Craig Pretty

              Try importing in mm, then it will likely be only 1000m out instead of 1 million meters.  Of course it will be 1/1000 the size, but a quick scale will sort that out.

              • Re: Move an imported .STL surface part 1Million meters to SW origin?
                Charles Culp

                Try using MeshLab. It is an open-source (free) mesh editing tool. Use it to redefine the coordinate system. Then resave as an .stl and import to SolidWorks.

                 

                http://meshlab.sourceforge.net/

                  • Re: Move an imported .STL surface part 1Million meters to SW origin?
                    Walter Perko

                    Hi,

                     

                    I downloaded and installed MeshLab ... but I can't see how or where to move the origin or the .STL to the origin ???

                     

                    Can you please give me a step by step procedure as I want to do this sooner than later and digging through the menus I don't see any origin controls ...

                     

                     

                    C U L8r,  Walt Perko

                    http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                      • Re: Move an imported .STL surface part 1Million meters to SW origin?
                        Kelvin Lamport

                        Any chance you can post the file here to experiment with?

                          • Re: Move an imported .STL surface part 1Million meters to SW origin?
                            Neil Larsen

                            I can probably relocate the surface to the origin in Blender if he wants - or even a particular vertex, face to the origin..

                            • Re: Move an imported .STL surface part 1Million meters to SW origin?
                              Walter Perko

                              Hi,

                               

                              Okay, I upload the file to my website ... it's a laser scanned image of myself ... 

                               

                               

                              If you get it moved to where it can be worked on in SolidWorks that'd be great ...

                               

                              For those who want to see the basic first use of the file;

                              http://www.brainless.org/

                               

                               

                              Here's the link to the .STL file;

                              http://www.brainless.org/MultiMedia/face-Data-3.stl

                               

                               

                               

                               

                               

                              C U L8r,  Walt Perko

                              http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                                • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                  Neil Larsen

                                  The first thing to note is this file has 1.34m faces and is too big to work with in SW.

                                  The limit is 100,000 faces for a surface. SW is going to tell you to import this as a graphic body ie. you wont be able to do modelling stuff with it.

                                  Were you intending to edit and patch this up in SW? if so its the wrong tool.

                                  SW bogs down badly loading a large mesh anyway and it wont be happy displaying 1.34m faces either.

                                  I could clean this up and simplify it some in Blender for you. Which part do you need? hmmm I'll make a guess...

                                  I'll get back to this post when I've dealt to the file..btw its also 1000x too big scale wise...

                                   

                                  Edit: Ok so I've got rid of some of the peripheral faces for you and cleaned the mesh of stray vertices etc. and also scaled it and moved it to be nearer to the origin.

                                  I hope it suits your purpose. It has a little more missing now it has 53360 faces but its a manageable size inside SW. See attach pic of stl opened as surface in SW2005 (now in semi-retirement on my old pc I use for Internet).

                                  The stl attach does take some time to load. If you get a popup warning about the mesh just accept it and let it run on...

                                   

                                  Edit2: Attach also is a screenie of a DAVID-Laserscanner/3D Shape Fusion mesh repair on an .obj version of the file below - sorry I only have the demo so cant save for you but stl out is an option. If you want a neatly reconstructed scan this is the way to go. You can also manually clean up stray bits of the mesh in DAVID like I did in Blender. I'm not sure how it would handle scale and origin issues though. I guess a combination of tools is called for. I presume the output is accurate enough for SW.

                                  Hopefully DAVID would make a neat surface of <100,000 faces for SW with this example.

                                  Meshes inside SW are really to be avoided.

                                  HTH

                                    • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                      Walter Perko

                                      Hi,

                                       

                                      That's pretty cool  ... but I actually wanted to keep the hair and the body pieces too ... I just need the object moved to the SolidWorks origin so I can cut it up into pieces and use them reassembled ...

                                       

                                      As long as the shape is the same with all the holes (and another without the holes might be useful) that's just a part I want to play with ... my head and shoulders ... scaling can be done on the PC screen ...

                                       

                                      Also, if you could list the programs and a short list of steps within each program then maybe I can learn how to play with my head some more.

                                       

                                      Learning how to move a .STL to a new origin would be a great lesson.

                                       

                                      Learning how to fill-in a specific hole would be another great lesson.

                                       

                                      Learning how to smooth out specific bumps would be the next great lesson ... my head really isn't that lumpy.

                                       

                                       

                                       

                                      Thanks again for the face part ... it's pretty cool ...

                                       

                                       

                                      Take a look at what I did with just the imported .STL

                                      http://www.brainless.org/

                                       

                                       

                                      With the body cut into a seperate part I can make my body rotate left 'n right a little as the head 'n hair rotate ... that's the next thing I wanted to do with my face ... then play with it some more to see what other creative things I could do later ... but I couldn't cut the .STL into two pieces because it's too far from the SW origin.

                                       

                                       

                                      C U L8r,  Walt Perko

                                      http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                                        • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                          Neil Larsen

                                          Well as I explained the whole mesh you provided cant be used as is in SW because there are too many faces and there are also stray edges etc that SW precision will balk at. You wont be able to cut the mesh in SW not only because it isnt at the origin or out of scale but because it wont actually load the geometry to do so.

                                          I also said SW is really the wrong tool to use for meshes. It does have some mesh capability but its limited and not intended for 'creative' stuff. Performance is poor too.

                                          If you want to get the whole thing into SW you are going to need to clean it up and cut it up in other cg programs made to handle meshes and then make a SW assembly of <100,000 face slices/parts. Even though you could finally achieve this in SW its not a good solution. Your final purpose doesnt really seem to be engineering/ID related anyway.

                                          SW does have a more specialised module called ScanTo3D as part of SW Premium that you might want to check out but it also has performance and capability limitations.

                                           

                                          I've done my best to answer your question but I'm sorry to say I'm not going to spend more time on it than I already have.

                                          If the file I provided isnt suitable perhaps someone else here might redo it for you but you should actually learn to do it for yourself. Its actually not that hard.

                                          Download free Blender http://www.blender.org/download/get-blender/  and the demo of DAVID  http://www.david-laserscanner.com/  and see what you can learn.

                                          I think free Meshlab has similar mesh healing tools to DAVID - not sure - check it out. Here is a wikipedia list of cg programs that may be more suitable to your mission.

                                          Good luck

                                            • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                              Walter Perko

                                              Hi,

                                               

                                              Well I guess I was looking for a short "recipe" of the steps needed to move the object to the SW origin ...

                                               

                                              Since the object is a "mesh" then I need a recipe how to convert the "mesh" into a solid body so I can use SolidWorks to cut and add pieces to it ... to use the pieces as an assembly etc...

                                               

                                              I don't want somebody else to do all the work ... but somebody could lead me through the few steps help;ing me get started learning new skills I can use with SolidWorks ...

                                               

                                              I got Blender ... I can't see how to move the .STL to a new origin there ... I got MeshLab and still have the same problem ... I don't know these programs but I guess I need to get started ... and a few basic recipes seem a great way to get started ... and would probably help many other people getting started too ...

                                               

                                               

                                               

                                               

                                              C U L8r,  Walt Perko

                                              http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                                                • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                                  Neil Larsen

                                                  No.

                                                   

                                                  You need to import your big stl mesh into Blender or another cg program and cut it up into smaller bits and export those again as stl. These smaller bits you import into SW parts as stl with the surface option. They look like the one I did for you. This is a work around.

                                                   

                                                  See this other SW forum thread along the same lines for some Blender help https://forum.solidworks.com/message/130998#130998  and this one too https://forum.solidworks.com/thread/36653 Search is your friend. The Blender manual is here http://wiki.blender.org/index.php/Doc:Manual

                                                   

                                                  This isnt a Blender helpdesk or tutorial service or a SW one either for that matter. You are lucky that other users give their time to briefly answer others questions as they visit.

                                                   

                                                  later

                                                    • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                                      Walter Perko

                                                      Hi,

                                                       

                                                      The idea of forums is for people who want to share or ask questions to get answers and learn ... Forums are exactly a Help Desk/Support Center.  Unfortunately some people think they help by telling others to go fish.  But if the other person doesn't know what fishing is, where to go fishing or how to fish then telling them to go fish is almost as useless as you catching a fish and throwing it at them and then telling them to go fish.

                                                       

                                                      The concept of the forum is so I and anybody else can ask a question and learn what is fishing, where to fish and how to fish.  Hence why my posts ask for the step-by-step menu items to use to perform the task of moving the object to the SolidWorks origin.  I didn't ask for anything else ... just how to do it.

                                                       

                                                      OTOH, one of the clues I learned from your uploaded cut-up .STL was that I cannot cut pieces out of the .STL mesh and so now I also want to know how I can cut the .STL mesh into two or more parts to screw with the .SLDPRT files later in SolidWorks?

                                                       

                                                      Two simple questions looking for a straight forward answer ... like; "Use Blender ... Tools - Coordinates - Center - Save" ... although that is NOT the correct answer, that's what kind of answer I'm looking for here ... for both questions.

                                                       

                                                       

                                                       

                                                      C U L8r,  Walt Perko

                                                      http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                                                        • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                                          Josh Brady

                                                          To use your non-sensical analogy, you are sitting at a bar.  At this bar are a bunch of fishermen who are very experienced and like to give tips to other fishermen and help with various fishing problems.  These fishermen are not paid to do so.  It's out of their own good will, because they like talking about fishing.  You have an oozing pus-dripping rash.  You say that you want to fish using spaghetti instead of fishing line.  One of the fishermen, who also happens to be a doctor, takes pity on you and tries to explain that spaghetti is not good fishing line.  He then attempts to patch up your rash and gives you some real fishing line.  You are very ungrateful, saying that all you wanted to do is learn to fish.  Except now you want to learn to be a doctor, then go fishing with spaghetti.

                                                            • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                                              Lenny Bucholz

                                                              Josh Brady wrote:

                                                               

                                                              To use your non-sensical analogy, you are sitting at a bar.  At this bar are a bunch of fishermen who are very experienced and like to give tips to other fishermen and help with various fishing problems.  These fishermen are not paid to do so.  It's out of their own good will, because they like talking about fishing.  You have an oozing pus-dripping rash.  You say that you want to fish using spaghetti instead of fishing line.  One of the fishermen, who also happens to be a doctor, takes pity on you and tries to explain that spaghetti is not good fishing line.  He then attempts to patch up your rash and gives you some real fishing line.  You are very ungrateful, saying that all you wanted to do is learn to fish.  Except now you want to learn to be a doctor, then go fishing with spaghetti.

                                                              DITTO! to what Josh said.

                                                               

                                                              You get help and answers here and opinions and kind of sorta thats how it works, maybe! It may not be step by step for the other non-SW softwares.

                                                               

                                                              Most of us run into these kinds of problems and have had to search out the solutions/bandaids to get the job done, been given some hints from other, the help files, the vendor of said softwares and most of all experimenting with the program hours and hours and hours and hours, clicking, swearing, crying, laughing and in then end we get it to work....not everything is as you stated go here, click this, then that and whala it works...sorry but thats the way it is.

                                                               

                                                              Just don't forget the noodles! or is it the line? never had someone to put my worm on the hook...but now i'm a pro!!!!

                                                               

                                        • Re: Move an imported .STL surface part 1Million meters to SW origin?
                                          Robert Stupplebeen

                                          You could also directly edit he STL file it is a very simple format.

                                           

                                          Search "STL CAD"

                                           

                                          Below is the text file format for an ASCII formatted STL taken from:
                                          http://en.wikipedia.org/wiki/STL_%28file_format%29

                                           

                                          facet normal ni nj nk
                                             outer loop
                                               vertex v1x v1y v1z
                                               vertex v2x v2y v2z
                                               vertex v3x v3y v3z'
                                             endloop
                                          endfacet

                                           

                                          Basically  define a triangle by the coordinates of the verticies.  Repeat for each  triangle.  It looks like a poorly formatted FEA mesh.

                                           

                                          I hope this helps.

                                           

                                          Rob Stupplebeen

                                          • HOW? 2move an imported .STL part 1Million meters to SW origin?
                                            Walter Perko

                                            Hi,

                                             

                                            I  have an .STL that when imported into SolidWorks 2009 ends  up being about 1Million meters behind the front face origin ...

                                             

                                            How can I  move the surface model close to the SolidWorks origin?

                                             

                                             

                                            C U L8r,  Walt Perko

                                            http://www.brainless.org/RoboToons/T-Shirts&Totes.html

                                            Children's Christmas RoboToons Animated Cartoon Posted ...
                                              • Re: HOW? 2move an imported .STL part 1Million meters to SW origin?
                                                Chris Dolejska

                                                This is a SOLIDWORKS forum

                                                 

                                                even if you could move your imported part in SW, which you cannot do, you wouldn't even be able to do anything with it in SW.

                                                 

                                                SW is not the correct software to use for the part you have even if you manage to convert parts of it etc. and import. You are only going frustrate yourself and waste time, as you are apparently already doing.

                                                 

                                                You need to ask your questions in another forum/forums for the other software that's already been mentioned. Not in this forum, this is a SOLIDWORKS forum and you do not need and cannot use SOLIDWORKS for what you are trying to do.

                                                  • Re: HOW? 2move an imported .STL part 1Million meters to SW origin?
                                                    Lenny Bucholz

                                                    1-9GVX4H wrote:

                                                     

                                                    This is a SOLIDWORKS forum

                                                     

                                                    even if you could move your imported part in SW, which you cannot do, you wouldn't even be able to do anything with it in SW.

                                                     

                                                    SW is not the correct software to use for the part you have even if you manage to convert parts of it etc. and import. You are only going frustrate yourself and waste time, as you are apparently already doing.

                                                     

                                                    You need to ask your questions in another forum/forums for the other software that's already been mentioned. Not in this forum, this is a SOLIDWORKS forum and you do not need and cannot use SOLIDWORKS for what you are trying to do.

                                                    1-9GVX4H,

                                                     

                                                    I beg to differ! you can use SW to move an stl surface from on location to another, as long as it is a surface and not the graphic of the stl.

                                                     

                                                    yes you may have to use another software to make the stl into smaller sections or move it to a new location so SW can digest it, lets say.

                                                     

                                                    I have just done this for a group at ASU BioDesign, we had a CatScan of a skull, the stl was too big so we used MeshLab. We got rid of the parts of the stl we didn't need and then brought the stl into SW, it made a surface, using move/copy body put it in the correct location, and built the apperatice to the skull. Now we did have to do one other thing and that was to save the surface that was created from the stl as a iges and import it back in to make it useable.

                                                     

                                                    factors why it might not work, to many facet faces, bigger than a 1 kilometer cube both SW limitations.

                                                     

                                                    lenny