sketchucation logo sketchucation
    • Login
    1. Home
    2. lenglel
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 1

    lenglel

    @lenglel

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    lenglel Unfollow Follow
    registered-users

    Latest posts made by lenglel

    • RE: SketchUp API docs

      Yes, the documentation on this method is sparse, yet self-contradictory.
      From the explanation:
      "The second point in each pair of points is a >>> 2D <<< point that gives the (u,v) coordinates"
      From the example code:
      pt_array[1] = Geom:: >>> Point3d <<< .new(0,0,0)

      This is the point array I used in a call to position_material
      pt_array = []
      pt_array[0] = face.vertices[0]
      pt_array[1] = Geom::Point3d.new(0,0,0)
      pt_array[2] = face.vertices[1]
      pt_array[3] = Geom::Point3d.new(1,0,1)
      Apparently, the first two points set the location of the red pin, the next two
      set the green pin. I'm still working out the other two.

      This is the result I get from using the point array above...
      Textured from ruby plug-in

      posted in Developers' Forum
      L
      lenglel