Just want to find out what is the most efficient method to draw an Obround shape using RhinoCommon (C#).
I will have to draw thousands of them. Currently, I can draw a rectangle, then do a Chamfer curve with the radius of the width / 2. If there is some more efficient way, please let me know.
RhinoCommon does not have a method to create a curve as you depict.
My only suggestion with your code is to create a single polycurve from the four curve segments, instead of adding each curve segment to the document one-by-one.