sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Surface/Face Question

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 5 Posters 313 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.
    • B Offline
      bluetale
      last edited by

      Hello

      First of all, I'm new to ruby πŸ˜„
      I'm writing a export plugin which runs through all the faces of the model, generates a svg-path for them and finally writes them into a xml-file.
      But that's not the problem.

      When I select geometrical forms such as the lateral surface of a cylinder, the Sketchup "Entity Info" displays "surface". Internal that surface consists of many faces. Now I need to differentiate between "stand-alone" faces and such faces which belongs to a "surface". Is that possible?

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Iterate over the face's edges and check if any of them are smooth/soft/hidden and have another face attached.

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

        1 Reply Last reply Reply Quote 0
        • B Offline
          bluetale
          last edited by

          @thomthom said:

          Iterate over the face's edges and check if any of them are smooth/soft/hidden and have another face attached.

          thx

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            I've got a piece of code that does this quite nicely that I think I can post later today when I find it. It was given to me by someone else, I just need to check if he asked me not to share it...

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

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

              You need to use the Face.mesh method to get a PolygonMesh (a triangulated version of the face) and then export that. If you try to work with Sketchup Faces you are going to find that you have to deal with them being potentially non convex and having "holes".

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

                http://code.google.com/apis/sketchup/docs/ourdoc/polygonmesh.html

                I was wondering what that was for.

                http://remusrendering.wordpress.com/

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  A polygon mesh is all just triangles?
                  hmm... That would be interesting for the Normal Probe I just made...

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

                  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