sketchucation logo sketchucation
    • Login
    โŒ› Sale Ending | 30% Off Profile Builder 4 ends 30th September

    Why does this intersection fail?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    22 Posts 9 Posters 593 Views 9 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.
    • thomthomT Offline
      thomthom
      last edited by

      @davidboulder said:

      Which part of the video am I suppose to look at?

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

      1 Reply Last reply Reply Quote 0
      • daleD Offline
        dale
        last edited by

        Glad you posted this. Thought it was only me this seemed to happen to.

        Just monkeying around....like Monsanto

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

          Coplanar faces in different contexts don't seem to want to intersect nicely... perhaps it's an accuracy thing where the transformations are such that they are seen as not quite coplanar enough to intersect... but of course they do copy/paste-in-place into the group's context AND intersect just fine ๐Ÿ˜’
          It could be done in code something like this:
          After confirming that both faces are indeed coplanar [allowing for the group's transformation] and no intersection is happening... And assuming that 'face' is a reference to the smaller raw geometry face and it's inside the active_entities... [if not we'll need to clone its edges etc?]
          Then
          gp=face.parent.entities.add_group(face.edges)
          Now we can add a copy of the face's edges into the original-group
          tgp=group.entities.add_instance(gp.entities.parent, gp.transformation*(group.transformation.inverse))
          I'm NOT sure about the 'inverse' - I'm not testing this, just typing from memory...
          Now intersect the 'tgp' with the original-group's entities and tidy up.
          tr=Geom::Transformation.new() group.entities.intersect_with(true, tr, group.entities, tr, true, [tgp]) tgp.erase! gp.erase!
          If you know for sure that the 'face' is always wholly within the origin-group's face's perimeter then you could skip the intersect_with()/tgp.erase! and simply explode the 'tgp' inside the original-group, thereby merging with its geometry...

          TIG

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

            So I'm not wrong to expect them to intersect? I've not missed out on a major Doh!-moment?

            I find it odd to be an accuracy problem either. Both faces drawn on ground place. Z is 100% zero. Group is also not moved and it's Z is 100% zero.

            This is maddening! ๐Ÿ˜ฒ

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

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

              If you give the smaller face a major PushPull UP, then edit the group, select the face and intersect with model, it will cut into the group's face !
              Then back outside of the group you can erase the unwanted extrusions of the small face to revert back to its original form...
              Oddly this works with UP BUT NOT DOWN PushPulls - the extrusion doesn't need to intersect the group, just sit on it - the PushPull is enough to jolt Sketchup into accepting the faces as coplanar and thereby capable of intersecting... Indeed if it does intersect but its base is on the group's face then there's no intersection available either !

              It should work better ๐Ÿ˜’

              TIG

              1 Reply Last reply Reply Quote 0
              • daleD Offline
                dale
                last edited by

                (Off Topic)
                Another similar event is two long rectangles on same plane with a space between. Absolutely same plane. The rectangle tool will not fill the void. This can only be accomplished by drawing a line from corner to corner and erasing this line. Doesn't happen all the time, but happens often.

                Just monkeying around....like Monsanto

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

                  @tig said:

                  If you give the smaller face a major PushPull UP, then edit the group, select the face and intersect with model, it will cut into the group's face !
                  Then back outside of the group you can erase the unwanted extrusions of the small face to revert back to its original form...
                  Oddly this works with UP BUT NOT DOWN PushPulls - the extrusion doesn't need to intersect the group, just sit on it

                  Interesting.

                  I wonder if this has always been like this... anyone?

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

                  1 Reply Last reply Reply Quote 0
                  • Jean LemireJ Offline
                    Jean Lemire
                    last edited by

                    Hi Thomthom, hi folks.

                    Is the fact that the large rectangle is a group can be the cause of the problem ?

                    I always though that, for an intersection to work, the cutting geometry must be in the context of the other object.

                    Maybe I missed something.

                    Just ideas.

                    Jean (Johnny) Lemire from Repentigny, Quebec, Canada.

                    1 Reply Last reply Reply Quote 0
                    • DavidBoulderD Offline
                      DavidBoulder
                      last edited by

                      @thomthom said:

                      @davidboulder said:

                      Which part of the video am I suppose to look at?

                      Sorry, I mean to say 2 minutes into the video. Also the face I was recommending deleting was the smaller face. Keeping the face you want to intersect into. That would be more similar to the video where I am just using edges for the intersection.

                      --

                      David Goldwasser
                      OpenStudio Developer
                      National Renewable Energy Laboratory

                      1 Reply Last reply Reply Quote 0
                      • ely862meE Offline
                        ely862me
                        last edited by

                        Yep, I get this error as well with planes but also with different geometry like the one attached.
                        I think this all started with V8 .

                        For the one attached, I enter the group with the profile and after selecting it I run the intersect with model and that error appears .


                        Intersection problem.skp


                        Intersection problem.jpg

                        Elisei (sketchupper)


                        Before no life was done on Earth it was THE LIFE ITSELF...GOD
                        Come and See EliseiDesign

                        1 Reply Last reply Reply Quote 0
                        • jgbJ Offline
                          jgb
                          last edited by

                          Intersect seems to fail in a number of ways, but not consistently enough to say "BUG". ๐ŸŽ‰

                          In my list below keep in mind the word "consistently".
                          Most times intersect does work properly. ๐Ÿ‘

                          1: As noted above, 2 planar faces fail. Even if I redraw the lines manually. I need to delete all vestiges of the failed intersect and redraw the lines manually on face.
                          Again, even that sometimes fails.

                          2: Pass a vertical face through a horizontal face. If a vert line is offside the horiz face, it won't intersect. Happens more often if the faces are not perpendicular.

                          3: Pass a curved surface through any face or surface, and some parts will not intersect. Mostly very short intervals.

                          4: Intersect normally generates a myriad of hidden lines, but fails to delete all of them, leaving a mess to clean up. What's worse; deleting some of those hidden lines blows apart the face, and many times it can't be regenerated, forcing a multiple undo and a manual intersect.
                          This fail seems more prevalent in big models with over 200,000 lines.

                          5: This happens a lot. I push a face. I work on another part of the drawing not connected to either face. I then draw a circle on 1 face and push it till SU says "on face", but the face is NOT intersected. I need to undo and push past the face, then intersect and then .... See #4. ๐Ÿ‘ฟ

                          6: A corollary to #5 is a face with 1 or more holes in it. The face, but not any defining line, gets deleted. Selecting a boundary line and the "Face" command, regenerates the face, but not the holes. They are faced over, and many times an intersect will not restore the holes, then see #5 then see #4.

                          6: Intersect with model is supposed to ignore objects that are layered off. Yet sometimes I get all sorts of lines from layered off objects, and occasionally I even get intersect lines from previously DELETED objects. ๐Ÿ˜ฎ
                          And, sometimes I lose the face deleting unwanted lines. ๐Ÿ‘ฟ

                          7: Intersect seems to generate clusters of very tiny fragments around some intersections/vertices that are a real pain to find and delete. And deleting them usually blows away existing faces, and I have to regen all (but 1) of the lines/faces that were on that vertex.

                          Otherwise it works great. ๐Ÿ˜• ๐Ÿ˜›


                          jgb

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

                            @jean lemire said:

                            I always though that, for an intersection to work, the cutting geometry must be in the context of the other object.

                            It works if I make the small rectangle into a cube.

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

                            1 Reply Last reply Reply Quote 0
                            • GaieusG Offline
                              Gaieus
                              last edited by

                              Coplanar things only intersect if "intersect selected" is chosen. You cannot (obviously) select all inside the group context AND outside of it. Try with this file (created in version 6 where "auto intersect" was not introduced). Select all and perform an intersect with model. Nothing happens. Now select all and intersect with selected: it will intersect the two rectangles.


                              intersect.skp

                              Gai...

                              1 Reply Last reply Reply Quote 0
                              • 1
                              • 2
                              • 1 / 2
                              • First post
                                Last post
                              Buy SketchPlus
                              Buy SUbD
                              Buy WrapR
                              Buy eBook
                              Buy Modelur
                              Buy Vertex Tools
                              Buy SketchCuisine
                              Buy FormFonts

                              Advertisement