dalefugier / SampleSharedXform

SampleSharedXform is a Rhino 6 solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SampleSharedXform

SampleSharedXform is a Rhino 6 solution that demonstrates how to share application data between RhinoCommon plug-ins and Rhino C++ plug-ins.

The solution contains the following projects:

  • SampleSharedXformLib — Rhino-dependent C++ assembly (DLL). The assembly maintains a dictionary that maps Rhino object ids to an array of 4x4 transformation matrices. The data is runtime-only; it does not serialize in Rhino documents.
  • SampleSharedXformOwner — A RhinoCommon plug-in that access the "C" exported functions from SampleSharedXformLib using a technique called Platform Invoke, or P/Invoke. This plug-in has read-write access to the dictionary maintained by SampleSharedXformLib.
  • SampleSharedXformClient1 — A Rhino C++ plug-in project that access the functionality, provided by SampleSharedXformLib, using Load-Time Dynamic Linking. This plug-in has read-only access to the dictionary maintained by SampleSharedXformLib.
  • SampleSharedXformClient2 — A Rhino C++ plug-in project that access the functionality, provided bySampleSharedXformLib, using Run-Time Dynamic Linking. This plug-in has read-only access to the dictionary maintained by SampleSharedXformLib.

Building Sample

To build the sample, you are going to need:

License

This source code is licensed under the MIT License.

About

SampleSharedXform is a Rhino 6 solution

License:MIT License


Languages

Language:C++ 65.8%Language:C# 22.5%Language:C 11.7%