Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8540

Planar Curve

$
0
0

@serdem wrote:

Hi,
planarCurve.3dm (228.1 KB)
Attached curve is planar, with rhinocommand i can make it planarsurface. But with the below code, I get planarity as “false”. I need plane of this curve.
var go = new GetObject();
go.SetCommandPrompt(“Select objects”);
go.AcceptNothing(true);
go.GeometryFilter = ObjectType.Curve;
GetResult res = go.GetMultiple(1, 0);
if (go.CommandResult() != Rhino.Commands.Result.Success)
{
return go.CommandResult();
}
MessageBox.Show(go.Objects()[0].Curve().IsPlanar().ToString());

What may be wrong?

Thanks,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8540

Trending Articles