Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5752

Working with Nurbs Curve in GhPython

$
0
0

@lawrenceyy wrote:

This is a two part question:

  1. What is the ghpythonlib.component equivalent for NurbsCrv (the version where the input is point, weight and kink)? The NurbsCurve() method I'm getting calls for vertices, degree and periodic (see image below).

  2. I'd much rather avoid ghpythonlib.component. How do I get the control points, weight and kink of a curve via rhinocommon? I'd like to transform the control points and then reconstruct the curve. How then do I create a curve with respect to those three variables with rhinocommon?

Side question: how do I duplicate a list of points. I need to transform the duplicate without affecting the original? Point3d does not seem to have a .Duplicate() method.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5752

Trending Articles