@Andrew_Mole wrote:
We have a plug-in which we are looking at updating for Rhino 6. It has quite a lot of code that uses Rhino.NET, and I understand that this is no longer supported, but should be replaced by Rhinocommon libraries.
I do not have any experience with this, so any pointers to learning materials would be appreciated. Is there a guide on what mapping / replacement of classes and functions is involved in moving from Rhino.NET to RhinoCommon?
I am trying to understand the difference between Geometry in the Rhino.Geometry library and in the Rhino.DocObjects library. Am I right in assuming that the DocObjects contain the geometry and the GUID and that I should be looking to operate with those? Should the RMA object (such as MRhinoCurveObject) typically be replaced by DocObjects?
The kind of questions I am looking to answer are as follows. What are the replacements for the following (or where should I go to look)?:
- On3dPoint -> Point3d
- On3dVector -> Vector3d
- OnLine -> Line (?)
- OnLineCurve -> ?
- MRhinoCurveObject -> Rhino.DocObjects.CurveObject or Rhino.Geometry.Curve ?
- OnObject -> Object(?)
- RhUtil -> ? (is there a comparison anywhere)
- RMA.Rhino-> ?
- RMA.OpenNURBS -> ?
I need to replace the following code (in VB.NET):
a_function(…, ByRef line As OnLine, …)
if line IsNot Nothing …Can I replace this with:
a_function(…, ByRef line As Line, …)
if line.IsValid …
Posts: 1
Participants: 1