sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    How to turn a 3D math function plot into a solid

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    13 Posts 3 Posters 2.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pilouP Offline
      pilou
      last edited by

      Maybe TopoShaper by Fredo6 can help you ? πŸ˜‰ All takes less 1 minute! (last rendering included) πŸ€“
      Topo 10 seconds Render 2 secondes : the more long is to launch programs! πŸ’š
      topos.jpg

      topos1.jpg

      Rendered in the free Real Time Render Simlab Composer Lite (Maxi 1920 *1080)

      topos2.jpg

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • K Offline
        kishorevis
        last edited by

        Thanks for your help!

        Dave R: I updated my Sketchup version in profile (2017)

        Pilou: Toposhaper by Fredo6 gets me a lot closer to a solution. Thank you.

        However, when I try to slice this shape with Slicer5, I get the message "The selected object is not a "manifold" solid". I had grouped all the components prior to running Slicer5. I think I understand that a Sketchup solid is a shape with no holes in it, i.e. "could hold water", but I don't know how to make this shape into a solid.

        Kishore


        sin x plus sin y after toposhaper.skp

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          Thank you for correcting your profile.

          As for the shape not being manifold, most likely you are running into the tiny face issue when the curved surface gets cut. Work at a larger scale. Generally when I model for 3D printing I set units to Meters and enter my dimensions as if they were real world. That is, for 10 inches I would enter 10 meters. STL files are unitless so you you would just tell the 3D printer software that the units are inches.

          As an example, this part was modeled with units set to meters but imported with units set to millimeters.
          Screenshot - 11_18_2019 , 6_52_28 AM.png

          Another thing is that you need to make the starting shape manifold before slicing it. As it is in your model the sine surface is in one group and the sides and bottom of the box are in another so neither one is what SketchUp classifies as solid. You can explode the two groups and make one from all of the geometry and then run slicer.

          Screenshot - 11_18_2019 , 7_04_30 AM.png

          I scaled the model up and reran Toposhaper to get all of your points included. Then made a single group from the two and you see SketchUp reports it as solid in Entity Info.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • K Offline
            kishorevis
            last edited by

            Thanks, Dave R. First of all, I am astonished at the speed and thoughfulness of these replies. Unfortunately, I am still struggling. 😳

            I have set units to Meters, re-run the point cloud from scratch and applied Toposhaper. I get the shape that you showed in your last post. I exploded it, but when I try to group the components, I get confused. Your post shows 3 components: the point cloud, the sine shape, and the sides and base. Then it looks like you have grouped the sine shape with the sides and base, excluding the point cloud. Is this correct?

            I tried separating the components, then deleting the point cloud, but I couldn't get the sine shape back together with the sides and base to make a solid.

            Thanks for your patience

            1 Reply Last reply Reply Quote 0
            • Dave RD Offline
              Dave R
              last edited by

              @kishorevis said:

              I have set units to Meters, re-run the point cloud from scratch and applied Toposhaper.

              Did you also scale the model up so 10 inches is 10 meters?

              @kishorevis said:

              I get the shape that you showed in your last post. I exploded it, but when I try to group the components, I get confused. Your post shows 3 components: the point cloud, the sine shape, and the sides and base.

              They are actually groups. Your point cloud is a group as is the sine surface and the base. I just moved them away from each other to show they are separate.

              @kishorevis said:

              Then it looks like you have grouped the sine shape with the sides and base, excluding the point cloud. Is this correct?

              I created a new sine shape and base with Toposhaper. Then I exploded the base group, cut the geometry to the clipboard, opened the sine curve group for editing and pasted the geometry I just cut using Paste in place.

              @kishorevis said:

              I tried separating the components, then deleting the point cloud, but I couldn't get the sine shape back together with the sides and base to make a solid.

              Don't move them apart. I only did that with your groups for illustration. Leave the geometry in place and use Cut and Paste in Place.

              @kishorevis said:

              Thanks for your patience

              You're welcome.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • K Offline
                kishorevis
                last edited by

                I've scaled the model up and the measuring tape now indicates it is 10 meters across.

                I have exploded the model and cut the base group to the clipboard.

                I double-click on the sine group (the surface, not the point cloud). This outlines the edges in blue so I take this to be correct. I paste in place, and the base group returns.

                I tried Slicer again and it still indicates it is not a solid. I then select-all, group, and Slicer indicates it is not a solid.

                Dave R: I think this is so straightforward to you that some of your instruction would be obvious to a more experienced user, but I'm sure I'm missing something here. Can you try the explanation again, and talk really slow? πŸ˜‰

                1 Reply Last reply Reply Quote 0
                • Dave RD Offline
                  Dave R
                  last edited by

                  Sorry. What I did earlier today seems to have partly been driven by the excessive nesting in your model. I cleaned up the model before making the video at the following link getting rid of all the groups except the point cloud. Then I find that the base geometry is a group included in a parent group also containing the loose geometry of the top surface. Simply exploding the base group was enough to wind up with the solid.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kishorevis
                    last edited by

                    Dave R: This is very exciting! I have slices of the 3D math function, as intended.

                    In case anyone else is interested to work through a similar project, here is the workflow: (please note that I have done this by rote/trial and error and don't yet understand the underlying computing. But I'm going to keep learning)

                    1. Math function created in Graphing Calculator 3D (in this case, sin (x) + sin (y)). Spreadsheet values (x,y,z) exported as .csv file

                    2. In Sketchup, point cloud imported using cloud_v8b extension (referenced to the .csv file above). Note: set delimiter as "," (comma). Use meters as units. Do NOT triangulate points. You should see a point cloud in the shape of the math function

                    3. Select the point cloud (select all) and use Toposhaper extension. Use "Generate trimesh terrain (cloud)". I ran it on its default settings. Click the play button to run it.

                    4. Save this file.

                    5. Open Outliner and context-click on the deepest nested object and explode it. Keep exploding each next until you can't explode anything else (I don't understand this part - yet - but it works). Then select all in the working window and group them together

                    6. Run Slicer 5. I cut along X axis. There's a variety of options to suit your purpose.

                    7. Voila - sliced 3D math function ready for laser cutting/3D printing

                    I've attached the initial coordinates file if you want to start from scratch. The final result with slices is too big to post.

                    Many thanks to Dave R for helping me with this!


                    sin x plus sin y coordinates.csv

                    1 Reply Last reply Reply Quote 0
                    • pilouP Offline
                      pilou
                      last edited by

                      @unknownuser said:

                      The final result with slices is too big to post.

                      Post just an image! πŸ˜‰

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kishorevis
                        last edited by

                        Oh, yeah, an image 😳

                        And, pardon me, Pilou. Thank you also for helping me with my project!


                        Slices!.jpg

                        1 Reply Last reply Reply Quote 0
                        • pilouP Offline
                          pilou
                          last edited by

                          After the use of the cool Slicer by Tig (that gives "Groups" )
                          you can use the funny Explode View by C Plassais...and me πŸ˜‰
                          Works with Groups, Components, Groups + Components at the same level of arborescence!
                          Click the image for the animation!

                          GIF_eclato.gif

                          Frenchy Pilou
                          Is beautiful that please without concept!
                          My Little site :)

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement