• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

Blank Method in "Face" Class

Scheduled Pinned Locked Moved Developers' Forum
11 Posts 3 Posters 1.3k Views
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 8 Dec 2007, 06:54

    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 8 Dec 2007, 06:55

      I'll check. Good research.

      Todd

      1 Reply Last reply Reply Quote 0
      • T Offline
        todd burch
        last edited by 8 Dec 2007, 06:55

        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
        • D Offline
          daiku
          last edited by 8 Dec 2007, 06:56

          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 8 Dec 2007, 06:56

            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 8 Dec 2007, 06:57

              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 8 Dec 2007, 06:57

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  todd burch
                  last edited by 8 Dec 2007, 06:58

                  Somebody's got to do it!

                  Todd

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    g2ktcf
                    last edited by 8 Dec 2007, 06:58

                    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 8 Dec 2007, 06:59

                      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 8 Dec 2007, 06:59

                        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
                        1 / 1
                        • First post
                          8/11
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement