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

[Plugin] SectionCutFace v2.0

Scheduled Pinned Locked Moved Plugins
65 Posts 23 Posters 65.8k Views 23 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.
  • S Offline
    sorgesu
    last edited by 20 Nov 2007, 18:32

    I'll take a look. It's really big so I'm not quite sure how to do it. I think I can put it on Kelly's ftp.

    I tried it with another model that was originally a version 5. With this one it created a face , partally. On of the components that was part of the cut, had a face, and a small enclosed piece of geometry had a face. The rest was empty space. I figured it might have something to do withe the space which was around a component so I exploded everything completely and tried again. The result was the same. The same things had faces and the same things didn't though it was all completely exploeded at this point.

    I'll see about getting these models up.

    Susan Sorger
    Former Seller Hand Rendered Entourage
    Former Canadian Authorized Training Centre, SketchUp

    1 Reply Last reply Reply Quote 0
    • S Offline
      sorgesu
      last edited by 20 Nov 2007, 18:33

      Okay, I have 2 models with the Section Cut face in them that are not working correctly. They are both in this folder on Kelly's site:
      http://www.sketchucation.com/forums/scf/sas/Ruby/SectionFaceProb

      Susan Sorger
      Former Seller Hand Rendered Entourage
      Former Canadian Authorized Training Centre, SketchUp

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gaieus
        last edited by 20 Nov 2007, 18:33

        Susan,

        I opened the file "treasury2" and the section cut was there as it was supposed to be. See attached image.


        treasury2.jpg

        Gai...

        1 Reply Last reply Reply Quote 0
        • S Offline
          sorgesu
          last edited by 20 Nov 2007, 18:34

          but there is space all around the doorway. Why is there no face in that space?
          I thought the script fills in a face everywhere

          Susan Sorger
          Former Seller Hand Rendered Entourage
          Former Canadian Authorized Training Centre, SketchUp

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gaieus
            last edited by 20 Nov 2007, 18:35

            You're right - it should fill that face, too - unless it is intelligent enough to know that that's the inside room of the building and does not need to fill it with a face. I'll go into it, I think.

            Gai...

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 20 Nov 2007, 18:35

              @sorgesu said:

              I took a look see and I have a couple of problems with the script.
              The colours list stops at the bottom of the page ending with the "L" colours and there is no way to scroll down to choose anything else. If I wanted a "White" face colour I could type "W" in the face colour field but then I would have to settle for "Wheat" because that is the first "W" and I can't get at the rest. The Cut face colour actually allows for the "Default" colour but the cut edge colour does not.

              Press W to drop to Wheat then use the down arrow key to get to White...

              TIG

              1 Reply Last reply Reply Quote 0
              • S Offline
                sorgesu
                last edited by 20 Nov 2007, 18:35

                ahh thanks, down arrow within window, not in drop down list. Go it.
                Now about the faces??

                Susan Sorger
                Former Seller Hand Rendered Entourage
                Former Canadian Authorized Training Centre, SketchUp

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 20 Nov 2007, 18:36

                  @sorgesu said:

                  but there is space all around the doorway. Why is there no face in that space?
                  I thought the script fills in a face everywhere

                  The script attempts to work out what is solid and what is void, so it doesn't (usually) fill in every available gap. To see this draw a rectangle and offset it and pushpull it into a 'wall', reface the top and pushpull to make a quick floor and a roof; then draw a rectangle onto a wall face and pushpull it through the wall to make an opening. Now make a section cut across the wall passing through the window 'hole'. Use SectionCutFace on it and you'll get a filled-in section as you expect. But if you put a face or faces into the window as a 'pane' it can get confused as to which is solid and which is void in the cut. Usually if fills them all and you can then edit the section face group and select and delete unwanted faces, or redraw edges to (re)face something that's missed... Overlapping solids can confuse it as there's no simple rules to work out what's desired to be solid - typically the outer areas get filled, then any inner islands are emptied, then any nested islands filled etc (like CAD hatching ?)...

                  It's not foolproof...you should be able to make quick manual fixes to complex sections that get confused.

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sorgesu
                    last edited by 20 Nov 2007, 18:37

                    I see. I have never really worked with AutoCAD but I'm teaching people who do and I didn't really understand what it is that they needed to have a face. I thought that they wanted a face even on a cavernous interior section cut. So I couldn't figure out why there was no face at all in an interior. Now I understand. Thank you.

                    Susan Sorger
                    Former Seller Hand Rendered Entourage
                    Former Canadian Authorized Training Centre, SketchUp

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      stuartb
                      last edited by 20 Nov 2007, 18:37

                      I cant live without the sectioncutface ruby! Another thing I do now and then is to make the section faces 'not receive shadows'. This means you can cut further up and (when in plano view mode) still get the impression the cut face is moving with you. As the great man says . . . just ideas.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        digby dart
                        last edited by 20 Nov 2007, 18:39

                        πŸ˜‰

                        Many thanks for another excellent script TIG.

                        πŸ˜„

                        [digby dart]

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          chango70
                          last edited by 16 Jul 2008, 12:11

                          That is just about one of the most useful rubys I've come across! thanks alot!

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            brokenstaral
                            last edited by 4 Sept 2008, 10:43

                            i m a newby at the ruby thing

                            is there anyway to render a section-cut after creating the section-cut face???

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by 4 Sept 2008, 12:04

                              Seems erase manually that don't you want (it's not a big deal) make the trick πŸ˜‰


                              moto.jpg

                              Frenchy Pilou
                              Is beautiful that please without concept!
                              My Little site :)

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                brokenstaral
                                last edited by 4 Sept 2008, 21:19

                                @unknownuser said:

                                Seems erase manually that don't you want (it's not a big deal) make the trick πŸ˜‰

                                thanks man

                                that render is exactly what i wanted to do

                                i have also asked around a bit
                                other people say i need to use the intersect tool
                                so in that sectioned motor bike
                                did u intersect the section-cut layer with the model then delete what u dont needed??

                                or u used sum other method??

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 8 Sept 2008, 18:22

                                  It makes a group containing a large plane [face], intersects it with the model and then tries to work out what's solid and what's void. It doesn't always get it right...

                                  .

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    Gaieus
                                    last edited by 9 Sept 2008, 13:20

                                    TIG, I guess front faces and back faces are also considered during the "guessing phase" in your script, don't they? (Love the script BTW πŸ˜„ )

                                    Gai...

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 9 Sept 2008, 19:41

                                      @gaieus said:

                                      TIG, I guess front faces and back faces are also considered during the "guessing phase" in your script, don't they? (Love the script BTW πŸ˜„ )

                                      It should make the initial face looking in the right direction to start with... after that it deletes parts, so the remainder should 'always' face the expected way ?

                                      .

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gaieus
                                        last edited by 10 Sept 2008, 09:00

                                        I guess you are not asking this (with the question mark at the end).

                                        OK, I see (and understand) that the face created tries to orient itself to "close" the section cut with the back face inside (or at least that's what I understand from what you wrote).

                                        I actually meant that if in the model, the faces are oriented consistently, it helps the script with "guessing" what to keep and what to delete.

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          TIG Moderator
                                          last edited by 10 Sept 2008, 14:45

                                          @gaieus said:

                                          I guess you are not asking this (with the question mark at the end).

                                          OK, I see (and understand) that the face created tries to orient itself to "close" the section cut with the back face inside (or at least that's what I understand from what you wrote).

                                          I actually meant that if in the model, the faces are oriented consistently, it helps the script with "guessing" what to keep and what to delete.

                                          The orientation does not rely on the models's faces - it uses the plane direction of the section cut entity.
                                          What is to be kept and what is to be erased is based on a faces' 'loop' look-up alogorithm. Working from the outside-most faces inwards (the outermost faces will not have adjacent faces on their outer edges so we know who they are), these are deleted and the next innermost faces are kept as they're the start of the cut faces. Then the next neighbour face is erased and its inner face neighbours kept and so on until it's all done. Obviously it's quite possible to devise certain shapes that produce collections of potential section-cut faces that aren't correct - if so, you can manullay erase or remake such faces to suit...

                                          .

                                          TIG

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

                                          Advertisement