sketchucation logo sketchucation
    • Login
    1. Home
    2. wing8b
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    Posts

    Recent Best Controversial
    • Question about the vector direction

      Hi, I am new to Sketchup and Ruby, and I am now using SketchUp 7.

      I wonder why the following 2 scripts would have the same result. I suppose them should be in opposite direction...

      Script#1:
      ` centerpoint = Geom::Point3d.new

      Create a circle perpendicular to the normal or Z axis

      vector = Geom::Vector3d.new 0,0,1
      vector2 = vector.normalize!
      model = Sketchup.active_model
      entities = model.active_entities
      edges = entities.add_circle centerpoint, vector2, 5
      face = entities.add_face edges
      status = face.pushpull 100, true`

      Script#2:
      ` centerpoint = Geom::Point3d.new

      Create a circle perpendicular to the normal or Z axis

      vector = Geom::Vector3d.new 0,0,-1
      vector2 = vector.normalize!
      model = Sketchup.active_model
      entities = model.active_entities
      edges = entities.add_circle centerpoint, vector2, 5
      face = entities.add_face edges
      status = face.pushpull 100, true`

      Can anyone advise me on that? Thanks!

      posted in Developers' Forum
      W
      wing8b
    • 1 / 1