Custom Brep Object

I would like to customize the Brep object by adding some additional
fields (a Mesh and some build in numeric structs).

I should be able to take an existing Brep, cast it into MyBrep and be
able to use MyBrep as a DocObject for selection, manipulation and
visualization.

How could I best do this?

Hi @rene_hiemstra,

Something like this is possible (but probably more robust in Rhino 6):

public class MyBrepObject : CustomBrepObject
{
  public MyBrepObject()
  {
    // required
  }

  public override string ShortDescription(bool plural)
  {
    return plural ? "my brep" : "my breps";
  }
}

– Dale