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

    Group moves far away when i want to scale

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 4 Posters 391 Views 4 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.
    • Y Offline
      YoungOSG
      last edited by

      t = Geom::Transformation.scaling 2
      group.transform! t
      i use above code to scale s group,however the group always move far away!
      I can not figure it out.
      anyone helps!! thanks!


      QQ截图20150530213141.png


      QQ截图20150530213155.png

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Check where the origin of the group is. The scaling is relative to the group's origin.

        I'm not here much anymore.

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

          To scale it about it's center use three scaling values and a point
          t = Geom::Transformation.scaling(2, 2, 2, group.bounds.center) group.transform!(t)

          TIG

          1 Reply Last reply Reply Quote 0
          • tt_suT Offline
            tt_su
            last edited by

            @youngosg said:

            t = Geom::Transformation.scaling 2

            There is an issue with this method - it doesn't produce the same transformation as
            Geom::Transformation.scaling(2, 2, 2)
            The former change the 16th value in the matrix - instead of scaling the components.

            I'm not sure why it was implemented as such, but several render engines have had issues with that. I think even SU have issues in some cases. Think we have an issue filed to change it.

            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