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

How to create a curve class inherited from Rhino.Geometry.Curve

$
0
0

@pagarcia wrote:

Hello,

I would like to create my own type of curves with rhinocommon, as an inheritance class from a Rhino.Geometry.Curve instance. I want to replicate the behavior of a polyline, with an additional array of Point3d, to control several linear segments with a bunch of handles.

I don't know how to start. From my experience in Autodesk Maya, I would ideally have a library of C# codes implementing such a class, then launch my curve in Rhino as an instance of this class (typically inherited from MPxNode or MPxSurfaceShape in Maya). In Rhino so far I've coded scripts to run commands over existing objects, but not a library to create objects. Could you provide a simple example of a C# library creating an object from inheritance (if from a curve, better!)?

Many thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8677

Trending Articles