• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Vector transformation ... whut?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 255 Views 2 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.
  • T Offline
    thomthom
    last edited by 21 Oct 2010, 15:46

    Scenario:
    A group, rotated off axis from the global model axis.

    Open the group, get the edit transformation, and try to transform vector (0,0,1) with the edit transformation:
    t = model.edit_transform #<Geom::Transformation:0xf5b73a4> v = Z_AXIS.transform( t ) Vector3d(0, 0, 1)

    Why does that return 0,0,1? I expected a vector rotated to match the active group's axis.... ???

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

    1 Reply Last reply Reply Quote 0
    • D Offline
      david.
      last edited by 21 Oct 2010, 16:29

      Are you in edit mode for the group?

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 21 Oct 2010, 17:33

        Never - my brain was being silly.

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

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

        Advertisement