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

    [Plugin] Gradient Tools

    Scheduled Pinned Locked Moved Plugins
    24 Posts 11 Posters 45.0k Views 11 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.
    • H Offline
      hebeijianke
      last edited by

      Look this


      0.png

      1 Reply Last reply Reply Quote 0
      • TIGT Online
        TIG Moderator
        last edited by

        I understand! Any face that is facing 'down' returns 'VERTICAL'... πŸ˜•
        It was intended for roof/land-form slopes which are not usually upside down... πŸ˜’
        BUT it's an easy fix... I'll post an update asap... πŸ˜‰

        TIG

        1 Reply Last reply Reply Quote 0
        • H Offline
          hebeijianke
          last edited by

          @tig said:

          I understand! Any face that is facing 'down' returns VERTICAL too...
          It was intended for roof/land-form slopes which are not usually upside down...
          BUT it's an easy fix... I'll post an update asap...

          THX
          Your are so Warm-hearted

          1 Reply Last reply Reply Quote 0
          • TIGT Online
            TIG Moderator
            last edited by

            Here's v1.2 20100813 Downward pointing faces will now report the correct slope.
            http://forums.sketchucation.com/viewtopic.php?p=264130#p264130

            TIG

            1 Reply Last reply Reply Quote 0
            • C Offline
              chloesdad
              last edited by

              Thank you TIG for your continuing wonderful contributions.

              1 Reply Last reply Reply Quote 0
              • PixeroP Offline
                Pixero
                last edited by

                For a moment I thought you had found a way of making gradient materials...

                1 Reply Last reply Reply Quote 0
                • TIGT Online
                  TIG Moderator
                  last edited by

                  @pixero said:

                  For a moment I thought you had found a way of making gradient materials...

                  It simply reports the gradients of edges and faces and tags them - all edge/facetags can be relinked to an edge/face ob a menu click. They are put on their own layers for ease of management.
                  The use it's intended for is reporting and controlling the gradients of landforms and paths - as you make adjustments you can relink and see if the falls are still acceptable - i.e. not too flat or too steep.
                  You can also use it on roofs - checking that 'flat' roofs have adequate falls, tiled/slated/shingle roofs have suitable slopes and valleys etc are steep enough.
                  The tool tags edges or faces as I found that sometimes you need edges like valley centerlines but it's possible to have a face with no edges directly up/down the gradient, then you need to tag the face gradient... πŸ€“

                  [You can make Gradient Materials using a suitably graded Texture Image - see http://forums.sketchucation.com/viewtopic.php?p=149747#p149747 ]

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • TIGT Online
                    TIG Moderator
                    last edited by

                    Here's v1.3 20100814 A 'Relink ALL Tags' menu option has been added.
                    http://forums.sketchucation.com/viewtopic.php?p=264130#p264130

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • TIGT Online
                      TIG Moderator
                      last edited by

                      @unknownuser said:

                      @pixero said:

                      For a moment I thought you had found a way of making gradient materials...

                      Would it be possible to make this, TIG?

                      See the link - it's already been done ? Or am I missing something ??

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • PixeroP Offline
                        Pixero
                        last edited by

                        Sorry if I used the wrong word, but I was thinking of a procedural ramp texture.
                        Something like this: http://www.pixero.com/tutorials_ramp.html

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          frekky12
                          last edited by

                          Hello Tig,

                          I'm new to this plugin and have just downloaded it and am trying to understand how the ratio is representing the gradient.

                          Is there a way to represent this ratio in degrees?

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

                            @frekky12 said:

                            Hello Tig,

                            I'm new to this plugin and have just downloaded it and am trying to understand how the ratio is representing the gradient.

                            Is there a way to represent this ratio in degrees?

                            It's a rise over run thing. 1:1 would be one unit of rise and one unit of run or 45Β°.

                            You can get the angle using the yellow Protractor tool.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • TIGT Online
                              TIG Moderator
                              last edited by

                              My Roof tool also has a function to report the angle of a picked roof slope in degrees, A:12 and A:B format...

                              TIG

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

                                TIG, many thanks for your efforts!
                                Could there be support for slopes in percent?

                                1 Reply Last reply Reply Quote 0
                                • gullfoG Offline
                                  gullfo
                                  last edited by

                                  optionally http://www.blocklayer.com/PitchAngle.aspx

                                  Glenn

                                  http://www.runnel.com

                                  1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    huajiet
                                    last edited by

                                    Thanks TIG for this very handy plugin!

                                    I'm barely Ruby-conversant but I'm trying to apply some modifications to your plugin. I have a few questions. Do refer to the attached image.

                                    TIG_.png

                                    1. I've been able to make the tags report the angle in degrees. How do I limit the tag to 1 decimal point?

                                    2. As you might be able to tell from the image, the plugin is reporting the complementary angle (39.6.. degrees) instead of the actual angle of the pitch (50.3 deg, shown in the measurement box at the lower right). how do we rectify this in the script?

                                    Thanks and regards,
                                    HJ

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Online
                                      TIG Moderator
                                      last edited by

                                      1. You can fix the number of decimal points in any float [into a string] thus:
                                        ` num = 1.23456
                                        dum = sprintf("%.1f", num)

                                      >> "1.2"`

                                      Here the .1f says 1dp and .3f would do 3dp...
                                      To convert that string back into a float:
                                      dum = sprintf("%.1f", num).to_f
                                      There are many options to this Ruby method...

                                      1. You seem to have it reporting the angle of the face's normal, you could just subtract it from 90 degrees ?
                                        angle = 90.degrees - angle
                                        then convert the angle from radians to degrees before fixing its dp's...
                                        angle = angle.radians

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        huajiet
                                        last edited by

                                        1. it works!

                                        2. the problem seems to have righted itself. will keep your solution for reference in case it acts up again.
                                          #EDIT: it seems the problems crops up when the slope's material is in back face.

                                        Thanks TIG. You're a legend!

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Online
                                          TIG Moderator
                                          last edited by

                                          The fix for that is to model properly !
                                          Alternatively check norm=face.normal, then norm.z if it's <0 then norm.reverse!

                                          TIG

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

                                          Advertisement