(a) Planes in SketchUp are abstract and infinate. (They are represented by arrays.) You really mean faces, so we will talk about those.
Faces and Edges (the primitives of SketchUp,) have and often share Vertices. You can get the 3D position of a vertex (a
Sketchup::Vertex instance,) via it’s
position getter method.
There are several getter methods in the
Sketchup::Edge class to get the object’s vertices, ie,
Sketchup::Face class there is also a
But faces also have an outer loop of edges, and can have one or more inner loops (holes in the face.) You can retrieve
Sketchup::Loop objects, via a faces
In the Loop class there is also a
Getting the position of a vertex, returns a
Geom::Point3d instance object.
You can use it’s
distance method to return a
Length class instance between it, and a given point.
So say you have two references to edge objects,
d1 = e1.start.position.distance( e2.start.position )