I am trying to generate planar mesh pipes that are segmented in a consistent manner.
See the attached: the two mesh pipes that overlap in the front of the image each have six segments, but the one on the left lies flat whereas the one on the right doesn’t. I would like the resultant mesh pipes from any set of planar curves to consistently lie flat.
How would I do this? I want it to work on any planar curve, so rotating the pipe after it is generated is not acceptable. Is there some curve property that can be modified before using Mesh.CreateFromCurvePipe (some sort of orientation property?)
Open to non-scripted solutions as well.
Attached is a file similar to the one Rolf shared here: Mesh pipe through C#
This file uses Mesh.CreateFromCurvePipe: https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.mesh/createfromcurvepipe and from what I can infer, this is similar to the method used in various plugins like NGon.
pipe_SL.gh (6.3 KB)