sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Backface UVs - How?

    scheduled pinned locked moved Developers' Forum
    3 Posts 2 Posters 124 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • D Offline
      dburdick
      last edited by

      I see that there are some bugs in the api docs on mesh.uv_at. Can someone enlighten me on how to get the UV's of the back face? I know I can get the fronts with mesh.uv_at(3,1).x The first index is the point, the second index (1) should be the flag for front or back, yes? I've tried using true/false but no luck.

      one-reply-to-this-post last-reply-time reply quote 0
      • thomthomT Offline
        thomthom
        last edited by

        what flags did you use when you obtained the PolygonMesh?

        Face.mesh
        http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/face.html#mesh

        @unknownuser said:

        Add these numbers together to combine flags. A value of 5 will include all flags, for example.

        This is wrong. 7 is the value if you want to include them all. It's a bitwise combination of the optional values.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        one-reply-to-this-post last-reply-time reply quote 0
        • D Offline
          dburdick
          last edited by

          @thomthom said:

          what flags did you use when you obtained the PolygonMesh?

          Face.mesh
          http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/face.html#mesh

          @unknownuser said:

          Add these numbers together to combine flags. A value of 5 will include all flags, for example.

          This is wrong. 7 is the value if you want to include them all. It's a bitwise combination of the optional values.

          Thanks for that. Indeed, I was using 5 instread of 7 as the mesh flag.

          Thanks again

          one-reply-to-this-post last-reply-time 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