Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:sdksamples:leader [2015/09/14]
127.0.0.1 external edit
developer:sdksamples:leader [2016/02/04] (current)
sandy
Line 1: Line 1:
 ====== Creating a Leader ====== ====== Creating a Leader ======
 ====== C++, .NET ====== ====== C++, .NET ======
 +
 > **Version:​** //Rhino 4// > **Version:​** //Rhino 4//
 > **Summary:​** //​Demonstrates how to an annotation leader using the Rhino 4 SDK.// > **Summary:​** //​Demonstrates how to an annotation leader using the Rhino 4 SDK.//
-> **NOTICE:** //The Rhino.NET SDK is deprecated in Rhino 5.  This example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​leader|here]]//​+> **Notice:** //The Rhino.NET SDK is deprecated in Rhino 5.  This example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​leader|here]].// 
 =====Question===== =====Question=====
 What is the best approach to create a leader line?  I have tried a couple of different approaches, but with no success. What is the best approach to create a leader line?  I have tried a couple of different approaches, but with no success.
Line 10: Line 12:
 Leaders in Rhino 4.0 are defined by the ON_Leader2 class. To construct a leader, you must provide: Leaders in Rhino 4.0 are defined by the ON_Leader2 class. To construct a leader, you must provide:
  
-  - A plane, or an ON_Plane object, which defines the plane in which the leader ​will be located. +  - A plane, or an ON_Plane object, which defines the plane in which the leader ​is located. 
-  - Two or more 2-D points that line in the plane that you specified above.+  - Two or more 2-D points that line in the plane that you specify.
  
-In the following example code, we will construct a simple leader object. The leader will reside in the world x-y plane and will have four points.+In the following example code, we construct a simple leader object. The leader will reside in the world x-y plane and will have four points.
  
 ===== C++ ===== ===== C++ =====
developer/sdksamples/leader.txt · Last modified: 2016/02/04 by sandy