Hi,
this seems an absurd question and goes beyond any common sense but here it is, how do I add two Point3d?
Something like this:
a = Geom::Point3d.new(1,1,1) b = Geom::Point3d.new(0,1,1) c = a + b
Now this spits out a Error: #<ArgumentError: Cannot convert argument to Sketchup::Vector3d>
Which would seems like that it's only possible to add a Vector3d to a point3d, which is pretty nonsense to me.
Sketchup documentation says there's a Point3d.+ operator with Point3d as arguments, but then fails to report a snippet with an actual point3 + point3d, which adds to my confusion:
*Point3d.+SketchUp 6.0+
The '+' operator is a fast way to add to the current x, y and z values of a point, or to set the values of a point by adding to other points together.
**Arguments:
point2
A Point3d object.**
Returns:
point
a Point3d object
pt2 = pt + vec
pt = pt + [10,10,10]*