I think it may be the norm for 3D and CAD applications. It was the same in AutoCAD.
I just tested this snippet. The resulting edges do have an associated ArcCurve
object. (FYI, SketchUp does not have geometric polylines like AutoCAD does.)
The drawing in CW order may be another undocumented quirk of this factory method. (I had not used it in quite awhile, so perhaps I’m not remembering how it works entirely. Search this category on the method name and you may get some hits.)
FYI: (click to expand)
- [How to] Post correctly formatted and colorized code on the forum?
- Ruby Learning Resources [WikiLists]
- Issues · SketchUp/api-issue-tracker
Also …
Ruby best practices says that all instance method calls should use parenthesized argument lists. The exceptions are the methods from Kernel
, Object
, Module
and Class
that have “keyword status” when called from within a module or class definition and the receiver is self
.
The interpreter does not enforce parenthesis, but might need to work a bit harder in it’s parsing. Not a big deal if you think it reads better for you. (There are still many bundled Ruby library files that omit parenthesis around instance method parameters.)