sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Blank Method in "Face" Class

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 3 Posters 1.4k Views 3 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.
    • G Offline
      g2ktcf
      last edited by

      Hello All,

      I am doing some error checking to see if a point lies on a face. I think the correct method is to use Face.classify_point. However, in the Sketchup API reference, this entire section is blank. I have done some testing and shown the following:

      If the point is on the face: Function returns 1
      If the point is on the face and is on a line: Function returns 2
      If the point is on the face and is a vertex: Function returns 4
      If the point is NOT on the face but is on the face plane: Function returns 8
      If the point is NOT on the face and is NOT on the face plane: Function returns 16

      Can anyone verify/vouch that this is the correct function? Is my list accurate? Is there another method to do the same thing?

      Thanks,
      Chris

      1 Reply Last reply Reply Quote 0
      • T Offline
        todd burch
        last edited by

        I'll check. Good research.

        Todd

        1 Reply Last reply Reply Quote 0
        • T Offline
          todd burch
          last edited by

          Your list is pretty close to being perfect. Here's the official word (and no, these are not defined constants... yet).

          PointUnknown = 0;
          PointInside = 1;
          PointOnEdge = 2;
          PointOnVertex = 4
          PointOutside = 8;
          PointNotOnPlane = 16;

          Todd

          1 Reply Last reply Reply Quote 0
          • daikuD Offline
            daiku
            last edited by

            This is good stuff, guys - thanks to both of you for the research. I've already simplified some awkward code in my scripts using this new knowledge. CB.

            Clark Bremer
            http://www.northernlightstimberframing.com

            1 Reply Last reply Reply Quote 0
            • G Offline
              g2ktcf
              last edited by

              Todd,

              Just curious to your sources. Will the SDK cover this type of thing?

              Chris

              1 Reply Last reply Reply Quote 0
              • T Offline
                todd burch
                last edited by

                I sent an email to a developer in Boulder. πŸ˜‰
                No, the SDK does not cover stuff like this.

                Todd

                1 Reply Last reply Reply Quote 0
                • G Offline
                  g2ktcf
                  last edited by

                  Oh....the ole "inside trader" thingy! lol

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    todd burch
                    last edited by

                    Somebody's got to do it!

                    Todd

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      g2ktcf
                      last edited by

                      PS I noticed that you live in Katy...I have an office on Park 10!

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        todd burch
                        last edited by

                        Woo-Hoo!! Time for a SketchUp lunch get-together!! (there are others!)

                        Seriously, this week or next? Lupe Tortilla's - Hwy 6 & I-10.

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          g2ktcf
                          last edited by

                          Heck, I can NEVER pass up Lupe's! πŸ˜† Next week is fine by me. Let me know when as my week is open (for now πŸ˜• )

                          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