McNeel Wiki
Region Select
edit · print · help · all topics
Main Pages

AccuRender

Bongo

Brazil r/s

Developer

Flamingo

Flamingo

Penguin

Rhino Blogs

Rhino

Rhino Labs

Search

Languages

Česky

Deutsch

English

Español

Français

Italiano

Polish

日本語

한국어

中文(繁體)

中文(简体)

 
.
SummaryAn example of a VB.NET plugin with some nice advanced stuff in it.
VersionRhino 4
NoteThis plug-in is a re-write for Rhino4. The original project has been removed from the Wiki.

What does this plugin do?

It is called RegionSelect and it will select all points and grips that lie visually within an enclosed region. Code is optimized, but not unreadable. Many comments added for your convenience and entertainment. RegionSelect differs from Lasso in the following ways:

 

  • With RegionSelect you cannot draw a curved outline, only a polyline.
  • With RegionSelect you can specify an existing curve which serves as the outline.
  • RegionSelect is not bound to screen-pixel accuracy when evaluating inclusion.
  • RegionSelect is more easily scriptable since it accepts existing geometry.
  • RegionSelect can be up to 125 times faster than Lasso.

 

 

 

What can I expect to learn from thumbing through this?

Using a simple ObjectGetter with some extra options, creating MRhinoGetPoint derived classes, reading out viewport information, using GDI+ to draw Rhino geometry, fitting polylines through curves, perform fast inclusion testing, using the MRhinoObjectIterator, using OnXForms, converting geometry between different classes and a few things more.

 

 

Additional Info

Code written in VB.NET 2005

Page updated on March 2nd, 2007

 

Download the VB2005 project file

 

Download the plugin RHP file

 

You are free to use, alter and copy code from here into your own project. You are not allowed to make minor changes to the RegionSelect project and redistribute it on your own account. Contact me if you have further questions.

 

David Rutten

rename · changes · history · subscriptions · lost and found · references · file upload