sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    2D Faces to 3D Groups (Plugin(s) needed!)

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    4 Posts 3 Posters 165 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.
    • K Offline
      kantham
      last edited by

      Hi there, SketchUcation.

      I am making layouts for level design purposes (Source engine editing tool "Hammer") and it requires groups of convex/volumetric geometry for it to work. You can't just have flat/2d surfaces and import them in unless they are models (that's a far more complex fashion which eliminates lightmaps, and does not include collision for what I am aiming for and ETC etc)

      Here are the processes I am currently thinking about. (If you have any suggestions to make, that's perfect, I seriously doubt my method is the best.)

      1. Turning all selected faces into groups (Plugin here).
      2. Edit endless amount of groups at once in one click (plugin needed)
      3. Backside-extrude all the selected surfaces to create volume (plugin needed)

      These 3 steps would ensure that every 2D faces in the Sketchup model would turn into 3D geometry with their own respective group (These groups are later exported into the game in VMF format as working convex geometry.)

      It is also important to avoid backfacing.
      If you know a plugin that does all of that in one go, linkpls. 😄

      Thanks for your time.

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        @unknownuser said:

        1. Edit endless amount of groups at once in one click (plugin needed)

        What sort of "Edit"?

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • K Offline
          kantham
          last edited by

          @sdmitch said:

          What sort of "Edit"?

          Entering the group component edit. But with every groups selected.

          Using vanilla Sketchup, it is only possible to edit one group at a time. The purpose here would be to extrude all the faces at once, even though they are in individual groups.

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

            You don't need to 'edit' a group to change its entities.
            So once you have an array of the newly 'grouped_faces' [made as you group them] just process it thus:

            thick=1.0 ### or whatever dim desired
            grouped_faces.each{|group|
              group.entities.to_a.each{|e|
                next unless e.is_a?(Sketchup;;Face)
                e.pushpull(-thick) ### -ve pushes against face.normal
              }
            }
            

            TIG

            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