Click or drag to resize
Interop Class
Contains static methods to marshal objects between RhinoCommon and legacy Rhino_DotNet or C++.
Inheritance Hierarchy
SystemObject
  Rhino.RuntimeInterop

Namespace: Rhino.Runtime
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static class Interop

The Interop type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateFromNativePointer
Constructs a RhinoCommon Geometry class from a given ON_Geomety*. The ON_Geometry* must be declared on the heap and its lifetime becomes controlled by RhinoCommon.
Public methodStatic memberFileWriteOptionsConstPointer
Returns the underlying const CRhinoFileWriteOptions* for a Rhino.FileIO.FileWriteOptions object. You should only be interested in using this function if you are writing C++ code.
Public methodStatic memberFromOnBrep
Copies a Rhino_DotNet brep to a RhinoCommon brep class.
Public methodStatic memberFromOnCurve
Copies a Rhino_DotNet curve to a RhinoCommon curve class.
Public methodStatic memberFromOnMesh
Copies a Rhino_DotNet mesh to a RhinoCommon mesh class.
Public methodStatic memberFromOnSurface
Copies a Rhino_DotNet surface to a RhinoCommon Surface class.
Public methodStatic memberNativeGeometryConstPointer
Returns the underlying const ON_Geometry* for a RhinoCommon class. You should only be interested in using this function if you are writing C++ code.
Public methodStatic memberNativeGeometryNonConstPointer
Returns the underlying non-const ON_Geometry* for a RhinoCommon class. You should only be interested in using this function if you are writing C++ code.
Public methodStatic memberNativeNonConstPointer
Get ON_Viewport* from a ViewportInfo instance
Public methodStatic memberNativeRhinoDocPointer
Gets the C++ CRhinoDoc* for a given RhinoCommon RhinoDoc class.
Public methodStatic memberPlugInPointer
Gets a C++ plug-in pointer for a given RhinoCommon plug-in.

This is a Rhino SDK function.

Public methodStatic memberRhinoObjectConstPointer
Returns the underlying const CRhinoObject* for a RhinoCommon class. You should only be interested in using this function if you are writing C++ code.
Public methodStatic memberRhinoObjectFromPointer
Constructs a RhinoCommon Rhino object from an unmanaged C++ RhinoObject pointer.
Public methodStatic memberToIRhinoViewport
Convert a Rhino.Display.Viewport to an RMA.Rhino.IRhinoViewport.
Public methodStatic memberToOnBrep
Constructs a Rhino_DotNet OnBrep that is a copy of a given brep.
Public methodStatic memberToOnCurve
Constructs a Rhino_DotNet OnCurve that is a copy of a given curve.
Public methodStatic memberToOnMesh
Constructs a Rhino_DotNet OnMesh that is a copy of a given mesh.
Public methodStatic memberToOnSurface
Constructs a Rhino_DotNet OnSurface that is a copy of a given curve.
Public methodStatic memberToOnXform
Constructs a Rhino_DotNet OnXform from a given RhinoCommon Transform.
Public methodStatic memberTryCopyFromOnArc
Attempts to copy the contents of a RMA.OpenNURBS.OnArc to a Rhino.Geometry.Arc.
Public methodStatic memberTryCopyToOnArc
Attempts to copy the contents of a Rhino.Geometry.Arc to a RMA.OpenNURBS.OnArc.
Top
See Also