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

    Plane

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 351 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.
    • R Offline
      rnpatel9789
      last edited by

      Hi Everything,
      I didn't understand exactly what the meaning of the array return by the "Face.plane". Means it return 4 values as array format. I want to know because I didn't get any reference for plane in Sketchup. So please help for understanding exactly what is returning from "Face.plane".

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        There is no "plane" object in SketchUp, so SketchUp uses an Array. The values are explained in the documentation for the Geom module[1]

        @unknownuser said:

        A plane can be represented as either an Array of a point and a vector, or as an Array of 4 numbers that give the coefficients of a plane equation.

         plane1 = [Geom::Point3d.new(0, 0, 0), Geom::Vector3d.new(0, 0, 1)]
         plane2 = [0, 0, 1, 0]
        

        [1] http://www.sketchup.com/intl/en/developer/docs/ourdoc/geom

        Hi

        1 Reply Last reply Reply Quote 0
        • S Offline
          slbaumgartner
          last edited by

          As happens too often in the API docs, they give a technically correct but superficial definition and expect you to figure it out on your own. If you care, when a plane is represented as

          [Point3d, Vector3d]

          The point is a location on the plane, and the vector is the normal to the plane.

          When a plane is represented as a four-element array, the first three values are the x,y,z components of the normal vector to the plane, and the fourth value is the distance from the origin to the plane along the normal vector. Face#plane returns this version.

          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