<div dir="ltr">Hi Aik-Siong,<div><br></div><div>You have a couple of options:</div><div><br></div><div>1) Create a VM plugin.  You could create a plugin which would handle communicating with the C++ library.  Cuis would then talk to the plugin.</div><div><br></div><div>2) FFI.  As this is a C++ library, you're not going to be able to talk to it directly via FFI.  So you'd need to create/use a C library shim/wrapper to deal with instantiation/destruction of the C++ objects as well as communicating with them.  Once that is in place, you'd then use FFI on the Cuis side to communicate with the C library.</div><div><br></div><div>In most cases, if the library were written in C, I'd suggest going with option 2 as FFI is pretty straightforward.  However, since you need a C library to act as a bridge to the C++ library, both approaches may end up being comparable amounts of work (i.e. creating a C library vs creating a plugin) so it comes down to your personal preference.</div><div><br></div><div>Thanks,</div><div>Phil</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 22, 2022 at 1:10 PM Aik-Siong Koh via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi:<br>
<br>
Open Cascade is an open source Solid Modeling engine which is used in <br>
FreeCAD and PythonOCC.<br>
I would like to use Smalltalk to do like PythonOCC so that Smalltalk can <br>
control the Solid Modeling engine.<br>
What would be the steps needed for Cuis to control Open Cascade?<br>
<br>
Thanks,<br>
Aik-Siong Koh<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>