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

    Script to make edges into a curve: needed

    Scheduled Pinned Locked Moved Developers' Forum
    15 Posts 5 Posters 1.7k Views 5 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.
    • EdsonE Offline
      Edson
      last edited by

      i have tried many times, even with just a few edges. weld does not work for me.

      terrains of a certain size are still a weeak feature of SUp.

      edson mahfuz, architect| porto alegre • brasil
      http://www.mahfuz.arq.br

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

        Hi Edson
        Have you tried to smooth all segments connected to the segments you want to weld?
        Works fine for me.

        Regards

        1 Reply Last reply Reply Quote 0
        • EdsonE Offline
          Edson
          last edited by

          regis,

          there are thousands of segments! it becomes a mammoth manual job. this is not what CAD was supposed to be.

          besides, the idea is to turn each contour line into a segment before i make the survey lines into a terrain. so, there would be no segments connected to my curves.

          edson mahfuz, architect| porto alegre • brasil
          http://www.mahfuz.arq.br

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

            @edson said:

            besides, the idea is to turn each contour line into a segment before i make the survey lines into a terrain. so, there would be no segments connected to my curves.

            I don't understand exactely what you mean

            An ilustrated example perhaps

            regards

            1 Reply Last reply Reply Quote 0
            • EdsonE Offline
              Edson
              last edited by

              the image below shows what you get after importing a survey map: a bunch of contour lines made up of thousands of little segments.

              what i wanted was to turn them into polylines (each contour line being a polyline). weld is supposed to do that but it has not worked for me.


              contours.png

              edson mahfuz, architect| porto alegre • brasil
              http://www.mahfuz.arq.br

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Edson,

                Let them be individual edges or polylines - they will equally (badly) affect performance in SU. Certainly it's easier to work with single entities (i.e. a polyline instead of hundreds of little line entities).

                It's generally the question whether you need such a detailed mesh or not. If not, you may consider using less detailed contour maps (but of course, you work with what you get) or use the "simplify contours" ruby script.

                Gai...

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

                  Wow

                  I would like to try.
                  How do you got this survey map? Is it free?

                  Have you tried to vectorize this map in illustrator perhaps and export to sketchup as dwg file ?

                  regards
                  edit. I know what's a survey map now.

                  1 Reply Last reply Reply Quote 0
                  • EdsonE Offline
                    Edson
                    last edited by

                    @regis said:

                    Wow

                    I would like to try.
                    How do you got this survey map? Is it free?

                    Have you tried to vectorize this map in illustrator perhaps and export to sketchup as dwg file ?

                    regis,

                    the survey map was already provided to me as a dwg file. it was part of the info material for a competition i took part in recently. in this case it was free to all participants.

                    the other way i receive survey maps is when i am working for a client and he(she) hires a surveyor to do it as a previous necessary step before i can start working on the design of some building. in this case it is paid.

                    edson mahfuz, architect| porto alegre • brasil
                    http://www.mahfuz.arq.br

                    1 Reply Last reply Reply Quote 0
                    • EdsonE Offline
                      Edson
                      last edited by

                      @gaieus said:

                      If not, you may consider using less detailed contour maps (but of course, you work with what you get) or use the "simplify contours" ruby script.

                      csaba,

                      do you know exactly what the simplify angle dialog box means? it asks me to enter an angle and i never quite know what to put there. depending on the angle some contours disappear.

                      edson mahfuz, architect| porto alegre • brasil
                      http://www.mahfuz.arq.br

                      1 Reply Last reply Reply Quote 0
                      • GaieusG Offline
                        Gaieus
                        last edited by

                        To tell the truth, Edson, I have never used that ruby in my life. But assuming (from the description) that it will simplyfy the whole mesh, the angle you need to enter is an angle on the z axis (elevation / or you could imagine a cross section of the whole topo) and where the contour lines are very dense, msome of them are ommitted (deleted).

                        OR (and it seems to be more logical) maybe when there is just a very slight difference between two faces in angle, it deletes the contour line in between because it would not make much difference anyway - the slope won't apparently change on a design work. Surely for final planning, the more detailed the topo is, the more precise the architect's work can be.

                        Gai...

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

                          Edson,

                          I don't understand why weld doesn't work on your contours.

                          I'll be happy to make tests with survey map so if you have one to share you can upload on the forum or send me by PM, it will be much appreciated.

                          regards

                          1 Reply Last reply Reply Quote 0
                          • JClementsJ Offline
                            JClements
                            last edited by

                            Edison, I think I may a have a workaround for you.

                            I am certainly not an expert at dealing with contours, but through recent experimentation and the availabilty of newer scripts this could be what you need.

                            You'll will need to check the accuracy of the "re-segmented" contours, however, to see if they are within the tolerances/lever of accuracy you want.

                            See the attached .skp for a mini-tutorial. You will need the Weld.rbby Rick Wilson and the BezierSpline script setby Fred06. If you plan to create a terrain from the contours, then I would suggest TIG's Hidden2Layer.rb (version 1.2) script and use it as mentioned here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=8726 .

                            In summary, the procedure is this:
                            A. Import the contours.
                            B. Triple click on a contour of segments and WELD.
                            C. Then right click on it and choose the the BZ context option of PolyLine Divider. Do note that for some reason (I think it has to do with the number of segments), the BZ context options may not be available; in that situation then bisect the weld segments into smaller lengths (see the mini-tutorial, Step 2).
                            D. After completing Step 3, then you may want to weld the "segment-reduced" contour path back together into one continuous polyline.Screen Capture of BZ content menuMini-Tutorial for BZ method of segment reduction

                            UPDATE: If Weld.rb does not work on all segments of a contour, try a selecting a smaller set of segments. OR, try selecting a few contour elevations (use one of SU's side views to do this), copy and paste them into a new file (or create a component out of them and then do a context menu Save As to create separate .skp), then try to weld, etc., then repeat the process for another set of contours; finally paste these back into one file. Otherwise, have the segments simplified by the surveyor in AutoCad first, or have them subdivide the one DWG file into 4 or more subfiles.

                            John | Illustrator | Beaverton, Oregon

                            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