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

    Smooth edge angle value

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    2 Posts 2 Posters 90 Views 2 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.
    • D Offline
      DavorP
      last edited by

      Hi, I have a question about soften edges value. Is there a way to see an angle between faces that share a selected edge. I know that values for soft and smooth are true and false, but when you select an soothened edge, value in the soften edges window is default (or previuosly used value). Obviously SU calculates the value since moving the slider over the limit value changes the smooth to true or false. It would be nice if entity window had a field which would show the angle. Since it does not, is there a plugin that would show this value?

      Thanks

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

        This one-liner copy/pasted into the Ruby Console + <enter> will return the angle [in degrees] between any two selected faces [just preselect 2 faces before using it]

        s=Sketchup.active_model.selection;a=s[0].normal.angle_between(s[1].normal).radians
        

        You can use it to form the basis of a tool...
        You could have the tool let the user pick 2 faces instead of the s[0] & s[1] and a dialog shows the angle, or pick an edge and if the edge.faces.length==2 use those two faces instead where 'edge' is s[0] then use a=s[0].faces[0].normal.angle_between(s[0].faces[1].normal).radians etc...

        TIG

        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